diff --git a/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md b/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md index 7b28b62d09996..ae1a28961a7b7 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md +++ b/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.9 (Unreleased) +## 1.0.0-beta.1 (2024-05-23) + +- Azure Resource Manager SignalR client library for Java. This package contains Microsoft Azure SDK for SignalR Management SDK. REST API for Azure SignalR Service. Package tag package-2024-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/signalr/azure-resourcemanager-signalr/README.md b/sdk/signalr/azure-resourcemanager-signalr/README.md index 330cecb95604a..0274912e3225a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/README.md +++ b/sdk/signalr/azure-resourcemanager-signalr/README.md @@ -2,7 +2,7 @@ Azure Resource Manager SignalR client library for Java. -This package contains Microsoft Azure SDK for SignalR Management SDK. REST API for Azure SignalR Service. Package tag package-2023-08-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for SignalR Management SDK. REST API for Azure SignalR Service. Package tag package-2024-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-signalr - 1.0.0-beta.8 + 1.0.0-beta.9 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md b/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md index 0731bf1a75775..aaac32d6ad377 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md +++ b/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md @@ -45,6 +45,12 @@ - [List](#signalrprivatelinkresources_list) +## SignalRReplicaSharedPrivateLinkResources + +- [CreateOrUpdate](#signalrreplicasharedprivatelinkresources_createorupdate) +- [Get](#signalrreplicasharedprivatelinkresources_get) +- [List](#signalrreplicasharedprivatelinkresources_list) + ## SignalRReplicas - [CreateOrUpdate](#signalrreplicas_createorupdate) @@ -67,14 +73,16 @@ ### Operations_List ```java -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Operations_List.json */ /** * Sample code: Operations_List. - * + * * @param manager Entry point to SignalRManager. */ public static void operationsList(com.azure.resourcemanager.signalr.SignalRManager manager) { @@ -88,23 +96,22 @@ public final class OperationsListSamples { ```java import com.azure.resourcemanager.signalr.models.NameAvailabilityParameters; -/** Samples for SignalR CheckNameAvailability. */ +/** + * Samples for SignalR CheckNameAvailability. + */ public final class SignalRCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_CheckNameAvailability.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_CheckNameAvailability.json */ /** * Sample code: SignalR_CheckNameAvailability. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCheckNameAvailability(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() - .checkNameAvailabilityWithResponse( - "eastus", - new NameAvailabilityParameters() - .withType("Microsoft.SignalRService/SignalR") + manager.signalRs() + .checkNameAvailabilityWithResponse("eastus", + new NameAvailabilityParameters().withType("Microsoft.SignalRService/SignalR") .withName("mySignalRService"), com.azure.core.util.Context.NONE); } @@ -140,19 +147,20 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for SignalR CreateOrUpdate. */ +/** + * Samples for SignalR CreateOrUpdate. + */ public final class SignalRCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_CreateOrUpdate.json */ /** * Sample code: SignalR_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() + manager.signalRs() .define("mySignalRService") .withRegion("eastus") .withExistingResourceGroup("myResourceGroup") @@ -161,57 +169,36 @@ public final class SignalRCreateOrUpdateSamples { .withKind(ServiceKind.SIGNALR) .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED)) .withTls(new SignalRTlsSettings().withClientCertEnabled(false)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.SERVICE_MODE) - .withValue("Serverless") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) - .withValue("True") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("False") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("False") - .withProperties(mapOf()))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("false") - .withCategories( - Arrays.asList(new LiveTraceCategory().withName("ConnectivityLogs").withEnabled("true")))) + .withFeatures(Arrays.asList( + new SignalRFeature().withFlag(FeatureFlags.SERVICE_MODE) + .withValue("Serverless") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) + .withValue("True") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("False") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_LIVE_TRACE) + .withValue("False") + .withProperties(mapOf()))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("false") + .withCategories( + Arrays.asList(new LiveTraceCategory().withName("ConnectivityLogs").withEnabled("true")))) .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("https://foo.com", "https://bar.com"))) .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(5)) .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate() - .withHubPattern("*") - .withEventPattern("connect,disconnect") - .withCategoryPattern("*") - .withUrlTemplate("https://example.com/chat/api/connect") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity( - new ManagedIdentitySettings().withResource("api://example")))))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.DENY) - .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withName("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e")))) + new ServerlessUpstreamSettings().withTemplates(Arrays.asList(new UpstreamTemplate().withHubPattern("*") + .withEventPattern("connect,disconnect") + .withCategoryPattern("*") + .withUrlTemplate("https://example.com/chat/api/connect") + .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.MANAGED_IDENTITY) + .withManagedIdentity(new ManagedIdentitySettings().withResource("api://example")))))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.DENY) + .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) + .withPrivateEndpoints(Arrays + .asList(new PrivateEndpointAcl().withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) + .withName("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e")))) .withPublicNetworkAccess("Enabled") .withDisableLocalAuth(false) .withDisableAadAuth(false) @@ -235,14 +222,16 @@ public final class SignalRCreateOrUpdateSamples { ### SignalR_Delete ```java -/** Samples for SignalR Delete. */ +/** + * Samples for SignalR Delete. + */ public final class SignalRDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_Delete.json */ /** * Sample code: SignalR_Delete. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { @@ -254,19 +243,20 @@ public final class SignalRDeleteSamples { ### SignalR_GetByResourceGroup ```java -/** Samples for SignalR GetByResourceGroup. */ +/** + * Samples for SignalR GetByResourceGroup. + */ public final class SignalRGetByResourceGroupSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_Get.json */ /** * Sample code: SignalR_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() + manager.signalRs() .getByResourceGroupWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -275,14 +265,16 @@ public final class SignalRGetByResourceGroupSamples { ### SignalR_List ```java -/** Samples for SignalR List. */ +/** + * Samples for SignalR List. + */ public final class SignalRListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListBySubscription.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListBySubscription.json */ /** * Sample code: SignalR_ListBySubscription. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListBySubscription(com.azure.resourcemanager.signalr.SignalRManager manager) { @@ -294,14 +286,16 @@ public final class SignalRListSamples { ### SignalR_ListByResourceGroup ```java -/** Samples for SignalR ListByResourceGroup. */ +/** + * Samples for SignalR ListByResourceGroup. + */ public final class SignalRListByResourceGroupSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListByResourceGroup.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListByResourceGroup.json */ /** * Sample code: SignalR_ListByResourceGroup. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListByResourceGroup(com.azure.resourcemanager.signalr.SignalRManager manager) { @@ -313,19 +307,20 @@ public final class SignalRListByResourceGroupSamples { ### SignalR_ListKeys ```java -/** Samples for SignalR ListKeys. */ +/** + * Samples for SignalR ListKeys. + */ public final class SignalRListKeysSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListKeys.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListKeys.json */ /** * Sample code: SignalR_ListKeys. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListKeys(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() + manager.signalRs() .listKeysWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -334,21 +329,22 @@ public final class SignalRListKeysSamples { ### SignalR_ListReplicaSkus ```java -/** Samples for SignalR ListReplicaSkus. */ +/** + * Samples for SignalR ListReplicaSkus. + */ public final class SignalRListReplicaSkusSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListReplicaSkus.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListReplicaSkus.json */ /** * Sample code: SignalR_ListReplicaSkus. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListReplicaSkus(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() - .listReplicaSkusWithResponse( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + manager.signalRs() + .listReplicaSkusWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE); } } ``` @@ -356,19 +352,20 @@ public final class SignalRListReplicaSkusSamples { ### SignalR_ListSkus ```java -/** Samples for SignalR ListSkus. */ +/** + * Samples for SignalR ListSkus. + */ public final class SignalRListSkusSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListSkus.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListSkus.json */ /** * Sample code: SignalR_ListSkus. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListSkus(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() + manager.signalRs() .listSkusWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -380,24 +377,22 @@ public final class SignalRListSkusSamples { import com.azure.resourcemanager.signalr.models.KeyType; import com.azure.resourcemanager.signalr.models.RegenerateKeyParameters; -/** Samples for SignalR RegenerateKey. */ +/** + * Samples for SignalR RegenerateKey. + */ public final class SignalRRegenerateKeySamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_RegenerateKey.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_RegenerateKey.json */ /** * Sample code: SignalR_RegenerateKey. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRRegenerateKey(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() - .regenerateKey( - "myResourceGroup", - "mySignalRService", - new RegenerateKeyParameters().withKeyType(KeyType.PRIMARY), - com.azure.core.util.Context.NONE); + manager.signalRs() + .regenerateKey("myResourceGroup", "mySignalRService", + new RegenerateKeyParameters().withKeyType(KeyType.PRIMARY), com.azure.core.util.Context.NONE); } } ``` @@ -405,14 +400,16 @@ public final class SignalRRegenerateKeySamples { ### SignalR_Restart ```java -/** Samples for SignalR Restart. */ +/** + * Samples for SignalR Restart. + */ public final class SignalRRestartSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Restart.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_Restart.json */ /** * Sample code: SignalR_Restart. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRRestart(com.azure.resourcemanager.signalr.SignalRManager manager) { @@ -450,79 +447,57 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for SignalR Update. */ +/** + * Samples for SignalR Update. + */ public final class SignalRUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Update.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_Update.json */ /** * Sample code: SignalR_Update. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - SignalRResource resource = - manager - .signalRs() - .getByResourceGroupWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + SignalRResource resource = manager.signalRs() + .getByResourceGroupWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withSku(new ResourceSku().withName("Premium_P1").withTier(SignalRSkuTier.PREMIUM).withCapacity(1)) .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED)) .withTls(new SignalRTlsSettings().withClientCertEnabled(false)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.SERVICE_MODE) - .withValue("Serverless") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) - .withValue("True") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("False") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("False") - .withProperties(mapOf()))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("false") - .withCategories( - Arrays.asList(new LiveTraceCategory().withName("ConnectivityLogs").withEnabled("true")))) + .withFeatures(Arrays.asList( + new SignalRFeature().withFlag(FeatureFlags.SERVICE_MODE) + .withValue("Serverless") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) + .withValue("True") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("False") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_LIVE_TRACE) + .withValue("False") + .withProperties(mapOf()))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("false") + .withCategories( + Arrays.asList(new LiveTraceCategory().withName("ConnectivityLogs").withEnabled("true")))) .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("https://foo.com", "https://bar.com"))) .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(5)) .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate() - .withHubPattern("*") - .withEventPattern("connect,disconnect") - .withCategoryPattern("*") - .withUrlTemplate("https://example.com/chat/api/connect") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity( - new ManagedIdentitySettings().withResource("api://example")))))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.DENY) - .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withName("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e")))) + new ServerlessUpstreamSettings().withTemplates(Arrays.asList(new UpstreamTemplate().withHubPattern("*") + .withEventPattern("connect,disconnect") + .withCategoryPattern("*") + .withUrlTemplate("https://example.com/chat/api/connect") + .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.MANAGED_IDENTITY) + .withManagedIdentity(new ManagedIdentitySettings().withResource("api://example")))))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.DENY) + .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) + .withPrivateEndpoints(Arrays + .asList(new PrivateEndpointAcl().withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) + .withName("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e")))) .withPublicNetworkAccess("Enabled") .withDisableLocalAuth(false) .withDisableAadAuth(false) @@ -546,20 +521,21 @@ public final class SignalRUpdateSamples { ### SignalRCustomCertificates_CreateOrUpdate ```java -/** Samples for SignalRCustomCertificates CreateOrUpdate. */ +/** + * Samples for SignalRCustomCertificates CreateOrUpdate. + */ public final class SignalRCustomCertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomCertificates_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomCertificates_CreateOrUpdate.json */ /** * Sample code: SignalRCustomCertificates_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRCustomCertificatesCreateOrUpdate( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomCertificates() + public static void + signalRCustomCertificatesCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRCustomCertificates() .define("myCert") .withExistingSignalR("myResourceGroup", "mySignalRService") .withKeyVaultBaseUri("https://myvault.keyvault.azure.net/") @@ -573,19 +549,20 @@ public final class SignalRCustomCertificatesCreateOrUpdateSamples { ### SignalRCustomCertificates_Delete ```java -/** Samples for SignalRCustomCertificates Delete. */ +/** + * Samples for SignalRCustomCertificates Delete. + */ public final class SignalRCustomCertificatesDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomCertificates_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomCertificates_Delete.json */ /** * Sample code: SignalRCustomCertificates_Delete. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomCertificatesDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomCertificates() + manager.signalRCustomCertificates() .deleteWithResponse("myResourceGroup", "mySignalRService", "myCert", com.azure.core.util.Context.NONE); } } @@ -594,19 +571,20 @@ public final class SignalRCustomCertificatesDeleteSamples { ### SignalRCustomCertificates_Get ```java -/** Samples for SignalRCustomCertificates Get. */ +/** + * Samples for SignalRCustomCertificates Get. + */ public final class SignalRCustomCertificatesGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomCertificates_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomCertificates_Get.json */ /** * Sample code: SignalRCustomCertificates_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomCertificatesGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomCertificates() + manager.signalRCustomCertificates() .getWithResponse("myResourceGroup", "mySignalRService", "myCert", com.azure.core.util.Context.NONE); } } @@ -615,19 +593,20 @@ public final class SignalRCustomCertificatesGetSamples { ### SignalRCustomCertificates_List ```java -/** Samples for SignalRCustomCertificates List. */ +/** + * Samples for SignalRCustomCertificates List. + */ public final class SignalRCustomCertificatesListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomCertificates_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomCertificates_List.json */ /** * Sample code: SignalRCustomCertificates_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomCertificatesList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomCertificates() + manager.signalRCustomCertificates() .list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -638,26 +617,25 @@ public final class SignalRCustomCertificatesListSamples { ```java import com.azure.resourcemanager.signalr.models.ResourceReference; -/** Samples for SignalRCustomDomains CreateOrUpdate. */ +/** + * Samples for SignalRCustomDomains CreateOrUpdate. + */ public final class SignalRCustomDomainsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomDomains_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomDomains_CreateOrUpdate.json */ /** * Sample code: SignalRCustomDomains_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomDomainsCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomDomains() + manager.signalRCustomDomains() .define("myDomain") .withExistingSignalR("myResourceGroup", "mySignalRService") .withDomainName("example.com") - .withCustomCertificate( - new ResourceReference() - .withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert")) + .withCustomCertificate(new ResourceReference().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert")) .create(); } } @@ -666,19 +644,20 @@ public final class SignalRCustomDomainsCreateOrUpdateSamples { ### SignalRCustomDomains_Delete ```java -/** Samples for SignalRCustomDomains Delete. */ +/** + * Samples for SignalRCustomDomains Delete. + */ public final class SignalRCustomDomainsDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomDomains_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomDomains_Delete.json */ /** * Sample code: SignalRCustomDomains_Delete. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomDomainsDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomDomains() + manager.signalRCustomDomains() .delete("myResourceGroup", "mySignalRService", "example", com.azure.core.util.Context.NONE); } } @@ -687,19 +666,20 @@ public final class SignalRCustomDomainsDeleteSamples { ### SignalRCustomDomains_Get ```java -/** Samples for SignalRCustomDomains Get. */ +/** + * Samples for SignalRCustomDomains Get. + */ public final class SignalRCustomDomainsGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomDomains_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomDomains_Get.json */ /** * Sample code: SignalRCustomDomains_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomDomainsGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomDomains() + manager.signalRCustomDomains() .getWithResponse("myResourceGroup", "mySignalRService", "example", com.azure.core.util.Context.NONE); } } @@ -708,14 +688,16 @@ public final class SignalRCustomDomainsGetSamples { ### SignalRCustomDomains_List ```java -/** Samples for SignalRCustomDomains List. */ +/** + * Samples for SignalRCustomDomains List. + */ public final class SignalRCustomDomainsListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomDomains_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomDomains_List.json */ /** * Sample code: SignalRCustomDomains_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomDomainsList(com.azure.resourcemanager.signalr.SignalRManager manager) { @@ -727,24 +709,22 @@ public final class SignalRCustomDomainsListSamples { ### SignalRPrivateEndpointConnections_Delete ```java -/** Samples for SignalRPrivateEndpointConnections Delete. */ +/** + * Samples for SignalRPrivateEndpointConnections Delete. + */ public final class SignalRPrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateEndpointConnections_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateEndpointConnections_Delete.json */ /** * Sample code: SignalRPrivateEndpointConnections_Delete. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRPrivateEndpointConnectionsDelete( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateEndpointConnections() - .delete( - "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - "myResourceGroup", - "mySignalRService", + public static void + signalRPrivateEndpointConnectionsDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRPrivateEndpointConnections() + .delete("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", "myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -753,24 +733,22 @@ public final class SignalRPrivateEndpointConnectionsDeleteSamples { ### SignalRPrivateEndpointConnections_Get ```java -/** Samples for SignalRPrivateEndpointConnections Get. */ +/** + * Samples for SignalRPrivateEndpointConnections Get. + */ public final class SignalRPrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateEndpointConnections_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateEndpointConnections_Get.json */ /** * Sample code: SignalRPrivateEndpointConnections_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRPrivateEndpointConnectionsGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateEndpointConnections() - .getWithResponse( - "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - "myResourceGroup", - "mySignalRService", - com.azure.core.util.Context.NONE); + manager.signalRPrivateEndpointConnections() + .getWithResponse("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", "myResourceGroup", + "mySignalRService", com.azure.core.util.Context.NONE); } } ``` @@ -778,19 +756,20 @@ public final class SignalRPrivateEndpointConnectionsGetSamples { ### SignalRPrivateEndpointConnections_List ```java -/** Samples for SignalRPrivateEndpointConnections List. */ +/** + * Samples for SignalRPrivateEndpointConnections List. + */ public final class SignalRPrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateEndpointConnections_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateEndpointConnections_List.json */ /** * Sample code: SignalRPrivateEndpointConnections_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRPrivateEndpointConnectionsList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateEndpointConnections() + manager.signalRPrivateEndpointConnections() .list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -804,29 +783,26 @@ import com.azure.resourcemanager.signalr.models.PrivateEndpoint; import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionState; import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -/** Samples for SignalRPrivateEndpointConnections Update. */ +/** + * Samples for SignalRPrivateEndpointConnections Update. + */ public final class SignalRPrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateEndpointConnections_Update.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateEndpointConnections_Update.json */ /** * Sample code: SignalRPrivateEndpointConnections_Update. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRPrivateEndpointConnectionsUpdate( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateEndpointConnections() - .updateWithResponse( - "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - "myResourceGroup", + public static void + signalRPrivateEndpointConnectionsUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRPrivateEndpointConnections() + .updateWithResponse("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", "myResourceGroup", "mySignalRService", - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint()) + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.APPROVED) + new PrivateLinkServiceConnectionState().withStatus(PrivateLinkServiceConnectionStatus.APPROVED) .withActionsRequired("None")), com.azure.core.util.Context.NONE); } @@ -836,24 +812,101 @@ public final class SignalRPrivateEndpointConnectionsUpdateSamples { ### SignalRPrivateLinkResources_List ```java -/** Samples for SignalRPrivateLinkResources List. */ +/** + * Samples for SignalRPrivateLinkResources List. + */ public final class SignalRPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateLinkResources_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateLinkResources_List.json */ /** * Sample code: SignalRPrivateLinkResources_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRPrivateLinkResourcesList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateLinkResources() + manager.signalRPrivateLinkResources() .list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } ``` +### SignalRReplicaSharedPrivateLinkResources_CreateOrUpdate + +```java +/** + * Samples for SignalRReplicaSharedPrivateLinkResources CreateOrUpdate. + */ +public final class SignalRReplicaSharedPrivateLinkResourcesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicaSharedPrivateLinkResources_CreateOrUpdate.json + */ + /** + * Sample code: SignalRReplicaSharedPrivateLinkResources_CreateOrUpdate. + * + * @param manager Entry point to SignalRManager. + */ + public static void signalRReplicaSharedPrivateLinkResourcesCreateOrUpdate( + com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRReplicaSharedPrivateLinkResources() + .define("upstream") + .withExistingReplica("myResourceGroup", "mySignalRService", "mySignalRService-eastus") + .withGroupId("sites") + .withPrivateLinkResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp") + .withRequestMessage("Please approve") + .create(); + } +} +``` + +### SignalRReplicaSharedPrivateLinkResources_Get + +```java +/** + * Samples for SignalRReplicaSharedPrivateLinkResources Get. + */ +public final class SignalRReplicaSharedPrivateLinkResourcesGetSamples { + /* + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicaSharedPrivateLinkResources_Get.json + */ + /** + * Sample code: SignalRReplicaSharedPrivateLinkResources_Get. + * + * @param manager Entry point to SignalRManager. + */ + public static void + signalRReplicaSharedPrivateLinkResourcesGet(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRReplicaSharedPrivateLinkResources() + .getWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", "upstream", + com.azure.core.util.Context.NONE); + } +} +``` + +### SignalRReplicaSharedPrivateLinkResources_List + +```java +/** + * Samples for SignalRReplicaSharedPrivateLinkResources List. + */ +public final class SignalRReplicaSharedPrivateLinkResourcesListSamples { + /* + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicaSharedPrivateLinkResources_List.json + */ + /** + * Sample code: SignalRReplicaSharedPrivateLinkResources_List. + * + * @param manager Entry point to SignalRManager. + */ + public static void + signalRReplicaSharedPrivateLinkResourcesList(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRReplicaSharedPrivateLinkResources() + .list("myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + } +} +``` + ### SignalRReplicas_CreateOrUpdate ```java @@ -862,19 +915,20 @@ import com.azure.resourcemanager.signalr.models.SignalRSkuTier; import java.util.HashMap; import java.util.Map; -/** Samples for SignalRReplicas CreateOrUpdate. */ +/** + * Samples for SignalRReplicas CreateOrUpdate. + */ public final class SignalRReplicasCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_CreateOrUpdate.json */ /** * Sample code: SignalRReplicas_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRReplicas() + manager.signalRReplicas() .define("mySignalRService-eastus") .withRegion("eastus") .withExistingSignalR("myResourceGroup", "mySignalRService") @@ -901,21 +955,22 @@ public final class SignalRReplicasCreateOrUpdateSamples { ### SignalRReplicas_Delete ```java -/** Samples for SignalRReplicas Delete. */ +/** + * Samples for SignalRReplicas Delete. + */ public final class SignalRReplicasDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_Delete.json */ /** * Sample code: SignalRReplicas_Delete. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRReplicas() - .deleteWithResponse( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + manager.signalRReplicas() + .deleteWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE); } } ``` @@ -923,21 +978,22 @@ public final class SignalRReplicasDeleteSamples { ### SignalRReplicas_Get ```java -/** Samples for SignalRReplicas Get. */ +/** + * Samples for SignalRReplicas Get. + */ public final class SignalRReplicasGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_Get.json */ /** * Sample code: SignalRReplicas_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRReplicas() - .getWithResponse( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + manager.signalRReplicas() + .getWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE); } } ``` @@ -945,14 +1001,16 @@ public final class SignalRReplicasGetSamples { ### SignalRReplicas_List ```java -/** Samples for SignalRReplicas List. */ +/** + * Samples for SignalRReplicas List. + */ public final class SignalRReplicasListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_List.json */ /** * Sample code: SignalRReplicas_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasList(com.azure.resourcemanager.signalr.SignalRManager manager) { @@ -964,21 +1022,22 @@ public final class SignalRReplicasListSamples { ### SignalRReplicas_Restart ```java -/** Samples for SignalRReplicas Restart. */ +/** + * Samples for SignalRReplicas Restart. + */ public final class SignalRReplicasRestartSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_Restart.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_Restart.json */ /** * Sample code: SignalRReplicas_Restart. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasRestart(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRReplicas() - .restart( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + manager.signalRReplicas() + .restart("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE); } } ``` @@ -992,25 +1051,24 @@ import com.azure.resourcemanager.signalr.models.SignalRSkuTier; import java.util.HashMap; import java.util.Map; -/** Samples for SignalRReplicas Update. */ +/** + * Samples for SignalRReplicas Update. + */ public final class SignalRReplicasUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_Update.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_Update.json */ /** * Sample code: SignalRReplicas_Update. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - Replica resource = - manager - .signalRReplicas() - .getWithResponse( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Replica resource = manager.signalRReplicas() + .getWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withSku(new ResourceSku().withName("Premium_P1").withTier(SignalRSkuTier.PREMIUM).withCapacity(1)) .withResourceStopped("false") @@ -1034,27 +1092,28 @@ public final class SignalRReplicasUpdateSamples { ### SignalRSharedPrivateLinkResources_CreateOrUpdate ```java -/** Samples for SignalRSharedPrivateLinkResources CreateOrUpdate. */ +import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner; + +/** + * Samples for SignalRSharedPrivateLinkResources CreateOrUpdate. + */ public final class SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRSharedPrivateLinkResources_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRSharedPrivateLinkResources_CreateOrUpdate.json */ /** * Sample code: SignalRSharedPrivateLinkResources_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRSharedPrivateLinkResourcesCreateOrUpdate( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRSharedPrivateLinkResources() - .define("upstream") - .withExistingSignalR("myResourceGroup", "mySignalRService") - .withGroupId("sites") - .withPrivateLinkResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp") - .withRequestMessage("Please approve") - .create(); + public static void + signalRSharedPrivateLinkResourcesCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRSharedPrivateLinkResources() + .createOrUpdate("upstream", "myResourceGroup", "mySignalRService", new SharedPrivateLinkResourceInner() + .withGroupId("sites") + .withPrivateLinkResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp") + .withRequestMessage("Please approve"), com.azure.core.util.Context.NONE); } } ``` @@ -1062,20 +1121,21 @@ public final class SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples { ### SignalRSharedPrivateLinkResources_Delete ```java -/** Samples for SignalRSharedPrivateLinkResources Delete. */ +/** + * Samples for SignalRSharedPrivateLinkResources Delete. + */ public final class SignalRSharedPrivateLinkResourcesDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRSharedPrivateLinkResources_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRSharedPrivateLinkResources_Delete.json */ /** * Sample code: SignalRSharedPrivateLinkResources_Delete. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRSharedPrivateLinkResourcesDelete( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRSharedPrivateLinkResources() + public static void + signalRSharedPrivateLinkResourcesDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRSharedPrivateLinkResources() .delete("upstream", "myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -1084,19 +1144,20 @@ public final class SignalRSharedPrivateLinkResourcesDeleteSamples { ### SignalRSharedPrivateLinkResources_Get ```java -/** Samples for SignalRSharedPrivateLinkResources Get. */ +/** + * Samples for SignalRSharedPrivateLinkResources Get. + */ public final class SignalRSharedPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRSharedPrivateLinkResources_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRSharedPrivateLinkResources_Get.json */ /** * Sample code: SignalRSharedPrivateLinkResources_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRSharedPrivateLinkResourcesGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRSharedPrivateLinkResources() + manager.signalRSharedPrivateLinkResources() .getWithResponse("upstream", "myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -1105,19 +1166,20 @@ public final class SignalRSharedPrivateLinkResourcesGetSamples { ### SignalRSharedPrivateLinkResources_List ```java -/** Samples for SignalRSharedPrivateLinkResources List. */ +/** + * Samples for SignalRSharedPrivateLinkResources List. + */ public final class SignalRSharedPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRSharedPrivateLinkResources_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRSharedPrivateLinkResources_List.json */ /** * Sample code: SignalRSharedPrivateLinkResources_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRSharedPrivateLinkResourcesList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRSharedPrivateLinkResources() + manager.signalRSharedPrivateLinkResources() .list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } @@ -1126,14 +1188,16 @@ public final class SignalRSharedPrivateLinkResourcesListSamples { ### Usages_List ```java -/** Samples for Usages List. */ +/** + * Samples for Usages List. + */ public final class UsagesListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Usages_List.json */ /** * Sample code: Usages_List. - * + * * @param manager Entry point to SignalRManager. */ public static void usagesList(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/pom.xml b/sdk/signalr/azure-resourcemanager-signalr/pom.xml index 04599be5c4969..9c7e6c0177233 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/pom.xml +++ b/sdk/signalr/azure-resourcemanager-signalr/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for SignalR Management - This package contains Microsoft Azure SDK for SignalR Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure SignalR Service. Package tag package-2023-08-01-preview. + This package contains Microsoft Azure SDK for SignalR Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure SignalR Service. Package tag package-2024-03-01. https://github.com/Azure/azure-sdk-for-java @@ -61,7 +61,7 @@ com.azure azure-core-test - 1.26.0-beta.1 + 1.25.0 test @@ -88,8 +88,6 @@ 4.11.0 test - - net.bytebuddy byte-buddy diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/SignalRManager.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/SignalRManager.java index a9a36fbc265b8..36a4e80d8faab 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/SignalRManager.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/SignalRManager.java @@ -11,8 +11,8 @@ import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.AddHeadersFromContextPolicy; -import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; @@ -30,6 +30,7 @@ import com.azure.resourcemanager.signalr.implementation.SignalRManagementClientBuilder; import com.azure.resourcemanager.signalr.implementation.SignalRPrivateEndpointConnectionsImpl; import com.azure.resourcemanager.signalr.implementation.SignalRPrivateLinkResourcesImpl; +import com.azure.resourcemanager.signalr.implementation.SignalRReplicaSharedPrivateLinkResourcesImpl; import com.azure.resourcemanager.signalr.implementation.SignalRReplicasImpl; import com.azure.resourcemanager.signalr.implementation.SignalRSharedPrivateLinkResourcesImpl; import com.azure.resourcemanager.signalr.implementation.SignalRsImpl; @@ -40,8 +41,9 @@ import com.azure.resourcemanager.signalr.models.SignalRPrivateEndpointConnections; import com.azure.resourcemanager.signalr.models.SignalRPrivateLinkResources; import com.azure.resourcemanager.signalr.models.SignalRReplicas; -import com.azure.resourcemanager.signalr.models.SignalRSharedPrivateLinkResources; +import com.azure.resourcemanager.signalr.models.SignalRReplicaSharedPrivateLinkResources; import com.azure.resourcemanager.signalr.models.SignalRs; +import com.azure.resourcemanager.signalr.models.SignalRSharedPrivateLinkResources; import com.azure.resourcemanager.signalr.models.Usages; import java.time.Duration; import java.time.temporal.ChronoUnit; @@ -50,7 +52,10 @@ import java.util.Objects; import java.util.stream.Collectors; -/** Entry point to SignalRManager. REST API for Azure SignalR Service. */ +/** + * Entry point to SignalRManager. + * REST API for Azure SignalR Service. + */ public final class SignalRManager { private Operations operations; @@ -68,6 +73,8 @@ public final class SignalRManager { private SignalRReplicas signalRReplicas; + private SignalRReplicaSharedPrivateLinkResources signalRReplicaSharedPrivateLinkResources; + private SignalRSharedPrivateLinkResources signalRSharedPrivateLinkResources; private final SignalRManagementClient clientObject; @@ -75,18 +82,16 @@ public final class SignalRManager { private SignalRManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = - new SignalRManagementClientBuilder() - .pipeline(httpPipeline) - .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) - .subscriptionId(profile.getSubscriptionId()) - .defaultPollInterval(defaultPollInterval) - .buildClient(); + this.clientObject = new SignalRManagementClientBuilder().pipeline(httpPipeline) + .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) + .subscriptionId(profile.getSubscriptionId()) + .defaultPollInterval(defaultPollInterval) + .buildClient(); } /** * Creates an instance of SignalR service API entry point. - * + * * @param credential the credential to use. * @param profile the Azure profile for client. * @return the SignalR service API instance. @@ -99,7 +104,7 @@ public static SignalRManager authenticate(TokenCredential credential, AzureProfi /** * Creates an instance of SignalR service API entry point. - * + * * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. * @param profile the Azure profile for client. * @return the SignalR service API instance. @@ -112,14 +117,16 @@ public static SignalRManager authenticate(HttpPipeline httpPipeline, AzureProfil /** * Gets a Configurable instance that can be used to create SignalRManager with optional configuration. - * + * * @return the Configurable instance allowing configurations. */ public static Configurable configure() { return new SignalRManager.Configurable(); } - /** The Configurable allowing configurations to be set. */ + /** + * The Configurable allowing configurations to be set. + */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); @@ -191,8 +198,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { /** * Sets the retry options for the HTTP pipeline retry policy. - * - *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + *

+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. * * @param retryOptions the retry options for the HTTP pipeline retry policy. * @return the configurable object itself. @@ -209,8 +216,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) { * @return the configurable object itself. */ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = - Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); + this.defaultPollInterval + = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); if (this.defaultPollInterval.isNegative()) { throw LOGGER .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); @@ -230,15 +237,13 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof Objects.requireNonNull(profile, "'profile' cannot be null."); StringBuilder userAgentBuilder = new StringBuilder(); - userAgentBuilder - .append("azsdk-java") + userAgentBuilder.append("azsdk-java") .append("-") .append("com.azure.resourcemanager.signalr") .append("/") - .append("1.0.0-beta.8"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { - userAgentBuilder - .append(" (") + userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) .append("; ") .append(Configuration.getGlobalConfiguration().get("os.name")) @@ -263,38 +268,28 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); - policies - .addAll( - this - .policies - .stream() - .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) - .collect(Collectors.toList())); + policies.addAll(this.policies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); - policies - .addAll( - this - .policies - .stream() - .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) - .collect(Collectors.toList())); + policies.addAll(this.policies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); - HttpPipeline httpPipeline = - new HttpPipelineBuilder() - .httpClient(httpClient) - .policies(policies.toArray(new HttpPipelinePolicy[0])) - .build(); + HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient) + .policies(policies.toArray(new HttpPipelinePolicy[0])) + .build(); return new SignalRManager(httpPipeline, profile, defaultPollInterval); } } /** * Gets the resource collection API of Operations. - * + * * @return Resource collection API of Operations. */ public Operations operations() { @@ -306,7 +301,7 @@ public Operations operations() { /** * Gets the resource collection API of SignalRs. It manages SignalRResource. - * + * * @return Resource collection API of SignalRs. */ public SignalRs signalRs() { @@ -318,7 +313,7 @@ public SignalRs signalRs() { /** * Gets the resource collection API of Usages. - * + * * @return Resource collection API of Usages. */ public Usages usages() { @@ -330,20 +325,20 @@ public Usages usages() { /** * Gets the resource collection API of SignalRCustomCertificates. It manages CustomCertificate. - * + * * @return Resource collection API of SignalRCustomCertificates. */ public SignalRCustomCertificates signalRCustomCertificates() { if (this.signalRCustomCertificates == null) { - this.signalRCustomCertificates = - new SignalRCustomCertificatesImpl(clientObject.getSignalRCustomCertificates(), this); + this.signalRCustomCertificates + = new SignalRCustomCertificatesImpl(clientObject.getSignalRCustomCertificates(), this); } return signalRCustomCertificates; } /** * Gets the resource collection API of SignalRCustomDomains. It manages CustomDomain. - * + * * @return Resource collection API of SignalRCustomDomains. */ public SignalRCustomDomains signalRCustomDomains() { @@ -355,33 +350,33 @@ public SignalRCustomDomains signalRCustomDomains() { /** * Gets the resource collection API of SignalRPrivateEndpointConnections. - * + * * @return Resource collection API of SignalRPrivateEndpointConnections. */ public SignalRPrivateEndpointConnections signalRPrivateEndpointConnections() { if (this.signalRPrivateEndpointConnections == null) { - this.signalRPrivateEndpointConnections = - new SignalRPrivateEndpointConnectionsImpl(clientObject.getSignalRPrivateEndpointConnections(), this); + this.signalRPrivateEndpointConnections + = new SignalRPrivateEndpointConnectionsImpl(clientObject.getSignalRPrivateEndpointConnections(), this); } return signalRPrivateEndpointConnections; } /** * Gets the resource collection API of SignalRPrivateLinkResources. - * + * * @return Resource collection API of SignalRPrivateLinkResources. */ public SignalRPrivateLinkResources signalRPrivateLinkResources() { if (this.signalRPrivateLinkResources == null) { - this.signalRPrivateLinkResources = - new SignalRPrivateLinkResourcesImpl(clientObject.getSignalRPrivateLinkResources(), this); + this.signalRPrivateLinkResources + = new SignalRPrivateLinkResourcesImpl(clientObject.getSignalRPrivateLinkResources(), this); } return signalRPrivateLinkResources; } /** * Gets the resource collection API of SignalRReplicas. It manages Replica. - * + * * @return Resource collection API of SignalRReplicas. */ public SignalRReplicas signalRReplicas() { @@ -392,14 +387,28 @@ public SignalRReplicas signalRReplicas() { } /** - * Gets the resource collection API of SignalRSharedPrivateLinkResources. It manages SharedPrivateLinkResource. - * + * Gets the resource collection API of SignalRReplicaSharedPrivateLinkResources. It manages + * SharedPrivateLinkResource. + * + * @return Resource collection API of SignalRReplicaSharedPrivateLinkResources. + */ + public SignalRReplicaSharedPrivateLinkResources signalRReplicaSharedPrivateLinkResources() { + if (this.signalRReplicaSharedPrivateLinkResources == null) { + this.signalRReplicaSharedPrivateLinkResources = new SignalRReplicaSharedPrivateLinkResourcesImpl( + clientObject.getSignalRReplicaSharedPrivateLinkResources(), this); + } + return signalRReplicaSharedPrivateLinkResources; + } + + /** + * Gets the resource collection API of SignalRSharedPrivateLinkResources. + * * @return Resource collection API of SignalRSharedPrivateLinkResources. */ public SignalRSharedPrivateLinkResources signalRSharedPrivateLinkResources() { if (this.signalRSharedPrivateLinkResources == null) { - this.signalRSharedPrivateLinkResources = - new SignalRSharedPrivateLinkResourcesImpl(clientObject.getSignalRSharedPrivateLinkResources(), this); + this.signalRSharedPrivateLinkResources + = new SignalRSharedPrivateLinkResourcesImpl(clientObject.getSignalRSharedPrivateLinkResources(), this); } return signalRSharedPrivateLinkResources; } @@ -407,7 +416,7 @@ public SignalRSharedPrivateLinkResources signalRSharedPrivateLinkResources() { /** * Gets wrapped service client SignalRManagementClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. - * + * * @return Wrapped service client SignalRManagementClient. */ public SignalRManagementClient serviceClient() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/OperationsClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/OperationsClient.java index de7d5c12fab9f..93da3f8bcc59d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/OperationsClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/OperationsClient.java @@ -10,11 +10,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.signalr.fluent.models.OperationInner; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public interface OperationsClient { /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. @@ -24,7 +26,7 @@ public interface OperationsClient { /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @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. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRCustomCertificatesClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRCustomCertificatesClient.java index e6ce1f38ebab2..9b6e94ddef261 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRCustomCertificatesClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRCustomCertificatesClient.java @@ -13,11 +13,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.signalr.fluent.models.CustomCertificateInner; -/** An instance of this class provides access to all the operations defined in SignalRCustomCertificatesClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRCustomCertificatesClient. + */ public interface SignalRCustomCertificatesClient { /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -30,7 +32,7 @@ public interface SignalRCustomCertificatesClient { /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -44,7 +46,7 @@ public interface SignalRCustomCertificatesClient { /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -55,12 +57,12 @@ public interface SignalRCustomCertificatesClient { * @return a custom certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, + String certificateName, Context context); /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -74,7 +76,7 @@ Response getWithResponse( /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -85,12 +87,12 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of a custom certificate. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CustomCertificateInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters); + SyncPoller, CustomCertificateInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String certificateName, CustomCertificateInner parameters); /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -102,16 +104,12 @@ SyncPoller, CustomCertificateInner> beginCrea * @return the {@link SyncPoller} for polling of a custom certificate. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CustomCertificateInner> beginCreateOrUpdate( - String resourceGroupName, - String resourceName, - String certificateName, - CustomCertificateInner parameters, - Context context); + SyncPoller, CustomCertificateInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String certificateName, CustomCertificateInner parameters, Context context); /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -122,12 +120,12 @@ SyncPoller, CustomCertificateInner> beginCrea * @return a custom certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - CustomCertificateInner createOrUpdate( - String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters); + CustomCertificateInner createOrUpdate(String resourceGroupName, String resourceName, String certificateName, + CustomCertificateInner parameters); /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -139,16 +137,12 @@ CustomCertificateInner createOrUpdate( * @return a custom certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - CustomCertificateInner createOrUpdate( - String resourceGroupName, - String resourceName, - String certificateName, - CustomCertificateInner parameters, - Context context); + CustomCertificateInner createOrUpdate(String resourceGroupName, String resourceName, String certificateName, + CustomCertificateInner parameters, Context context); /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -159,12 +153,12 @@ CustomCertificateInner createOrUpdate( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context); + Response deleteWithResponse(String resourceGroupName, String resourceName, String certificateName, + Context context); /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRCustomDomainsClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRCustomDomainsClient.java index 3c55fb7f05dd7..55876f0fc5c85 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRCustomDomainsClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRCustomDomainsClient.java @@ -13,11 +13,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.signalr.fluent.models.CustomDomainInner; -/** An instance of this class provides access to all the operations defined in SignalRCustomDomainsClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRCustomDomainsClient. + */ public interface SignalRCustomDomainsClient { /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -30,7 +32,7 @@ public interface SignalRCustomDomainsClient { /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -44,7 +46,7 @@ public interface SignalRCustomDomainsClient { /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -55,12 +57,12 @@ public interface SignalRCustomDomainsClient { * @return a custom domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String resourceName, String name, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, String name, + Context context); /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -74,7 +76,7 @@ Response getWithResponse( /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -85,12 +87,12 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of a custom domain. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CustomDomainInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters); + SyncPoller, CustomDomainInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String name, CustomDomainInner parameters); /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -102,12 +104,12 @@ SyncPoller, CustomDomainInner> beginCreateOrUpdate * @return the {@link SyncPoller} for polling of a custom domain. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CustomDomainInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context); + SyncPoller, CustomDomainInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String name, CustomDomainInner parameters, Context context); /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -118,12 +120,12 @@ SyncPoller, CustomDomainInner> beginCreateOrUpdate * @return a custom domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - CustomDomainInner createOrUpdate( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters); + CustomDomainInner createOrUpdate(String resourceGroupName, String resourceName, String name, + CustomDomainInner parameters); /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -135,12 +137,12 @@ CustomDomainInner createOrUpdate( * @return a custom domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - CustomDomainInner createOrUpdate( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context); + CustomDomainInner createOrUpdate(String resourceGroupName, String resourceName, String name, + CustomDomainInner parameters, Context context); /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -154,7 +156,7 @@ CustomDomainInner createOrUpdate( /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -165,12 +167,12 @@ CustomDomainInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String resourceName, String name, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String name, + Context context); /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -183,7 +185,7 @@ SyncPoller, Void> beginDelete( /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRManagementClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRManagementClient.java index faa9060e3bf69..5ea0e14e408e6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRManagementClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRManagementClient.java @@ -7,102 +7,111 @@ import com.azure.core.http.HttpPipeline; import java.time.Duration; -/** The interface for SignalRManagementClient class. */ +/** + * The interface for SignalRManagementClient class. + */ public interface SignalRManagementClient { /** * Gets The ID of the target subscription. The value must be an UUID. - * + * * @return the subscriptionId value. */ String getSubscriptionId(); /** * Gets server parameter. - * + * * @return the endpoint value. */ String getEndpoint(); /** * Gets Api Version. - * + * * @return the apiVersion value. */ String getApiVersion(); /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ HttpPipeline getHttpPipeline(); /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ Duration getDefaultPollInterval(); /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ OperationsClient getOperations(); /** * Gets the SignalRsClient object to access its operations. - * + * * @return the SignalRsClient object. */ SignalRsClient getSignalRs(); /** * Gets the UsagesClient object to access its operations. - * + * * @return the UsagesClient object. */ UsagesClient getUsages(); /** * Gets the SignalRCustomCertificatesClient object to access its operations. - * + * * @return the SignalRCustomCertificatesClient object. */ SignalRCustomCertificatesClient getSignalRCustomCertificates(); /** * Gets the SignalRCustomDomainsClient object to access its operations. - * + * * @return the SignalRCustomDomainsClient object. */ SignalRCustomDomainsClient getSignalRCustomDomains(); /** * Gets the SignalRPrivateEndpointConnectionsClient object to access its operations. - * + * * @return the SignalRPrivateEndpointConnectionsClient object. */ SignalRPrivateEndpointConnectionsClient getSignalRPrivateEndpointConnections(); /** * Gets the SignalRPrivateLinkResourcesClient object to access its operations. - * + * * @return the SignalRPrivateLinkResourcesClient object. */ SignalRPrivateLinkResourcesClient getSignalRPrivateLinkResources(); /** * Gets the SignalRReplicasClient object to access its operations. - * + * * @return the SignalRReplicasClient object. */ SignalRReplicasClient getSignalRReplicas(); + /** + * Gets the SignalRReplicaSharedPrivateLinkResourcesClient object to access its operations. + * + * @return the SignalRReplicaSharedPrivateLinkResourcesClient object. + */ + SignalRReplicaSharedPrivateLinkResourcesClient getSignalRReplicaSharedPrivateLinkResources(); + /** * Gets the SignalRSharedPrivateLinkResourcesClient object to access its operations. - * + * * @return the SignalRSharedPrivateLinkResourcesClient object. */ SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResources(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRPrivateEndpointConnectionsClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRPrivateEndpointConnectionsClient.java index c0d48b62cf879..dc0f9b29f50d1 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRPrivateEndpointConnectionsClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRPrivateEndpointConnectionsClient.java @@ -19,7 +19,7 @@ public interface SignalRPrivateEndpointConnectionsClient { /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -32,7 +32,7 @@ public interface SignalRPrivateEndpointConnectionsClient { /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -46,9 +46,9 @@ public interface SignalRPrivateEndpointConnectionsClient { /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -58,14 +58,14 @@ public interface SignalRPrivateEndpointConnectionsClient { * @return the specified private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context); + Response getWithResponse(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, Context context); /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -74,14 +74,14 @@ Response getWithResponse( * @return the specified private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner get( - String privateEndpointConnectionName, String resourceGroupName, String resourceName); + PrivateEndpointConnectionInner get(String privateEndpointConnectionName, String resourceGroupName, + String resourceName); /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -92,18 +92,14 @@ PrivateEndpointConnectionInner get( * @return a private endpoint connection to an azure resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters, - Context context); + Response updateWithResponse(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, PrivateEndpointConnectionInner parameters, Context context); /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -113,17 +109,14 @@ Response updateWithResponse( * @return a private endpoint connection to an azure resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner update( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters); + PrivateEndpointConnectionInner update(String privateEndpointConnectionName, String resourceGroupName, + String resourceName, PrivateEndpointConnectionInner parameters); /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,14 +125,14 @@ PrivateEndpointConnectionInner update( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String privateEndpointConnectionName, String resourceGroupName, String resourceName); + SyncPoller, Void> beginDelete(String privateEndpointConnectionName, String resourceGroupName, + String resourceName); /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -149,14 +142,14 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context); + SyncPoller, Void> beginDelete(String privateEndpointConnectionName, String resourceGroupName, + String resourceName, Context context); /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -168,9 +161,9 @@ SyncPoller, Void> beginDelete( /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRPrivateLinkResourcesClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRPrivateLinkResourcesClient.java index 5720aed2289ab..91e329a2b9aad 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRPrivateLinkResourcesClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRPrivateLinkResourcesClient.java @@ -10,33 +10,35 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.signalr.fluent.models.PrivateLinkResourceInner; -/** An instance of this class provides access to all the operations defined in SignalRPrivateLinkResourcesClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRPrivateLinkResourcesClient. + */ public interface SignalRPrivateLinkResourcesClient { /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 the private link resources that need to be created for a resource as paginated response with {@link - * PagedIterable}. + * @return the private link resources that need to be created for a resource as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String resourceName); /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 private link resources that need to be created for a resource as paginated response with {@link - * PagedIterable}. + * @return the private link resources that need to be created for a resource as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String resourceName, Context context); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicaSharedPrivateLinkResourcesClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicaSharedPrivateLinkResourcesClient.java new file mode 100644 index 0000000000000..4caf305303a1c --- /dev/null +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicaSharedPrivateLinkResourcesClient.java @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.signalr.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.signalr.fluent.models.SharedPrivateLinkResourceInner; + +/** + * An instance of this class provides access to all the operations defined in + * SignalRReplicaSharedPrivateLinkResourcesClient. + */ +public interface SignalRReplicaSharedPrivateLinkResourcesClient { + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String resourceName, + String replicaName); + + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String resourceName, + String replicaName, Context context); + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 specified shared private link resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName, Context context); + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 the specified shared private link resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SharedPrivateLinkResourceInner get(String resourceGroupName, String resourceName, String replicaName, + String sharedPrivateLinkResourceName); + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 the {@link SyncPoller} for polling of describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String replicaName, String sharedPrivateLinkResourceName, + SharedPrivateLinkResourceInner parameters); + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 SyncPoller} for polling of describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String replicaName, String sharedPrivateLinkResourceName, + SharedPrivateLinkResourceInner parameters, Context context); + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SharedPrivateLinkResourceInner createOrUpdate(String resourceGroupName, String resourceName, String replicaName, + String sharedPrivateLinkResourceName, SharedPrivateLinkResourceInner parameters); + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SharedPrivateLinkResourceInner createOrUpdate(String resourceGroupName, String resourceName, String replicaName, + String sharedPrivateLinkResourceName, SharedPrivateLinkResourceInner parameters, Context context); +} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicasClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicasClient.java index c5e89dac3f945..b50bb4ebb9988 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicasClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicasClient.java @@ -13,11 +13,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.signalr.fluent.models.ReplicaInner; -/** An instance of this class provides access to all the operations defined in SignalRReplicasClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRReplicasClient. + */ public interface SignalRReplicasClient { /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -30,7 +32,7 @@ public interface SignalRReplicasClient { /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -44,7 +46,7 @@ public interface SignalRReplicasClient { /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -55,12 +57,12 @@ public interface SignalRReplicasClient { * @return the replica and its properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context); /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -74,7 +76,7 @@ Response getWithResponse( /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -85,12 +87,12 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ReplicaInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters); + SyncPoller, ReplicaInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters); /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -102,12 +104,12 @@ SyncPoller, ReplicaInner> beginCreateOrUpdate( * @return the {@link SyncPoller} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ReplicaInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context); + SyncPoller, ReplicaInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters, Context context); /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -118,12 +120,12 @@ SyncPoller, ReplicaInner> beginCreateOrUpdate( * @return a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicaInner createOrUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters); + ReplicaInner createOrUpdate(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters); /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -135,12 +137,12 @@ ReplicaInner createOrUpdate( * @return a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicaInner createOrUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context); + ReplicaInner createOrUpdate(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters, Context context); /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -151,12 +153,12 @@ ReplicaInner createOrUpdate( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context); + Response deleteWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context); /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -169,7 +171,7 @@ Response deleteWithResponse( /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -180,12 +182,12 @@ Response deleteWithResponse( * @return the {@link SyncPoller} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ReplicaInner> beginUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters); + SyncPoller, ReplicaInner> beginUpdate(String resourceGroupName, String resourceName, + String replicaName, ReplicaInner parameters); /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -197,12 +199,12 @@ SyncPoller, ReplicaInner> beginUpdate( * @return the {@link SyncPoller} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ReplicaInner> beginUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context); + SyncPoller, ReplicaInner> beginUpdate(String resourceGroupName, String resourceName, + String replicaName, ReplicaInner parameters, Context context); /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -217,7 +219,7 @@ SyncPoller, ReplicaInner> beginUpdate( /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -229,12 +231,12 @@ SyncPoller, ReplicaInner> beginUpdate( * @return a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplicaInner update( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context); + ReplicaInner update(String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, + Context context); /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -248,7 +250,7 @@ ReplicaInner update( /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -259,12 +261,12 @@ ReplicaInner update( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRestart( - String resourceGroupName, String resourceName, String replicaName, Context context); + SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName, String replicaName, + Context context); /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -277,7 +279,7 @@ SyncPoller, Void> beginRestart( /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRSharedPrivateLinkResourcesClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRSharedPrivateLinkResourcesClient.java index c11bae9e0a0bf..56b4e49efbb15 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRSharedPrivateLinkResourcesClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRSharedPrivateLinkResourcesClient.java @@ -19,7 +19,7 @@ public interface SignalRSharedPrivateLinkResourcesClient { /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -32,7 +32,7 @@ public interface SignalRSharedPrivateLinkResourcesClient { /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -46,7 +46,7 @@ public interface SignalRSharedPrivateLinkResourcesClient { /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -57,12 +57,12 @@ public interface SignalRSharedPrivateLinkResourcesClient { * @return the specified shared private link resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context); + Response getWithResponse(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, Context context); /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -72,12 +72,12 @@ Response getWithResponse( * @return the specified shared private link resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SharedPrivateLinkResourceInner get( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName); + SharedPrivateLinkResourceInner get(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName); /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -89,14 +89,12 @@ SharedPrivateLinkResourceInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, + String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, SharedPrivateLinkResourceInner parameters); /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -109,15 +107,12 @@ SyncPoller, SharedPrivateLinkResource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters, - Context context); + String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, + SharedPrivateLinkResourceInner parameters, Context context); /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -128,15 +123,12 @@ SyncPoller, SharedPrivateLinkResource * @return describes a Shared Private Link Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SharedPrivateLinkResourceInner createOrUpdate( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters); + SharedPrivateLinkResourceInner createOrUpdate(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, SharedPrivateLinkResourceInner parameters); /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -148,16 +140,12 @@ SharedPrivateLinkResourceInner createOrUpdate( * @return describes a Shared Private Link Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SharedPrivateLinkResourceInner createOrUpdate( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters, - Context context); + SharedPrivateLinkResourceInner createOrUpdate(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, SharedPrivateLinkResourceInner parameters, Context context); /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -167,12 +155,12 @@ SharedPrivateLinkResourceInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName); + SyncPoller, Void> beginDelete(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName); /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -183,12 +171,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context); + SyncPoller, Void> beginDelete(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, Context context); /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -201,7 +189,7 @@ SyncPoller, Void> beginDelete( /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRsClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRsClient.java index b6556ca52c4c3..ead92a1b8c071 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRsClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRsClient.java @@ -18,11 +18,13 @@ import com.azure.resourcemanager.signalr.models.NameAvailabilityParameters; import com.azure.resourcemanager.signalr.models.RegenerateKeyParameters; -/** An instance of this class provides access to all the operations defined in SignalRsClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRsClient. + */ public interface SignalRsClient { /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the operation. * @param context The context to associate with this operation. @@ -32,12 +34,12 @@ public interface SignalRsClient { * @return result of the request to check name availability along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String location, NameAvailabilityParameters parameters, Context context); + Response checkNameAvailabilityWithResponse(String location, + NameAvailabilityParameters parameters, Context context); /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -50,58 +52,58 @@ Response checkNameAvailabilityWithResponse( /** * Handles requests to list all resources in a subscription. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** * Handles requests to list all resources in a subscription. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** * Handles requests to list all resources in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * Handles requests to list all resources in a resource group. - * + * * @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 object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -111,12 +113,12 @@ Response checkNameAvailabilityWithResponse( * @return the resource and its properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String resourceName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String resourceName, + Context context); /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,7 +131,7 @@ Response getByResourceGroupWithResponse( /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -139,12 +141,12 @@ Response getByResourceGroupWithResponse( * @return the {@link SyncPoller} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SignalRResourceInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters); + SyncPoller, SignalRResourceInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, SignalRResourceInner parameters); /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -155,12 +157,12 @@ SyncPoller, SignalRResourceInner> beginCreateOr * @return the {@link SyncPoller} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SignalRResourceInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context); + SyncPoller, SignalRResourceInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, SignalRResourceInner parameters, Context context); /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -174,7 +176,7 @@ SyncPoller, SignalRResourceInner> beginCreateOr /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -185,12 +187,12 @@ SyncPoller, SignalRResourceInner> beginCreateOr * @return a class represent a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SignalRResourceInner createOrUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context); + SignalRResourceInner createOrUpdate(String resourceGroupName, String resourceName, SignalRResourceInner parameters, + Context context); /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -203,7 +205,7 @@ SignalRResourceInner createOrUpdate( /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -217,7 +219,7 @@ SignalRResourceInner createOrUpdate( /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -229,7 +231,7 @@ SignalRResourceInner createOrUpdate( /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -242,7 +244,7 @@ SignalRResourceInner createOrUpdate( /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -252,12 +254,12 @@ SignalRResourceInner createOrUpdate( * @return the {@link SyncPoller} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SignalRResourceInner> beginUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters); + SyncPoller, SignalRResourceInner> beginUpdate(String resourceGroupName, + String resourceName, SignalRResourceInner parameters); /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -268,12 +270,12 @@ SyncPoller, SignalRResourceInner> beginUpdate( * @return the {@link SyncPoller} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SignalRResourceInner> beginUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context); + SyncPoller, SignalRResourceInner> beginUpdate(String resourceGroupName, + String resourceName, SignalRResourceInner parameters, Context context); /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -287,7 +289,7 @@ SyncPoller, SignalRResourceInner> beginUpdate( /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -298,12 +300,12 @@ SyncPoller, SignalRResourceInner> beginUpdate( * @return a class represent a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SignalRResourceInner update( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context); + SignalRResourceInner update(String resourceGroupName, String resourceName, SignalRResourceInner parameters, + Context context); /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -317,7 +319,7 @@ SignalRResourceInner update( /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -330,7 +332,7 @@ SignalRResourceInner update( /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -340,12 +342,12 @@ SignalRResourceInner update( * @return the {@link SyncPoller} for polling of a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SignalRKeysInner> beginRegenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters); + SyncPoller, SignalRKeysInner> beginRegenerateKey(String resourceGroupName, + String resourceName, RegenerateKeyParameters parameters); /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -356,12 +358,12 @@ SyncPoller, SignalRKeysInner> beginRegenerateKey( * @return the {@link SyncPoller} for polling of a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SignalRKeysInner> beginRegenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context); + SyncPoller, SignalRKeysInner> beginRegenerateKey(String resourceGroupName, + String resourceName, RegenerateKeyParameters parameters, Context context); /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -375,7 +377,7 @@ SyncPoller, SignalRKeysInner> beginRegenerateKey( /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -386,12 +388,12 @@ SyncPoller, SignalRKeysInner> beginRegenerateKey( * @return a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SignalRKeysInner regenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context); + SignalRKeysInner regenerateKey(String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, + Context context); /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -402,12 +404,12 @@ SignalRKeysInner regenerateKey( * @return the list skus operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listReplicaSkusWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context); + Response listReplicaSkusWithResponse(String resourceGroupName, String resourceName, + String replicaName, Context context); /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -421,7 +423,7 @@ Response listReplicaSkusWithResponse( /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -434,7 +436,7 @@ Response listReplicaSkusWithResponse( /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -448,7 +450,7 @@ Response listReplicaSkusWithResponse( /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -460,7 +462,7 @@ Response listReplicaSkusWithResponse( /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -473,7 +475,7 @@ Response listReplicaSkusWithResponse( /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -487,7 +489,7 @@ Response listReplicaSkusWithResponse( /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/UsagesClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/UsagesClient.java index a336c0857d109..b09868531a9b6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/UsagesClient.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/UsagesClient.java @@ -10,31 +10,33 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.signalr.fluent.models.SignalRUsageInner; -/** An instance of this class provides access to all the operations defined in UsagesClient. */ +/** + * An instance of this class provides access to all the operations defined in UsagesClient. + */ public interface UsagesClient { /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of the resource usages and a possible link for next set as paginated - * response with {@link PagedIterable}. + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String location); /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of the resource usages and a possible link for next set as paginated - * response with {@link PagedIterable}. + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String location, Context context); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomCertificateInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomCertificateInner.java index 40f8858b99e4c..e8b30cadcfd6a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomCertificateInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomCertificateInner.java @@ -11,7 +11,9 @@ import com.azure.resourcemanager.signalr.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** A custom certificate. */ +/** + * A custom certificate. + */ @Fluent public final class CustomCertificateInner extends ProxyResource { /* @@ -26,13 +28,15 @@ public final class CustomCertificateInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of CustomCertificateInner class. */ + /** + * Creates an instance of CustomCertificateInner class. + */ public CustomCertificateInner() { } /** * Get the innerProperties property: Custom certificate properties. - * + * * @return the innerProperties value. */ private CustomCertificateProperties innerProperties() { @@ -41,7 +45,7 @@ private CustomCertificateProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -50,7 +54,7 @@ public SystemData systemData() { /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -59,7 +63,7 @@ public ProvisioningState provisioningState() { /** * Get the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate. - * + * * @return the keyVaultBaseUri value. */ public String keyVaultBaseUri() { @@ -68,7 +72,7 @@ public String keyVaultBaseUri() { /** * Set the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate. - * + * * @param keyVaultBaseUri the keyVaultBaseUri value to set. * @return the CustomCertificateInner object itself. */ @@ -82,7 +86,7 @@ public CustomCertificateInner withKeyVaultBaseUri(String keyVaultBaseUri) { /** * Get the keyVaultSecretName property: Certificate secret name. - * + * * @return the keyVaultSecretName value. */ public String keyVaultSecretName() { @@ -91,7 +95,7 @@ public String keyVaultSecretName() { /** * Set the keyVaultSecretName property: Certificate secret name. - * + * * @param keyVaultSecretName the keyVaultSecretName value to set. * @return the CustomCertificateInner object itself. */ @@ -105,7 +109,7 @@ public CustomCertificateInner withKeyVaultSecretName(String keyVaultSecretName) /** * Get the keyVaultSecretVersion property: Certificate secret version. - * + * * @return the keyVaultSecretVersion value. */ public String keyVaultSecretVersion() { @@ -114,7 +118,7 @@ public String keyVaultSecretVersion() { /** * Set the keyVaultSecretVersion property: Certificate secret version. - * + * * @param keyVaultSecretVersion the keyVaultSecretVersion value to set. * @return the CustomCertificateInner object itself. */ @@ -128,15 +132,14 @@ public CustomCertificateInner withKeyVaultSecretVersion(String keyVaultSecretVer /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model CustomCertificateInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model CustomCertificateInner")); } else { innerProperties().validate(); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomCertificateProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomCertificateProperties.java index 02115f0021668..7f528e75da61a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomCertificateProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomCertificateProperties.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.signalr.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** Custom certificate properties. */ +/** + * Custom certificate properties. + */ @Fluent public final class CustomCertificateProperties { /* @@ -36,13 +38,15 @@ public final class CustomCertificateProperties { @JsonProperty(value = "keyVaultSecretVersion") private String keyVaultSecretVersion; - /** Creates an instance of CustomCertificateProperties class. */ + /** + * Creates an instance of CustomCertificateProperties class. + */ public CustomCertificateProperties() { } /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -51,7 +55,7 @@ public ProvisioningState provisioningState() { /** * Get the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate. - * + * * @return the keyVaultBaseUri value. */ public String keyVaultBaseUri() { @@ -60,7 +64,7 @@ public String keyVaultBaseUri() { /** * Set the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate. - * + * * @param keyVaultBaseUri the keyVaultBaseUri value to set. * @return the CustomCertificateProperties object itself. */ @@ -71,7 +75,7 @@ public CustomCertificateProperties withKeyVaultBaseUri(String keyVaultBaseUri) { /** * Get the keyVaultSecretName property: Certificate secret name. - * + * * @return the keyVaultSecretName value. */ public String keyVaultSecretName() { @@ -80,7 +84,7 @@ public String keyVaultSecretName() { /** * Set the keyVaultSecretName property: Certificate secret name. - * + * * @param keyVaultSecretName the keyVaultSecretName value to set. * @return the CustomCertificateProperties object itself. */ @@ -91,7 +95,7 @@ public CustomCertificateProperties withKeyVaultSecretName(String keyVaultSecretN /** * Get the keyVaultSecretVersion property: Certificate secret version. - * + * * @return the keyVaultSecretVersion value. */ public String keyVaultSecretVersion() { @@ -100,7 +104,7 @@ public String keyVaultSecretVersion() { /** * Set the keyVaultSecretVersion property: Certificate secret version. - * + * * @param keyVaultSecretVersion the keyVaultSecretVersion value to set. * @return the CustomCertificateProperties object itself. */ @@ -111,21 +115,19 @@ public CustomCertificateProperties withKeyVaultSecretVersion(String keyVaultSecr /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (keyVaultBaseUri() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property keyVaultBaseUri in model CustomCertificateProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property keyVaultBaseUri in model CustomCertificateProperties")); } if (keyVaultSecretName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property keyVaultSecretName in model CustomCertificateProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property keyVaultSecretName in model CustomCertificateProperties")); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomDomainInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomDomainInner.java index d93a40b224591..27034a08b07dd 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomDomainInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomDomainInner.java @@ -12,7 +12,9 @@ import com.azure.resourcemanager.signalr.models.ResourceReference; import com.fasterxml.jackson.annotation.JsonProperty; -/** A custom domain. */ +/** + * A custom domain. + */ @Fluent public final class CustomDomainInner extends ProxyResource { /* @@ -27,13 +29,15 @@ public final class CustomDomainInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of CustomDomainInner class. */ + /** + * Creates an instance of CustomDomainInner class. + */ public CustomDomainInner() { } /** * Get the innerProperties property: Properties of a custom domain. - * + * * @return the innerProperties value. */ private CustomDomainProperties innerProperties() { @@ -42,7 +46,7 @@ private CustomDomainProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -51,7 +55,7 @@ public SystemData systemData() { /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -60,7 +64,7 @@ public ProvisioningState provisioningState() { /** * Get the domainName property: The custom domain name. - * + * * @return the domainName value. */ public String domainName() { @@ -69,7 +73,7 @@ public String domainName() { /** * Set the domainName property: The custom domain name. - * + * * @param domainName the domainName value to set. * @return the CustomDomainInner object itself. */ @@ -83,7 +87,7 @@ public CustomDomainInner withDomainName(String domainName) { /** * Get the customCertificate property: Reference to a resource. - * + * * @return the customCertificate value. */ public ResourceReference customCertificate() { @@ -92,7 +96,7 @@ public ResourceReference customCertificate() { /** * Set the customCertificate property: Reference to a resource. - * + * * @param customCertificate the customCertificate value to set. * @return the CustomDomainInner object itself. */ @@ -106,15 +110,14 @@ public CustomDomainInner withCustomCertificate(ResourceReference customCertifica /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model CustomDomainInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model CustomDomainInner")); } else { innerProperties().validate(); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomDomainProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomDomainProperties.java index a49e62b8d62e2..9cad8a208d6f3 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomDomainProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/CustomDomainProperties.java @@ -10,7 +10,9 @@ import com.azure.resourcemanager.signalr.models.ResourceReference; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of a custom domain. */ +/** + * Properties of a custom domain. + */ @Fluent public final class CustomDomainProperties { /* @@ -31,13 +33,15 @@ public final class CustomDomainProperties { @JsonProperty(value = "customCertificate", required = true) private ResourceReference customCertificate; - /** Creates an instance of CustomDomainProperties class. */ + /** + * Creates an instance of CustomDomainProperties class. + */ public CustomDomainProperties() { } /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -46,7 +50,7 @@ public ProvisioningState provisioningState() { /** * Get the domainName property: The custom domain name. - * + * * @return the domainName value. */ public String domainName() { @@ -55,7 +59,7 @@ public String domainName() { /** * Set the domainName property: The custom domain name. - * + * * @param domainName the domainName value to set. * @return the CustomDomainProperties object itself. */ @@ -66,7 +70,7 @@ public CustomDomainProperties withDomainName(String domainName) { /** * Get the customCertificate property: Reference to a resource. - * + * * @return the customCertificate value. */ public ResourceReference customCertificate() { @@ -75,7 +79,7 @@ public ResourceReference customCertificate() { /** * Set the customCertificate property: Reference to a resource. - * + * * @param customCertificate the customCertificate value to set. * @return the CustomDomainProperties object itself. */ @@ -86,21 +90,19 @@ public CustomDomainProperties withCustomCertificate(ResourceReference customCert /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (domainName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property domainName in model CustomDomainProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property domainName in model CustomDomainProperties")); } if (customCertificate() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property customCertificate in model CustomDomainProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property customCertificate in model CustomDomainProperties")); } else { customCertificate().validate(); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/NameAvailabilityInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/NameAvailabilityInner.java index c654d2921c5cd..64f4d35f94f76 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/NameAvailabilityInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/NameAvailabilityInner.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Result of the request to check name availability. It contains a flag and possible reason of failure. */ +/** + * Result of the request to check name availability. It contains a flag and possible reason of failure. + */ @Fluent public final class NameAvailabilityInner { /* @@ -28,13 +30,15 @@ public final class NameAvailabilityInner { @JsonProperty(value = "message") private String message; - /** Creates an instance of NameAvailabilityInner class. */ + /** + * Creates an instance of NameAvailabilityInner class. + */ public NameAvailabilityInner() { } /** * Get the nameAvailable property: Indicates whether the name is available or not. - * + * * @return the nameAvailable value. */ public Boolean nameAvailable() { @@ -43,7 +47,7 @@ public Boolean nameAvailable() { /** * Set the nameAvailable property: Indicates whether the name is available or not. - * + * * @param nameAvailable the nameAvailable value to set. * @return the NameAvailabilityInner object itself. */ @@ -54,7 +58,7 @@ public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) { /** * Get the reason property: The reason of the availability. Required if name is not available. - * + * * @return the reason value. */ public String reason() { @@ -63,7 +67,7 @@ public String reason() { /** * Set the reason property: The reason of the availability. Required if name is not available. - * + * * @param reason the reason value to set. * @return the NameAvailabilityInner object itself. */ @@ -74,7 +78,7 @@ public NameAvailabilityInner withReason(String reason) { /** * Get the message property: The message of the operation. - * + * * @return the message value. */ public String message() { @@ -83,7 +87,7 @@ public String message() { /** * Set the message property: The message of the operation. - * + * * @param message the message value to set. * @return the NameAvailabilityInner object itself. */ @@ -94,7 +98,7 @@ public NameAvailabilityInner withMessage(String message) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/OperationInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/OperationInner.java index e0bb67b4bfb1d..889ed4bd00dc1 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/OperationInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/OperationInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.signalr.models.OperationProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** REST API operation supported by resource provider. */ +/** + * REST API operation supported by resource provider. + */ @Fluent public final class OperationInner { /* @@ -31,8 +33,7 @@ public final class OperationInner { private OperationDisplay display; /* - * Optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the - * audit logs UX. + * Optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. */ @JsonProperty(value = "origin") private String origin; @@ -43,13 +44,15 @@ public final class OperationInner { @JsonProperty(value = "properties") private OperationProperties properties; - /** Creates an instance of OperationInner class. */ + /** + * Creates an instance of OperationInner class. + */ public OperationInner() { } /** * Get the name property: Name of the operation with format: {provider}/{resource}/{operation}. - * + * * @return the name value. */ public String name() { @@ -58,7 +61,7 @@ public String name() { /** * Set the name property: Name of the operation with format: {provider}/{resource}/{operation}. - * + * * @param name the name value to set. * @return the OperationInner object itself. */ @@ -69,7 +72,7 @@ public OperationInner withName(String name) { /** * Get the isDataAction property: If the operation is a data action. (for data plane rbac). - * + * * @return the isDataAction value. */ public Boolean isDataAction() { @@ -78,7 +81,7 @@ public Boolean isDataAction() { /** * Set the isDataAction property: If the operation is a data action. (for data plane rbac). - * + * * @param isDataAction the isDataAction value to set. * @return the OperationInner object itself. */ @@ -89,7 +92,7 @@ public OperationInner withIsDataAction(Boolean isDataAction) { /** * Get the display property: The object that describes a operation. - * + * * @return the display value. */ public OperationDisplay display() { @@ -98,7 +101,7 @@ public OperationDisplay display() { /** * Set the display property: The object that describes a operation. - * + * * @param display the display value to set. * @return the OperationInner object itself. */ @@ -110,7 +113,7 @@ public OperationInner withDisplay(OperationDisplay display) { /** * Get the origin property: Optional. The intended executor of the operation; governs the display of the operation * in the RBAC UX and the audit logs UX. - * + * * @return the origin value. */ public String origin() { @@ -120,7 +123,7 @@ public String origin() { /** * Set the origin property: Optional. The intended executor of the operation; governs the display of the operation * in the RBAC UX and the audit logs UX. - * + * * @param origin the origin value to set. * @return the OperationInner object itself. */ @@ -131,7 +134,7 @@ public OperationInner withOrigin(String origin) { /** * Get the properties property: Extra Operation properties. - * + * * @return the properties value. */ public OperationProperties properties() { @@ -140,7 +143,7 @@ public OperationProperties properties() { /** * Set the properties property: Extra Operation properties. - * + * * @param properties the properties value to set. * @return the OperationInner object itself. */ @@ -151,7 +154,7 @@ public OperationInner withProperties(OperationProperties properties) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateEndpointConnectionInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateEndpointConnectionInner.java index b3396e23b47b7..a38cc7e251935 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateEndpointConnectionInner.java @@ -13,7 +13,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A private endpoint connection to an azure resource. */ +/** + * A private endpoint connection to an azure resource. + */ @Fluent public final class PrivateEndpointConnectionInner extends ProxyResource { /* @@ -28,13 +30,15 @@ public final class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of PrivateEndpointConnectionInner class. */ + /** + * Creates an instance of PrivateEndpointConnectionInner class. + */ public PrivateEndpointConnectionInner() { } /** * Get the innerProperties property: Private endpoint connection properties. - * + * * @return the innerProperties value. */ private PrivateEndpointConnectionProperties innerProperties() { @@ -43,7 +47,7 @@ private PrivateEndpointConnectionProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -52,7 +56,7 @@ public SystemData systemData() { /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -61,7 +65,7 @@ public ProvisioningState provisioningState() { /** * Get the privateEndpoint property: Private endpoint. - * + * * @return the privateEndpoint value. */ public PrivateEndpoint privateEndpoint() { @@ -70,7 +74,7 @@ public PrivateEndpoint privateEndpoint() { /** * Set the privateEndpoint property: Private endpoint. - * + * * @param privateEndpoint the privateEndpoint value to set. * @return the PrivateEndpointConnectionInner object itself. */ @@ -84,7 +88,7 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat /** * Get the groupIds property: Group IDs. - * + * * @return the groupIds value. */ public List groupIds() { @@ -93,7 +97,7 @@ public List groupIds() { /** * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @return the privateLinkServiceConnectionState value. */ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { @@ -102,12 +106,12 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionInner object itself. */ - public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState( - PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { + public PrivateEndpointConnectionInner + withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { if (this.innerProperties() == null) { this.innerProperties = new PrivateEndpointConnectionProperties(); } @@ -117,7 +121,7 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateEndpointConnectionProperties.java index 3c2ff5a36b840..74061c16bd543 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateEndpointConnectionProperties.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Private endpoint connection properties. */ +/** + * Private endpoint connection properties. + */ @Fluent public final class PrivateEndpointConnectionProperties { /* @@ -38,13 +40,15 @@ public final class PrivateEndpointConnectionProperties { @JsonProperty(value = "privateLinkServiceConnectionState") private PrivateLinkServiceConnectionState privateLinkServiceConnectionState; - /** Creates an instance of PrivateEndpointConnectionProperties class. */ + /** + * Creates an instance of PrivateEndpointConnectionProperties class. + */ public PrivateEndpointConnectionProperties() { } /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -53,7 +57,7 @@ public ProvisioningState provisioningState() { /** * Get the privateEndpoint property: Private endpoint. - * + * * @return the privateEndpoint value. */ public PrivateEndpoint privateEndpoint() { @@ -62,7 +66,7 @@ public PrivateEndpoint privateEndpoint() { /** * Set the privateEndpoint property: Private endpoint. - * + * * @param privateEndpoint the privateEndpoint value to set. * @return the PrivateEndpointConnectionProperties object itself. */ @@ -73,7 +77,7 @@ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint p /** * Get the groupIds property: Group IDs. - * + * * @return the groupIds value. */ public List groupIds() { @@ -82,7 +86,7 @@ public List groupIds() { /** * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @return the privateLinkServiceConnectionState value. */ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { @@ -91,19 +95,19 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionProperties object itself. */ - public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState( - PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { + public PrivateEndpointConnectionProperties + withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { this.privateLinkServiceConnectionState = privateLinkServiceConnectionState; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateLinkResourceInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateLinkResourceInner.java index b6dc4447bac3c..86edcbef50b7d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateLinkResourceInner.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Private link resource. */ +/** + * Private link resource. + */ @Fluent public final class PrivateLinkResourceInner extends ProxyResource { /* @@ -26,13 +28,15 @@ public final class PrivateLinkResourceInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of PrivateLinkResourceInner class. */ + /** + * Creates an instance of PrivateLinkResourceInner class. + */ public PrivateLinkResourceInner() { } /** * Get the innerProperties property: Private link resource properties. - * + * * @return the innerProperties value. */ private PrivateLinkResourceProperties innerProperties() { @@ -41,7 +45,7 @@ private PrivateLinkResourceProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -50,7 +54,7 @@ public SystemData systemData() { /** * Get the groupId property: Group Id of the private link resource. - * + * * @return the groupId value. */ public String groupId() { @@ -59,7 +63,7 @@ public String groupId() { /** * Set the groupId property: Group Id of the private link resource. - * + * * @param groupId the groupId value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -73,7 +77,7 @@ public PrivateLinkResourceInner withGroupId(String groupId) { /** * Get the requiredMembers property: Required members of the private link resource. - * + * * @return the requiredMembers value. */ public List requiredMembers() { @@ -82,7 +86,7 @@ public List requiredMembers() { /** * Set the requiredMembers property: Required members of the private link resource. - * + * * @param requiredMembers the requiredMembers value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -96,7 +100,7 @@ public PrivateLinkResourceInner withRequiredMembers(List requiredMembers /** * Get the requiredZoneNames property: Required private DNS zone names. - * + * * @return the requiredZoneNames value. */ public List requiredZoneNames() { @@ -105,7 +109,7 @@ public List requiredZoneNames() { /** * Set the requiredZoneNames property: Required private DNS zone names. - * + * * @param requiredZoneNames the requiredZoneNames value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -120,7 +124,7 @@ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneN /** * Get the shareablePrivateLinkResourceTypes property: The list of resources that are onboarded to private link * service. - * + * * @return the shareablePrivateLinkResourceTypes value. */ public List shareablePrivateLinkResourceTypes() { @@ -130,7 +134,7 @@ public List shareablePrivateLinkResourceTypes( /** * Set the shareablePrivateLinkResourceTypes property: The list of resources that are onboarded to private link * service. - * + * * @param shareablePrivateLinkResourceTypes the shareablePrivateLinkResourceTypes value to set. * @return the PrivateLinkResourceInner object itself. */ @@ -145,7 +149,7 @@ public PrivateLinkResourceInner withShareablePrivateLinkResourceTypes( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateLinkResourceProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateLinkResourceProperties.java index bc4983d6e376d..d0ce08b47252f 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateLinkResourceProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/PrivateLinkResourceProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Private link resource properties. */ +/** + * Private link resource properties. + */ @Fluent public final class PrivateLinkResourceProperties { /* @@ -36,13 +38,15 @@ public final class PrivateLinkResourceProperties { @JsonProperty(value = "shareablePrivateLinkResourceTypes") private List shareablePrivateLinkResourceTypes; - /** Creates an instance of PrivateLinkResourceProperties class. */ + /** + * Creates an instance of PrivateLinkResourceProperties class. + */ public PrivateLinkResourceProperties() { } /** * Get the groupId property: Group Id of the private link resource. - * + * * @return the groupId value. */ public String groupId() { @@ -51,7 +55,7 @@ public String groupId() { /** * Set the groupId property: Group Id of the private link resource. - * + * * @param groupId the groupId value to set. * @return the PrivateLinkResourceProperties object itself. */ @@ -62,7 +66,7 @@ public PrivateLinkResourceProperties withGroupId(String groupId) { /** * Get the requiredMembers property: Required members of the private link resource. - * + * * @return the requiredMembers value. */ public List requiredMembers() { @@ -71,7 +75,7 @@ public List requiredMembers() { /** * Set the requiredMembers property: Required members of the private link resource. - * + * * @param requiredMembers the requiredMembers value to set. * @return the PrivateLinkResourceProperties object itself. */ @@ -82,7 +86,7 @@ public PrivateLinkResourceProperties withRequiredMembers(List requiredMe /** * Get the requiredZoneNames property: Required private DNS zone names. - * + * * @return the requiredZoneNames value. */ public List requiredZoneNames() { @@ -91,7 +95,7 @@ public List requiredZoneNames() { /** * Set the requiredZoneNames property: Required private DNS zone names. - * + * * @param requiredZoneNames the requiredZoneNames value to set. * @return the PrivateLinkResourceProperties object itself. */ @@ -103,7 +107,7 @@ public PrivateLinkResourceProperties withRequiredZoneNames(List required /** * Get the shareablePrivateLinkResourceTypes property: The list of resources that are onboarded to private link * service. - * + * * @return the shareablePrivateLinkResourceTypes value. */ public List shareablePrivateLinkResourceTypes() { @@ -113,7 +117,7 @@ public List shareablePrivateLinkResourceTypes( /** * Set the shareablePrivateLinkResourceTypes property: The list of resources that are onboarded to private link * service. - * + * * @param shareablePrivateLinkResourceTypes the shareablePrivateLinkResourceTypes value to set. * @return the PrivateLinkResourceProperties object itself. */ @@ -125,7 +129,7 @@ public PrivateLinkResourceProperties withShareablePrivateLinkResourceTypes( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaInner.java index d5b84d3eabd4b..c35ac15993783 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaInner.java @@ -12,7 +12,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** A class represent a replica resource. */ +/** + * A class represent a replica resource. + */ @Fluent public final class ReplicaInner extends Resource { /* @@ -33,13 +35,15 @@ public final class ReplicaInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of ReplicaInner class. */ + /** + * Creates an instance of ReplicaInner class. + */ public ReplicaInner() { } /** * Get the sku property: The billing information of the resource. - * + * * @return the sku value. */ public ResourceSku sku() { @@ -48,7 +52,7 @@ public ResourceSku sku() { /** * Set the sku property: The billing information of the resource. - * + * * @param sku the sku value to set. * @return the ReplicaInner object itself. */ @@ -59,7 +63,7 @@ public ReplicaInner withSku(ResourceSku sku) { /** * Get the innerProperties property: The properties property. - * + * * @return the innerProperties value. */ private ReplicaProperties innerProperties() { @@ -68,21 +72,25 @@ private ReplicaProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ReplicaInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ReplicaInner withTags(Map tags) { super.withTags(tags); @@ -91,7 +99,7 @@ public ReplicaInner withTags(Map tags) { /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -99,9 +107,10 @@ public ProvisioningState provisioningState() { } /** - * Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. - * + * Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. + * * @return the regionEndpointEnabled value. */ public String regionEndpointEnabled() { @@ -109,9 +118,10 @@ public String regionEndpointEnabled() { } /** - * Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. - * + * Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. + * * @param regionEndpointEnabled the regionEndpointEnabled value to set. * @return the ReplicaInner object itself. */ @@ -124,9 +134,10 @@ public ReplicaInner withRegionEndpointEnabled(String regionEndpointEnabled) { } /** - * Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Get the resourceStopped property: Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @return the resourceStopped value. */ public String resourceStopped() { @@ -134,9 +145,10 @@ public String resourceStopped() { } /** - * Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Set the resourceStopped property: Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @param resourceStopped the resourceStopped value to set. * @return the ReplicaInner object itself. */ @@ -150,7 +162,7 @@ public ReplicaInner withResourceStopped(String resourceStopped) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaProperties.java index 3cadfe69776fd..fa8a94598e5dd 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaProperties.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.signalr.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** The ReplicaProperties model. */ +/** + * The ReplicaProperties model. + */ @Fluent public final class ReplicaProperties { /* @@ -19,8 +21,7 @@ public final class ReplicaProperties { /* * Enable or disable the regional endpoint. Default to "Enabled". - * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not - * be affected. + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. */ @JsonProperty(value = "regionEndpointEnabled") private String regionEndpointEnabled; @@ -33,13 +34,15 @@ public final class ReplicaProperties { @JsonProperty(value = "resourceStopped") private String resourceStopped; - /** Creates an instance of ReplicaProperties class. */ + /** + * Creates an instance of ReplicaProperties class. + */ public ReplicaProperties() { } /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -47,9 +50,10 @@ public ProvisioningState provisioningState() { } /** - * Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. - * + * Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. + * * @return the regionEndpointEnabled value. */ public String regionEndpointEnabled() { @@ -57,9 +61,10 @@ public String regionEndpointEnabled() { } /** - * Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. - * + * Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. + * * @param regionEndpointEnabled the regionEndpointEnabled value to set. * @return the ReplicaProperties object itself. */ @@ -69,9 +74,10 @@ public ReplicaProperties withRegionEndpointEnabled(String regionEndpointEnabled) } /** - * Get the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Get the resourceStopped property: Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @return the resourceStopped value. */ public String resourceStopped() { @@ -79,9 +85,10 @@ public String resourceStopped() { } /** - * Set the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Set the resourceStopped property: Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @param resourceStopped the resourceStopped value to set. * @return the ReplicaProperties object itself. */ @@ -92,7 +99,7 @@ public ReplicaProperties withResourceStopped(String resourceStopped) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SharedPrivateLinkResourceInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SharedPrivateLinkResourceInner.java index 5a7cb45b3faf0..92a9d91e57d53 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SharedPrivateLinkResourceInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SharedPrivateLinkResourceInner.java @@ -11,7 +11,9 @@ import com.azure.resourcemanager.signalr.models.SharedPrivateLinkResourceStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Describes a Shared Private Link Resource. */ +/** + * Describes a Shared Private Link Resource. + */ @Fluent public final class SharedPrivateLinkResourceInner extends ProxyResource { /* @@ -26,13 +28,15 @@ public final class SharedPrivateLinkResourceInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of SharedPrivateLinkResourceInner class. */ + /** + * Creates an instance of SharedPrivateLinkResourceInner class. + */ public SharedPrivateLinkResourceInner() { } /** * Get the innerProperties property: Describes the properties of an existing Shared Private Link Resource. - * + * * @return the innerProperties value. */ private SharedPrivateLinkResourceProperties innerProperties() { @@ -41,7 +45,7 @@ private SharedPrivateLinkResourceProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -50,7 +54,7 @@ public SystemData systemData() { /** * Get the groupId property: The group id from the provider of resource the shared private link resource is for. - * + * * @return the groupId value. */ public String groupId() { @@ -59,7 +63,7 @@ public String groupId() { /** * Set the groupId property: The group id from the provider of resource the shared private link resource is for. - * + * * @param groupId the groupId value to set. * @return the SharedPrivateLinkResourceInner object itself. */ @@ -73,7 +77,7 @@ public SharedPrivateLinkResourceInner withGroupId(String groupId) { /** * Get the privateLinkResourceId property: The resource id of the resource the shared private link resource is for. - * + * * @return the privateLinkResourceId value. */ public String privateLinkResourceId() { @@ -82,7 +86,7 @@ public String privateLinkResourceId() { /** * Set the privateLinkResourceId property: The resource id of the resource the shared private link resource is for. - * + * * @param privateLinkResourceId the privateLinkResourceId value to set. * @return the SharedPrivateLinkResourceInner object itself. */ @@ -96,7 +100,7 @@ public SharedPrivateLinkResourceInner withPrivateLinkResourceId(String privateLi /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -105,7 +109,7 @@ public ProvisioningState provisioningState() { /** * Get the requestMessage property: The request message for requesting approval of the shared private link resource. - * + * * @return the requestMessage value. */ public String requestMessage() { @@ -114,7 +118,7 @@ public String requestMessage() { /** * Set the requestMessage property: The request message for requesting approval of the shared private link resource. - * + * * @param requestMessage the requestMessage value to set. * @return the SharedPrivateLinkResourceInner object itself. */ @@ -128,7 +132,7 @@ public SharedPrivateLinkResourceInner withRequestMessage(String requestMessage) /** * Get the status property: Status of the shared private link resource. - * + * * @return the status value. */ public SharedPrivateLinkResourceStatus status() { @@ -137,7 +141,7 @@ public SharedPrivateLinkResourceStatus status() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SharedPrivateLinkResourceProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SharedPrivateLinkResourceProperties.java index 36acd678521a0..e30d90b2613b2 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SharedPrivateLinkResourceProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SharedPrivateLinkResourceProperties.java @@ -10,7 +10,9 @@ import com.azure.resourcemanager.signalr.models.SharedPrivateLinkResourceStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Describes the properties of an existing Shared Private Link Resource. */ +/** + * Describes the properties of an existing Shared Private Link Resource. + */ @Fluent public final class SharedPrivateLinkResourceProperties { /* @@ -43,13 +45,15 @@ public final class SharedPrivateLinkResourceProperties { @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private SharedPrivateLinkResourceStatus status; - /** Creates an instance of SharedPrivateLinkResourceProperties class. */ + /** + * Creates an instance of SharedPrivateLinkResourceProperties class. + */ public SharedPrivateLinkResourceProperties() { } /** * Get the groupId property: The group id from the provider of resource the shared private link resource is for. - * + * * @return the groupId value. */ public String groupId() { @@ -58,7 +62,7 @@ public String groupId() { /** * Set the groupId property: The group id from the provider of resource the shared private link resource is for. - * + * * @param groupId the groupId value to set. * @return the SharedPrivateLinkResourceProperties object itself. */ @@ -69,7 +73,7 @@ public SharedPrivateLinkResourceProperties withGroupId(String groupId) { /** * Get the privateLinkResourceId property: The resource id of the resource the shared private link resource is for. - * + * * @return the privateLinkResourceId value. */ public String privateLinkResourceId() { @@ -78,7 +82,7 @@ public String privateLinkResourceId() { /** * Set the privateLinkResourceId property: The resource id of the resource the shared private link resource is for. - * + * * @param privateLinkResourceId the privateLinkResourceId value to set. * @return the SharedPrivateLinkResourceProperties object itself. */ @@ -89,7 +93,7 @@ public SharedPrivateLinkResourceProperties withPrivateLinkResourceId(String priv /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -98,7 +102,7 @@ public ProvisioningState provisioningState() { /** * Get the requestMessage property: The request message for requesting approval of the shared private link resource. - * + * * @return the requestMessage value. */ public String requestMessage() { @@ -107,7 +111,7 @@ public String requestMessage() { /** * Set the requestMessage property: The request message for requesting approval of the shared private link resource. - * + * * @param requestMessage the requestMessage value to set. * @return the SharedPrivateLinkResourceProperties object itself. */ @@ -118,7 +122,7 @@ public SharedPrivateLinkResourceProperties withRequestMessage(String requestMess /** * Get the status property: Status of the shared private link resource. - * + * * @return the status value. */ public SharedPrivateLinkResourceStatus status() { @@ -127,22 +131,19 @@ public SharedPrivateLinkResourceStatus status() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (groupId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property groupId in model SharedPrivateLinkResourceProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property groupId in model SharedPrivateLinkResourceProperties")); } if (privateLinkResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property privateLinkResourceId in model" - + " SharedPrivateLinkResourceProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property privateLinkResourceId in model SharedPrivateLinkResourceProperties")); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRKeysInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRKeysInner.java index 9f0ca975278ae..ee407f0954662 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRKeysInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRKeysInner.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** A class represents the access keys of the resource. */ +/** + * A class represents the access keys of the resource. + */ @Fluent public final class SignalRKeysInner { /* @@ -34,13 +36,15 @@ public final class SignalRKeysInner { @JsonProperty(value = "secondaryConnectionString") private String secondaryConnectionString; - /** Creates an instance of SignalRKeysInner class. */ + /** + * Creates an instance of SignalRKeysInner class. + */ public SignalRKeysInner() { } /** * Get the primaryKey property: The primary access key. - * + * * @return the primaryKey value. */ public String primaryKey() { @@ -49,7 +53,7 @@ public String primaryKey() { /** * Set the primaryKey property: The primary access key. - * + * * @param primaryKey the primaryKey value to set. * @return the SignalRKeysInner object itself. */ @@ -60,7 +64,7 @@ public SignalRKeysInner withPrimaryKey(String primaryKey) { /** * Get the secondaryKey property: The secondary access key. - * + * * @return the secondaryKey value. */ public String secondaryKey() { @@ -69,7 +73,7 @@ public String secondaryKey() { /** * Set the secondaryKey property: The secondary access key. - * + * * @param secondaryKey the secondaryKey value to set. * @return the SignalRKeysInner object itself. */ @@ -80,7 +84,7 @@ public SignalRKeysInner withSecondaryKey(String secondaryKey) { /** * Get the primaryConnectionString property: Connection string constructed via the primaryKey. - * + * * @return the primaryConnectionString value. */ public String primaryConnectionString() { @@ -89,7 +93,7 @@ public String primaryConnectionString() { /** * Set the primaryConnectionString property: Connection string constructed via the primaryKey. - * + * * @param primaryConnectionString the primaryConnectionString value to set. * @return the SignalRKeysInner object itself. */ @@ -100,7 +104,7 @@ public SignalRKeysInner withPrimaryConnectionString(String primaryConnectionStri /** * Get the secondaryConnectionString property: Connection string constructed via the secondaryKey. - * + * * @return the secondaryConnectionString value. */ public String secondaryConnectionString() { @@ -109,7 +113,7 @@ public String secondaryConnectionString() { /** * Set the secondaryConnectionString property: Connection string constructed via the secondaryKey. - * + * * @param secondaryConnectionString the secondaryConnectionString value to set. * @return the SignalRKeysInner object itself. */ @@ -120,7 +124,7 @@ public SignalRKeysInner withSecondaryConnectionString(String secondaryConnection /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRProperties.java index 2c332c0ad10ed..5ffbdc918a892 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRProperties.java @@ -17,7 +17,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A class that describes the properties of the resource. */ +/** + * A class that describes the properties of the resource. + */ @Fluent public final class SignalRProperties { /* @@ -82,9 +84,9 @@ public final class SignalRProperties { /* * List of the featureFlags. - * + * * FeatureFlags that are not included in the parameters for the update operation will not be modified. - * And the response will only include featureFlags that are explicitly set. + * And the response will only include featureFlags that are explicitly set. * When a featureFlag is not explicitly set, its globally default value will be used * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. */ @@ -153,8 +155,7 @@ public final class SignalRProperties { /* * Enable or disable the regional endpoint. Default to "Enabled". - * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not - * be affected. + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. * This property is replica specific. Disable the regional endpoint without replica is not allowed. */ @JsonProperty(value = "regionEndpointEnabled") @@ -168,13 +169,15 @@ public final class SignalRProperties { @JsonProperty(value = "resourceStopped") private String resourceStopped; - /** Creates an instance of SignalRProperties class. */ + /** + * Creates an instance of SignalRProperties class. + */ public SignalRProperties() { } /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -183,7 +186,7 @@ public ProvisioningState provisioningState() { /** * Get the externalIp property: The publicly accessible IP of the resource. - * + * * @return the externalIp value. */ public String externalIp() { @@ -192,7 +195,7 @@ public String externalIp() { /** * Get the hostname property: FQDN of the service instance. - * + * * @return the hostname value. */ public String hostname() { @@ -202,7 +205,7 @@ public String hostname() { /** * Get the publicPort property: The publicly accessible port of the resource which is designed for browser/client * side usage. - * + * * @return the publicPort value. */ public Integer publicPort() { @@ -212,7 +215,7 @@ public Integer publicPort() { /** * Get the serverPort property: The publicly accessible port of the resource which is designed for customer server * side usage. - * + * * @return the serverPort value. */ public Integer serverPort() { @@ -221,7 +224,7 @@ public Integer serverPort() { /** * Get the version property: Version of the resource. Probably you need the same or higher version of client SDKs. - * + * * @return the version value. */ public String version() { @@ -230,7 +233,7 @@ public String version() { /** * Get the privateEndpointConnections property: Private endpoint connections to the resource. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -239,7 +242,7 @@ public List privateEndpointConnections() { /** * Get the sharedPrivateLinkResources property: The list of shared private link resources. - * + * * @return the sharedPrivateLinkResources value. */ public List sharedPrivateLinkResources() { @@ -248,7 +251,7 @@ public List sharedPrivateLinkResources() { /** * Get the tls property: TLS settings for the resource. - * + * * @return the tls value. */ public SignalRTlsSettings tls() { @@ -257,7 +260,7 @@ public SignalRTlsSettings tls() { /** * Set the tls property: TLS settings for the resource. - * + * * @param tls the tls value to set. * @return the SignalRProperties object itself. */ @@ -268,7 +271,7 @@ public SignalRProperties withTls(SignalRTlsSettings tls) { /** * Get the hostnamePrefix property: Deprecated. - * + * * @return the hostnamePrefix value. */ public String hostnamePrefix() { @@ -277,12 +280,12 @@ public String hostnamePrefix() { /** * Get the features property: List of the featureFlags. - * - *

FeatureFlags that are not included in the parameters for the update operation will not be modified. And the - * response will only include featureFlags that are explicitly set. When a featureFlag is not explicitly set, its - * globally default value will be used But keep in mind, the default value doesn't mean "false". It varies in terms - * of different FeatureFlags. - * + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. + * * @return the features value. */ public List features() { @@ -291,12 +294,12 @@ public List features() { /** * Set the features property: List of the featureFlags. - * - *

FeatureFlags that are not included in the parameters for the update operation will not be modified. And the - * response will only include featureFlags that are explicitly set. When a featureFlag is not explicitly set, its - * globally default value will be used But keep in mind, the default value doesn't mean "false". It varies in terms - * of different FeatureFlags. - * + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. + * * @param features the features value to set. * @return the SignalRProperties object itself. */ @@ -307,7 +310,7 @@ public SignalRProperties withFeatures(List features) { /** * Get the liveTraceConfiguration property: Live trace configuration of a Microsoft.SignalRService resource. - * + * * @return the liveTraceConfiguration value. */ public LiveTraceConfiguration liveTraceConfiguration() { @@ -316,7 +319,7 @@ public LiveTraceConfiguration liveTraceConfiguration() { /** * Set the liveTraceConfiguration property: Live trace configuration of a Microsoft.SignalRService resource. - * + * * @param liveTraceConfiguration the liveTraceConfiguration value to set. * @return the SignalRProperties object itself. */ @@ -327,7 +330,7 @@ public SignalRProperties withLiveTraceConfiguration(LiveTraceConfiguration liveT /** * Get the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. - * + * * @return the resourceLogConfiguration value. */ public ResourceLogConfiguration resourceLogConfiguration() { @@ -336,7 +339,7 @@ public ResourceLogConfiguration resourceLogConfiguration() { /** * Set the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. - * + * * @param resourceLogConfiguration the resourceLogConfiguration value to set. * @return the SignalRProperties object itself. */ @@ -347,7 +350,7 @@ public SignalRProperties withResourceLogConfiguration(ResourceLogConfiguration r /** * Get the cors property: Cross-Origin Resource Sharing (CORS) settings. - * + * * @return the cors value. */ public SignalRCorsSettings cors() { @@ -356,7 +359,7 @@ public SignalRCorsSettings cors() { /** * Set the cors property: Cross-Origin Resource Sharing (CORS) settings. - * + * * @param cors the cors value to set. * @return the SignalRProperties object itself. */ @@ -367,7 +370,7 @@ public SignalRProperties withCors(SignalRCorsSettings cors) { /** * Get the serverless property: Serverless settings. - * + * * @return the serverless value. */ public ServerlessSettings serverless() { @@ -376,7 +379,7 @@ public ServerlessSettings serverless() { /** * Set the serverless property: Serverless settings. - * + * * @param serverless the serverless value to set. * @return the SignalRProperties object itself. */ @@ -387,7 +390,7 @@ public SignalRProperties withServerless(ServerlessSettings serverless) { /** * Get the upstream property: The settings for the Upstream when the service is in server-less mode. - * + * * @return the upstream value. */ public ServerlessUpstreamSettings upstream() { @@ -396,7 +399,7 @@ public ServerlessUpstreamSettings upstream() { /** * Set the upstream property: The settings for the Upstream when the service is in server-less mode. - * + * * @param upstream the upstream value to set. * @return the SignalRProperties object itself. */ @@ -407,7 +410,7 @@ public SignalRProperties withUpstream(ServerlessUpstreamSettings upstream) { /** * Get the networkACLs property: Network ACLs for the resource. - * + * * @return the networkACLs value. */ public SignalRNetworkACLs networkACLs() { @@ -416,7 +419,7 @@ public SignalRNetworkACLs networkACLs() { /** * Set the networkACLs property: Network ACLs for the resource. - * + * * @param networkACLs the networkACLs value to set. * @return the SignalRProperties object itself. */ @@ -426,10 +429,10 @@ public SignalRProperties withNetworkACLs(SignalRNetworkACLs networkACLs) { } /** - * Get the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's - * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what - * you set in network ACLs. - * + * Get the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs. + * * @return the publicNetworkAccess value. */ public String publicNetworkAccess() { @@ -437,10 +440,10 @@ public String publicNetworkAccess() { } /** - * Set the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's - * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what - * you set in network ACLs. - * + * Set the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs. + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the SignalRProperties object itself. */ @@ -450,9 +453,10 @@ public SignalRProperties withPublicNetworkAccess(String publicNetworkAccess) { } /** - * Get the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as true, - * connection with AccessKey=xxx won't work. - * + * Get the disableLocalAuth property: DisableLocalAuth + * Enable or disable local auth with AccessKey + * When set as true, connection with AccessKey=xxx won't work. + * * @return the disableLocalAuth value. */ public Boolean disableLocalAuth() { @@ -460,9 +464,10 @@ public Boolean disableLocalAuth() { } /** - * Set the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as true, - * connection with AccessKey=xxx won't work. - * + * Set the disableLocalAuth property: DisableLocalAuth + * Enable or disable local auth with AccessKey + * When set as true, connection with AccessKey=xxx won't work. + * * @param disableLocalAuth the disableLocalAuth value to set. * @return the SignalRProperties object itself. */ @@ -472,9 +477,10 @@ public SignalRProperties withDisableLocalAuth(Boolean disableLocalAuth) { } /** - * Get the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with - * AuthType=aad won't work. - * + * Get the disableAadAuth property: DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work. + * * @return the disableAadAuth value. */ public Boolean disableAadAuth() { @@ -482,9 +488,10 @@ public Boolean disableAadAuth() { } /** - * Set the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with - * AuthType=aad won't work. - * + * Set the disableAadAuth property: DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work. + * * @param disableAadAuth the disableAadAuth value to set. * @return the SignalRProperties object itself. */ @@ -494,10 +501,11 @@ public SignalRProperties withDisableAadAuth(Boolean disableAadAuth) { } /** - * Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. + * Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. * This property is replica specific. Disable the regional endpoint without replica is not allowed. - * + * * @return the regionEndpointEnabled value. */ public String regionEndpointEnabled() { @@ -505,10 +513,11 @@ public String regionEndpointEnabled() { } /** - * Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. + * Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. * This property is replica specific. Disable the regional endpoint without replica is not allowed. - * + * * @param regionEndpointEnabled the regionEndpointEnabled value to set. * @return the SignalRProperties object itself. */ @@ -518,9 +527,10 @@ public SignalRProperties withRegionEndpointEnabled(String regionEndpointEnabled) } /** - * Get the resourceStopped property: Stop or start the resource. Default to "False". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Get the resourceStopped property: Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @return the resourceStopped value. */ public String resourceStopped() { @@ -528,9 +538,10 @@ public String resourceStopped() { } /** - * Set the resourceStopped property: Stop or start the resource. Default to "False". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Set the resourceStopped property: Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @param resourceStopped the resourceStopped value to set. * @return the SignalRProperties object itself. */ @@ -541,7 +552,7 @@ public SignalRProperties withResourceStopped(String resourceStopped) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRResourceInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRResourceInner.java index f41fa0c5a97bd..12b70ad44accc 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRResourceInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRResourceInner.java @@ -23,7 +23,9 @@ import java.util.List; import java.util.Map; -/** A class represent a resource. */ +/** + * A class represent a resource. + */ @Fluent public final class SignalRResourceInner extends Resource { /* @@ -56,13 +58,15 @@ public final class SignalRResourceInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of SignalRResourceInner class. */ + /** + * Creates an instance of SignalRResourceInner class. + */ public SignalRResourceInner() { } /** * Get the sku property: The billing information of the resource. - * + * * @return the sku value. */ public ResourceSku sku() { @@ -71,7 +75,7 @@ public ResourceSku sku() { /** * Set the sku property: The billing information of the resource. - * + * * @param sku the sku value to set. * @return the SignalRResourceInner object itself. */ @@ -82,7 +86,7 @@ public SignalRResourceInner withSku(ResourceSku sku) { /** * Get the innerProperties property: A class that describes the properties of the resource. - * + * * @return the innerProperties value. */ private SignalRProperties innerProperties() { @@ -91,7 +95,7 @@ private SignalRProperties innerProperties() { /** * Get the kind property: The kind of the service. - * + * * @return the kind value. */ public ServiceKind kind() { @@ -100,7 +104,7 @@ public ServiceKind kind() { /** * Set the kind property: The kind of the service. - * + * * @param kind the kind value to set. * @return the SignalRResourceInner object itself. */ @@ -111,7 +115,7 @@ public SignalRResourceInner withKind(ServiceKind kind) { /** * Get the identity property: A class represent managed identities used for request and response. - * + * * @return the identity value. */ public ManagedIdentity identity() { @@ -120,7 +124,7 @@ public ManagedIdentity identity() { /** * Set the identity property: A class represent managed identities used for request and response. - * + * * @param identity the identity value to set. * @return the SignalRResourceInner object itself. */ @@ -131,21 +135,25 @@ public SignalRResourceInner withIdentity(ManagedIdentity identity) { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SignalRResourceInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SignalRResourceInner withTags(Map tags) { super.withTags(tags); @@ -154,7 +162,7 @@ public SignalRResourceInner withTags(Map tags) { /** * Get the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -163,7 +171,7 @@ public ProvisioningState provisioningState() { /** * Get the externalIp property: The publicly accessible IP of the resource. - * + * * @return the externalIp value. */ public String externalIp() { @@ -172,7 +180,7 @@ public String externalIp() { /** * Get the hostname property: FQDN of the service instance. - * + * * @return the hostname value. */ public String hostname() { @@ -182,7 +190,7 @@ public String hostname() { /** * Get the publicPort property: The publicly accessible port of the resource which is designed for browser/client * side usage. - * + * * @return the publicPort value. */ public Integer publicPort() { @@ -192,7 +200,7 @@ public Integer publicPort() { /** * Get the serverPort property: The publicly accessible port of the resource which is designed for customer server * side usage. - * + * * @return the serverPort value. */ public Integer serverPort() { @@ -201,7 +209,7 @@ public Integer serverPort() { /** * Get the version property: Version of the resource. Probably you need the same or higher version of client SDKs. - * + * * @return the version value. */ public String version() { @@ -210,7 +218,7 @@ public String version() { /** * Get the privateEndpointConnections property: Private endpoint connections to the resource. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -219,7 +227,7 @@ public List privateEndpointConnections() { /** * Get the sharedPrivateLinkResources property: The list of shared private link resources. - * + * * @return the sharedPrivateLinkResources value. */ public List sharedPrivateLinkResources() { @@ -228,7 +236,7 @@ public List sharedPrivateLinkResources() { /** * Get the tls property: TLS settings for the resource. - * + * * @return the tls value. */ public SignalRTlsSettings tls() { @@ -237,7 +245,7 @@ public SignalRTlsSettings tls() { /** * Set the tls property: TLS settings for the resource. - * + * * @param tls the tls value to set. * @return the SignalRResourceInner object itself. */ @@ -251,7 +259,7 @@ public SignalRResourceInner withTls(SignalRTlsSettings tls) { /** * Get the hostnamePrefix property: Deprecated. - * + * * @return the hostnamePrefix value. */ public String hostnamePrefix() { @@ -260,12 +268,12 @@ public String hostnamePrefix() { /** * Get the features property: List of the featureFlags. - * - *

FeatureFlags that are not included in the parameters for the update operation will not be modified. And the - * response will only include featureFlags that are explicitly set. When a featureFlag is not explicitly set, its - * globally default value will be used But keep in mind, the default value doesn't mean "false". It varies in terms - * of different FeatureFlags. - * + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. + * * @return the features value. */ public List features() { @@ -274,12 +282,12 @@ public List features() { /** * Set the features property: List of the featureFlags. - * - *

FeatureFlags that are not included in the parameters for the update operation will not be modified. And the - * response will only include featureFlags that are explicitly set. When a featureFlag is not explicitly set, its - * globally default value will be used But keep in mind, the default value doesn't mean "false". It varies in terms - * of different FeatureFlags. - * + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. + * * @param features the features value to set. * @return the SignalRResourceInner object itself. */ @@ -293,7 +301,7 @@ public SignalRResourceInner withFeatures(List features) { /** * Get the liveTraceConfiguration property: Live trace configuration of a Microsoft.SignalRService resource. - * + * * @return the liveTraceConfiguration value. */ public LiveTraceConfiguration liveTraceConfiguration() { @@ -302,7 +310,7 @@ public LiveTraceConfiguration liveTraceConfiguration() { /** * Set the liveTraceConfiguration property: Live trace configuration of a Microsoft.SignalRService resource. - * + * * @param liveTraceConfiguration the liveTraceConfiguration value to set. * @return the SignalRResourceInner object itself. */ @@ -316,7 +324,7 @@ public SignalRResourceInner withLiveTraceConfiguration(LiveTraceConfiguration li /** * Get the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. - * + * * @return the resourceLogConfiguration value. */ public ResourceLogConfiguration resourceLogConfiguration() { @@ -325,7 +333,7 @@ public ResourceLogConfiguration resourceLogConfiguration() { /** * Set the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. - * + * * @param resourceLogConfiguration the resourceLogConfiguration value to set. * @return the SignalRResourceInner object itself. */ @@ -339,7 +347,7 @@ public SignalRResourceInner withResourceLogConfiguration(ResourceLogConfiguratio /** * Get the cors property: Cross-Origin Resource Sharing (CORS) settings. - * + * * @return the cors value. */ public SignalRCorsSettings cors() { @@ -348,7 +356,7 @@ public SignalRCorsSettings cors() { /** * Set the cors property: Cross-Origin Resource Sharing (CORS) settings. - * + * * @param cors the cors value to set. * @return the SignalRResourceInner object itself. */ @@ -362,7 +370,7 @@ public SignalRResourceInner withCors(SignalRCorsSettings cors) { /** * Get the serverless property: Serverless settings. - * + * * @return the serverless value. */ public ServerlessSettings serverless() { @@ -371,7 +379,7 @@ public ServerlessSettings serverless() { /** * Set the serverless property: Serverless settings. - * + * * @param serverless the serverless value to set. * @return the SignalRResourceInner object itself. */ @@ -385,7 +393,7 @@ public SignalRResourceInner withServerless(ServerlessSettings serverless) { /** * Get the upstream property: The settings for the Upstream when the service is in server-less mode. - * + * * @return the upstream value. */ public ServerlessUpstreamSettings upstream() { @@ -394,7 +402,7 @@ public ServerlessUpstreamSettings upstream() { /** * Set the upstream property: The settings for the Upstream when the service is in server-less mode. - * + * * @param upstream the upstream value to set. * @return the SignalRResourceInner object itself. */ @@ -408,7 +416,7 @@ public SignalRResourceInner withUpstream(ServerlessUpstreamSettings upstream) { /** * Get the networkACLs property: Network ACLs for the resource. - * + * * @return the networkACLs value. */ public SignalRNetworkACLs networkACLs() { @@ -417,7 +425,7 @@ public SignalRNetworkACLs networkACLs() { /** * Set the networkACLs property: Network ACLs for the resource. - * + * * @param networkACLs the networkACLs value to set. * @return the SignalRResourceInner object itself. */ @@ -430,10 +438,10 @@ public SignalRResourceInner withNetworkACLs(SignalRNetworkACLs networkACLs) { } /** - * Get the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's - * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what - * you set in network ACLs. - * + * Get the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs. + * * @return the publicNetworkAccess value. */ public String publicNetworkAccess() { @@ -441,10 +449,10 @@ public String publicNetworkAccess() { } /** - * Set the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's - * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what - * you set in network ACLs. - * + * Set the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs. + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the SignalRResourceInner object itself. */ @@ -457,9 +465,10 @@ public SignalRResourceInner withPublicNetworkAccess(String publicNetworkAccess) } /** - * Get the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as true, - * connection with AccessKey=xxx won't work. - * + * Get the disableLocalAuth property: DisableLocalAuth + * Enable or disable local auth with AccessKey + * When set as true, connection with AccessKey=xxx won't work. + * * @return the disableLocalAuth value. */ public Boolean disableLocalAuth() { @@ -467,9 +476,10 @@ public Boolean disableLocalAuth() { } /** - * Set the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as true, - * connection with AccessKey=xxx won't work. - * + * Set the disableLocalAuth property: DisableLocalAuth + * Enable or disable local auth with AccessKey + * When set as true, connection with AccessKey=xxx won't work. + * * @param disableLocalAuth the disableLocalAuth value to set. * @return the SignalRResourceInner object itself. */ @@ -482,9 +492,10 @@ public SignalRResourceInner withDisableLocalAuth(Boolean disableLocalAuth) { } /** - * Get the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with - * AuthType=aad won't work. - * + * Get the disableAadAuth property: DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work. + * * @return the disableAadAuth value. */ public Boolean disableAadAuth() { @@ -492,9 +503,10 @@ public Boolean disableAadAuth() { } /** - * Set the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with - * AuthType=aad won't work. - * + * Set the disableAadAuth property: DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work. + * * @param disableAadAuth the disableAadAuth value to set. * @return the SignalRResourceInner object itself. */ @@ -507,10 +519,11 @@ public SignalRResourceInner withDisableAadAuth(Boolean disableAadAuth) { } /** - * Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. + * Get the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. * This property is replica specific. Disable the regional endpoint without replica is not allowed. - * + * * @return the regionEndpointEnabled value. */ public String regionEndpointEnabled() { @@ -518,10 +531,11 @@ public String regionEndpointEnabled() { } /** - * Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. + * Set the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. * This property is replica specific. Disable the regional endpoint without replica is not allowed. - * + * * @param regionEndpointEnabled the regionEndpointEnabled value to set. * @return the SignalRResourceInner object itself. */ @@ -534,9 +548,10 @@ public SignalRResourceInner withRegionEndpointEnabled(String regionEndpointEnabl } /** - * Get the resourceStopped property: Stop or start the resource. Default to "False". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Get the resourceStopped property: Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @return the resourceStopped value. */ public String resourceStopped() { @@ -544,9 +559,10 @@ public String resourceStopped() { } /** - * Set the resourceStopped property: Stop or start the resource. Default to "False". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Set the resourceStopped property: Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @param resourceStopped the resourceStopped value to set. * @return the SignalRResourceInner object itself. */ @@ -560,7 +576,7 @@ public SignalRResourceInner withResourceStopped(String resourceStopped) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRUsageInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRUsageInner.java index 85d014f44f67c..dd2a397a41766 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRUsageInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SignalRUsageInner.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.signalr.models.SignalRUsageName; import com.fasterxml.jackson.annotation.JsonProperty; -/** Object that describes a specific usage of the resources. */ +/** + * Object that describes a specific usage of the resources. + */ @Fluent public final class SignalRUsageInner { /* @@ -36,19 +38,20 @@ public final class SignalRUsageInner { private SignalRUsageName name; /* - * Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, - * BytesPerSecond. + * Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. */ @JsonProperty(value = "unit") private String unit; - /** Creates an instance of SignalRUsageInner class. */ + /** + * Creates an instance of SignalRUsageInner class. + */ public SignalRUsageInner() { } /** * Get the id property: Fully qualified ARM resource id. - * + * * @return the id value. */ public String id() { @@ -57,7 +60,7 @@ public String id() { /** * Set the id property: Fully qualified ARM resource id. - * + * * @param id the id value to set. * @return the SignalRUsageInner object itself. */ @@ -68,7 +71,7 @@ public SignalRUsageInner withId(String id) { /** * Get the currentValue property: Current value for the usage quota. - * + * * @return the currentValue value. */ public Long currentValue() { @@ -77,7 +80,7 @@ public Long currentValue() { /** * Set the currentValue property: Current value for the usage quota. - * + * * @param currentValue the currentValue value to set. * @return the SignalRUsageInner object itself. */ @@ -89,7 +92,7 @@ public SignalRUsageInner withCurrentValue(Long currentValue) { /** * Get the limit property: The maximum permitted value for the usage quota. If there is no limit, this value will be * -1. - * + * * @return the limit value. */ public Long limit() { @@ -99,7 +102,7 @@ public Long limit() { /** * Set the limit property: The maximum permitted value for the usage quota. If there is no limit, this value will be * -1. - * + * * @param limit the limit value to set. * @return the SignalRUsageInner object itself. */ @@ -110,7 +113,7 @@ public SignalRUsageInner withLimit(Long limit) { /** * Get the name property: Localizable String object containing the name and a localized value. - * + * * @return the name value. */ public SignalRUsageName name() { @@ -119,7 +122,7 @@ public SignalRUsageName name() { /** * Set the name property: Localizable String object containing the name and a localized value. - * + * * @param name the name value to set. * @return the SignalRUsageInner object itself. */ @@ -131,7 +134,7 @@ public SignalRUsageInner withName(SignalRUsageName name) { /** * Get the unit property: Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, * Percent, CountPerSecond, BytesPerSecond. - * + * * @return the unit value. */ public String unit() { @@ -141,7 +144,7 @@ public String unit() { /** * Set the unit property: Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, * Percent, CountPerSecond, BytesPerSecond. - * + * * @param unit the unit value to set. * @return the SignalRUsageInner object itself. */ @@ -152,7 +155,7 @@ public SignalRUsageInner withUnit(String unit) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SkuListInner.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SkuListInner.java index 50d63f7a2d074..6c7b880d7359a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SkuListInner.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/SkuListInner.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list skus operation response. */ +/** + * The list skus operation response. + */ @Immutable public final class SkuListInner { /* @@ -25,13 +27,15 @@ public final class SkuListInner { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SkuListInner class. */ + /** + * Creates an instance of SkuListInner class. + */ public SkuListInner() { } /** * Get the value property: The list of skus available for the resource. - * + * * @return the value value. */ public List value() { @@ -39,9 +43,9 @@ public List value() { } /** - * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ public String nextLink() { @@ -50,7 +54,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/package-info.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/package-info.java index 1e650ff3bebcc..5a3dac615119b 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/package-info.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the inner data models for SignalRManagementClient. REST API for Azure SignalR Service. */ +/** + * Package containing the inner data models for SignalRManagementClient. + * REST API for Azure SignalR Service. + */ package com.azure.resourcemanager.signalr.fluent.models; diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/package-info.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/package-info.java index 88b5a7b7ecf0f..0ef306cbd07d8 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/package-info.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the service clients for SignalRManagementClient. REST API for Azure SignalR Service. */ +/** + * Package containing the service clients for SignalRManagementClient. + * REST API for Azure SignalR Service. + */ package com.azure.resourcemanager.signalr.fluent; diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/CustomCertificateImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/CustomCertificateImpl.java index b11cb015dd253..f6f788841a91b 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/CustomCertificateImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/CustomCertificateImpl.java @@ -73,20 +73,16 @@ public CustomCertificateImpl withExistingSignalR(String resourceGroupName, Strin } public CustomCertificate create() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomCertificates() - .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomCertificates() + .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), Context.NONE); return this; } public CustomCertificate create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomCertificates() - .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomCertificates() + .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), context); return this; } @@ -101,49 +97,41 @@ public CustomCertificateImpl update() { } public CustomCertificate apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomCertificates() - .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomCertificates() + .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), Context.NONE); return this; } public CustomCertificate apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomCertificates() - .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomCertificates() + .createOrUpdate(resourceGroupName, resourceName, certificateName, this.innerModel(), context); return this; } - CustomCertificateImpl( - CustomCertificateInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + CustomCertificateImpl(CustomCertificateInner innerObject, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.resourceName = Utils.getValueFromIdByName(innerObject.id(), "signalR"); - this.certificateName = Utils.getValueFromIdByName(innerObject.id(), "customCertificates"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "signalR"); + this.certificateName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "customCertificates"); } public CustomCertificate refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomCertificates() - .getWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomCertificates() + .getWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE) + .getValue(); return this; } public CustomCertificate refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomCertificates() - .getWithResponse(resourceGroupName, resourceName, certificateName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomCertificates() + .getWithResponse(resourceGroupName, resourceName, certificateName, context) + .getValue(); return this; } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/CustomDomainImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/CustomDomainImpl.java index 5ca7f62bdf1f0..de0b7bd3153a9 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/CustomDomainImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/CustomDomainImpl.java @@ -69,20 +69,16 @@ public CustomDomainImpl withExistingSignalR(String resourceGroupName, String res } public CustomDomain create() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomDomains() - .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomDomains() + .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), Context.NONE); return this; } public CustomDomain create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomDomains() - .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomDomains() + .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), context); return this; } @@ -97,48 +93,40 @@ public CustomDomainImpl update() { } public CustomDomain apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomDomains() - .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomDomains() + .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), Context.NONE); return this; } public CustomDomain apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomDomains() - .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomDomains() + .createOrUpdate(resourceGroupName, resourceName, name, this.innerModel(), context); return this; } CustomDomainImpl(CustomDomainInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.resourceName = Utils.getValueFromIdByName(innerObject.id(), "signalR"); - this.name = Utils.getValueFromIdByName(innerObject.id(), "customDomains"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "signalR"); + this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "customDomains"); } public CustomDomain refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomDomains() - .getWithResponse(resourceGroupName, resourceName, name, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomDomains() + .getWithResponse(resourceGroupName, resourceName, name, Context.NONE) + .getValue(); return this; } public CustomDomain refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRCustomDomains() - .getWithResponse(resourceGroupName, resourceName, name, context) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRCustomDomains() + .getWithResponse(resourceGroupName, resourceName, name, context) + .getValue(); return this; } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/NameAvailabilityImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/NameAvailabilityImpl.java index be4f23773912f..a091621b2a1b6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/NameAvailabilityImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/NameAvailabilityImpl.java @@ -12,8 +12,8 @@ public final class NameAvailabilityImpl implements NameAvailability { private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - NameAvailabilityImpl( - NameAvailabilityInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + NameAvailabilityImpl(NameAvailabilityInner innerObject, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/OperationsClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/OperationsClientImpl.java index 7b75076884bcb..b2f0ddad358ad 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/OperationsClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/OperationsClientImpl.java @@ -30,22 +30,28 @@ import com.azure.resourcemanager.signalr.models.OperationList; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public final class OperationsClientImpl implements OperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final OperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of OperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ OperationsClientImpl(SignalRManagementClientImpl client) { - this.service = - RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -56,95 +62,70 @@ public final class OperationsClientImpl implements OperationsClient { @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface OperationsService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.SignalRService/operations") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @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 result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * 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.")); + 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.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @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 result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * 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.")); + 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 - .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @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 result of the request to list REST API operations as paginated response with {@link PagedFlux}. @@ -156,7 +137,7 @@ private PagedFlux listAsync() { /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @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. @@ -165,13 +146,13 @@ private PagedFlux listAsync() { */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @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 result of the request to list REST API operations as paginated response with {@link PagedIterable}. @@ -183,7 +164,7 @@ public PagedIterable list() { /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @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. @@ -197,14 +178,15 @@ public PagedIterable list(Context context) { /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -212,37 +194,28 @@ private Mono> listNextSinglePageAsync(String nextL 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.")); + 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.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -250,23 +223,13 @@ private Mono> listNextSinglePageAsync(String nextL 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.")); + 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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/OperationsImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/OperationsImpl.java index 49f2965eaa8fe..8e73d8c1d331c 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/OperationsImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/OperationsImpl.java @@ -19,20 +19,20 @@ public final class OperationsImpl implements Operations { private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - public OperationsImpl( - OperationsClient innerClient, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + public OperationsImpl(OperationsClient innerClient, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); } private OperationsClient serviceClient() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/PrivateEndpointConnectionImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/PrivateEndpointConnectionImpl.java index 9d2d114a6e18c..8250a4305df71 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/PrivateEndpointConnectionImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/PrivateEndpointConnectionImpl.java @@ -18,8 +18,8 @@ public final class PrivateEndpointConnectionImpl implements PrivateEndpointConne private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - PrivateEndpointConnectionImpl( - PrivateEndpointConnectionInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + PrivateEndpointConnectionImpl(PrivateEndpointConnectionInner innerObject, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/PrivateLinkResourceImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/PrivateLinkResourceImpl.java index fa4d9d2bed981..8e77691c4d565 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/PrivateLinkResourceImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/PrivateLinkResourceImpl.java @@ -16,8 +16,8 @@ public final class PrivateLinkResourceImpl implements PrivateLinkResource { private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - PrivateLinkResourceImpl( - PrivateLinkResourceInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + PrivateLinkResourceImpl(PrivateLinkResourceInner innerObject, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/ReplicaImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/ReplicaImpl.java index 4cff29824e9c8..69e20d8ab77ec 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/ReplicaImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/ReplicaImpl.java @@ -97,20 +97,16 @@ public ReplicaImpl withExistingSignalR(String resourceGroupName, String resource } public Replica create() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRReplicas() - .createOrUpdate(resourceGroupName, resourceName, replicaName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicas() + .createOrUpdate(resourceGroupName, resourceName, replicaName, this.innerModel(), Context.NONE); return this; } public Replica create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRReplicas() - .createOrUpdate(resourceGroupName, resourceName, replicaName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicas() + .createOrUpdate(resourceGroupName, resourceName, replicaName, this.innerModel(), context); return this; } @@ -125,48 +121,40 @@ public ReplicaImpl update() { } public Replica apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRReplicas() - .update(resourceGroupName, resourceName, replicaName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicas() + .update(resourceGroupName, resourceName, replicaName, this.innerModel(), Context.NONE); return this; } public Replica apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRReplicas() - .update(resourceGroupName, resourceName, replicaName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicas() + .update(resourceGroupName, resourceName, replicaName, this.innerModel(), context); return this; } ReplicaImpl(ReplicaInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.resourceName = Utils.getValueFromIdByName(innerObject.id(), "signalR"); - this.replicaName = Utils.getValueFromIdByName(innerObject.id(), "replicas"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "signalR"); + this.replicaName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicas"); } public Replica refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRReplicas() - .getWithResponse(resourceGroupName, resourceName, replicaName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicas() + .getWithResponse(resourceGroupName, resourceName, replicaName, Context.NONE) + .getValue(); return this; } public Replica refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRReplicas() - .getWithResponse(resourceGroupName, resourceName, replicaName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicas() + .getWithResponse(resourceGroupName, resourceName, replicaName, context) + .getValue(); return this; } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/Utils.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/ResourceManagerUtils.java similarity index 90% rename from sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/Utils.java rename to sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/ResourceManagerUtils.java index 0b2565688e510..e57180c063b66 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/Utils.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/ResourceManagerUtils.java @@ -19,8 +19,8 @@ import java.util.stream.Stream; import reactor.core.publisher.Flux; -final class Utils { - private Utils() { +final class ResourceManagerUtils { + private ResourceManagerUtils() { } static String getValueFromIdByName(String id, String name) { @@ -87,26 +87,17 @@ private static final class PagedIterableImpl extends PagedIterable { private final Function, PagedResponse> pageMapper; private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) { - super( - PagedFlux - .create( - () -> - (continuationToken, pageSize) -> - Flux.fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); + super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux + .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); this.pagedIterable = pagedIterable; this.mapper = mapper; this.pageMapper = getPageMapper(mapper); } private static Function, PagedResponse> getPageMapper(Function mapper) { - return page -> - new PagedResponseBase( - page.getRequest(), - page.getStatusCode(), - page.getHeaders(), - page.getElements().stream().map(mapper).collect(Collectors.toList()), - page.getContinuationToken(), - null); + return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(), + page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(), + null); } @Override diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SharedPrivateLinkResourceImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SharedPrivateLinkResourceImpl.java index 14ef1aec11bfa..43ad7e19b86eb 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SharedPrivateLinkResourceImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SharedPrivateLinkResourceImpl.java @@ -65,35 +65,35 @@ private com.azure.resourcemanager.signalr.SignalRManager manager() { return this.serviceManager; } - private String sharedPrivateLinkResourceName; - private String resourceGroupName; private String resourceName; - public SharedPrivateLinkResourceImpl withExistingSignalR(String resourceGroupName, String resourceName) { + private String replicaName; + + private String sharedPrivateLinkResourceName; + + public SharedPrivateLinkResourceImpl withExistingReplica(String resourceGroupName, String resourceName, + String replicaName) { this.resourceGroupName = resourceGroupName; this.resourceName = resourceName; + this.replicaName = replicaName; return this; } public SharedPrivateLinkResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRSharedPrivateLinkResources() - .createOrUpdate( - sharedPrivateLinkResourceName, resourceGroupName, resourceName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicaSharedPrivateLinkResources() + .createOrUpdate(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + this.innerModel(), Context.NONE); return this; } public SharedPrivateLinkResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRSharedPrivateLinkResources() - .createOrUpdate( - sharedPrivateLinkResourceName, resourceGroupName, resourceName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicaSharedPrivateLinkResources() + .createOrUpdate(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + this.innerModel(), context); return this; } @@ -108,51 +108,45 @@ public SharedPrivateLinkResourceImpl update() { } public SharedPrivateLinkResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRSharedPrivateLinkResources() - .createOrUpdate( - sharedPrivateLinkResourceName, resourceGroupName, resourceName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicaSharedPrivateLinkResources() + .createOrUpdate(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + this.innerModel(), Context.NONE); return this; } public SharedPrivateLinkResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRSharedPrivateLinkResources() - .createOrUpdate( - sharedPrivateLinkResourceName, resourceGroupName, resourceName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicaSharedPrivateLinkResources() + .createOrUpdate(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + this.innerModel(), context); return this; } - SharedPrivateLinkResourceImpl( - SharedPrivateLinkResourceInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + SharedPrivateLinkResourceImpl(SharedPrivateLinkResourceInner innerObject, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.sharedPrivateLinkResourceName = Utils.getValueFromIdByName(innerObject.id(), "sharedPrivateLinkResources"); - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.resourceName = Utils.getValueFromIdByName(innerObject.id(), "signalR"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "signalR"); + this.replicaName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicas"); + this.sharedPrivateLinkResourceName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sharedPrivateLinkResources"); } public SharedPrivateLinkResource refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRSharedPrivateLinkResources() - .getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicaSharedPrivateLinkResources() + .getWithResponse(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, Context.NONE) + .getValue(); return this; } public SharedPrivateLinkResource refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRSharedPrivateLinkResources() - .getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRReplicaSharedPrivateLinkResources() + .getWithResponse(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, context) + .getValue(); return this; } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomCertificatesClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomCertificatesClientImpl.java index 9a55a6feaf615..49772262f233d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomCertificatesClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomCertificatesClientImpl.java @@ -38,24 +38,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SignalRCustomCertificatesClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRCustomCertificatesClient. + */ public final class SignalRCustomCertificatesClientImpl implements SignalRCustomCertificatesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SignalRCustomCertificatesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of SignalRCustomCertificatesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SignalRCustomCertificatesClientImpl(SignalRManagementClientImpl client) { - this.service = - RestProxy - .create( - SignalRCustomCertificatesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SignalRCustomCertificatesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -66,80 +70,57 @@ public final class SignalRCustomCertificatesClientImpl implements SignalRCustomC @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface SignalRCustomCertificatesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + Mono> list(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("certificateName") String certificateName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("certificateName") String certificateName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CustomCertificateInner parameters, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") CustomCertificateInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}") - @ExpectedResponses({200, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, + Mono> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("certificateName") String certificateName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("certificateName") String certificateName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -148,19 +129,15 @@ Mono> listNext( * @return custom certificates list along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -171,32 +148,16 @@ private Mono> listSinglePageAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, this.client.getApiVersion(), 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())); } /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -206,19 +167,15 @@ private Mono> listSinglePageAsync( * @return custom certificates list along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -230,28 +187,15 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -261,13 +205,13 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -277,16 +221,15 @@ private PagedFlux listAsync(String resourceGroupName, St * @return custom certificates list as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,7 +244,7 @@ public PagedIterable list(String resourceGroupName, Stri /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -317,7 +260,7 @@ public PagedIterable list(String resourceGroupName, Stri /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -327,19 +270,15 @@ public PagedIterable list(String resourceGroupName, Stri * @return a custom certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String resourceName, String certificateName) { + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String certificateName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -354,24 +293,14 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - certificateName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, certificateName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -382,19 +311,15 @@ private Mono> getWithResponseAsync( * @return a custom certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String resourceName, String certificateName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String certificateName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -409,21 +334,13 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - certificateName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + certificateName, this.client.getApiVersion(), accept, context); } /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -433,15 +350,15 @@ private Mono> getWithResponseAsync( * @return a custom certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String resourceName, String certificateName) { + private Mono getAsync(String resourceGroupName, String resourceName, + String certificateName) { return getWithResponseAsync(resourceGroupName, resourceName, certificateName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -452,14 +369,14 @@ private Mono getAsync( * @return a custom certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context) { + public Response getWithResponse(String resourceGroupName, String resourceName, + String certificateName, Context context) { return getWithResponseAsync(resourceGroupName, resourceName, certificateName, context).block(); } /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -475,7 +392,7 @@ public CustomCertificateInner get(String resourceGroupName, String resourceName, /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -486,19 +403,15 @@ public CustomCertificateInner get(String resourceGroupName, String resourceName, * @return a custom certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String certificateName, CustomCertificateInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -518,25 +431,15 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - certificateName, - this.client.getApiVersion(), - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, certificateName, this.client.getApiVersion(), parameters, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -548,23 +451,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return a custom certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String resourceName, - String certificateName, - CustomCertificateInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String certificateName, CustomCertificateInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -584,22 +479,13 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - certificateName, - this.client.getApiVersion(), - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, certificateName, this.client.getApiVersion(), parameters, accept, context); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -612,21 +498,16 @@ private Mono>> createOrUpdateWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CustomCertificateInner> beginCreateOrUpdateAsync( String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, resourceName, certificateName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - CustomCertificateInner.class, - CustomCertificateInner.class, - this.client.getContext()); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, certificateName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), CustomCertificateInner.class, CustomCertificateInner.class, + this.client.getContext()); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -639,27 +520,18 @@ private PollerFlux, CustomCertificateInner> b */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CustomCertificateInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String resourceName, - String certificateName, - CustomCertificateInner parameters, + String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, resourceName, certificateName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - CustomCertificateInner.class, - CustomCertificateInner.class, - context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, certificateName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), CustomCertificateInner.class, CustomCertificateInner.class, context); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -672,14 +544,13 @@ private PollerFlux, CustomCertificateInner> b @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CustomCertificateInner> beginCreateOrUpdate( String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters) + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters) .getSyncPoller(); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -692,19 +563,15 @@ public SyncPoller, CustomCertificateInner> be */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CustomCertificateInner> beginCreateOrUpdate( - String resourceGroupName, - String resourceName, - String certificateName, - CustomCertificateInner parameters, + String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters, context) + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters, context) .getSyncPoller(); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -715,16 +582,15 @@ public SyncPoller, CustomCertificateInner> be * @return a custom certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String certificateName, CustomCertificateInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -736,20 +602,15 @@ private Mono createOrUpdateAsync( * @return a custom certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String resourceName, - String certificateName, - CustomCertificateInner parameters, - Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String certificateName, CustomCertificateInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -760,14 +621,14 @@ private Mono createOrUpdateAsync( * @return a custom certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CustomCertificateInner createOrUpdate( - String resourceGroupName, String resourceName, String certificateName, CustomCertificateInner parameters) { + public CustomCertificateInner createOrUpdate(String resourceGroupName, String resourceName, String certificateName, + CustomCertificateInner parameters) { return createOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters).block(); } /** * Create or update a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -779,18 +640,14 @@ public CustomCertificateInner createOrUpdate( * @return a custom certificate. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CustomCertificateInner createOrUpdate( - String resourceGroupName, - String resourceName, - String certificateName, - CustomCertificateInner parameters, - Context context) { + public CustomCertificateInner createOrUpdate(String resourceGroupName, String resourceName, String certificateName, + CustomCertificateInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, resourceName, certificateName, parameters, context).block(); } /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -800,19 +657,15 @@ public CustomCertificateInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String resourceName, String certificateName) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String certificateName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -827,24 +680,14 @@ private Mono> deleteWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - certificateName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, certificateName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -855,19 +698,15 @@ private Mono> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String resourceName, String certificateName, Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String certificateName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -882,21 +721,13 @@ private Mono> deleteWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - certificateName, - this.client.getApiVersion(), - accept, - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, certificateName, this.client.getApiVersion(), accept, context); } /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -913,7 +744,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -924,14 +755,14 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context) { + public Response deleteWithResponse(String resourceGroupName, String resourceName, String certificateName, + Context context) { return deleteWithResponseAsync(resourceGroupName, resourceName, certificateName, context).block(); } /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -946,9 +777,10 @@ public void delete(String resourceGroupName, String resourceName, String certifi /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -960,31 +792,22 @@ private Mono> listNextSinglePageAsync(Stri 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.")); + 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.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -997,23 +820,13 @@ private Mono> listNextSinglePageAsync(Stri 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.")); + 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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomCertificatesImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomCertificatesImpl.java index 62a34ab2d2515..12d24868718cc 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomCertificatesImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomCertificatesImpl.java @@ -21,32 +21,29 @@ public final class SignalRCustomCertificatesImpl implements SignalRCustomCertifi private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - public SignalRCustomCertificatesImpl( - SignalRCustomCertificatesClient innerClient, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + public SignalRCustomCertificatesImpl(SignalRCustomCertificatesClient innerClient, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String resourceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); - return Utils.mapPage(inner, inner1 -> new CustomCertificateImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CustomCertificateImpl(inner1, this.manager())); } public PagedIterable list(String resourceGroupName, String resourceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, resourceName, context); - return Utils.mapPage(inner, inner1 -> new CustomCertificateImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CustomCertificateImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, resourceName, certificateName, context); + public Response getWithResponse(String resourceGroupName, String resourceName, + String certificateName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, certificateName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CustomCertificateImpl(inner.getValue(), this.manager())); } else { return null; @@ -62,8 +59,8 @@ public CustomCertificate get(String resourceGroupName, String resourceName, Stri } } - public Response deleteWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context) { + public Response deleteWithResponse(String resourceGroupName, String resourceName, String certificateName, + Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, resourceName, certificateName, context); } @@ -72,113 +69,77 @@ public void delete(String resourceGroupName, String resourceName, String certifi } public CustomCertificate getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String certificateName = Utils.getValueFromIdByName(id, "customCertificates"); + String certificateName = ResourceManagerUtils.getValueFromIdByName(id, "customCertificates"); if (certificateName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id))); } return this.getWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String certificateName = Utils.getValueFromIdByName(id, "customCertificates"); + String certificateName = ResourceManagerUtils.getValueFromIdByName(id, "customCertificates"); if (certificateName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id))); } return this.getWithResponse(resourceGroupName, resourceName, certificateName, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String certificateName = Utils.getValueFromIdByName(id, "customCertificates"); + String certificateName = ResourceManagerUtils.getValueFromIdByName(id, "customCertificates"); if (certificateName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id))); } this.deleteWithResponse(resourceGroupName, resourceName, certificateName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String certificateName = Utils.getValueFromIdByName(id, "customCertificates"); + String certificateName = ResourceManagerUtils.getValueFromIdByName(id, "customCertificates"); if (certificateName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'customCertificates'.", id))); } return this.deleteWithResponse(resourceGroupName, resourceName, certificateName, context); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomDomainsClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomDomainsClientImpl.java index 379d7d29547d5..ed9accb1ff9f1 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomDomainsClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomDomainsClientImpl.java @@ -38,23 +38,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SignalRCustomDomainsClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRCustomDomainsClient. + */ public final class SignalRCustomDomainsClientImpl implements SignalRCustomDomainsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SignalRCustomDomainsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of SignalRCustomDomainsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SignalRCustomDomainsClientImpl(SignalRManagementClientImpl client) { - this.service = - RestProxy - .create(SignalRCustomDomainsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SignalRCustomDomainsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -65,80 +70,57 @@ public final class SignalRCustomDomainsClientImpl implements SignalRCustomDomain @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface SignalRCustomDomainsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + Mono> list(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("name") String name, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("name") String name, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}") - @ExpectedResponses({201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}") + @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("name") String name, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") CustomDomainInner parameters, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("name") String name, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") CustomDomainInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("name") String name, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("name") String name, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -149,16 +131,12 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -169,32 +147,16 @@ private Mono> listSinglePageAsync(String resour } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, this.client.getApiVersion(), 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())); } /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -204,19 +166,15 @@ private Mono> listSinglePageAsync(String resour * @return custom domains list along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -228,28 +186,15 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,13 +204,13 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -276,14 +221,13 @@ private PagedFlux listAsync(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -298,7 +242,7 @@ public PagedIterable list(String resourceGroupName, String re /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -314,7 +258,7 @@ public PagedIterable list(String resourceGroupName, String re /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -324,19 +268,15 @@ public PagedIterable list(String resourceGroupName, String re * @return a custom domain along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String resourceName, String name) { + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String name) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -350,24 +290,14 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - name, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, name, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -378,19 +308,15 @@ private Mono> getWithResponseAsync( * @return a custom domain along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String resourceName, String name, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String name, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -404,21 +330,13 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - name, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + name, this.client.getApiVersion(), accept, context); } /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -435,7 +353,7 @@ private Mono getAsync(String resourceGroupName, String resour /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -446,14 +364,14 @@ private Mono getAsync(String resourceGroupName, String resour * @return a custom domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String resourceName, String name, Context context) { + public Response getWithResponse(String resourceGroupName, String resourceName, String name, + Context context) { return getWithResponseAsync(resourceGroupName, resourceName, name, context).block(); } /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -469,7 +387,7 @@ public CustomDomainInner get(String resourceGroupName, String resourceName, Stri /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -480,19 +398,15 @@ public CustomDomainInner get(String resourceGroupName, String resourceName, Stri * @return a custom domain along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String name, CustomDomainInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -511,25 +425,14 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - name, - this.client.getApiVersion(), - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, name, this.client.getApiVersion(), parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -541,19 +444,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return a custom domain along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String name, CustomDomainInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -572,22 +471,13 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - name, - this.client.getApiVersion(), - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, name, this.client.getApiVersion(), parameters, accept, context); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -600,21 +490,15 @@ private Mono>> createOrUpdateWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CustomDomainInner> beginCreateOrUpdateAsync( String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, resourceName, name, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - CustomDomainInner.class, - CustomDomainInner.class, - this.client.getContext()); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, name, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + CustomDomainInner.class, CustomDomainInner.class, this.client.getContext()); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -629,17 +513,15 @@ private PollerFlux, CustomDomainInner> beginCreate private PollerFlux, CustomDomainInner> beginCreateOrUpdateAsync( String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, resourceName, name, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), CustomDomainInner.class, CustomDomainInner.class, context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, name, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + CustomDomainInner.class, CustomDomainInner.class, context); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -650,14 +532,14 @@ private PollerFlux, CustomDomainInner> beginCreate * @return the {@link SyncPoller} for polling of a custom domain. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CustomDomainInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) { + public SyncPoller, CustomDomainInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String name, CustomDomainInner parameters) { return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters).getSyncPoller(); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -669,16 +551,15 @@ public SyncPoller, CustomDomainInner> beginCreateO * @return the {@link SyncPoller} for polling of a custom domain. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CustomDomainInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters, context) + public SyncPoller, CustomDomainInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String name, CustomDomainInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters, context) .getSyncPoller(); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -689,16 +570,15 @@ public SyncPoller, CustomDomainInner> beginCreateO * @return a custom domain on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String name, + CustomDomainInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -710,16 +590,15 @@ private Mono createOrUpdateAsync( * @return a custom domain on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String name, + CustomDomainInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, name, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -730,14 +609,14 @@ private Mono createOrUpdateAsync( * @return a custom domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CustomDomainInner createOrUpdate( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters) { + public CustomDomainInner createOrUpdate(String resourceGroupName, String resourceName, String name, + CustomDomainInner parameters) { return createOrUpdateAsync(resourceGroupName, resourceName, name, parameters).block(); } /** * Create or update a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -749,14 +628,14 @@ public CustomDomainInner createOrUpdate( * @return a custom domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CustomDomainInner createOrUpdate( - String resourceGroupName, String resourceName, String name, CustomDomainInner parameters, Context context) { + public CustomDomainInner createOrUpdate(String resourceGroupName, String resourceName, String name, + CustomDomainInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, resourceName, name, parameters, context).block(); } /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -766,19 +645,15 @@ public CustomDomainInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String resourceName, String name) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String name) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -792,24 +667,14 @@ private Mono>> deleteWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - name, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, name, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -820,19 +685,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String resourceName, String name, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String name, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -846,21 +707,13 @@ private Mono>> deleteWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - name, - this.client.getApiVersion(), - accept, - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, name, this.client.getApiVersion(), accept, context); } /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -870,18 +723,16 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String resourceName, String name) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String name) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, name); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -892,18 +743,17 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String resourceName, String name, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String name, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, name, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -919,7 +769,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -930,14 +780,14 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String resourceName, String name, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String name, + Context context) { return this.beginDeleteAsync(resourceGroupName, resourceName, name, context).getSyncPoller(); } /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -948,14 +798,13 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String resourceName, String name) { - return beginDeleteAsync(resourceGroupName, resourceName, name) - .last() + return beginDeleteAsync(resourceGroupName, resourceName, name).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -967,14 +816,13 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String resourceName, String name, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, name, context) - .last() + return beginDeleteAsync(resourceGroupName, resourceName, name, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -989,7 +837,7 @@ public void delete(String resourceGroupName, String resourceName, String name) { /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -1005,9 +853,10 @@ public void delete(String resourceGroupName, String resourceName, String name, C /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1019,31 +868,22 @@ private Mono> listNextSinglePageAsync(String ne 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.")); + 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.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1056,23 +896,13 @@ private Mono> listNextSinglePageAsync(String ne 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.")); + 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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomDomainsImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomDomainsImpl.java index b8994c325dd01..5b2389aac528d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomDomainsImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRCustomDomainsImpl.java @@ -21,31 +21,28 @@ public final class SignalRCustomDomainsImpl implements SignalRCustomDomains { private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - public SignalRCustomDomainsImpl( - SignalRCustomDomainsClient innerClient, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + public SignalRCustomDomainsImpl(SignalRCustomDomainsClient innerClient, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String resourceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); - return Utils.mapPage(inner, inner1 -> new CustomDomainImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CustomDomainImpl(inner1, this.manager())); } public PagedIterable list(String resourceGroupName, String resourceName, Context context) { PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); - return Utils.mapPage(inner, inner1 -> new CustomDomainImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CustomDomainImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String resourceName, String name, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, resourceName, name, context); + public Response getWithResponse(String resourceGroupName, String resourceName, String name, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, name, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CustomDomainImpl(inner.getValue(), this.manager())); } else { return null; @@ -70,105 +67,77 @@ public void delete(String resourceGroupName, String resourceName, String name, C } public CustomDomain getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String name = Utils.getValueFromIdByName(id, "customDomains"); + String name = ResourceManagerUtils.getValueFromIdByName(id, "customDomains"); if (name == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id))); } return this.getWithResponse(resourceGroupName, resourceName, name, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String name = Utils.getValueFromIdByName(id, "customDomains"); + String name = ResourceManagerUtils.getValueFromIdByName(id, "customDomains"); if (name == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id))); } return this.getWithResponse(resourceGroupName, resourceName, name, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String name = Utils.getValueFromIdByName(id, "customDomains"); + String name = ResourceManagerUtils.getValueFromIdByName(id, "customDomains"); if (name == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id))); } this.delete(resourceGroupName, resourceName, name, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String name = Utils.getValueFromIdByName(id, "customDomains"); + String name = ResourceManagerUtils.getValueFromIdByName(id, "customDomains"); if (name == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'customDomains'.", id))); } this.delete(resourceGroupName, resourceName, name, context); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientBuilder.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientBuilder.java index ef42be73e4739..87dcd6a5c8469 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientBuilder.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientBuilder.java @@ -14,8 +14,10 @@ import com.azure.core.util.serializer.SerializerAdapter; import java.time.Duration; -/** A builder for creating a new instance of the SignalRManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = {SignalRManagementClientImpl.class}) +/** + * A builder for creating a new instance of the SignalRManagementClientImpl type. + */ +@ServiceClientBuilder(serviceClients = { SignalRManagementClientImpl.class }) public final class SignalRManagementClientBuilder { /* * The ID of the target subscription. The value must be an UUID. @@ -24,7 +26,7 @@ public final class SignalRManagementClientBuilder { /** * Sets The ID of the target subscription. The value must be an UUID. - * + * * @param subscriptionId the subscriptionId value. * @return the SignalRManagementClientBuilder. */ @@ -40,7 +42,7 @@ public SignalRManagementClientBuilder subscriptionId(String subscriptionId) { /** * Sets server parameter. - * + * * @param endpoint the endpoint value. * @return the SignalRManagementClientBuilder. */ @@ -56,7 +58,7 @@ public SignalRManagementClientBuilder endpoint(String endpoint) { /** * Sets The environment to connect to. - * + * * @param environment the environment value. * @return the SignalRManagementClientBuilder. */ @@ -72,7 +74,7 @@ public SignalRManagementClientBuilder environment(AzureEnvironment environment) /** * Sets The HTTP pipeline to send requests through. - * + * * @param pipeline the pipeline value. * @return the SignalRManagementClientBuilder. */ @@ -88,7 +90,7 @@ public SignalRManagementClientBuilder pipeline(HttpPipeline pipeline) { /** * Sets The default poll interval for long-running operation. - * + * * @param defaultPollInterval the defaultPollInterval value. * @return the SignalRManagementClientBuilder. */ @@ -104,7 +106,7 @@ public SignalRManagementClientBuilder defaultPollInterval(Duration defaultPollIn /** * Sets The serializer to serialize an object into a string. - * + * * @param serializerAdapter the serializerAdapter value. * @return the SignalRManagementClientBuilder. */ @@ -115,30 +117,22 @@ public SignalRManagementClientBuilder serializerAdapter(SerializerAdapter serial /** * Builds an instance of SignalRManagementClientImpl with the provided parameters. - * + * * @return an instance of SignalRManagementClientImpl. */ public SignalRManagementClientImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; - HttpPipeline localPipeline = - (pipeline != null) - ? pipeline - : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - Duration localDefaultPollInterval = - (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); - SerializerAdapter localSerializerAdapter = - (serializerAdapter != null) - ? serializerAdapter - : SerializerFactory.createDefaultManagementSerializerAdapter(); - SignalRManagementClientImpl client = - new SignalRManagementClientImpl( - localPipeline, - localSerializerAdapter, - localDefaultPollInterval, - localEnvironment, - this.subscriptionId, - localEndpoint); + HttpPipeline localPipeline = (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval + = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); + SignalRManagementClientImpl client = new SignalRManagementClientImpl(localPipeline, localSerializerAdapter, + localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); return client; } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientImpl.java index ec1cf06890662..41e3a5be4e0df 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRManagementClientImpl.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.signalr.implementation; import com.azure.core.annotation.ServiceClient; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpResponse; @@ -12,8 +13,8 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; +import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; @@ -29,8 +30,9 @@ import com.azure.resourcemanager.signalr.fluent.SignalRPrivateEndpointConnectionsClient; import com.azure.resourcemanager.signalr.fluent.SignalRPrivateLinkResourcesClient; import com.azure.resourcemanager.signalr.fluent.SignalRReplicasClient; -import com.azure.resourcemanager.signalr.fluent.SignalRSharedPrivateLinkResourcesClient; +import com.azure.resourcemanager.signalr.fluent.SignalRReplicaSharedPrivateLinkResourcesClient; import com.azure.resourcemanager.signalr.fluent.SignalRsClient; +import com.azure.resourcemanager.signalr.fluent.SignalRSharedPrivateLinkResourcesClient; import com.azure.resourcemanager.signalr.fluent.UsagesClient; import java.io.IOException; import java.lang.reflect.Type; @@ -41,183 +43,229 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** Initializes a new instance of the SignalRManagementClientImpl type. */ +/** + * Initializes a new instance of the SignalRManagementClientImpl type. + */ @ServiceClient(builder = SignalRManagementClientBuilder.class) public final class SignalRManagementClientImpl implements SignalRManagementClient { - /** The ID of the target subscription. The value must be an UUID. */ + /** + * The ID of the target subscription. The value must be an UUID. + */ private final String subscriptionId; /** * Gets The ID of the target subscription. The value must be an UUID. - * + * * @return the subscriptionId value. */ public String getSubscriptionId() { return this.subscriptionId; } - /** server parameter. */ + /** + * server parameter. + */ private final String endpoint; /** * Gets server parameter. - * + * * @return the endpoint value. */ public String getEndpoint() { return this.endpoint; } - /** Api Version. */ + /** + * Api Version. + */ private final String apiVersion; /** * Gets Api Version. - * + * * @return the apiVersion value. */ public String getApiVersion() { return this.apiVersion; } - /** The HTTP pipeline to send requests through. */ + /** + * The HTTP pipeline to send requests through. + */ private final HttpPipeline httpPipeline; /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { return this.httpPipeline; } - /** The serializer to serialize an object into a string. */ + /** + * The serializer to serialize an object into a string. + */ private final SerializerAdapter serializerAdapter; /** * Gets The serializer to serialize an object into a string. - * + * * @return the serializerAdapter value. */ SerializerAdapter getSerializerAdapter() { return this.serializerAdapter; } - /** The default poll interval for long-running operation. */ + /** + * The default poll interval for long-running operation. + */ private final Duration defaultPollInterval; /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ public Duration getDefaultPollInterval() { return this.defaultPollInterval; } - /** The OperationsClient object to access its operations. */ + /** + * The OperationsClient object to access its operations. + */ private final OperationsClient operations; /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ public OperationsClient getOperations() { return this.operations; } - /** The SignalRsClient object to access its operations. */ + /** + * The SignalRsClient object to access its operations. + */ private final SignalRsClient signalRs; /** * Gets the SignalRsClient object to access its operations. - * + * * @return the SignalRsClient object. */ public SignalRsClient getSignalRs() { return this.signalRs; } - /** The UsagesClient object to access its operations. */ + /** + * The UsagesClient object to access its operations. + */ private final UsagesClient usages; /** * Gets the UsagesClient object to access its operations. - * + * * @return the UsagesClient object. */ public UsagesClient getUsages() { return this.usages; } - /** The SignalRCustomCertificatesClient object to access its operations. */ + /** + * The SignalRCustomCertificatesClient object to access its operations. + */ private final SignalRCustomCertificatesClient signalRCustomCertificates; /** * Gets the SignalRCustomCertificatesClient object to access its operations. - * + * * @return the SignalRCustomCertificatesClient object. */ public SignalRCustomCertificatesClient getSignalRCustomCertificates() { return this.signalRCustomCertificates; } - /** The SignalRCustomDomainsClient object to access its operations. */ + /** + * The SignalRCustomDomainsClient object to access its operations. + */ private final SignalRCustomDomainsClient signalRCustomDomains; /** * Gets the SignalRCustomDomainsClient object to access its operations. - * + * * @return the SignalRCustomDomainsClient object. */ public SignalRCustomDomainsClient getSignalRCustomDomains() { return this.signalRCustomDomains; } - /** The SignalRPrivateEndpointConnectionsClient object to access its operations. */ + /** + * The SignalRPrivateEndpointConnectionsClient object to access its operations. + */ private final SignalRPrivateEndpointConnectionsClient signalRPrivateEndpointConnections; /** * Gets the SignalRPrivateEndpointConnectionsClient object to access its operations. - * + * * @return the SignalRPrivateEndpointConnectionsClient object. */ public SignalRPrivateEndpointConnectionsClient getSignalRPrivateEndpointConnections() { return this.signalRPrivateEndpointConnections; } - /** The SignalRPrivateLinkResourcesClient object to access its operations. */ + /** + * The SignalRPrivateLinkResourcesClient object to access its operations. + */ private final SignalRPrivateLinkResourcesClient signalRPrivateLinkResources; /** * Gets the SignalRPrivateLinkResourcesClient object to access its operations. - * + * * @return the SignalRPrivateLinkResourcesClient object. */ public SignalRPrivateLinkResourcesClient getSignalRPrivateLinkResources() { return this.signalRPrivateLinkResources; } - /** The SignalRReplicasClient object to access its operations. */ + /** + * The SignalRReplicasClient object to access its operations. + */ private final SignalRReplicasClient signalRReplicas; /** * Gets the SignalRReplicasClient object to access its operations. - * + * * @return the SignalRReplicasClient object. */ public SignalRReplicasClient getSignalRReplicas() { return this.signalRReplicas; } - /** The SignalRSharedPrivateLinkResourcesClient object to access its operations. */ + /** + * The SignalRReplicaSharedPrivateLinkResourcesClient object to access its operations. + */ + private final SignalRReplicaSharedPrivateLinkResourcesClient signalRReplicaSharedPrivateLinkResources; + + /** + * Gets the SignalRReplicaSharedPrivateLinkResourcesClient object to access its operations. + * + * @return the SignalRReplicaSharedPrivateLinkResourcesClient object. + */ + public SignalRReplicaSharedPrivateLinkResourcesClient getSignalRReplicaSharedPrivateLinkResources() { + return this.signalRReplicaSharedPrivateLinkResources; + } + + /** + * The SignalRSharedPrivateLinkResourcesClient object to access its operations. + */ private final SignalRSharedPrivateLinkResourcesClient signalRSharedPrivateLinkResources; /** * Gets the SignalRSharedPrivateLinkResourcesClient object to access its operations. - * + * * @return the SignalRSharedPrivateLinkResourcesClient object. */ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResources() { @@ -226,7 +274,7 @@ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResour /** * Initializes an instance of SignalRManagementClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. @@ -234,19 +282,14 @@ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResour * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param endpoint server parameter. */ - SignalRManagementClientImpl( - HttpPipeline httpPipeline, - SerializerAdapter serializerAdapter, - Duration defaultPollInterval, - AzureEnvironment environment, - String subscriptionId, - String endpoint) { + SignalRManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-08-01-preview"; + this.apiVersion = "2024-03-01"; this.operations = new OperationsClientImpl(this); this.signalRs = new SignalRsClientImpl(this); this.usages = new UsagesClientImpl(this); @@ -255,12 +298,13 @@ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResour this.signalRPrivateEndpointConnections = new SignalRPrivateEndpointConnectionsClientImpl(this); this.signalRPrivateLinkResources = new SignalRPrivateLinkResourcesClientImpl(this); this.signalRReplicas = new SignalRReplicasClientImpl(this); + this.signalRReplicaSharedPrivateLinkResources = new SignalRReplicaSharedPrivateLinkResourcesClientImpl(this); this.signalRSharedPrivateLinkResources = new SignalRSharedPrivateLinkResourcesClientImpl(this); } /** * Gets default client context. - * + * * @return the default client context. */ public Context getContext() { @@ -269,7 +313,7 @@ public Context getContext() { /** * Merges default client context with provided context. - * + * * @param context the context to be merged with default client context. * @return the merged context. */ @@ -279,7 +323,7 @@ public Context mergeContext(Context context) { /** * Gets long running operation result. - * + * * @param activationResponse the response of activation operation. * @param httpPipeline the http pipeline. * @param pollResultType type of poll result. @@ -289,26 +333,15 @@ public Context mergeContext(Context context) { * @param type of final result. * @return poller flux for poll result and final result. */ - public PollerFlux, U> getLroResult( - Mono>> activationResponse, - HttpPipeline httpPipeline, - Type pollResultType, - Type finalResultType, - Context context) { - return PollerFactory - .create( - serializerAdapter, - httpPipeline, - pollResultType, - finalResultType, - defaultPollInterval, - activationResponse, - context); + public PollerFlux, U> getLroResult(Mono>> activationResponse, + HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) { + return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType, + defaultPollInterval, activationResponse, context); } /** * Gets the final result, or an error, based on last async poll response. - * + * * @param response the last async poll response. * @param type of poll result. * @param type of final result. @@ -321,19 +354,16 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, HttpResponse errorResponse = null; PollResult.Error lroError = response.getValue().getError(); if (lroError != null) { - errorResponse = - new HttpResponseImpl( - lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody()); + errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(), + lroError.getResponseBody()); errorMessage = response.getValue().getError().getMessage(); String errorBody = response.getValue().getError().getResponseBody(); if (errorBody != null) { // try to deserialize error body to ManagementError try { - managementError = - this - .getSerializerAdapter() - .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON); + managementError = this.getSerializerAdapter() + .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON); if (managementError.getCode() == null || managementError.getMessage() == null) { managementError = null; } @@ -374,7 +404,7 @@ public int getStatusCode() { } public String getHeaderValue(String s) { - return httpHeaders.getValue(s); + return httpHeaders.getValue(HttpHeaderName.fromString(s)); } public HttpHeaders getHeaders() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateEndpointConnectionsClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateEndpointConnectionsClientImpl.java index aba9cb7cd87be..cd33428ea1214 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateEndpointConnectionsClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateEndpointConnectionsClientImpl.java @@ -42,24 +42,24 @@ * An instance of this class provides access to all the operations defined in SignalRPrivateEndpointConnectionsClient. */ public final class SignalRPrivateEndpointConnectionsClientImpl implements SignalRPrivateEndpointConnectionsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SignalRPrivateEndpointConnectionsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of SignalRPrivateEndpointConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SignalRPrivateEndpointConnectionsClientImpl(SignalRManagementClientImpl client) { - this.service = - RestProxy - .create( - SignalRPrivateEndpointConnectionsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SignalRPrivateEndpointConnectionsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -70,102 +70,76 @@ public final class SignalRPrivateEndpointConnectionsClientImpl implements Signal @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface SignalRPrivateEndpointConnectionsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200}) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, + Mono> update(@HostParam("$host") String endpoint, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @BodyParam("application/json") PrivateEndpointConnectionInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -176,32 +150,16 @@ private Mono> listSinglePageAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, 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())); } /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -209,22 +167,18 @@ private Mono> listSinglePageAsync( * @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 list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -236,28 +190,15 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -267,13 +208,13 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -283,16 +224,15 @@ private PagedFlux listAsync(String resourceGroup * @return a list of private endpoint connections as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -307,7 +247,7 @@ public PagedIterable list(String resourceGroupNa /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -317,44 +257,38 @@ public PagedIterable list(String resourceGroupNa * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String resourceName, Context context) { + public PagedIterable list(String resourceGroupName, String resourceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 specified private endpoint connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the specified private endpoint connection along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName) { + private Mono> getWithResponseAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -365,55 +299,40 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - privateEndpointConnectionName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), privateEndpointConnectionName, + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 specified private endpoint connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the specified private endpoint connection along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { + private Mono> getWithResponseAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -424,23 +343,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - privateEndpointConnectionName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.get(this.client.getEndpoint(), privateEndpointConnectionName, this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); } /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -449,17 +360,17 @@ private Mono> getWithResponseAsync( * @return the specified private endpoint connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName) { + private Mono getAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName) { return getWithResponseAsync(privateEndpointConnectionName, resourceGroupName, resourceName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -469,16 +380,16 @@ private Mono getAsync( * @return the specified private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { + public Response getWithResponse(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, Context context) { return getWithResponseAsync(privateEndpointConnectionName, resourceGroupName, resourceName, context).block(); } /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -487,16 +398,16 @@ public Response getWithResponse( * @return the specified private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner get( - String privateEndpointConnectionName, String resourceGroupName, String resourceName) { + public PrivateEndpointConnectionInner get(String privateEndpointConnectionName, String resourceGroupName, + String resourceName) { return getWithResponse(privateEndpointConnectionName, resourceGroupName, resourceName, Context.NONE).getValue(); } /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -504,31 +415,22 @@ public PrivateEndpointConnectionInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private endpoint connection to an azure resource along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters) { + private Mono> updateWithResponseAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, PrivateEndpointConnectionInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -544,27 +446,17 @@ private Mono> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - privateEndpointConnectionName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), privateEndpointConnectionName, + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -573,32 +465,22 @@ private Mono> updateWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private endpoint connection to an azure resource along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters, - Context context) { + private Mono> updateWithResponseAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, PrivateEndpointConnectionInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -614,24 +496,15 @@ private Mono> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - privateEndpointConnectionName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context); + return service.update(this.client.getEndpoint(), privateEndpointConnectionName, this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context); } /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -641,20 +514,17 @@ private Mono> updateWithResponseAsync( * @return a private endpoint connection to an azure resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters) { + private Mono updateAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, PrivateEndpointConnectionInner parameters) { return updateWithResponseAsync(privateEndpointConnectionName, resourceGroupName, resourceName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -665,22 +535,17 @@ private Mono updateAsync( * @return a private endpoint connection to an azure resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters, - Context context) { - return updateWithResponseAsync( - privateEndpointConnectionName, resourceGroupName, resourceName, parameters, context) - .block(); + public Response updateWithResponse(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, PrivateEndpointConnectionInner parameters, Context context) { + return updateWithResponseAsync(privateEndpointConnectionName, resourceGroupName, resourceName, parameters, + context).block(); } /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -690,21 +555,17 @@ public Response updateWithResponse( * @return a private endpoint connection to an azure resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner update( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters) { - return updateWithResponse( - privateEndpointConnectionName, resourceGroupName, resourceName, parameters, Context.NONE) - .getValue(); + public PrivateEndpointConnectionInner update(String privateEndpointConnectionName, String resourceGroupName, + String resourceName, PrivateEndpointConnectionInner parameters) { + return updateWithResponse(privateEndpointConnectionName, resourceGroupName, resourceName, parameters, + Context.NONE).getValue(); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -713,25 +574,19 @@ public PrivateEndpointConnectionInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName) { + private Mono>> deleteWithResponseAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -742,26 +597,17 @@ private Mono>> deleteWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - privateEndpointConnectionName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), privateEndpointConnectionName, + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -771,25 +617,19 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { + private Mono>> deleteWithResponseAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -800,23 +640,15 @@ private Mono>> deleteWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - privateEndpointConnectionName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.delete(this.client.getEndpoint(), privateEndpointConnectionName, this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -825,21 +657,19 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName) { - Mono>> mono = - deleteWithResponseAsync(privateEndpointConnectionName, resourceGroupName, resourceName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName) { + Mono>> mono + = deleteWithResponseAsync(privateEndpointConnectionName, resourceGroupName, resourceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -849,21 +679,20 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(privateEndpointConnectionName, resourceGroupName, resourceName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(privateEndpointConnectionName, resourceGroupName, resourceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -872,16 +701,16 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String privateEndpointConnectionName, String resourceGroupName, String resourceName) { + public SyncPoller, Void> beginDelete(String privateEndpointConnectionName, + String resourceGroupName, String resourceName) { return this.beginDeleteAsync(privateEndpointConnectionName, resourceGroupName, resourceName).getSyncPoller(); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -891,18 +720,17 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { - return this - .beginDeleteAsync(privateEndpointConnectionName, resourceGroupName, resourceName, context) + public SyncPoller, Void> beginDelete(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, Context context) { + return this.beginDeleteAsync(privateEndpointConnectionName, resourceGroupName, resourceName, context) .getSyncPoller(); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -911,18 +739,17 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName) { - return beginDeleteAsync(privateEndpointConnectionName, resourceGroupName, resourceName) - .last() + private Mono deleteAsync(String privateEndpointConnectionName, String resourceGroupName, + String resourceName) { + return beginDeleteAsync(privateEndpointConnectionName, resourceGroupName, resourceName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -932,18 +759,17 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { - return beginDeleteAsync(privateEndpointConnectionName, resourceGroupName, resourceName, context) - .last() + private Mono deleteAsync(String privateEndpointConnectionName, String resourceGroupName, String resourceName, + Context context) { + return beginDeleteAsync(privateEndpointConnectionName, resourceGroupName, resourceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -957,9 +783,9 @@ public void delete(String privateEndpointConnectionName, String resourceGroupNam /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -968,21 +794,22 @@ public void delete(String privateEndpointConnectionName, String resourceGroupNam * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { + public void delete(String privateEndpointConnectionName, String resourceGroupName, String resourceName, + Context context) { deleteAsync(privateEndpointConnectionName, resourceGroupName, resourceName, context).block(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -990,62 +817,43 @@ private Mono> listNextSinglePageAs 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.")); + 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.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(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.")); + 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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateEndpointConnectionsImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateEndpointConnectionsImpl.java index d0b9ce18ca4c7..0c80a53ed0748 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateEndpointConnectionsImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateEndpointConnectionsImpl.java @@ -21,47 +21,41 @@ public final class SignalRPrivateEndpointConnectionsImpl implements SignalRPriva private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - public SignalRPrivateEndpointConnectionsImpl( - SignalRPrivateEndpointConnectionsClient innerClient, + public SignalRPrivateEndpointConnectionsImpl(SignalRPrivateEndpointConnectionsClient innerClient, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String resourceName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, resourceName); - return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String resourceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, resourceName, context); - return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String resourceName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); } - public Response getWithResponse( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(privateEndpointConnectionName, resourceGroupName, resourceName, context); + public Response getWithResponse(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(privateEndpointConnectionName, resourceGroupName, resourceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new PrivateEndpointConnectionImpl(inner.getValue(), this.manager())); } else { return null; } } - public PrivateEndpointConnection get( - String privateEndpointConnectionName, String resourceGroupName, String resourceName) { - PrivateEndpointConnectionInner inner = - this.serviceClient().get(privateEndpointConnectionName, resourceGroupName, resourceName); + public PrivateEndpointConnection get(String privateEndpointConnectionName, String resourceGroupName, + String resourceName) { + PrivateEndpointConnectionInner inner + = this.serviceClient().get(privateEndpointConnectionName, resourceGroupName, resourceName); if (inner != null) { return new PrivateEndpointConnectionImpl(inner, this.manager()); } else { @@ -69,35 +63,22 @@ public PrivateEndpointConnection get( } } - public Response updateWithResponse( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters, - Context context) { - Response inner = - this - .serviceClient() - .updateWithResponse( - privateEndpointConnectionName, resourceGroupName, resourceName, parameters, context); + public Response updateWithResponse(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, PrivateEndpointConnectionInner parameters, Context context) { + Response inner = this.serviceClient() + .updateWithResponse(privateEndpointConnectionName, resourceGroupName, resourceName, parameters, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new PrivateEndpointConnectionImpl(inner.getValue(), this.manager())); } else { return null; } } - public PrivateEndpointConnection update( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters) { - PrivateEndpointConnectionInner inner = - this.serviceClient().update(privateEndpointConnectionName, resourceGroupName, resourceName, parameters); + public PrivateEndpointConnection update(String privateEndpointConnectionName, String resourceGroupName, + String resourceName, PrivateEndpointConnectionInner parameters) { + PrivateEndpointConnectionInner inner + = this.serviceClient().update(privateEndpointConnectionName, resourceGroupName, resourceName, parameters); if (inner != null) { return new PrivateEndpointConnectionImpl(inner, this.manager()); } else { @@ -109,8 +90,8 @@ public void delete(String privateEndpointConnectionName, String resourceGroupNam this.serviceClient().delete(privateEndpointConnectionName, resourceGroupName, resourceName); } - public void delete( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context) { + public void delete(String privateEndpointConnectionName, String resourceGroupName, String resourceName, + Context context) { this.serviceClient().delete(privateEndpointConnectionName, resourceGroupName, resourceName, context); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateLinkResourcesClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateLinkResourcesClientImpl.java index fb387f2e2603b..c1603c2bc1a41 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateLinkResourcesClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateLinkResourcesClientImpl.java @@ -30,24 +30,28 @@ import com.azure.resourcemanager.signalr.models.PrivateLinkResourceList; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SignalRPrivateLinkResourcesClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRPrivateLinkResourcesClient. + */ public final class SignalRPrivateLinkResourcesClientImpl implements SignalRPrivateLinkResourcesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SignalRPrivateLinkResourcesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of SignalRPrivateLinkResourcesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SignalRPrivateLinkResourcesClientImpl(SignalRManagementClientImpl client) { - this.service = - RestProxy - .create( - SignalRPrivateLinkResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SignalRPrivateLinkResourcesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -58,56 +62,44 @@ public final class SignalRPrivateLinkResourcesClientImpl implements SignalRPriva @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface SignalRPrivateLinkResourcesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateLinkResources") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateLinkResources") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 private link resources that need to be created for a resource along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -118,32 +110,16 @@ private Mono> listSinglePageAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, 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 private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -151,22 +127,18 @@ private Mono> listSinglePageAsync( * @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 private link resources that need to be created for a resource along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -178,72 +150,58 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 private link resources that need to be created for a resource as paginated response with {@link - * PagedFlux}. + * @return the private link resources that need to be created for a resource as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 private link resources that need to be created for a resource as paginated response with {@link - * PagedFlux}. + * @return the private link resources that need to be created for a resource as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 private link resources that need to be created for a resource as paginated response with {@link - * PagedIterable}. + * @return the private link resources that need to be created for a resource as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String resourceName) { @@ -252,32 +210,33 @@ public PagedIterable list(String resourceGroupName, St /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 private link resources that need to be created for a resource as paginated response with {@link - * PagedIterable}. + * @return the private link resources that need to be created for a resource as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String resourceName, Context context) { + public PagedIterable list(String resourceGroupName, String resourceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of PrivateLinkResource and a possible link to query more results along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return contains a list of PrivateLinkResource and a possible link to query more results along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -285,37 +244,28 @@ private Mono> listNextSinglePageAsync(St 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.")); + 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.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return contains a list of PrivateLinkResource and a possible link to query more results along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return contains a list of PrivateLinkResource and a possible link to query more results along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -323,23 +273,13 @@ private Mono> listNextSinglePageAsync(St 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.")); + 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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateLinkResourcesImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateLinkResourcesImpl.java index 46ad282857a00..6e6113f610784 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateLinkResourcesImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRPrivateLinkResourcesImpl.java @@ -19,8 +19,7 @@ public final class SignalRPrivateLinkResourcesImpl implements SignalRPrivateLink private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - public SignalRPrivateLinkResourcesImpl( - SignalRPrivateLinkResourcesClient innerClient, + public SignalRPrivateLinkResourcesImpl(SignalRPrivateLinkResourcesClient innerClient, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; @@ -28,13 +27,13 @@ public SignalRPrivateLinkResourcesImpl( public PagedIterable list(String resourceGroupName, String resourceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); - return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } public PagedIterable list(String resourceGroupName, String resourceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, resourceName, context); - return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } private SignalRPrivateLinkResourcesClient serviceClient() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicaSharedPrivateLinkResourcesClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicaSharedPrivateLinkResourcesClientImpl.java new file mode 100644 index 0000000000000..931acf0d578cf --- /dev/null +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicaSharedPrivateLinkResourcesClientImpl.java @@ -0,0 +1,767 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.signalr.implementation; + +import com.azure.core.annotation.BodyParam; +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.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.signalr.fluent.SignalRReplicaSharedPrivateLinkResourcesClient; +import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner; +import com.azure.resourcemanager.signalr.models.SharedPrivateLinkResourceList; +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 + * SignalRReplicaSharedPrivateLinkResourcesClient. + */ +public final class SignalRReplicaSharedPrivateLinkResourcesClientImpl + implements SignalRReplicaSharedPrivateLinkResourcesClient { + /** + * The proxy service used to perform REST calls. + */ + private final SignalRReplicaSharedPrivateLinkResourcesService service; + + /** + * The service client containing this operation class. + */ + private final SignalRManagementClientImpl client; + + /** + * Initializes an instance of SignalRReplicaSharedPrivateLinkResourcesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SignalRReplicaSharedPrivateLinkResourcesClientImpl(SignalRManagementClientImpl client) { + this.service = RestProxy.create(SignalRReplicaSharedPrivateLinkResourcesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for SignalRManagementClientSignalRReplicaSharedPrivateLinkResources to be + * used by the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "SignalRManagementCli") + public interface SignalRReplicaSharedPrivateLinkResourcesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/sharedPrivateLinkResources") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, + @PathParam("sharedPrivateLinkResourceName") String sharedPrivateLinkResourceName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, + @PathParam("sharedPrivateLinkResourceName") String sharedPrivateLinkResourceName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") SharedPrivateLinkResourceInner parameters, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @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 list of shared private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String replicaName) { + 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 (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, this.client.getApiVersion(), 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())); + } + + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, String replicaName, 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 (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + replicaName, this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @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 list of shared private link resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String resourceName, + String replicaName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, replicaName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String resourceName, + String replicaName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, replicaName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @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 list of shared private link resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String resourceName, + String replicaName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, replicaName)); + } + + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String resourceName, + String replicaName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, replicaName, context)); + } + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 specified shared private link resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String replicaName, String sharedPrivateLinkResourceName) { + 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 (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); + } + if (sharedPrivateLinkResourceName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 specified shared private link resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String replicaName, String sharedPrivateLinkResourceName, 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 (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); + } + if (sharedPrivateLinkResourceName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + replicaName, sharedPrivateLinkResourceName, this.client.getApiVersion(), accept, context); + } + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 specified shared private link resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName) { + return getWithResponseAsync(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 specified shared private link resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + context).block(); + } + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 specified shared private link resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SharedPrivateLinkResourceInner get(String resourceGroupName, String resourceName, String replicaName, + String sharedPrivateLinkResourceName) { + return getWithResponse(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + Context.NONE).getValue(); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String replicaName, String sharedPrivateLinkResourceName, + SharedPrivateLinkResourceInner parameters) { + 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 (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); + } + if (sharedPrivateLinkResourceName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + this.client.getApiVersion(), parameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String replicaName, String sharedPrivateLinkResourceName, + SharedPrivateLinkResourceInner parameters, 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 (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (replicaName == null) { + return Mono.error(new IllegalArgumentException("Parameter replicaName is required and cannot be null.")); + } + if (sharedPrivateLinkResourceName == null) { + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, replicaName, sharedPrivateLinkResourceName, this.client.getApiVersion(), parameters, accept, + context); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 PollerFlux} for polling of describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SharedPrivateLinkResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, String replicaName, + String sharedPrivateLinkResourceName, SharedPrivateLinkResourceInner parameters) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + replicaName, sharedPrivateLinkResourceName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), SharedPrivateLinkResourceInner.class, SharedPrivateLinkResourceInner.class, + this.client.getContext()); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 PollerFlux} for polling of describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SharedPrivateLinkResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, String replicaName, + String sharedPrivateLinkResourceName, SharedPrivateLinkResourceInner parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + replicaName, sharedPrivateLinkResourceName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), SharedPrivateLinkResourceInner.class, SharedPrivateLinkResourceInner.class, + context); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 SyncPoller} for polling of describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String replicaName, String sharedPrivateLinkResourceName, + SharedPrivateLinkResourceInner parameters) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + parameters) + .getSyncPoller(); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 SyncPoller} for polling of describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String replicaName, String sharedPrivateLinkResourceName, + SharedPrivateLinkResourceInner parameters, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + parameters, context) + .getSyncPoller(); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName, SharedPrivateLinkResourceInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + parameters).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName, SharedPrivateLinkResourceInner parameters, + Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + parameters, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SharedPrivateLinkResourceInner createOrUpdate(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName, SharedPrivateLinkResourceInner parameters) { + return createOrUpdateAsync(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + parameters).block(); + } + + /** + * Create or update a shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SharedPrivateLinkResourceInner createOrUpdate(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName, SharedPrivateLinkResourceInner parameters, + Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + parameters, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items + * + * The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(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.listNext(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 + * + * The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(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.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicaSharedPrivateLinkResourcesImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicaSharedPrivateLinkResourcesImpl.java new file mode 100644 index 0000000000000..5be5a0ec80799 --- /dev/null +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicaSharedPrivateLinkResourcesImpl.java @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.signalr.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.signalr.fluent.SignalRReplicaSharedPrivateLinkResourcesClient; +import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner; +import com.azure.resourcemanager.signalr.models.SharedPrivateLinkResource; +import com.azure.resourcemanager.signalr.models.SignalRReplicaSharedPrivateLinkResources; + +public final class SignalRReplicaSharedPrivateLinkResourcesImpl implements SignalRReplicaSharedPrivateLinkResources { + private static final ClientLogger LOGGER = new ClientLogger(SignalRReplicaSharedPrivateLinkResourcesImpl.class); + + private final SignalRReplicaSharedPrivateLinkResourcesClient innerClient; + + private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; + + public SignalRReplicaSharedPrivateLinkResourcesImpl(SignalRReplicaSharedPrivateLinkResourcesClient innerClient, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String resourceName, + String replicaName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName, replicaName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SharedPrivateLinkResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String resourceName, + String replicaName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName, replicaName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SharedPrivateLinkResourceImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SharedPrivateLinkResourceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public SharedPrivateLinkResource get(String resourceGroupName, String resourceName, String replicaName, + String sharedPrivateLinkResourceName) { + SharedPrivateLinkResourceInner inner + = this.serviceClient().get(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName); + if (inner != null) { + return new SharedPrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public SharedPrivateLinkResource 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 resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + } + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); + if (replicaName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); + } + String sharedPrivateLinkResourceName + = ResourceManagerUtils.getValueFromIdByName(id, "sharedPrivateLinkResources"); + if (sharedPrivateLinkResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'sharedPrivateLinkResources'.", id))); + } + return this + .getWithResponse(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, 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 resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); + if (resourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + } + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); + if (replicaName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); + } + String sharedPrivateLinkResourceName + = ResourceManagerUtils.getValueFromIdByName(id, "sharedPrivateLinkResources"); + if (sharedPrivateLinkResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'sharedPrivateLinkResources'.", id))); + } + return this.getWithResponse(resourceGroupName, resourceName, replicaName, sharedPrivateLinkResourceName, + context); + } + + private SignalRReplicaSharedPrivateLinkResourcesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.signalr.SignalRManager manager() { + return this.serviceManager; + } + + public SharedPrivateLinkResourceImpl define(String name) { + return new SharedPrivateLinkResourceImpl(name, this.manager()); + } +} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasClientImpl.java index 3b4c75c565992..68e5632fedbbe 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasClientImpl.java @@ -40,22 +40,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SignalRReplicasClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRReplicasClient. + */ public final class SignalRReplicasClientImpl implements SignalRReplicasClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SignalRReplicasService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of SignalRReplicasClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SignalRReplicasClientImpl(SignalRManagementClientImpl client) { - this.service = - RestProxy.create(SignalRReplicasService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SignalRReplicasService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -66,111 +72,78 @@ public final class SignalRReplicasClientImpl implements SignalRReplicasClient { @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface SignalRReplicasService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + Mono> list(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("replicaName") String replicaName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("replicaName") String replicaName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ReplicaInner parameters, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") ReplicaInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") - @ExpectedResponses({200, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, + Mono> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("replicaName") String replicaName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + Mono>> update(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("replicaName") String replicaName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ReplicaInner parameters, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") ReplicaInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/restart") - @ExpectedResponses({202, 204}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/restart") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restart( - @HostParam("$host") String endpoint, + Mono>> restart(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("replicaName") String replicaName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,16 +154,12 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -201,32 +170,16 @@ private Mono> listSinglePageAsync(String resourceGro } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, this.client.getApiVersion(), 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())); } /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -236,19 +189,15 @@ private Mono> listSinglePageAsync(String resourceGro * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -260,28 +209,15 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -291,13 +227,13 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -308,14 +244,13 @@ private PagedFlux listAsync(String resourceGroupName, String resou */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -330,7 +265,7 @@ public PagedIterable list(String resourceGroupName, String resourc /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -346,7 +281,7 @@ public PagedIterable list(String resourceGroupName, String resourc /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -356,19 +291,15 @@ public PagedIterable list(String resourceGroupName, String resourc * @return the replica and its properties along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName) { + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -382,24 +313,14 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -410,19 +331,15 @@ private Mono> getWithResponseAsync( * @return the replica and its properties along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -436,21 +353,13 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + replicaName, this.client.getApiVersion(), accept, context); } /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -467,7 +376,7 @@ private Mono getAsync(String resourceGroupName, String resourceNam /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -478,14 +387,14 @@ private Mono getAsync(String resourceGroupName, String resourceNam * @return the replica and its properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context) { + public Response getWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context) { return getWithResponseAsync(resourceGroupName, resourceName, replicaName, context).block(); } /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -501,7 +410,7 @@ public ReplicaInner get(String resourceGroupName, String resourceName, String re /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -509,23 +418,19 @@ public ReplicaInner get(String resourceGroupName, String resourceName, String re * @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 class represent a replica resource along with {@link Response} on successful completion of {@link - * Mono}. + * @return a class represent a replica resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -544,25 +449,14 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, this.client.getApiVersion(), parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -571,23 +465,19 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class represent a replica resource along with {@link Response} on successful completion of {@link - * Mono}. + * @return a class represent a replica resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -606,22 +496,13 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, replicaName, this.client.getApiVersion(), parameters, accept, context); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -632,19 +513,17 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link PollerFlux} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ReplicaInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, resourceName, replicaName, parameters); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), ReplicaInner.class, ReplicaInner.class, this.client.getContext()); + private PollerFlux, ReplicaInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, replicaName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ReplicaInner.class, ReplicaInner.class, this.client.getContext()); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -656,20 +535,18 @@ private PollerFlux, ReplicaInner> beginCreateOrUpdateAs * @return the {@link PollerFlux} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ReplicaInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { + private PollerFlux, ReplicaInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, resourceName, replicaName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), ReplicaInner.class, ReplicaInner.class, context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, replicaName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ReplicaInner.class, ReplicaInner.class, context); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -680,14 +557,14 @@ private PollerFlux, ReplicaInner> beginCreateOrUpdateAs * @return the {@link SyncPoller} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ReplicaInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { + public SyncPoller, ReplicaInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters) { return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters).getSyncPoller(); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -699,16 +576,15 @@ public SyncPoller, ReplicaInner> beginCreateOrUpdate( * @return the {@link SyncPoller} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ReplicaInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters, context) + public SyncPoller, ReplicaInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters, context) .getSyncPoller(); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -719,16 +595,15 @@ public SyncPoller, ReplicaInner> beginCreateOrUpdate( * @return a class represent a replica resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -740,16 +615,15 @@ private Mono createOrUpdateAsync( * @return a class represent a replica resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -760,14 +634,14 @@ private Mono createOrUpdateAsync( * @return a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicaInner createOrUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { + public ReplicaInner createOrUpdate(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters) { return createOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters).block(); } /** * Create or update a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -779,14 +653,14 @@ public ReplicaInner createOrUpdate( * @return a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicaInner createOrUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { + public ReplicaInner createOrUpdate(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, resourceName, replicaName, parameters, context).block(); } /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -796,19 +670,15 @@ public ReplicaInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -822,24 +692,14 @@ private Mono> deleteWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -850,19 +710,15 @@ private Mono> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName, Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -876,21 +732,13 @@ private Mono> deleteWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - accept, - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, replicaName, this.client.getApiVersion(), accept, context); } /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -906,7 +754,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -917,14 +765,14 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context) { + public Response deleteWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context) { return deleteWithResponseAsync(resourceGroupName, resourceName, replicaName, context).block(); } /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -939,7 +787,7 @@ public void delete(String resourceGroupName, String resourceName, String replica /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -947,23 +795,19 @@ public void delete(String resourceGroupName, String resourceName, String replica * @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 class represent a replica resource along with {@link Response} on successful completion of {@link - * Mono}. + * @return a class represent a replica resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName, ReplicaInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -982,25 +826,14 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - parameters, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, this.client.getApiVersion(), parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1009,23 +842,19 @@ private Mono>> updateWithResponseAsync( * @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 class represent a replica resource along with {@link Response} on successful completion of {@link - * Mono}. + * @return a class represent a replica resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName, ReplicaInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1044,22 +873,13 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - parameters, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, replicaName, this.client.getApiVersion(), parameters, accept, context); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1070,19 +890,17 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ReplicaInner> beginUpdateAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, resourceName, replicaName, parameters); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), ReplicaInner.class, ReplicaInner.class, this.client.getContext()); + private PollerFlux, ReplicaInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, resourceName, replicaName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ReplicaInner.class, ReplicaInner.class, this.client.getContext()); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1094,20 +912,18 @@ private PollerFlux, ReplicaInner> beginUpdateAsync( * @return the {@link PollerFlux} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ReplicaInner> beginUpdateAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { + private PollerFlux, ReplicaInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String replicaName, ReplicaInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, resourceName, replicaName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), ReplicaInner.class, ReplicaInner.class, context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, resourceName, replicaName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ReplicaInner.class, ReplicaInner.class, context); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1118,14 +934,14 @@ private PollerFlux, ReplicaInner> beginUpdateAsync( * @return the {@link SyncPoller} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ReplicaInner> beginUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { + public SyncPoller, ReplicaInner> beginUpdate(String resourceGroupName, String resourceName, + String replicaName, ReplicaInner parameters) { return this.beginUpdateAsync(resourceGroupName, resourceName, replicaName, parameters).getSyncPoller(); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1137,14 +953,14 @@ public SyncPoller, ReplicaInner> beginUpdate( * @return the {@link SyncPoller} for polling of a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ReplicaInner> beginUpdate( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { + public SyncPoller, ReplicaInner> beginUpdate(String resourceGroupName, String resourceName, + String replicaName, ReplicaInner parameters, Context context) { return this.beginUpdateAsync(resourceGroupName, resourceName, replicaName, parameters, context).getSyncPoller(); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1155,16 +971,15 @@ public SyncPoller, ReplicaInner> beginUpdate( * @return a class represent a replica resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { - return beginUpdateAsync(resourceGroupName, resourceName, replicaName, parameters) - .last() + private Mono updateAsync(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters) { + return beginUpdateAsync(resourceGroupName, resourceName, replicaName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1176,16 +991,15 @@ private Mono updateAsync( * @return a class represent a replica resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { - return beginUpdateAsync(resourceGroupName, resourceName, replicaName, parameters, context) - .last() + private Mono updateAsync(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters, Context context) { + return beginUpdateAsync(resourceGroupName, resourceName, replicaName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1196,14 +1010,14 @@ private Mono updateAsync( * @return a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicaInner update( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters) { + public ReplicaInner update(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters) { return updateAsync(resourceGroupName, resourceName, replicaName, parameters).block(); } /** * Operation to update an exiting replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1215,14 +1029,14 @@ public ReplicaInner update( * @return a class represent a replica resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicaInner update( - String resourceGroupName, String resourceName, String replicaName, ReplicaInner parameters, Context context) { + public ReplicaInner update(String resourceGroupName, String resourceName, String replicaName, + ReplicaInner parameters, Context context) { return updateAsync(resourceGroupName, resourceName, replicaName, parameters, context).block(); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1232,19 +1046,15 @@ public ReplicaInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> restartWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName) { + private Mono>> restartWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1258,24 +1068,14 @@ private Mono>> restartWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .restart( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.restart(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1286,19 +1086,15 @@ private Mono>> restartWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> restartWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName, Context context) { + private Mono>> restartWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1312,21 +1108,13 @@ private Mono>> restartWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .restart( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - accept, - context); + return service.restart(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, replicaName, this.client.getApiVersion(), accept, context); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1336,18 +1124,16 @@ private Mono>> restartWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRestartAsync( - String resourceGroupName, String resourceName, String replicaName) { + private PollerFlux, Void> beginRestartAsync(String resourceGroupName, String resourceName, + String replicaName) { Mono>> mono = restartWithResponseAsync(resourceGroupName, resourceName, replicaName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1358,19 +1144,18 @@ private PollerFlux, Void> beginRestartAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRestartAsync( - String resourceGroupName, String resourceName, String replicaName, Context context) { + private PollerFlux, Void> beginRestartAsync(String resourceGroupName, String resourceName, + String replicaName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - restartWithResponseAsync(resourceGroupName, resourceName, replicaName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = restartWithResponseAsync(resourceGroupName, resourceName, replicaName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1380,14 +1165,14 @@ private PollerFlux, Void> beginRestartAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRestart( - String resourceGroupName, String resourceName, String replicaName) { + public SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName, + String replicaName) { return this.beginRestartAsync(resourceGroupName, resourceName, replicaName).getSyncPoller(); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1398,14 +1183,14 @@ public SyncPoller, Void> beginRestart( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRestart( - String resourceGroupName, String resourceName, String replicaName, Context context) { + public SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName, + String replicaName, Context context) { return this.beginRestartAsync(resourceGroupName, resourceName, replicaName, context).getSyncPoller(); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1416,14 +1201,13 @@ public SyncPoller, Void> beginRestart( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono restartAsync(String resourceGroupName, String resourceName, String replicaName) { - return beginRestartAsync(resourceGroupName, resourceName, replicaName) - .last() + return beginRestartAsync(resourceGroupName, resourceName, replicaName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1434,16 +1218,15 @@ private Mono restartAsync(String resourceGroupName, String resourceName, S * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono restartAsync( - String resourceGroupName, String resourceName, String replicaName, Context context) { - return beginRestartAsync(resourceGroupName, resourceName, replicaName, context) - .last() + private Mono restartAsync(String resourceGroupName, String resourceName, String replicaName, + Context context) { + return beginRestartAsync(resourceGroupName, resourceName, replicaName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1458,7 +1241,7 @@ public void restart(String resourceGroupName, String resourceName, String replic /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -1474,9 +1257,10 @@ public void restart(String resourceGroupName, String resourceName, String replic /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1488,31 +1272,22 @@ private Mono> listNextSinglePageAsync(String nextLin 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.")); + 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.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1525,23 +1300,13 @@ private Mono> listNextSinglePageAsync(String nextLin 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.")); + 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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasImpl.java index d671303038056..94009cbd6660f 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasImpl.java @@ -21,31 +21,28 @@ public final class SignalRReplicasImpl implements SignalRReplicas { private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - public SignalRReplicasImpl( - SignalRReplicasClient innerClient, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + public SignalRReplicasImpl(SignalRReplicasClient innerClient, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String resourceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName); - return Utils.mapPage(inner, inner1 -> new ReplicaImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicaImpl(inner1, this.manager())); } public PagedIterable list(String resourceGroupName, String resourceName, Context context) { PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, context); - return Utils.mapPage(inner, inner1 -> new ReplicaImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicaImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, resourceName, replicaName, context); + public Response getWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, resourceName, replicaName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ReplicaImpl(inner.getValue(), this.manager())); } else { return null; @@ -61,8 +58,8 @@ public Replica get(String resourceGroupName, String resourceName, String replica } } - public Response deleteWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context) { + public Response deleteWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, resourceName, replicaName, context); } @@ -79,105 +76,77 @@ public void restart(String resourceGroupName, String resourceName, String replic } public Replica getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String replicaName = Utils.getValueFromIdByName(id, "replicas"); + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); if (replicaName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); } return this.getWithResponse(resourceGroupName, resourceName, replicaName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String replicaName = Utils.getValueFromIdByName(id, "replicas"); + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); if (replicaName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); } return this.getWithResponse(resourceGroupName, resourceName, replicaName, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String replicaName = Utils.getValueFromIdByName(id, "replicas"); + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); if (replicaName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); } this.deleteWithResponse(resourceGroupName, resourceName, replicaName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } - String replicaName = Utils.getValueFromIdByName(id, "replicas"); + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); if (replicaName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); } return this.deleteWithResponse(resourceGroupName, resourceName, replicaName, context); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRResourceImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRResourceImpl.java index 926e5afcf53e0..c702776b383ea 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRResourceImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRResourceImpl.java @@ -106,12 +106,9 @@ public String version() { public List privateEndpointConnections() { List inner = this.innerModel().privateEndpointConnections(); if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())) - .collect(Collectors.toList())); + return Collections.unmodifiableList(inner.stream() + .map(inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())) + .collect(Collectors.toList())); } else { return Collections.emptyList(); } @@ -120,12 +117,9 @@ public List privateEndpointConnections() { public List sharedPrivateLinkResources() { List inner = this.innerModel().sharedPrivateLinkResources(); if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new SharedPrivateLinkResourceImpl(inner1, this.manager())) - .collect(Collectors.toList())); + return Collections.unmodifiableList(inner.stream() + .map(inner1 -> new SharedPrivateLinkResourceImpl(inner1, this.manager())) + .collect(Collectors.toList())); } else { return Collections.emptyList(); } @@ -222,20 +216,16 @@ public SignalRResourceImpl withExistingResourceGroup(String resourceGroupName) { } public SignalRResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRs() - .createOrUpdate(resourceGroupName, resourceName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRs() + .createOrUpdate(resourceGroupName, resourceName, this.innerModel(), Context.NONE); return this; } public SignalRResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRs() - .createOrUpdate(resourceGroupName, resourceName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRs() + .createOrUpdate(resourceGroupName, resourceName, this.innerModel(), context); return this; } @@ -250,48 +240,40 @@ public SignalRResourceImpl update() { } public SignalRResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRs() - .update(resourceGroupName, resourceName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient() + .getSignalRs() + .update(resourceGroupName, resourceName, this.innerModel(), Context.NONE); return this; } public SignalRResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRs() - .update(resourceGroupName, resourceName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient() + .getSignalRs() + .update(resourceGroupName, resourceName, this.innerModel(), context); return this; } - SignalRResourceImpl( - SignalRResourceInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { + SignalRResourceImpl(SignalRResourceInner innerObject, + com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.resourceName = Utils.getValueFromIdByName(innerObject.id(), "signalR"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "signalR"); } public SignalRResource refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRs() - .getByResourceGroupWithResponse(resourceGroupName, resourceName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRs() + .getByResourceGroupWithResponse(resourceGroupName, resourceName, Context.NONE) + .getValue(); return this; } public SignalRResource refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSignalRs() - .getByResourceGroupWithResponse(resourceGroupName, resourceName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient() + .getSignalRs() + .getByResourceGroupWithResponse(resourceGroupName, resourceName, context) + .getValue(); return this; } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRSharedPrivateLinkResourcesClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRSharedPrivateLinkResourcesClientImpl.java index 01dda9936c60b..976e4c59db504 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRSharedPrivateLinkResourcesClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRSharedPrivateLinkResourcesClientImpl.java @@ -42,24 +42,24 @@ * An instance of this class provides access to all the operations defined in SignalRSharedPrivateLinkResourcesClient. */ public final class SignalRSharedPrivateLinkResourcesClientImpl implements SignalRSharedPrivateLinkResourcesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SignalRSharedPrivateLinkResourcesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of SignalRSharedPrivateLinkResourcesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SignalRSharedPrivateLinkResourcesClientImpl(SignalRManagementClientImpl client) { - this.service = - RestProxy - .create( - SignalRSharedPrivateLinkResourcesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SignalRSharedPrivateLinkResourcesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -70,102 +70,76 @@ public final class SignalRSharedPrivateLinkResourcesClientImpl implements Signal @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface SignalRSharedPrivateLinkResourcesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}") - @ExpectedResponses({200}) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("sharedPrivateLinkResourceName") String sharedPrivateLinkResourceName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, @PathParam("sharedPrivateLinkResourceName") String sharedPrivateLinkResourceName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @BodyParam("application/json") SharedPrivateLinkResourceInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("sharedPrivateLinkResourceName") String sharedPrivateLinkResourceName, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 list of shared private link resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -176,32 +150,16 @@ private Mono> listSinglePageAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, 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())); } /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -209,22 +167,18 @@ private Mono> listSinglePageAsync( * @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 list of shared private link resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -236,28 +190,15 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -267,13 +208,13 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String resourceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -283,16 +224,15 @@ private PagedFlux listAsync(String resourceGroup * @return a list of shared private link resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String resourceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, resourceName, context), + private PagedFlux listAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -307,7 +247,7 @@ public PagedIterable list(String resourceGroupNa /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -317,43 +257,37 @@ public PagedIterable list(String resourceGroupNa * @return a list of shared private link resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String resourceName, Context context) { + public PagedIterable list(String resourceGroupName, String resourceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); } /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 specified shared private link resource along with {@link Response} on successful completion of {@link - * Mono}. + * @return the specified shared private link resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { + private Mono> getWithResponseAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (sharedPrivateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -364,24 +298,15 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - sharedPrivateLinkResourceName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), sharedPrivateLinkResourceName, + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -389,29 +314,23 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified shared private link resource along with {@link Response} on successful completion of {@link - * Mono}. + * @return the specified shared private link resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { + private Mono> getWithResponseAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (sharedPrivateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -422,21 +341,13 @@ private Mono> getWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - sharedPrivateLinkResourceName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.get(this.client.getEndpoint(), sharedPrivateLinkResourceName, this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); } /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -446,15 +357,15 @@ private Mono> getWithResponseAsync( * @return the specified shared private link resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { + private Mono getAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName) { return getWithResponseAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -465,14 +376,14 @@ private Mono getAsync( * @return the specified shared private link resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { + public Response getWithResponse(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, Context context) { return getWithResponseAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context).block(); } /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -482,14 +393,14 @@ public Response getWithResponse( * @return the specified shared private link resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SharedPrivateLinkResourceInner get( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { + public SharedPrivateLinkResourceInner get(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName) { return getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, Context.NONE).getValue(); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -497,32 +408,23 @@ public SharedPrivateLinkResourceInner get( * @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 describes a Shared Private Link Resource along with {@link Response} on successful completion of {@link - * Mono}. + * @return describes a Shared Private Link Resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, SharedPrivateLinkResourceInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (sharedPrivateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -538,25 +440,15 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - sharedPrivateLinkResourceName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), sharedPrivateLinkResourceName, + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, resourceName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -565,33 +457,23 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 describes a Shared Private Link Resource along with {@link Response} on successful completion of {@link - * Mono}. + * @return describes a Shared Private Link Resource along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, SharedPrivateLinkResourceInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (sharedPrivateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -607,22 +489,14 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - sharedPrivateLinkResourceName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), sharedPrivateLinkResourceName, + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, + accept, context); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -634,26 +508,18 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SharedPrivateLinkResourceInner> - beginCreateOrUpdateAsync( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, + beginCreateOrUpdateAsync(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, SharedPrivateLinkResourceInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SharedPrivateLinkResourceInner.class, - SharedPrivateLinkResourceInner.class, - this.client.getContext()); + Mono>> mono = createOrUpdateWithResponseAsync(sharedPrivateLinkResourceName, + resourceGroupName, resourceName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), SharedPrivateLinkResourceInner.class, SharedPrivateLinkResourceInner.class, + this.client.getContext()); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -666,29 +532,19 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SharedPrivateLinkResourceInner> - beginCreateOrUpdateAsync( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters, - Context context) { + beginCreateOrUpdateAsync(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, + SharedPrivateLinkResourceInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SharedPrivateLinkResourceInner.class, - SharedPrivateLinkResourceInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(sharedPrivateLinkResourceName, + resourceGroupName, resourceName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), SharedPrivateLinkResourceInner.class, SharedPrivateLinkResourceInner.class, + context); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -700,18 +556,15 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, + String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, SharedPrivateLinkResourceInner parameters) { - return this - .beginCreateOrUpdateAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters) + return this.beginCreateOrUpdateAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters) .getSyncPoller(); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -724,20 +577,17 @@ public SyncPoller, SharedPrivateLinkR */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SharedPrivateLinkResourceInner> beginCreateOrUpdate( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters, - Context context) { + String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, + SharedPrivateLinkResourceInner parameters, Context context) { return this - .beginCreateOrUpdateAsync( - sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, context) + .beginCreateOrUpdateAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, + context) .getSyncPoller(); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -748,11 +598,8 @@ public SyncPoller, SharedPrivateLinkR * @return describes a Shared Private Link Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters) { + private Mono createOrUpdateAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, SharedPrivateLinkResourceInner parameters) { return beginCreateOrUpdateAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters) .last() .flatMap(this.client::getLroFinalResultOrError); @@ -760,7 +607,7 @@ private Mono createOrUpdateAsync( /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -772,21 +619,15 @@ private Mono createOrUpdateAsync( * @return describes a Shared Private Link Resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters, - Context context) { - return beginCreateOrUpdateAsync( - sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, SharedPrivateLinkResourceInner parameters, Context context) { + return beginCreateOrUpdateAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -797,17 +638,14 @@ private Mono createOrUpdateAsync( * @return describes a Shared Private Link Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SharedPrivateLinkResourceInner createOrUpdate( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters) { + public SharedPrivateLinkResourceInner createOrUpdate(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, SharedPrivateLinkResourceInner parameters) { return createOrUpdateAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters).block(); } /** * Create or update a shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -819,19 +657,15 @@ public SharedPrivateLinkResourceInner createOrUpdate( * @return describes a Shared Private Link Resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SharedPrivateLinkResourceInner createOrUpdate( - String sharedPrivateLinkResourceName, - String resourceGroupName, - String resourceName, - SharedPrivateLinkResourceInner parameters, - Context context) { + public SharedPrivateLinkResourceInner createOrUpdate(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, SharedPrivateLinkResourceInner parameters, Context context) { return createOrUpdateAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, context) .block(); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -841,25 +675,19 @@ public SharedPrivateLinkResourceInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { + private Mono>> deleteWithResponseAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (sharedPrivateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -870,24 +698,15 @@ private Mono>> deleteWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - sharedPrivateLinkResourceName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), sharedPrivateLinkResourceName, + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -898,25 +717,19 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { + private Mono>> deleteWithResponseAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (sharedPrivateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter sharedPrivateLinkResourceName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -927,21 +740,13 @@ private Mono>> deleteWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - sharedPrivateLinkResourceName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.delete(this.client.getEndpoint(), sharedPrivateLinkResourceName, this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -951,19 +756,17 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { - Mono>> mono = - deleteWithResponseAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName) { + Mono>> mono + = deleteWithResponseAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -974,19 +777,18 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -996,14 +798,14 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { + public SyncPoller, Void> beginDelete(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName) { return this.beginDeleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName).getSyncPoller(); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -1014,16 +816,15 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { - return this - .beginDeleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context) + public SyncPoller, Void> beginDelete(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, Context context) { + return this.beginDeleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context) .getSyncPoller(); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -1033,16 +834,15 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { - return beginDeleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName) - .last() + private Mono deleteAsync(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName) { + return beginDeleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -1053,16 +853,15 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { - return beginDeleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context) - .last() + private Mono deleteAsync(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, + Context context) { + return beginDeleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -1077,7 +876,7 @@ public void delete(String sharedPrivateLinkResourceName, String resourceGroupNam /** * Delete the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -1087,21 +886,22 @@ public void delete(String sharedPrivateLinkResourceName, String resourceGroupNam * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { + public void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, + Context context) { deleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context).block(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of shared private link resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1109,62 +909,43 @@ private Mono> listNextSinglePageAs 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.")); + 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.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of shared private link resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(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.")); + 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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRSharedPrivateLinkResourcesImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRSharedPrivateLinkResourcesImpl.java index 75589f917405d..0a1cd1ddefc50 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRSharedPrivateLinkResourcesImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRSharedPrivateLinkResourcesImpl.java @@ -21,47 +21,41 @@ public final class SignalRSharedPrivateLinkResourcesImpl implements SignalRShare private final com.azure.resourcemanager.signalr.SignalRManager serviceManager; - public SignalRSharedPrivateLinkResourcesImpl( - SignalRSharedPrivateLinkResourcesClient innerClient, + public SignalRSharedPrivateLinkResourcesImpl(SignalRSharedPrivateLinkResourcesClient innerClient, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String resourceName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, resourceName); - return Utils.mapPage(inner, inner1 -> new SharedPrivateLinkResourceImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SharedPrivateLinkResourceImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String resourceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, resourceName, context); - return Utils.mapPage(inner, inner1 -> new SharedPrivateLinkResourceImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String resourceName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, resourceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SharedPrivateLinkResourceImpl(inner1, this.manager())); } - public Response getWithResponse( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context); + public Response getWithResponse(String sharedPrivateLinkResourceName, + String resourceGroupName, String resourceName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SharedPrivateLinkResourceImpl(inner.getValue(), this.manager())); } else { return null; } } - public SharedPrivateLinkResource get( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { - SharedPrivateLinkResourceInner inner = - this.serviceClient().get(sharedPrivateLinkResourceName, resourceGroupName, resourceName); + public SharedPrivateLinkResource get(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName) { + SharedPrivateLinkResourceInner inner + = this.serviceClient().get(sharedPrivateLinkResourceName, resourceGroupName, resourceName); if (inner != null) { return new SharedPrivateLinkResourceImpl(inner, this.manager()); } else { @@ -69,131 +63,35 @@ public SharedPrivateLinkResource get( } } - public void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { - this.serviceClient().delete(sharedPrivateLinkResourceName, resourceGroupName, resourceName); - } - - public void delete( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context) { - this.serviceClient().delete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context); - } - - public SharedPrivateLinkResource getById(String id) { - String sharedPrivateLinkResourceName = Utils.getValueFromIdByName(id, "sharedPrivateLinkResources"); - if (sharedPrivateLinkResourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'sharedPrivateLinkResources'.", - id))); - } - String resourceGroupName = Utils.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 resourceName = Utils.getValueFromIdByName(id, "signalR"); - if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + public SharedPrivateLinkResource createOrUpdate(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, SharedPrivateLinkResourceInner parameters) { + SharedPrivateLinkResourceInner inner = this.serviceClient() + .createOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters); + if (inner != null) { + return new SharedPrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; } - return this - .getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, Context.NONE) - .getValue(); } - public Response getByIdWithResponse(String id, Context context) { - String sharedPrivateLinkResourceName = Utils.getValueFromIdByName(id, "sharedPrivateLinkResources"); - if (sharedPrivateLinkResourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'sharedPrivateLinkResources'.", - id))); - } - String resourceGroupName = Utils.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 resourceName = Utils.getValueFromIdByName(id, "signalR"); - if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + public SharedPrivateLinkResource createOrUpdate(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, SharedPrivateLinkResourceInner parameters, Context context) { + SharedPrivateLinkResourceInner inner = this.serviceClient() + .createOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, context); + if (inner != null) { + return new SharedPrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; } - return this.getWithResponse(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context); } - public void deleteById(String id) { - String sharedPrivateLinkResourceName = Utils.getValueFromIdByName(id, "sharedPrivateLinkResources"); - if (sharedPrivateLinkResourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'sharedPrivateLinkResources'.", - id))); - } - String resourceGroupName = Utils.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 resourceName = Utils.getValueFromIdByName(id, "signalR"); - if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); - } - this.delete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, Context.NONE); + public void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName) { + this.serviceClient().delete(sharedPrivateLinkResourceName, resourceGroupName, resourceName); } - public void deleteByIdWithResponse(String id, Context context) { - String sharedPrivateLinkResourceName = Utils.getValueFromIdByName(id, "sharedPrivateLinkResources"); - if (sharedPrivateLinkResourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'sharedPrivateLinkResources'.", - id))); - } - String resourceGroupName = Utils.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 resourceName = Utils.getValueFromIdByName(id, "signalR"); - if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); - } - this.delete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context); + public void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, + Context context) { + this.serviceClient().delete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, context); } private SignalRSharedPrivateLinkResourcesClient serviceClient() { @@ -203,8 +101,4 @@ private SignalRSharedPrivateLinkResourcesClient serviceClient() { private com.azure.resourcemanager.signalr.SignalRManager manager() { return this.serviceManager; } - - public SharedPrivateLinkResourceImpl define(String name) { - return new SharedPrivateLinkResourceImpl(name, this.manager()); - } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRsClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRsClientImpl.java index 2b5e074b7f4f5..c19aab49de62e 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRsClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRsClientImpl.java @@ -45,17 +45,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SignalRsClient. */ +/** + * An instance of this class provides access to all the operations defined in SignalRsClient. + */ public final class SignalRsClientImpl implements SignalRsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SignalRsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of SignalRsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SignalRsClientImpl(SignalRManagementClientImpl client) { @@ -70,223 +76,159 @@ public final class SignalRsClientImpl implements SignalRsClient { @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface SignalRsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String endpoint, - @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, + Mono> checkNameAvailability(@HostParam("$host") String endpoint, + @PathParam("location") String location, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") NameAvailabilityParameters parameters, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") NameAvailabilityParameters parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/signalR") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @HeaderParam("Accept") String accept, + Mono> listByResourceGroup(@HostParam("$host") 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}") - @ExpectedResponses({200, 201, 202}) + Mono> getByResourceGroup(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @BodyParam("application/json") SignalRResourceInner parameters, - @HeaderParam("Accept") String accept, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @BodyParam("application/json") SignalRResourceInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}") - @ExpectedResponses({200, 202}) + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @BodyParam("application/json") SignalRResourceInner parameters, - @HeaderParam("Accept") String accept, + Mono>> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @BodyParam("application/json") SignalRResourceInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listKeys( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey") - @ExpectedResponses({200, 202}) + Mono> listKeys(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> regenerateKey( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @BodyParam("application/json") RegenerateKeyParameters parameters, - @HeaderParam("Accept") String accept, + Mono>> regenerateKey(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @BodyParam("application/json") RegenerateKeyParameters parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/skus") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/skus") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listReplicaSkus( - @HostParam("$host") String endpoint, + Mono> listReplicaSkus(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @PathParam("replicaName") String replicaName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("replicaName") String replicaName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart") - @ExpectedResponses({202, 204}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restart( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/skus") - @ExpectedResponses({200}) + Mono>> restart(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/skus") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSkus( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> listSkus(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the 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 result of the request to check name availability along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String location, NameAvailabilityParameters parameters) { + private Mono> checkNameAvailabilityWithResponseAsync(String location, + NameAvailabilityParameters parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -295,23 +237,14 @@ private Mono> checkNameAvailabilityWithResponseA } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkNameAvailability( - this.client.getEndpoint(), - location, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - parameters, - accept, - context)) + .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), location, + this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the operation. * @param context The context to associate with this operation. @@ -319,25 +252,21 @@ private Mono> checkNameAvailabilityWithResponseA * @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 result of the request to check name availability along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String location, NameAvailabilityParameters parameters, Context context) { + private Mono> checkNameAvailabilityWithResponseAsync(String location, + NameAvailabilityParameters parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -346,20 +275,13 @@ private Mono> checkNameAvailabilityWithResponseA } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkNameAvailability( - this.client.getEndpoint(), - location, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - parameters, - accept, - context); + return service.checkNameAvailability(this.client.getEndpoint(), location, this.client.getApiVersion(), + this.client.getSubscriptionId(), parameters, accept, context); } /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -368,15 +290,15 @@ private Mono> checkNameAvailabilityWithResponseA * @return result of the request to check name availability on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync( - String location, NameAvailabilityParameters parameters) { + private Mono checkNameAvailabilityAsync(String location, + NameAvailabilityParameters parameters) { return checkNameAvailabilityWithResponseAsync(location, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the operation. * @param context The context to associate with this operation. @@ -386,14 +308,14 @@ private Mono checkNameAvailabilityAsync( * @return result of the request to check name availability along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String location, NameAvailabilityParameters parameters, Context context) { + public Response checkNameAvailabilityWithResponse(String location, + NameAvailabilityParameters parameters, Context context) { return checkNameAvailabilityWithResponseAsync(location, parameters, context).block(); } /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -408,130 +330,97 @@ public NameAvailabilityInner checkNameAvailability(String location, NameAvailabi /** * Handles requests to list all resources in a subscription. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object that includes an array of resources and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of resources and a possible link for next set 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.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } 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)) + .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())); } /** * Handles requests to list all resources in a subscription. - * + * * @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 object that includes an array of resources and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of resources and a possible link for next set 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.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, + .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)); + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Handles requests to list all resources in a subscription. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { - return new PagedFlux<>( - () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } /** * Handles requests to list all resources in a subscription. - * + * * @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 object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); } /** * Handles requests to list all resources in a subscription. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -540,13 +429,13 @@ public PagedIterable list() { /** * Handles requests to list all resources in a subscription. - * + * * @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 object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -555,27 +444,23 @@ public PagedIterable list(Context context) { /** * Handles requests to list all resources in a resource group. - * + * * @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 object that includes an array of resources and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of resources and a possible link for next set 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.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -583,53 +468,34 @@ private Mono> listByResourceGroupSinglePageA } 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)) + .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())); } /** * Handles requests to list all resources in a resource group. - * + * * @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 object that includes an array of resources and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of resources and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync( - String resourceGroupName, Context context) { + 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.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -638,68 +504,54 @@ private Mono> listByResourceGroupSinglePageA 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)); + .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)); } /** * Handles requests to list all resources in a resource group. - * + * * @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 object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName), + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** * Handles requests to list all resources in a resource group. - * + * * @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 object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** * Handles requests to list all resources in a resource group. - * + * * @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 object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -708,14 +560,14 @@ public PagedIterable listByResourceGroup(String resourceGr /** * Handles requests to list all resources in a resource group. - * + * * @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 object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -724,7 +576,7 @@ public PagedIterable listByResourceGroup(String resourceGr /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -733,19 +585,15 @@ public PagedIterable listByResourceGroup(String resourceGr * @return the resource and its properties along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String resourceName) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -756,23 +604,14 @@ private Mono> getByResourceGroupWithResponseAsync } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .getByResourceGroup( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -782,19 +621,15 @@ private Mono> getByResourceGroupWithResponseAsync * @return the resource and its properties along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -805,20 +640,13 @@ private Mono> getByResourceGroupWithResponseAsync } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getByResourceGroup( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); } /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -834,7 +662,7 @@ private Mono getByResourceGroupAsync(String resourceGroupN /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -844,14 +672,14 @@ private Mono getByResourceGroupAsync(String resourceGroupN * @return the resource and its properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String resourceName, Context context) { + public Response getByResourceGroupWithResponse(String resourceGroupName, String resourceName, + Context context) { return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, context).block(); } /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -866,7 +694,7 @@ public SignalRResourceInner getByResourceGroup(String resourceGroupName, String /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -876,19 +704,15 @@ public SignalRResourceInner getByResourceGroup(String resourceGroupName, String * @return a class represent a resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, SignalRResourceInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -904,24 +728,14 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -932,19 +746,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return a class represent a resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, SignalRResourceInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -960,21 +770,13 @@ private Mono>> createOrUpdateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context); } /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -984,23 +786,17 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link PollerFlux} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SignalRResourceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SignalRResourceInner.class, - SignalRResourceInner.class, - this.client.getContext()); + private PollerFlux, SignalRResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, SignalRResourceInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SignalRResourceInner.class, SignalRResourceInner.class, this.client.getContext()); } /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -1014,17 +810,15 @@ private PollerFlux, SignalRResourceInner> begin private PollerFlux, SignalRResourceInner> beginCreateOrUpdateAsync( String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SignalRResourceInner.class, SignalRResourceInner.class, context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SignalRResourceInner.class, SignalRResourceInner.class, context); } /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -1034,14 +828,14 @@ private PollerFlux, SignalRResourceInner> begin * @return the {@link SyncPoller} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SignalRResourceInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { + public SyncPoller, SignalRResourceInner> + beginCreateOrUpdate(String resourceGroupName, String resourceName, SignalRResourceInner parameters) { return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); } /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -1059,7 +853,7 @@ public SyncPoller, SignalRResourceInner> beginC /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -1069,16 +863,15 @@ public SyncPoller, SignalRResourceInner> beginC * @return a class represent a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + SignalRResourceInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -1089,16 +882,15 @@ private Mono createOrUpdateAsync( * @return a class represent a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + SignalRResourceInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -1108,14 +900,14 @@ private Mono createOrUpdateAsync( * @return a class represent a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SignalRResourceInner createOrUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { + public SignalRResourceInner createOrUpdate(String resourceGroupName, String resourceName, + SignalRResourceInner parameters) { return createOrUpdateAsync(resourceGroupName, resourceName, parameters).block(); } /** * Create or update a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. @@ -1126,14 +918,14 @@ public SignalRResourceInner createOrUpdate( * @return a class represent a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SignalRResourceInner createOrUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { + public SignalRResourceInner createOrUpdate(String resourceGroupName, String resourceName, + SignalRResourceInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, resourceName, parameters, context).block(); } /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1144,16 +936,12 @@ public SignalRResourceInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1164,23 +952,14 @@ private Mono>> deleteWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -1190,19 +969,15 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1213,20 +988,13 @@ private Mono>> deleteWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context); } /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1237,15 +1005,13 @@ private Mono>> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -1255,18 +1021,17 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String resourceName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1281,7 +1046,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -1291,14 +1056,14 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String resourceName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + Context context) { return this.beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller(); } /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1313,7 +1078,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName) { /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -1324,14 +1089,13 @@ private Mono deleteAsync(String resourceGroupName, String resourceName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String resourceName, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, context) - .last() + return beginDeleteAsync(resourceGroupName, resourceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1345,7 +1109,7 @@ public void delete(String resourceGroupName, String resourceName) { /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -1360,7 +1124,7 @@ public void delete(String resourceGroupName, String resourceName, Context contex /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1370,19 +1134,15 @@ public void delete(String resourceGroupName, String resourceName, Context contex * @return a class represent a resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, + SignalRResourceInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1398,24 +1158,14 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1426,19 +1176,15 @@ private Mono>> updateWithResponseAsync( * @return a class represent a resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, + SignalRResourceInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1454,21 +1200,13 @@ private Mono>> updateWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, parameters, accept, context); } /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1478,22 +1216,16 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SignalRResourceInner> beginUpdateAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { + private PollerFlux, SignalRResourceInner> + beginUpdateAsync(String resourceGroupName, String resourceName, SignalRResourceInner parameters) { Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SignalRResourceInner.class, - SignalRResourceInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SignalRResourceInner.class, SignalRResourceInner.class, this.client.getContext()); } /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1507,17 +1239,15 @@ private PollerFlux, SignalRResourceInner> begin private PollerFlux, SignalRResourceInner> beginUpdateAsync( String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, resourceName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SignalRResourceInner.class, SignalRResourceInner.class, context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, resourceName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SignalRResourceInner.class, SignalRResourceInner.class, context); } /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1527,14 +1257,14 @@ private PollerFlux, SignalRResourceInner> begin * @return the {@link SyncPoller} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SignalRResourceInner> beginUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { + public SyncPoller, SignalRResourceInner> beginUpdate(String resourceGroupName, + String resourceName, SignalRResourceInner parameters) { return this.beginUpdateAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); } /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1545,14 +1275,14 @@ public SyncPoller, SignalRResourceInner> beginU * @return the {@link SyncPoller} for polling of a class represent a resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SignalRResourceInner> beginUpdate( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { + public SyncPoller, SignalRResourceInner> beginUpdate(String resourceGroupName, + String resourceName, SignalRResourceInner parameters, Context context) { return this.beginUpdateAsync(resourceGroupName, resourceName, parameters, context).getSyncPoller(); } /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1562,16 +1292,15 @@ public SyncPoller, SignalRResourceInner> beginU * @return a class represent a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters) { - return beginUpdateAsync(resourceGroupName, resourceName, parameters) - .last() + private Mono updateAsync(String resourceGroupName, String resourceName, + SignalRResourceInner parameters) { + return beginUpdateAsync(resourceGroupName, resourceName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1582,16 +1311,15 @@ private Mono updateAsync( * @return a class represent a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { - return beginUpdateAsync(resourceGroupName, resourceName, parameters, context) - .last() + private Mono updateAsync(String resourceGroupName, String resourceName, + SignalRResourceInner parameters, Context context) { + return beginUpdateAsync(resourceGroupName, resourceName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1607,7 +1335,7 @@ public SignalRResourceInner update(String resourceGroupName, String resourceName /** * Operation to update an exiting resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. @@ -1618,14 +1346,14 @@ public SignalRResourceInner update(String resourceGroupName, String resourceName * @return a class represent a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SignalRResourceInner update( - String resourceGroupName, String resourceName, SignalRResourceInner parameters, Context context) { + public SignalRResourceInner update(String resourceGroupName, String resourceName, SignalRResourceInner parameters, + Context context) { return updateAsync(resourceGroupName, resourceName, parameters, context).block(); } /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1636,16 +1364,12 @@ public SignalRResourceInner update( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeysWithResponseAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1656,23 +1380,14 @@ private Mono> listKeysWithResponseAsync(String resour } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listKeys( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.listKeys(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -1682,19 +1397,15 @@ private Mono> listKeysWithResponseAsync(String resour * @return the access keys of the resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listKeysWithResponseAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> listKeysWithResponseAsync(String resourceGroupName, String resourceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1705,20 +1416,13 @@ private Mono> listKeysWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listKeys( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.listKeys(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context); } /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1734,7 +1438,7 @@ private Mono listKeysAsync(String resourceGroupName, String re /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -1744,14 +1448,14 @@ private Mono listKeysAsync(String resourceGroupName, String re * @return the access keys of the resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listKeysWithResponse( - String resourceGroupName, String resourceName, Context context) { + public Response listKeysWithResponse(String resourceGroupName, String resourceName, + Context context) { return listKeysWithResponseAsync(resourceGroupName, resourceName, context).block(); } /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1766,7 +1470,7 @@ public SignalRKeysInner listKeys(String resourceGroupName, String resourceName) /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -1774,22 +1478,18 @@ public SignalRKeysInner listKeys(String resourceGroupName, String resourceName) * @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 class represents the access keys of the resource along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> regenerateKeyWithResponseAsync( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters) { + private Mono>> regenerateKeyWithResponseAsync(String resourceGroupName, + String resourceName, RegenerateKeyParameters parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1805,24 +1505,14 @@ private Mono>> regenerateKeyWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .regenerateKey( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context)) + .withContext(context -> service.regenerateKey(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -1831,22 +1521,18 @@ private Mono>> regenerateKeyWithResponseAsync( * @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 class represents the access keys of the resource along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> regenerateKeyWithResponseAsync( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context) { + private Mono>> regenerateKeyWithResponseAsync(String resourceGroupName, + String resourceName, RegenerateKeyParameters parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1862,21 +1548,13 @@ private Mono>> regenerateKeyWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .regenerateKey( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - parameters, - accept, - context); + return service.regenerateKey(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -1886,23 +1564,17 @@ private Mono>> regenerateKeyWithResponseAsync( * @return the {@link PollerFlux} for polling of a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SignalRKeysInner> beginRegenerateKeyAsync( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters) { - Mono>> mono = - regenerateKeyWithResponseAsync(resourceGroupName, resourceName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SignalRKeysInner.class, - SignalRKeysInner.class, - this.client.getContext()); + private PollerFlux, SignalRKeysInner> beginRegenerateKeyAsync(String resourceGroupName, + String resourceName, RegenerateKeyParameters parameters) { + Mono>> mono + = regenerateKeyWithResponseAsync(resourceGroupName, resourceName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SignalRKeysInner.class, SignalRKeysInner.class, this.client.getContext()); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -1913,20 +1585,18 @@ private PollerFlux, SignalRKeysInner> beginRegenera * @return the {@link PollerFlux} for polling of a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SignalRKeysInner> beginRegenerateKeyAsync( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context) { + private PollerFlux, SignalRKeysInner> beginRegenerateKeyAsync(String resourceGroupName, + String resourceName, RegenerateKeyParameters parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - regenerateKeyWithResponseAsync(resourceGroupName, resourceName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SignalRKeysInner.class, SignalRKeysInner.class, context); + Mono>> mono + = regenerateKeyWithResponseAsync(resourceGroupName, resourceName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SignalRKeysInner.class, SignalRKeysInner.class, context); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -1936,14 +1606,14 @@ private PollerFlux, SignalRKeysInner> beginRegenera * @return the {@link SyncPoller} for polling of a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SignalRKeysInner> beginRegenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters) { + public SyncPoller, SignalRKeysInner> beginRegenerateKey(String resourceGroupName, + String resourceName, RegenerateKeyParameters parameters) { return this.beginRegenerateKeyAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -1954,14 +1624,14 @@ public SyncPoller, SignalRKeysInner> beginRegenerat * @return the {@link SyncPoller} for polling of a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SignalRKeysInner> beginRegenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context) { + public SyncPoller, SignalRKeysInner> beginRegenerateKey(String resourceGroupName, + String resourceName, RegenerateKeyParameters parameters, Context context) { return this.beginRegenerateKeyAsync(resourceGroupName, resourceName, parameters, context).getSyncPoller(); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -1971,16 +1641,15 @@ public SyncPoller, SignalRKeysInner> beginRegenerat * @return a class represents the access keys of the resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono regenerateKeyAsync( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters) { - return beginRegenerateKeyAsync(resourceGroupName, resourceName, parameters) - .last() + private Mono regenerateKeyAsync(String resourceGroupName, String resourceName, + RegenerateKeyParameters parameters) { + return beginRegenerateKeyAsync(resourceGroupName, resourceName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -1991,16 +1660,15 @@ private Mono regenerateKeyAsync( * @return a class represents the access keys of the resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono regenerateKeyAsync( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context) { - return beginRegenerateKeyAsync(resourceGroupName, resourceName, parameters, context) - .last() + private Mono regenerateKeyAsync(String resourceGroupName, String resourceName, + RegenerateKeyParameters parameters, Context context) { + return beginRegenerateKeyAsync(resourceGroupName, resourceName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -2010,14 +1678,14 @@ private Mono regenerateKeyAsync( * @return a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SignalRKeysInner regenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters) { + public SignalRKeysInner regenerateKey(String resourceGroupName, String resourceName, + RegenerateKeyParameters parameters) { return regenerateKeyAsync(resourceGroupName, resourceName, parameters).block(); } /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -2028,14 +1696,14 @@ public SignalRKeysInner regenerateKey( * @return a class represents the access keys of the resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SignalRKeysInner regenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context) { + public SignalRKeysInner regenerateKey(String resourceGroupName, String resourceName, + RegenerateKeyParameters parameters, Context context) { return regenerateKeyAsync(resourceGroupName, resourceName, parameters, context).block(); } /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -2045,19 +1713,15 @@ public SignalRKeysInner regenerateKey( * @return the list skus operation response along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listReplicaSkusWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName) { + private Mono> listReplicaSkusWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2071,24 +1735,14 @@ private Mono> listReplicaSkusWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listReplicaSkus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - accept, - context)) + .withContext(context -> service.listReplicaSkus(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, replicaName, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -2099,19 +1753,15 @@ private Mono> listReplicaSkusWithResponseAsync( * @return the list skus operation response along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listReplicaSkusWithResponseAsync( - String resourceGroupName, String resourceName, String replicaName, Context context) { + private Mono> listReplicaSkusWithResponseAsync(String resourceGroupName, String resourceName, + String replicaName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2125,21 +1775,13 @@ private Mono> listReplicaSkusWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listReplicaSkus( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - replicaName, - this.client.getApiVersion(), - accept, - context); + return service.listReplicaSkus(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + resourceName, replicaName, this.client.getApiVersion(), accept, context); } /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -2156,7 +1798,7 @@ private Mono listReplicaSkusAsync(String resourceGroupName, String /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -2167,14 +1809,14 @@ private Mono listReplicaSkusAsync(String resourceGroupName, String * @return the list skus operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listReplicaSkusWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context) { + public Response listReplicaSkusWithResponse(String resourceGroupName, String resourceName, + String replicaName, Context context) { return listReplicaSkusWithResponseAsync(resourceGroupName, resourceName, replicaName, context).block(); } /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -2190,7 +1832,7 @@ public SkuListInner listReplicaSkus(String resourceGroupName, String resourceNam /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2201,16 +1843,12 @@ public SkuListInner listReplicaSkus(String resourceGroupName, String resourceNam @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> restartWithResponseAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2221,23 +1859,14 @@ private Mono>> restartWithResponseAsync(String resourc } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .restart( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.restart(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -2247,19 +1876,15 @@ private Mono>> restartWithResponseAsync(String resourc * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> restartWithResponseAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono>> restartWithResponseAsync(String resourceGroupName, String resourceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2270,20 +1895,13 @@ private Mono>> restartWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .restart( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.restart(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context); } /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2294,15 +1912,13 @@ private Mono>> restartWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRestartAsync(String resourceGroupName, String resourceName) { Mono>> mono = restartWithResponseAsync(resourceGroupName, resourceName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -2312,18 +1928,17 @@ private PollerFlux, Void> beginRestartAsync(String resourceGrou * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRestartAsync( - String resourceGroupName, String resourceName, Context context) { + private PollerFlux, Void> beginRestartAsync(String resourceGroupName, String resourceName, + Context context) { context = this.client.mergeContext(context); Mono>> mono = restartWithResponseAsync(resourceGroupName, resourceName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2338,7 +1953,7 @@ public SyncPoller, Void> beginRestart(String resourceGroupName, /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -2348,14 +1963,14 @@ public SyncPoller, Void> beginRestart(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRestart( - String resourceGroupName, String resourceName, Context context) { + public SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName, + Context context) { return this.beginRestartAsync(resourceGroupName, resourceName, context).getSyncPoller(); } /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2370,7 +1985,7 @@ private Mono restartAsync(String resourceGroupName, String resourceName) { /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -2381,14 +1996,13 @@ private Mono restartAsync(String resourceGroupName, String resourceName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono restartAsync(String resourceGroupName, String resourceName, Context context) { - return beginRestartAsync(resourceGroupName, resourceName, context) - .last() + return beginRestartAsync(resourceGroupName, resourceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2402,7 +2016,7 @@ public void restart(String resourceGroupName, String resourceName) { /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -2417,7 +2031,7 @@ public void restart(String resourceGroupName, String resourceName, Context conte /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2428,16 +2042,12 @@ public void restart(String resourceGroupName, String resourceName, Context conte @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSkusWithResponseAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2448,23 +2058,14 @@ private Mono> listSkusWithResponseAsync(String resourceGr } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listSkus( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context)) + .withContext(context -> service.listSkus(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -2474,19 +2075,15 @@ private Mono> listSkusWithResponseAsync(String resourceGr * @return the list skus operation response along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSkusWithResponseAsync( - String resourceGroupName, String resourceName, Context context) { + private Mono> listSkusWithResponseAsync(String resourceGroupName, String resourceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2497,20 +2094,13 @@ private Mono> listSkusWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listSkus( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - resourceGroupName, - resourceName, - accept, - context); + return service.listSkus(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context); } /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2526,7 +2116,7 @@ private Mono listSkusAsync(String resourceGroupName, String resour /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -2542,7 +2132,7 @@ public Response listSkusWithResponse(String resourceGroupName, Str /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2557,14 +2147,15 @@ public SkuListInner listSkus(String resourceGroupName, String resourceName) { /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object that includes an array of resources and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of resources and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -2572,76 +2163,59 @@ private Mono> listBySubscriptionNextSinglePa 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.")); + 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)) + .>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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object that includes an array of resources and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of resources and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync( - String nextLink, Context context) { + 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.")); + 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)); + 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)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object that includes an array of resources and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of resources and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -2649,63 +2223,45 @@ private Mono> listByResourceGroupNextSingleP 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.")); + 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)) + .>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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object that includes an array of resources and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of resources and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync( - String nextLink, Context context) { + 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.")); + 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)); + 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)); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRsImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRsImpl.java index d8af8577dec45..48f0f585e400d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRsImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRsImpl.java @@ -34,15 +34,12 @@ public SignalRsImpl(SignalRsClient innerClient, com.azure.resourcemanager.signal this.serviceManager = serviceManager; } - public Response checkNameAvailabilityWithResponse( - String location, NameAvailabilityParameters parameters, Context context) { - Response inner = - this.serviceClient().checkNameAvailabilityWithResponse(location, parameters, context); + public Response checkNameAvailabilityWithResponse(String location, + NameAvailabilityParameters parameters, Context context) { + Response inner + = this.serviceClient().checkNameAvailabilityWithResponse(location, parameters, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new NameAvailabilityImpl(inner.getValue(), this.manager())); } else { return null; @@ -60,34 +57,31 @@ public NameAvailability checkNameAvailability(String location, NameAvailabilityP public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new SignalRResourceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SignalRResourceImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new SignalRResourceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SignalRResourceImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new SignalRResourceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SignalRResourceImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = - this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new SignalRResourceImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SignalRResourceImpl(inner1, this.manager())); } - public Response getByResourceGroupWithResponse( - String resourceGroupName, String resourceName, Context context) { - Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, resourceName, context); + public Response getByResourceGroupWithResponse(String resourceGroupName, String resourceName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, resourceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SignalRResourceImpl(inner.getValue(), this.manager())); } else { return null; @@ -112,13 +106,10 @@ public void delete(String resourceGroupName, String resourceName, Context contex } public Response listKeysWithResponse(String resourceGroupName, String resourceName, Context context) { - Response inner = - this.serviceClient().listKeysWithResponse(resourceGroupName, resourceName, context); + Response inner + = this.serviceClient().listKeysWithResponse(resourceGroupName, resourceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SignalRKeysImpl(inner.getValue(), this.manager())); } else { return null; @@ -134,8 +125,8 @@ public SignalRKeys listKeys(String resourceGroupName, String resourceName) { } } - public SignalRKeys regenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters) { + public SignalRKeys regenerateKey(String resourceGroupName, String resourceName, + RegenerateKeyParameters parameters) { SignalRKeysInner inner = this.serviceClient().regenerateKey(resourceGroupName, resourceName, parameters); if (inner != null) { return new SignalRKeysImpl(inner, this.manager()); @@ -144,10 +135,10 @@ public SignalRKeys regenerateKey( } } - public SignalRKeys regenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context) { - SignalRKeysInner inner = - this.serviceClient().regenerateKey(resourceGroupName, resourceName, parameters, context); + public SignalRKeys regenerateKey(String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, + Context context) { + SignalRKeysInner inner + = this.serviceClient().regenerateKey(resourceGroupName, resourceName, parameters, context); if (inner != null) { return new SignalRKeysImpl(inner, this.manager()); } else { @@ -155,15 +146,12 @@ public SignalRKeys regenerateKey( } } - public Response listReplicaSkusWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context) { - Response inner = - this.serviceClient().listReplicaSkusWithResponse(resourceGroupName, resourceName, replicaName, context); + public Response listReplicaSkusWithResponse(String resourceGroupName, String resourceName, + String replicaName, Context context) { + Response inner + = this.serviceClient().listReplicaSkusWithResponse(resourceGroupName, resourceName, replicaName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SkuListImpl(inner.getValue(), this.manager())); } else { return null; @@ -188,13 +176,10 @@ public void restart(String resourceGroupName, String resourceName, Context conte } public Response listSkusWithResponse(String resourceGroupName, String resourceName, Context context) { - Response inner = - this.serviceClient().listSkusWithResponse(resourceGroupName, resourceName, context); + Response inner + = this.serviceClient().listSkusWithResponse(resourceGroupName, resourceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SkuListImpl(inner.getValue(), this.manager())); } else { return null; @@ -211,77 +196,57 @@ public SkuList listSkus(String resourceGroupName, String resourceName) { } public SignalRResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, resourceName, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } this.delete(resourceGroupName, resourceName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + 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))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String resourceName = Utils.getValueFromIdByName(id, "signalR"); + String resourceName = ResourceManagerUtils.getValueFromIdByName(id, "signalR"); if (resourceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'signalR'.", id))); } this.delete(resourceGroupName, resourceName, context); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/UsagesClientImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/UsagesClientImpl.java index c47868877bae7..403bb67891a2a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/UsagesClientImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/UsagesClientImpl.java @@ -30,17 +30,23 @@ import com.azure.resourcemanager.signalr.models.SignalRUsageList; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in UsagesClient. */ +/** + * An instance of this class provides access to all the operations defined in UsagesClient. + */ public final class UsagesClientImpl implements UsagesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final UsagesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SignalRManagementClientImpl client; /** * Initializes an instance of UsagesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ UsagesClientImpl(SignalRManagementClientImpl client) { @@ -55,138 +61,96 @@ public final class UsagesClientImpl implements UsagesClient { @Host("{$host}") @ServiceInterface(name = "SignalRManagementCli") public interface UsagesService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @PathParam("location") String location, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @PathParam("location") String location, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object that includes an array of the resource usages and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of the resource usages and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - location, - 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)) + .withContext(context -> service.list(this.client.getEndpoint(), location, 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())); } /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @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 object that includes an array of the resource usages and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of the resource usages and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String location, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - location, - 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)); + .list(this.client.getEndpoint(), location, 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)); } /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of the resource usages and a possible link for next set as paginated - * response with {@link PagedFlux}. + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String location) { @@ -195,30 +159,30 @@ private PagedFlux listAsync(String location) { /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @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 object that includes an array of the resource usages and a possible link for next set as paginated - * response with {@link PagedFlux}. + * response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String location, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(location, context), nextLink -> listNextSinglePageAsync(nextLink, context)); + return new PagedFlux<>(() -> listSinglePageAsync(location, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of the resource usages and a possible link for next set as paginated - * response with {@link PagedIterable}. + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String location) { @@ -227,14 +191,14 @@ public PagedIterable list(String location) { /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @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 object that includes an array of the resource usages and a possible link for next set as paginated - * response with {@link PagedIterable}. + * response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String location, Context context) { @@ -243,14 +207,15 @@ public PagedIterable list(String location, Context context) { /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object that includes an array of the resource usages and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of the resource usages and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -258,37 +223,28 @@ private Mono> listNextSinglePageAsync(String ne 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.")); + 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.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(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 - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return object that includes an array of the resource usages and a possible link for next set along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return object that includes an array of the resource usages and a possible link for next set along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -296,23 +252,13 @@ private Mono> listNextSinglePageAsync(String ne 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.")); + 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 - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(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/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/UsagesImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/UsagesImpl.java index f338e884d1d02..92cb5a2dcdbe6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/UsagesImpl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/UsagesImpl.java @@ -26,12 +26,12 @@ public UsagesImpl(UsagesClient innerClient, com.azure.resourcemanager.signalr.Si public PagedIterable list(String location) { PagedIterable inner = this.serviceClient().list(location); - return Utils.mapPage(inner, inner1 -> new SignalRUsageImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SignalRUsageImpl(inner1, this.manager())); } public PagedIterable list(String location, Context context) { PagedIterable inner = this.serviceClient().list(location, context); - return Utils.mapPage(inner, inner1 -> new SignalRUsageImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SignalRUsageImpl(inner1, this.manager())); } private UsagesClient serviceClient() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/package-info.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/package-info.java index 886dfff084241..a33967710efe1 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/package-info.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the implementations for SignalRManagementClient. REST API for Azure SignalR Service. */ +/** + * Package containing the implementations for SignalRManagementClient. + * REST API for Azure SignalR Service. + */ package com.azure.resourcemanager.signalr.implementation; diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/AclAction.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/AclAction.java index 01d2c4e8d604a..37c6ff6c40dbb 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/AclAction.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/AclAction.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Azure Networking ACL Action. */ +/** + * Azure Networking ACL Action. + */ public final class AclAction extends ExpandableStringEnum { - /** Static value Allow for AclAction. */ + /** + * Static value Allow for AclAction. + */ public static final AclAction ALLOW = fromString("Allow"); - /** Static value Deny for AclAction. */ + /** + * Static value Deny for AclAction. + */ public static final AclAction DENY = fromString("Deny"); /** * Creates a new instance of AclAction value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public AclAction() { /** * Creates or finds a AclAction from its string representation. - * + * * @param name a name to look for. * @return the corresponding AclAction. */ @@ -38,7 +44,7 @@ public static AclAction fromString(String name) { /** * Gets known AclAction values. - * + * * @return known AclAction values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomCertificate.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomCertificate.java index 92c2241273ab8..d216f2a703ce8 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomCertificate.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomCertificate.java @@ -8,98 +8,104 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.signalr.fluent.models.CustomCertificateInner; -/** An immutable client-side representation of CustomCertificate. */ +/** + * An immutable client-side representation of CustomCertificate. + */ public interface CustomCertificate { /** * 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 systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** * Gets the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate. - * + * * @return the keyVaultBaseUri value. */ String keyVaultBaseUri(); /** * Gets the keyVaultSecretName property: Certificate secret name. - * + * * @return the keyVaultSecretName value. */ String keyVaultSecretName(); /** * Gets the keyVaultSecretVersion property: Certificate secret version. - * + * * @return the keyVaultSecretVersion value. */ String keyVaultSecretVersion(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.CustomCertificateInner object. - * + * * @return the inner object. */ CustomCertificateInner innerModel(); - /** The entirety of the CustomCertificate definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithKeyVaultBaseUri, - DefinitionStages.WithKeyVaultSecretName, - DefinitionStages.WithCreate { + /** + * The entirety of the CustomCertificate definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, + DefinitionStages.WithKeyVaultBaseUri, DefinitionStages.WithKeyVaultSecretName, DefinitionStages.WithCreate { } - /** The CustomCertificate definition stages. */ + /** + * The CustomCertificate definition stages. + */ interface DefinitionStages { - /** The first stage of the CustomCertificate definition. */ + /** + * The first stage of the CustomCertificate definition. + */ interface Blank extends WithParentResource { } - /** The stage of the CustomCertificate definition allowing to specify parent resource. */ + /** + * The stage of the CustomCertificate definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, resourceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @return the next definition stage. @@ -107,22 +113,26 @@ interface WithParentResource { WithKeyVaultBaseUri withExistingSignalR(String resourceGroupName, String resourceName); } - /** The stage of the CustomCertificate definition allowing to specify keyVaultBaseUri. */ + /** + * The stage of the CustomCertificate definition allowing to specify keyVaultBaseUri. + */ interface WithKeyVaultBaseUri { /** * Specifies the keyVaultBaseUri property: Base uri of the KeyVault that stores certificate.. - * + * * @param keyVaultBaseUri Base uri of the KeyVault that stores certificate. * @return the next definition stage. */ WithKeyVaultSecretName withKeyVaultBaseUri(String keyVaultBaseUri); } - /** The stage of the CustomCertificate definition allowing to specify keyVaultSecretName. */ + /** + * The stage of the CustomCertificate definition allowing to specify keyVaultSecretName. + */ interface WithKeyVaultSecretName { /** * Specifies the keyVaultSecretName property: Certificate secret name.. - * + * * @param keyVaultSecretName Certificate secret name. * @return the next definition stage. */ @@ -136,25 +146,27 @@ interface WithKeyVaultSecretName { interface WithCreate extends DefinitionStages.WithKeyVaultSecretVersion { /** * Executes the create request. - * + * * @return the created resource. */ CustomCertificate create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ CustomCertificate create(Context context); } - /** The stage of the CustomCertificate definition allowing to specify keyVaultSecretVersion. */ + /** + * The stage of the CustomCertificate definition allowing to specify keyVaultSecretVersion. + */ interface WithKeyVaultSecretVersion { /** * Specifies the keyVaultSecretVersion property: Certificate secret version.. - * + * * @param keyVaultSecretVersion Certificate secret version. * @return the next definition stage. */ @@ -164,43 +176,47 @@ interface WithKeyVaultSecretVersion { /** * Begins update for the CustomCertificate resource. - * + * * @return the stage of resource update. */ CustomCertificate.Update update(); - /** The template for CustomCertificate update. */ + /** + * The template for CustomCertificate update. + */ interface Update { /** * Executes the update request. - * + * * @return the updated resource. */ CustomCertificate apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ CustomCertificate apply(Context context); } - /** The CustomCertificate update stages. */ + /** + * The CustomCertificate update stages. + */ interface UpdateStages { } /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ CustomCertificate refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomCertificateList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomCertificateList.java index 635dfc5fdf292..82c9b7bf9d0ad 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomCertificateList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomCertificateList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Custom certificates list. */ +/** + * Custom certificates list. + */ @Fluent public final class CustomCertificateList { /* @@ -25,13 +27,15 @@ public final class CustomCertificateList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of CustomCertificateList class. */ + /** + * Creates an instance of CustomCertificateList class. + */ public CustomCertificateList() { } /** * Get the value property: List of custom certificates of this resource. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of custom certificates of this resource. - * + * * @param value the value value to set. * @return the CustomCertificateList object itself. */ @@ -50,9 +54,9 @@ public CustomCertificateList withValue(List value) { } /** - * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ public String nextLink() { @@ -60,9 +64,9 @@ public String nextLink() { } /** - * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @param nextLink the nextLink value to set. * @return the CustomCertificateList object itself. */ @@ -73,7 +77,7 @@ public CustomCertificateList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomDomain.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomDomain.java index 23a2192eb9923..eb66da819235a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomDomain.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomDomain.java @@ -8,91 +8,97 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.signalr.fluent.models.CustomDomainInner; -/** An immutable client-side representation of CustomDomain. */ +/** + * An immutable client-side representation of CustomDomain. + */ public interface CustomDomain { /** * 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 systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** * Gets the domainName property: The custom domain name. - * + * * @return the domainName value. */ String domainName(); /** * Gets the customCertificate property: Reference to a resource. - * + * * @return the customCertificate value. */ ResourceReference customCertificate(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.CustomDomainInner object. - * + * * @return the inner object. */ CustomDomainInner innerModel(); - /** The entirety of the CustomDomain definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithDomainName, - DefinitionStages.WithCustomCertificate, - DefinitionStages.WithCreate { + /** + * The entirety of the CustomDomain definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, + DefinitionStages.WithDomainName, DefinitionStages.WithCustomCertificate, DefinitionStages.WithCreate { } - /** The CustomDomain definition stages. */ + /** + * The CustomDomain definition stages. + */ interface DefinitionStages { - /** The first stage of the CustomDomain definition. */ + /** + * The first stage of the CustomDomain definition. + */ interface Blank extends WithParentResource { } - /** The stage of the CustomDomain definition allowing to specify parent resource. */ + /** + * The stage of the CustomDomain definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, resourceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @return the next definition stage. @@ -100,22 +106,26 @@ interface WithParentResource { WithDomainName withExistingSignalR(String resourceGroupName, String resourceName); } - /** The stage of the CustomDomain definition allowing to specify domainName. */ + /** + * The stage of the CustomDomain definition allowing to specify domainName. + */ interface WithDomainName { /** * Specifies the domainName property: The custom domain name.. - * + * * @param domainName The custom domain name. * @return the next definition stage. */ WithCustomCertificate withDomainName(String domainName); } - /** The stage of the CustomDomain definition allowing to specify customCertificate. */ + /** + * The stage of the CustomDomain definition allowing to specify customCertificate. + */ interface WithCustomCertificate { /** * Specifies the customCertificate property: Reference to a resource.. - * + * * @param customCertificate Reference to a resource. * @return the next definition stage. */ @@ -129,14 +139,14 @@ interface WithCustomCertificate { interface WithCreate { /** * Executes the create request. - * + * * @return the created resource. */ CustomDomain create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ @@ -146,47 +156,55 @@ interface WithCreate { /** * Begins update for the CustomDomain resource. - * + * * @return the stage of resource update. */ CustomDomain.Update update(); - /** The template for CustomDomain update. */ + /** + * The template for CustomDomain update. + */ interface Update extends UpdateStages.WithDomainName, UpdateStages.WithCustomCertificate { /** * Executes the update request. - * + * * @return the updated resource. */ CustomDomain apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ CustomDomain apply(Context context); } - /** The CustomDomain update stages. */ + /** + * The CustomDomain update stages. + */ interface UpdateStages { - /** The stage of the CustomDomain update allowing to specify domainName. */ + /** + * The stage of the CustomDomain update allowing to specify domainName. + */ interface WithDomainName { /** * Specifies the domainName property: The custom domain name.. - * + * * @param domainName The custom domain name. * @return the next definition stage. */ Update withDomainName(String domainName); } - /** The stage of the CustomDomain update allowing to specify customCertificate. */ + /** + * The stage of the CustomDomain update allowing to specify customCertificate. + */ interface WithCustomCertificate { /** * Specifies the customCertificate property: Reference to a resource.. - * + * * @param customCertificate Reference to a resource. * @return the next definition stage. */ @@ -196,14 +214,14 @@ interface WithCustomCertificate { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ CustomDomain refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomDomainList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomDomainList.java index ce1278631778e..21c0dec5ec193 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomDomainList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/CustomDomainList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Custom domains list. */ +/** + * Custom domains list. + */ @Fluent public final class CustomDomainList { /* @@ -25,13 +27,15 @@ public final class CustomDomainList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of CustomDomainList class. */ + /** + * Creates an instance of CustomDomainList class. + */ public CustomDomainList() { } /** * Get the value property: List of custom domains that bind to this resource. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of custom domains that bind to this resource. - * + * * @param value the value value to set. * @return the CustomDomainList object itself. */ @@ -50,9 +54,9 @@ public CustomDomainList withValue(List value) { } /** - * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ public String nextLink() { @@ -60,9 +64,9 @@ public String nextLink() { } /** - * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @param nextLink the nextLink value to set. * @return the CustomDomainList object itself. */ @@ -73,7 +77,7 @@ public CustomDomainList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Dimension.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Dimension.java index 09f575132a581..298fe04e2504e 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Dimension.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Dimension.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Specifications of the Dimension of metrics. */ +/** + * Specifications of the Dimension of metrics. + */ @Fluent public final class Dimension { /* @@ -34,13 +36,15 @@ public final class Dimension { @JsonProperty(value = "toBeExportedForShoebox") private Boolean toBeExportedForShoebox; - /** Creates an instance of Dimension class. */ + /** + * Creates an instance of Dimension class. + */ public Dimension() { } /** * Get the name property: The public facing name of the dimension. - * + * * @return the name value. */ public String name() { @@ -49,7 +53,7 @@ public String name() { /** * Set the name property: The public facing name of the dimension. - * + * * @param name the name value to set. * @return the Dimension object itself. */ @@ -60,7 +64,7 @@ public Dimension withName(String name) { /** * Get the displayName property: Localized friendly display name of the dimension. - * + * * @return the displayName value. */ public String displayName() { @@ -69,7 +73,7 @@ public String displayName() { /** * Set the displayName property: Localized friendly display name of the dimension. - * + * * @param displayName the displayName value to set. * @return the Dimension object itself. */ @@ -80,7 +84,7 @@ public Dimension withDisplayName(String displayName) { /** * Get the internalName property: Name of the dimension as it appears in MDM. - * + * * @return the internalName value. */ public String internalName() { @@ -89,7 +93,7 @@ public String internalName() { /** * Set the internalName property: Name of the dimension as it appears in MDM. - * + * * @param internalName the internalName value to set. * @return the Dimension object itself. */ @@ -101,7 +105,7 @@ public Dimension withInternalName(String internalName) { /** * Get the toBeExportedForShoebox property: A Boolean flag indicating whether this dimension should be included for * the shoebox export scenario. - * + * * @return the toBeExportedForShoebox value. */ public Boolean toBeExportedForShoebox() { @@ -111,7 +115,7 @@ public Boolean toBeExportedForShoebox() { /** * Set the toBeExportedForShoebox property: A Boolean flag indicating whether this dimension should be included for * the shoebox export scenario. - * + * * @param toBeExportedForShoebox the toBeExportedForShoebox value to set. * @return the Dimension object itself. */ @@ -122,7 +126,7 @@ public Dimension withToBeExportedForShoebox(Boolean toBeExportedForShoebox) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/FeatureFlags.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/FeatureFlags.java index 18d5a04d10082..67457d7adcc05 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/FeatureFlags.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/FeatureFlags.java @@ -9,32 +9,41 @@ import java.util.Collection; /** - * FeatureFlags is the supported features of Azure SignalR service. - ServiceMode: Flag for backend server for SignalR - * service. Values allowed: "Default": have your own backend server; "Serverless": your application doesn't have a - * backend server; "Classic": for backward compatibility. Support both Default and Serverless mode but not recommended; - * "PredefinedOnly": for future use. - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log - * category respectively. - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category - * respectively. - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will - * give you live traces in real time, it will be helpful when you developing your own Azure SignalR based web - * application or self-troubleshooting some issues. Please note that live traces are counted as outbound messages that - * will be charged. Values allowed: "true"/"false", to enable/disable live trace feature. + * FeatureFlags is the supported features of Azure SignalR service. + * - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have your own backend server; + * "Serverless": your application doesn't have a backend server; "Classic": for backward compatibility. Support both + * Default and Serverless mode but not recommended; "PredefinedOnly": for future use. + * - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log category respectively. + * - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category respectively. + * - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will give you live + * traces in real time, it will be helpful when you developing your own Azure SignalR based web application or + * self-troubleshooting some issues. Please note that live traces are counted as outbound messages that will be charged. + * Values allowed: "true"/"false", to enable/disable live trace feature. */ public final class FeatureFlags extends ExpandableStringEnum { - /** Static value ServiceMode for FeatureFlags. */ + /** + * Static value ServiceMode for FeatureFlags. + */ public static final FeatureFlags SERVICE_MODE = fromString("ServiceMode"); - /** Static value EnableConnectivityLogs for FeatureFlags. */ + /** + * Static value EnableConnectivityLogs for FeatureFlags. + */ public static final FeatureFlags ENABLE_CONNECTIVITY_LOGS = fromString("EnableConnectivityLogs"); - /** Static value EnableMessagingLogs for FeatureFlags. */ + /** + * Static value EnableMessagingLogs for FeatureFlags. + */ public static final FeatureFlags ENABLE_MESSAGING_LOGS = fromString("EnableMessagingLogs"); - /** Static value EnableLiveTrace for FeatureFlags. */ + /** + * Static value EnableLiveTrace for FeatureFlags. + */ public static final FeatureFlags ENABLE_LIVE_TRACE = fromString("EnableLiveTrace"); /** * Creates a new instance of FeatureFlags value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -43,7 +52,7 @@ public FeatureFlags() { /** * Creates or finds a FeatureFlags from its string representation. - * + * * @param name a name to look for. * @return the corresponding FeatureFlags. */ @@ -54,7 +63,7 @@ public static FeatureFlags fromString(String name) { /** * Gets known FeatureFlags values. - * + * * @return known FeatureFlags values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/IpRule.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/IpRule.java index 6006d5692fee4..da9072f595043 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/IpRule.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/IpRule.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** An IP rule. */ +/** + * An IP rule. + */ @Fluent public final class IpRule { /* @@ -22,13 +24,15 @@ public final class IpRule { @JsonProperty(value = "action") private AclAction action; - /** Creates an instance of IpRule class. */ + /** + * Creates an instance of IpRule class. + */ public IpRule() { } /** * Get the value property: An IP or CIDR or ServiceTag. - * + * * @return the value value. */ public String value() { @@ -37,7 +41,7 @@ public String value() { /** * Set the value property: An IP or CIDR or ServiceTag. - * + * * @param value the value value to set. * @return the IpRule object itself. */ @@ -48,7 +52,7 @@ public IpRule withValue(String value) { /** * Get the action property: Azure Networking ACL Action. - * + * * @return the action value. */ public AclAction action() { @@ -57,7 +61,7 @@ public AclAction action() { /** * Set the action property: Azure Networking ACL Action. - * + * * @param action the action value to set. * @return the IpRule object itself. */ @@ -68,7 +72,7 @@ public IpRule withAction(AclAction action) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/KeyType.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/KeyType.java index cc8aef9ed59b3..6a256b38fe01e 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/KeyType.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/KeyType.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of access key. */ +/** + * The type of access key. + */ public final class KeyType extends ExpandableStringEnum { - /** Static value Primary for KeyType. */ + /** + * Static value Primary for KeyType. + */ public static final KeyType PRIMARY = fromString("Primary"); - /** Static value Secondary for KeyType. */ + /** + * Static value Secondary for KeyType. + */ public static final KeyType SECONDARY = fromString("Secondary"); - /** Static value Salt for KeyType. */ + /** + * Static value Salt for KeyType. + */ public static final KeyType SALT = fromString("Salt"); /** * Creates a new instance of KeyType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public KeyType() { /** * Creates or finds a KeyType from its string representation. - * + * * @param name a name to look for. * @return the corresponding KeyType. */ @@ -41,7 +49,7 @@ public static KeyType fromString(String name) { /** * Gets known KeyType values. - * + * * @return known KeyType values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LiveTraceCategory.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LiveTraceCategory.java index c5d7c28c1a1e5..b4165895266c0 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LiveTraceCategory.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LiveTraceCategory.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Live trace category configuration of a Microsoft.SignalRService resource. */ +/** + * Live trace category configuration of a Microsoft.SignalRService resource. + */ @Fluent public final class LiveTraceCategory { /* @@ -26,14 +28,17 @@ public final class LiveTraceCategory { @JsonProperty(value = "enabled") private String enabled; - /** Creates an instance of LiveTraceCategory class. */ + /** + * Creates an instance of LiveTraceCategory class. + */ public LiveTraceCategory() { } /** - * Get the name property: Gets or sets the live trace category's name. Available values: ConnectivityLogs, - * MessagingLogs. Case insensitive. - * + * Get the name property: Gets or sets the live trace category's name. + * Available values: ConnectivityLogs, MessagingLogs. + * Case insensitive. + * * @return the name value. */ public String name() { @@ -41,9 +46,10 @@ public String name() { } /** - * Set the name property: Gets or sets the live trace category's name. Available values: ConnectivityLogs, - * MessagingLogs. Case insensitive. - * + * Set the name property: Gets or sets the live trace category's name. + * Available values: ConnectivityLogs, MessagingLogs. + * Case insensitive. + * * @param name the name value to set. * @return the LiveTraceCategory object itself. */ @@ -53,9 +59,10 @@ public LiveTraceCategory withName(String name) { } /** - * Get the enabled property: Indicates whether or the live trace category is enabled. Available values: true, false. + * Get the enabled property: Indicates whether or the live trace category is enabled. + * Available values: true, false. * Case insensitive. - * + * * @return the enabled value. */ public String enabled() { @@ -63,9 +70,10 @@ public String enabled() { } /** - * Set the enabled property: Indicates whether or the live trace category is enabled. Available values: true, false. + * Set the enabled property: Indicates whether or the live trace category is enabled. + * Available values: true, false. * Case insensitive. - * + * * @param enabled the enabled value to set. * @return the LiveTraceCategory object itself. */ @@ -76,7 +84,7 @@ public LiveTraceCategory withEnabled(String enabled) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LiveTraceConfiguration.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LiveTraceConfiguration.java index 2fc14a9d9c3ca..19e181da0f483 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LiveTraceConfiguration.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LiveTraceConfiguration.java @@ -8,14 +8,15 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Live trace configuration of a Microsoft.SignalRService resource. */ +/** + * Live trace configuration of a Microsoft.SignalRService resource. + */ @Fluent public final class LiveTraceConfiguration { /* * Indicates whether or not enable live trace. * When it's set to true, live trace client can connect to the service. - * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter - * what you configure in "categories". + * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories". * Available values: true, false. * Case insensitive. */ @@ -28,15 +29,20 @@ public final class LiveTraceConfiguration { @JsonProperty(value = "categories") private List categories; - /** Creates an instance of LiveTraceConfiguration class. */ + /** + * Creates an instance of LiveTraceConfiguration class. + */ public LiveTraceConfiguration() { } /** - * Get the enabled property: Indicates whether or not enable live trace. When it's set to true, live trace client - * can connect to the service. Otherwise, live trace client can't connect to the service, so that you are unable to - * receive any log, no matter what you configure in "categories". Available values: true, false. Case insensitive. - * + * Get the enabled property: Indicates whether or not enable live trace. + * When it's set to true, live trace client can connect to the service. + * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter + * what you configure in "categories". + * Available values: true, false. + * Case insensitive. + * * @return the enabled value. */ public String enabled() { @@ -44,10 +50,13 @@ public String enabled() { } /** - * Set the enabled property: Indicates whether or not enable live trace. When it's set to true, live trace client - * can connect to the service. Otherwise, live trace client can't connect to the service, so that you are unable to - * receive any log, no matter what you configure in "categories". Available values: true, false. Case insensitive. - * + * Set the enabled property: Indicates whether or not enable live trace. + * When it's set to true, live trace client can connect to the service. + * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter + * what you configure in "categories". + * Available values: true, false. + * Case insensitive. + * * @param enabled the enabled value to set. * @return the LiveTraceConfiguration object itself. */ @@ -58,7 +67,7 @@ public LiveTraceConfiguration withEnabled(String enabled) { /** * Get the categories property: Gets or sets the list of category configurations. - * + * * @return the categories value. */ public List categories() { @@ -67,7 +76,7 @@ public List categories() { /** * Set the categories property: Gets or sets the list of category configurations. - * + * * @param categories the categories value to set. * @return the LiveTraceConfiguration object itself. */ @@ -78,7 +87,7 @@ public LiveTraceConfiguration withCategories(List categories) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LogSpecification.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LogSpecification.java index 77ab17e9eaa95..ce4e358cdaeca 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LogSpecification.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/LogSpecification.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Specifications of the Logs for Azure Monitoring. */ +/** + * Specifications of the Logs for Azure Monitoring. + */ @Fluent public final class LogSpecification { /* @@ -22,13 +24,15 @@ public final class LogSpecification { @JsonProperty(value = "displayName") private String displayName; - /** Creates an instance of LogSpecification class. */ + /** + * Creates an instance of LogSpecification class. + */ public LogSpecification() { } /** * Get the name property: Name of the log. - * + * * @return the name value. */ public String name() { @@ -37,7 +41,7 @@ public String name() { /** * Set the name property: Name of the log. - * + * * @param name the name value to set. * @return the LogSpecification object itself. */ @@ -48,7 +52,7 @@ public LogSpecification withName(String name) { /** * Get the displayName property: Localized friendly display name of the log. - * + * * @return the displayName value. */ public String displayName() { @@ -57,7 +61,7 @@ public String displayName() { /** * Set the displayName property: Localized friendly display name of the log. - * + * * @param displayName the displayName value to set. * @return the LogSpecification object itself. */ @@ -68,7 +72,7 @@ public LogSpecification withDisplayName(String displayName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentity.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentity.java index 1ca1226202192..0ed3b980a1ef0 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentity.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentity.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** A class represent managed identities used for request and response. */ +/** + * A class represent managed identities used for request and response. + */ @Fluent public final class ManagedIdentity { /* @@ -39,13 +41,15 @@ public final class ManagedIdentity { @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) private String tenantId; - /** Creates an instance of ManagedIdentity class. */ + /** + * Creates an instance of ManagedIdentity class. + */ public ManagedIdentity() { } /** * Get the type property: Represents the identity type: systemAssigned, userAssigned, None. - * + * * @return the type value. */ public ManagedIdentityType type() { @@ -54,7 +58,7 @@ public ManagedIdentityType type() { /** * Set the type property: Represents the identity type: systemAssigned, userAssigned, None. - * + * * @param type the type value to set. * @return the ManagedIdentity object itself. */ @@ -65,7 +69,7 @@ public ManagedIdentity withType(ManagedIdentityType type) { /** * Get the userAssignedIdentities property: Get or set the user assigned identities. - * + * * @return the userAssignedIdentities value. */ public Map userAssignedIdentities() { @@ -74,19 +78,20 @@ public Map userAssignedIdentities() { /** * Set the userAssignedIdentities property: Get or set the user assigned identities. - * + * * @param userAssignedIdentities the userAssignedIdentities value to set. * @return the ManagedIdentity object itself. */ - public ManagedIdentity withUserAssignedIdentities( - Map userAssignedIdentities) { + public ManagedIdentity + withUserAssignedIdentities(Map userAssignedIdentities) { this.userAssignedIdentities = userAssignedIdentities; return this; } /** - * Get the principalId property: Get the principal id for the system assigned identity. Only be used in response. - * + * Get the principalId property: Get the principal id for the system assigned identity. + * Only be used in response. + * * @return the principalId value. */ public String principalId() { @@ -94,8 +99,9 @@ public String principalId() { } /** - * Get the tenantId property: Get the tenant id for the system assigned identity. Only be used in response. - * + * Get the tenantId property: Get the tenant id for the system assigned identity. + * Only be used in response. + * * @return the tenantId value. */ public String tenantId() { @@ -104,19 +110,16 @@ public String tenantId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (userAssignedIdentities() != null) { - userAssignedIdentities() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); + userAssignedIdentities().values().forEach(e -> { + if (e != null) { + e.validate(); + } + }); } } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentitySettings.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentitySettings.java index 7227b657dee49..c1cd20bfb54e8 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentitySettings.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentitySettings.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Managed identity settings for upstream. */ +/** + * Managed identity settings for upstream. + */ @Fluent public final class ManagedIdentitySettings { /* @@ -17,14 +19,16 @@ public final class ManagedIdentitySettings { @JsonProperty(value = "resource") private String resource; - /** Creates an instance of ManagedIdentitySettings class. */ + /** + * Creates an instance of ManagedIdentitySettings class. + */ public ManagedIdentitySettings() { } /** - * Get the resource property: The Resource indicating the App ID URI of the target resource. It also appears in the - * aud (audience) claim of the issued token. - * + * Get the resource property: The Resource indicating the App ID URI of the target resource. + * It also appears in the aud (audience) claim of the issued token. + * * @return the resource value. */ public String resource() { @@ -32,9 +36,9 @@ public String resource() { } /** - * Set the resource property: The Resource indicating the App ID URI of the target resource. It also appears in the - * aud (audience) claim of the issued token. - * + * Set the resource property: The Resource indicating the App ID URI of the target resource. + * It also appears in the aud (audience) claim of the issued token. + * * @param resource the resource value to set. * @return the ManagedIdentitySettings object itself. */ @@ -45,7 +49,7 @@ public ManagedIdentitySettings withResource(String resource) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentityType.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentityType.java index 7e028e163e9e2..256d8f08ca9e7 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentityType.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ManagedIdentityType.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Represents the identity type: systemAssigned, userAssigned, None. */ +/** + * Represents the identity type: systemAssigned, userAssigned, None. + */ public final class ManagedIdentityType extends ExpandableStringEnum { - /** Static value None for ManagedIdentityType. */ + /** + * Static value None for ManagedIdentityType. + */ public static final ManagedIdentityType NONE = fromString("None"); - /** Static value SystemAssigned for ManagedIdentityType. */ + /** + * Static value SystemAssigned for ManagedIdentityType. + */ public static final ManagedIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); - /** Static value UserAssigned for ManagedIdentityType. */ + /** + * Static value UserAssigned for ManagedIdentityType. + */ public static final ManagedIdentityType USER_ASSIGNED = fromString("UserAssigned"); /** * Creates a new instance of ManagedIdentityType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public ManagedIdentityType() { /** * Creates or finds a ManagedIdentityType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ManagedIdentityType. */ @@ -41,7 +49,7 @@ public static ManagedIdentityType fromString(String name) { /** * Gets known ManagedIdentityType values. - * + * * @return known ManagedIdentityType values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/MetricSpecification.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/MetricSpecification.java index 90994c9e580a3..f1342caa40bfe 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/MetricSpecification.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/MetricSpecification.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Specifications of the Metrics for Azure Monitoring. */ +/** + * Specifications of the Metrics for Azure Monitoring. + */ @Fluent public final class MetricSpecification { /* @@ -42,8 +44,8 @@ public final class MetricSpecification { private String aggregationType; /* - * Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. - * Ex. a metric that returns the number of times a particular error code was emitted. The error code may not appear + * Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. + * Ex. a metric that returns the number of times a particular error code was emitted. The error code may not appear * often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods where nothing was emitted. */ @JsonProperty(value = "fillGapWithZero") @@ -61,13 +63,15 @@ public final class MetricSpecification { @JsonProperty(value = "dimensions") private List dimensions; - /** Creates an instance of MetricSpecification class. */ + /** + * Creates an instance of MetricSpecification class. + */ public MetricSpecification() { } /** * Get the name property: Name of the metric. - * + * * @return the name value. */ public String name() { @@ -76,7 +80,7 @@ public String name() { /** * Set the name property: Name of the metric. - * + * * @param name the name value to set. * @return the MetricSpecification object itself. */ @@ -87,7 +91,7 @@ public MetricSpecification withName(String name) { /** * Get the displayName property: Localized friendly display name of the metric. - * + * * @return the displayName value. */ public String displayName() { @@ -96,7 +100,7 @@ public String displayName() { /** * Set the displayName property: Localized friendly display name of the metric. - * + * * @param displayName the displayName value to set. * @return the MetricSpecification object itself. */ @@ -107,7 +111,7 @@ public MetricSpecification withDisplayName(String displayName) { /** * Get the displayDescription property: Localized friendly description of the metric. - * + * * @return the displayDescription value. */ public String displayDescription() { @@ -116,7 +120,7 @@ public String displayDescription() { /** * Set the displayDescription property: Localized friendly description of the metric. - * + * * @param displayDescription the displayDescription value to set. * @return the MetricSpecification object itself. */ @@ -127,7 +131,7 @@ public MetricSpecification withDisplayDescription(String displayDescription) { /** * Get the unit property: The unit that makes sense for the metric. - * + * * @return the unit value. */ public String unit() { @@ -136,7 +140,7 @@ public String unit() { /** * Set the unit property: The unit that makes sense for the metric. - * + * * @param unit the unit value to set. * @return the MetricSpecification object itself. */ @@ -148,7 +152,7 @@ public MetricSpecification withUnit(String unit) { /** * Get the aggregationType property: Only provide one value for this field. Valid values: Average, Minimum, Maximum, * Total, Count. - * + * * @return the aggregationType value. */ public String aggregationType() { @@ -158,7 +162,7 @@ public String aggregationType() { /** * Set the aggregationType property: Only provide one value for this field. Valid values: Average, Minimum, Maximum, * Total, Count. - * + * * @param aggregationType the aggregationType value to set. * @return the MetricSpecification object itself. */ @@ -169,10 +173,10 @@ public MetricSpecification withAggregationType(String aggregationType) { /** * Get the fillGapWithZero property: Optional. If set to true, then zero will be returned for time duration where no - * metric is emitted/published. Ex. a metric that returns the number of times a particular error code was emitted. - * The error code may not appear often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods - * where nothing was emitted. - * + * metric is emitted/published. + * Ex. a metric that returns the number of times a particular error code was emitted. The error code may not appear + * often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods where nothing was emitted. + * * @return the fillGapWithZero value. */ public String fillGapWithZero() { @@ -181,10 +185,10 @@ public String fillGapWithZero() { /** * Set the fillGapWithZero property: Optional. If set to true, then zero will be returned for time duration where no - * metric is emitted/published. Ex. a metric that returns the number of times a particular error code was emitted. - * The error code may not appear often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods - * where nothing was emitted. - * + * metric is emitted/published. + * Ex. a metric that returns the number of times a particular error code was emitted. The error code may not appear + * often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods where nothing was emitted. + * * @param fillGapWithZero the fillGapWithZero value to set. * @return the MetricSpecification object itself. */ @@ -196,7 +200,7 @@ public MetricSpecification withFillGapWithZero(String fillGapWithZero) { /** * Get the category property: The name of the metric category that the metric belongs to. A metric can only belong * to a single category. - * + * * @return the category value. */ public String category() { @@ -206,7 +210,7 @@ public String category() { /** * Set the category property: The name of the metric category that the metric belongs to. A metric can only belong * to a single category. - * + * * @param category the category value to set. * @return the MetricSpecification object itself. */ @@ -217,7 +221,7 @@ public MetricSpecification withCategory(String category) { /** * Get the dimensions property: The dimensions of the metrics. - * + * * @return the dimensions value. */ public List dimensions() { @@ -226,7 +230,7 @@ public List dimensions() { /** * Set the dimensions property: The dimensions of the metrics. - * + * * @param dimensions the dimensions value to set. * @return the MetricSpecification object itself. */ @@ -237,7 +241,7 @@ public MetricSpecification withDimensions(List dimensions) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NameAvailability.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NameAvailability.java index ef5c3f0637729..97c0133e98a5d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NameAvailability.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NameAvailability.java @@ -6,32 +6,34 @@ import com.azure.resourcemanager.signalr.fluent.models.NameAvailabilityInner; -/** An immutable client-side representation of NameAvailability. */ +/** + * An immutable client-side representation of NameAvailability. + */ public interface NameAvailability { /** * Gets the nameAvailable property: Indicates whether the name is available or not. - * + * * @return the nameAvailable value. */ Boolean nameAvailable(); /** * Gets the reason property: The reason of the availability. Required if name is not available. - * + * * @return the reason value. */ String reason(); /** * Gets the message property: The message of the operation. - * + * * @return the message value. */ String message(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.NameAvailabilityInner object. - * + * * @return the inner object. */ NameAvailabilityInner innerModel(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NameAvailabilityParameters.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NameAvailabilityParameters.java index e16e6c6738213..88e78de3273ae 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NameAvailabilityParameters.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NameAvailabilityParameters.java @@ -8,12 +8,13 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Data POST-ed to the nameAvailability action. */ +/** + * Data POST-ed to the nameAvailability action. + */ @Fluent public final class NameAvailabilityParameters { /* - * The resource type. Can be "Microsoft.SignalRService/SignalR", "Microsoft.SignalRService/WebPubSub", - * "Microsoft.SignalRService/SignalR/replicas" or "Microsoft.SignalRService/WebPubSub/replicas" + * The resource type. Can be "Microsoft.SignalRService/SignalR", "Microsoft.SignalRService/WebPubSub", "Microsoft.SignalRService/SignalR/replicas" or "Microsoft.SignalRService/WebPubSub/replicas" */ @JsonProperty(value = "type", required = true) private String type; @@ -24,7 +25,9 @@ public final class NameAvailabilityParameters { @JsonProperty(value = "name", required = true) private String name; - /** Creates an instance of NameAvailabilityParameters class. */ + /** + * Creates an instance of NameAvailabilityParameters class. + */ public NameAvailabilityParameters() { } @@ -32,7 +35,7 @@ public NameAvailabilityParameters() { * Get the type property: The resource type. Can be "Microsoft.SignalRService/SignalR", * "Microsoft.SignalRService/WebPubSub", "Microsoft.SignalRService/SignalR/replicas" or * "Microsoft.SignalRService/WebPubSub/replicas". - * + * * @return the type value. */ public String type() { @@ -43,7 +46,7 @@ public String type() { * Set the type property: The resource type. Can be "Microsoft.SignalRService/SignalR", * "Microsoft.SignalRService/WebPubSub", "Microsoft.SignalRService/SignalR/replicas" or * "Microsoft.SignalRService/WebPubSub/replicas". - * + * * @param type the type value to set. * @return the NameAvailabilityParameters object itself. */ @@ -54,7 +57,7 @@ public NameAvailabilityParameters withType(String type) { /** * Get the name property: The resource name to validate. e.g."my-resource-name". - * + * * @return the name value. */ public String name() { @@ -63,7 +66,7 @@ public String name() { /** * Set the name property: The resource name to validate. e.g."my-resource-name". - * + * * @param name the name value to set. * @return the NameAvailabilityParameters object itself. */ @@ -74,18 +77,18 @@ public NameAvailabilityParameters withName(String name) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (type() == null) { - throw LOGGER - .logExceptionAsError( + throw LOGGER.atError() + .log( new IllegalArgumentException("Missing required property type in model NameAvailabilityParameters")); } if (name() == null) { - throw LOGGER - .logExceptionAsError( + throw LOGGER.atError() + .log( new IllegalArgumentException("Missing required property name in model NameAvailabilityParameters")); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NetworkAcl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NetworkAcl.java index 954f023f6b2e5..043a2ffb9047c 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NetworkAcl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/NetworkAcl.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Network ACL. */ +/** + * Network ACL. + */ @Fluent public class NetworkAcl { /* @@ -23,14 +25,16 @@ public class NetworkAcl { @JsonProperty(value = "deny") private List deny; - /** Creates an instance of NetworkAcl class. */ + /** + * Creates an instance of NetworkAcl class. + */ public NetworkAcl() { } /** * Get the allow property: Allowed request types. The value can be one or more of: ClientConnection, * ServerConnection, RESTAPI. - * + * * @return the allow value. */ public List allow() { @@ -40,7 +44,7 @@ public List allow() { /** * Set the allow property: Allowed request types. The value can be one or more of: ClientConnection, * ServerConnection, RESTAPI. - * + * * @param allow the allow value to set. * @return the NetworkAcl object itself. */ @@ -52,7 +56,7 @@ public NetworkAcl withAllow(List allow) { /** * Get the deny property: Denied request types. The value can be one or more of: ClientConnection, ServerConnection, * RESTAPI. - * + * * @return the deny value. */ public List deny() { @@ -62,7 +66,7 @@ public List deny() { /** * Set the deny property: Denied request types. The value can be one or more of: ClientConnection, ServerConnection, * RESTAPI. - * + * * @param deny the deny value to set. * @return the NetworkAcl object itself. */ @@ -73,7 +77,7 @@ public NetworkAcl withDeny(List deny) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Operation.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Operation.java index 674598c0f631b..1ec485a2fc065 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Operation.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Operation.java @@ -6,25 +6,27 @@ import com.azure.resourcemanager.signalr.fluent.models.OperationInner; -/** An immutable client-side representation of Operation. */ +/** + * An immutable client-side representation of Operation. + */ public interface Operation { /** * Gets the name property: Name of the operation with format: {provider}/{resource}/{operation}. - * + * * @return the name value. */ String name(); /** * Gets the isDataAction property: If the operation is a data action. (for data plane rbac). - * + * * @return the isDataAction value. */ Boolean isDataAction(); /** * Gets the display property: The object that describes a operation. - * + * * @return the display value. */ OperationDisplay display(); @@ -32,21 +34,21 @@ public interface Operation { /** * Gets the origin property: Optional. The intended executor of the operation; governs the display of the operation * in the RBAC UX and the audit logs UX. - * + * * @return the origin value. */ String origin(); /** * Gets the properties property: Extra Operation properties. - * + * * @return the properties value. */ OperationProperties properties(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.OperationInner object. - * + * * @return the inner object. */ OperationInner innerModel(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationDisplay.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationDisplay.java index a401b58305dee..f5fcc3db0718d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationDisplay.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationDisplay.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The object that describes a operation. */ +/** + * The object that describes a operation. + */ @Fluent public final class OperationDisplay { /* @@ -34,13 +36,15 @@ public final class OperationDisplay { @JsonProperty(value = "description") private String description; - /** Creates an instance of OperationDisplay class. */ + /** + * Creates an instance of OperationDisplay class. + */ public OperationDisplay() { } /** * Get the provider property: Friendly name of the resource provider. - * + * * @return the provider value. */ public String provider() { @@ -49,7 +53,7 @@ public String provider() { /** * Set the provider property: Friendly name of the resource provider. - * + * * @param provider the provider value to set. * @return the OperationDisplay object itself. */ @@ -60,7 +64,7 @@ public OperationDisplay withProvider(String provider) { /** * Get the resource property: Resource type on which the operation is performed. - * + * * @return the resource value. */ public String resource() { @@ -69,7 +73,7 @@ public String resource() { /** * Set the resource property: Resource type on which the operation is performed. - * + * * @param resource the resource value to set. * @return the OperationDisplay object itself. */ @@ -80,7 +84,7 @@ public OperationDisplay withResource(String resource) { /** * Get the operation property: The localized friendly name for the operation. - * + * * @return the operation value. */ public String operation() { @@ -89,7 +93,7 @@ public String operation() { /** * Set the operation property: The localized friendly name for the operation. - * + * * @param operation the operation value to set. * @return the OperationDisplay object itself. */ @@ -100,7 +104,7 @@ public OperationDisplay withOperation(String operation) { /** * Get the description property: The localized friendly description for the operation. - * + * * @return the description value. */ public String description() { @@ -109,7 +113,7 @@ public String description() { /** * Set the description property: The localized friendly description for the operation. - * + * * @param description the description value to set. * @return the OperationDisplay object itself. */ @@ -120,7 +124,7 @@ public OperationDisplay withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationList.java index db6044aed23cb..4b0e252617515 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Result of the request to list REST API operations. It contains a list of operations. */ +/** + * Result of the request to list REST API operations. It contains a list of operations. + */ @Fluent public final class OperationList { /* @@ -25,13 +27,15 @@ public final class OperationList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of OperationList class. */ + /** + * Creates an instance of OperationList class. + */ public OperationList() { } /** * Get the value property: List of operations supported by the resource provider. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of operations supported by the resource provider. - * + * * @param value the value value to set. * @return the OperationList object itself. */ @@ -50,9 +54,9 @@ public OperationList withValue(List value) { } /** - * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ public String nextLink() { @@ -60,9 +64,9 @@ public String nextLink() { } /** - * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @param nextLink the nextLink value to set. * @return the OperationList object itself. */ @@ -73,7 +77,7 @@ public OperationList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationProperties.java index 07406df30f7a4..d4cf8a77f3b0d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/OperationProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Extra Operation properties. */ +/** + * Extra Operation properties. + */ @Fluent public final class OperationProperties { /* @@ -16,13 +18,15 @@ public final class OperationProperties { @JsonProperty(value = "serviceSpecification") private ServiceSpecification serviceSpecification; - /** Creates an instance of OperationProperties class. */ + /** + * Creates an instance of OperationProperties class. + */ public OperationProperties() { } /** * Get the serviceSpecification property: An object that describes a specification. - * + * * @return the serviceSpecification value. */ public ServiceSpecification serviceSpecification() { @@ -31,7 +35,7 @@ public ServiceSpecification serviceSpecification() { /** * Set the serviceSpecification property: An object that describes a specification. - * + * * @param serviceSpecification the serviceSpecification value to set. * @return the OperationProperties object itself. */ @@ -42,7 +46,7 @@ public OperationProperties withServiceSpecification(ServiceSpecification service /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Operations.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Operations.java index 860853c575bc9..623f147ac9b65 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Operations.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Operations.java @@ -7,11 +7,13 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of Operations. */ +/** + * Resource collection API of Operations. + */ public interface Operations { /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. @@ -20,7 +22,7 @@ public interface Operations { /** * Lists all of the available REST API operations of the Microsoft.SignalRService provider. - * + * * @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. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpoint.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpoint.java index 733d02b06c0cf..d9825958d3d44 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpoint.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpoint.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Private endpoint. */ +/** + * Private endpoint. + */ @Fluent public final class PrivateEndpoint { /* @@ -16,13 +18,15 @@ public final class PrivateEndpoint { @JsonProperty(value = "id") private String id; - /** Creates an instance of PrivateEndpoint class. */ + /** + * Creates an instance of PrivateEndpoint class. + */ public PrivateEndpoint() { } /** * Get the id property: Full qualified Id of the private endpoint. - * + * * @return the id value. */ public String id() { @@ -31,7 +35,7 @@ public String id() { /** * Set the id property: Full qualified Id of the private endpoint. - * + * * @param id the id value to set. * @return the PrivateEndpoint object itself. */ @@ -42,7 +46,7 @@ public PrivateEndpoint withId(String id) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointAcl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointAcl.java index cda0fb7e0398f..32692f535e6cb 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointAcl.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointAcl.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** ACL for a private endpoint. */ +/** + * ACL for a private endpoint. + */ @Fluent public final class PrivateEndpointAcl extends NetworkAcl { /* @@ -18,13 +20,15 @@ public final class PrivateEndpointAcl extends NetworkAcl { @JsonProperty(value = "name", required = true) private String name; - /** Creates an instance of PrivateEndpointAcl class. */ + /** + * Creates an instance of PrivateEndpointAcl class. + */ public PrivateEndpointAcl() { } /** * Get the name property: Name of the private endpoint connection. - * + * * @return the name value. */ public String name() { @@ -33,7 +37,7 @@ public String name() { /** * Set the name property: Name of the private endpoint connection. - * + * * @param name the name value to set. * @return the PrivateEndpointAcl object itself. */ @@ -42,14 +46,18 @@ public PrivateEndpointAcl withName(String name) { return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public PrivateEndpointAcl withAllow(List allow) { super.withAllow(allow); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public PrivateEndpointAcl withDeny(List deny) { super.withDeny(deny); @@ -58,16 +66,15 @@ public PrivateEndpointAcl withDeny(List deny) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property name in model PrivateEndpointAcl")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model PrivateEndpointAcl")); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointConnection.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointConnection.java index 3d29dc0c645ef..cb9113f8cb78c 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointConnection.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointConnection.java @@ -8,67 +8,69 @@ import com.azure.resourcemanager.signalr.fluent.models.PrivateEndpointConnectionInner; import java.util.List; -/** An immutable client-side representation of PrivateEndpointConnection. */ +/** + * An immutable client-side representation of PrivateEndpointConnection. + */ public interface PrivateEndpointConnection { /** * 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 systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** * Gets the privateEndpoint property: Private endpoint. - * + * * @return the privateEndpoint value. */ PrivateEndpoint privateEndpoint(); /** * Gets the groupIds property: Group IDs. - * + * * @return the groupIds value. */ List groupIds(); /** * Gets the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @return the privateLinkServiceConnectionState value. */ PrivateLinkServiceConnectionState privateLinkServiceConnectionState(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.PrivateEndpointConnectionInner object. - * + * * @return the inner object. */ PrivateEndpointConnectionInner innerModel(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointConnectionList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointConnectionList.java index 29d571cfe92db..1a66970c15ee9 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointConnectionList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateEndpointConnectionList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of private endpoint connections. */ +/** + * A list of private endpoint connections. + */ @Fluent public final class PrivateEndpointConnectionList { /* @@ -19,19 +21,20 @@ public final class PrivateEndpointConnectionList { private List value; /* - * Request URL that can be used to query next page of private endpoint connections. Returned when the total number - * of requested private endpoint connections exceed maximum page size. + * Request URL that can be used to query next page of private endpoint connections. Returned when the total number of requested private endpoint connections exceed maximum page size. */ @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of PrivateEndpointConnectionList class. */ + /** + * Creates an instance of PrivateEndpointConnectionList class. + */ public PrivateEndpointConnectionList() { } /** * Get the value property: The list of the private endpoint connections. - * + * * @return the value value. */ public List value() { @@ -40,7 +43,7 @@ public List value() { /** * Set the value property: The list of the private endpoint connections. - * + * * @param value the value value to set. * @return the PrivateEndpointConnectionList object itself. */ @@ -52,7 +55,7 @@ public PrivateEndpointConnectionList withValue(List requiredMembers(); /** * Gets the requiredZoneNames property: Required private DNS zone names. - * + * * @return the requiredZoneNames value. */ List requiredZoneNames(); @@ -62,14 +64,14 @@ public interface PrivateLinkResource { /** * Gets the shareablePrivateLinkResourceTypes property: The list of resources that are onboarded to private link * service. - * + * * @return the shareablePrivateLinkResourceTypes value. */ List shareablePrivateLinkResourceTypes(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.PrivateLinkResourceInner object. - * + * * @return the inner object. */ PrivateLinkResourceInner innerModel(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkResourceList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkResourceList.java index a3c0abd8aa74b..4216f2c0a263f 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkResourceList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkResourceList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Contains a list of PrivateLinkResource and a possible link to query more results. */ +/** + * Contains a list of PrivateLinkResource and a possible link to query more results. + */ @Fluent public final class PrivateLinkResourceList { /* @@ -25,13 +27,15 @@ public final class PrivateLinkResourceList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of PrivateLinkResourceList class. */ + /** + * Creates an instance of PrivateLinkResourceList class. + */ public PrivateLinkResourceList() { } /** * Get the value property: List of PrivateLinkResource. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of PrivateLinkResource. - * + * * @param value the value value to set. * @return the PrivateLinkResourceList object itself. */ @@ -50,9 +54,9 @@ public PrivateLinkResourceList withValue(List value) { } /** - * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ public String nextLink() { @@ -60,9 +64,9 @@ public String nextLink() { } /** - * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @param nextLink the nextLink value to set. * @return the PrivateLinkResourceList object itself. */ @@ -73,7 +77,7 @@ public PrivateLinkResourceList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkServiceConnectionState.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkServiceConnectionState.java index 853380865bb85..cf25520562754 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkServiceConnectionState.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkServiceConnectionState.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Connection state of the private endpoint connection. */ +/** + * Connection state of the private endpoint connection. + */ @Fluent public final class PrivateLinkServiceConnectionState { /* @@ -28,14 +30,16 @@ public final class PrivateLinkServiceConnectionState { @JsonProperty(value = "actionsRequired") private String actionsRequired; - /** Creates an instance of PrivateLinkServiceConnectionState class. */ + /** + * Creates an instance of PrivateLinkServiceConnectionState class. + */ public PrivateLinkServiceConnectionState() { } /** * Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the * service. - * + * * @return the status value. */ public PrivateLinkServiceConnectionStatus status() { @@ -45,7 +49,7 @@ public PrivateLinkServiceConnectionStatus status() { /** * Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the * service. - * + * * @param status the status value to set. * @return the PrivateLinkServiceConnectionState object itself. */ @@ -56,7 +60,7 @@ public PrivateLinkServiceConnectionState withStatus(PrivateLinkServiceConnection /** * Get the description property: The reason for approval/rejection of the connection. - * + * * @return the description value. */ public String description() { @@ -65,7 +69,7 @@ public String description() { /** * Set the description property: The reason for approval/rejection of the connection. - * + * * @param description the description value to set. * @return the PrivateLinkServiceConnectionState object itself. */ @@ -77,7 +81,7 @@ public PrivateLinkServiceConnectionState withDescription(String description) { /** * Get the actionsRequired property: A message indicating if changes on the service provider require any updates on * the consumer. - * + * * @return the actionsRequired value. */ public String actionsRequired() { @@ -87,7 +91,7 @@ public String actionsRequired() { /** * Set the actionsRequired property: A message indicating if changes on the service provider require any updates on * the consumer. - * + * * @param actionsRequired the actionsRequired value to set. * @return the PrivateLinkServiceConnectionState object itself. */ @@ -98,7 +102,7 @@ public PrivateLinkServiceConnectionState withActionsRequired(String actionsRequi /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkServiceConnectionStatus.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkServiceConnectionStatus.java index 4f3c315dff406..4addcf9ccf2fb 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkServiceConnectionStatus.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkServiceConnectionStatus.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ +/** + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + */ public final class PrivateLinkServiceConnectionStatus extends ExpandableStringEnum { - /** Static value Pending for PrivateLinkServiceConnectionStatus. */ + /** + * Static value Pending for PrivateLinkServiceConnectionStatus. + */ public static final PrivateLinkServiceConnectionStatus PENDING = fromString("Pending"); - /** Static value Approved for PrivateLinkServiceConnectionStatus. */ + /** + * Static value Approved for PrivateLinkServiceConnectionStatus. + */ public static final PrivateLinkServiceConnectionStatus APPROVED = fromString("Approved"); - /** Static value Rejected for PrivateLinkServiceConnectionStatus. */ + /** + * Static value Rejected for PrivateLinkServiceConnectionStatus. + */ public static final PrivateLinkServiceConnectionStatus REJECTED = fromString("Rejected"); - /** Static value Disconnected for PrivateLinkServiceConnectionStatus. */ + /** + * Static value Disconnected for PrivateLinkServiceConnectionStatus. + */ public static final PrivateLinkServiceConnectionStatus DISCONNECTED = fromString("Disconnected"); /** * Creates a new instance of PrivateLinkServiceConnectionStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public PrivateLinkServiceConnectionStatus() { /** * Creates or finds a PrivateLinkServiceConnectionStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding PrivateLinkServiceConnectionStatus. */ @@ -44,7 +54,7 @@ public static PrivateLinkServiceConnectionStatus fromString(String name) { /** * Gets known PrivateLinkServiceConnectionStatus values. - * + * * @return known PrivateLinkServiceConnectionStatus values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ProvisioningState.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ProvisioningState.java index 98b3ea9ca3745..4f4f7e8586966 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ProvisioningState.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ProvisioningState.java @@ -8,38 +8,58 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Provisioning state of the resource. */ +/** + * Provisioning state of the resource. + */ public final class ProvisioningState extends ExpandableStringEnum { - /** Static value Unknown for ProvisioningState. */ + /** + * Static value Unknown for ProvisioningState. + */ public static final ProvisioningState UNKNOWN = fromString("Unknown"); - /** Static value Succeeded for ProvisioningState. */ + /** + * Static value Succeeded for ProvisioningState. + */ public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for ProvisioningState. */ + /** + * Static value Failed for ProvisioningState. + */ public static final ProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for ProvisioningState. */ + /** + * Static value Canceled for ProvisioningState. + */ public static final ProvisioningState CANCELED = fromString("Canceled"); - /** Static value Running for ProvisioningState. */ + /** + * Static value Running for ProvisioningState. + */ public static final ProvisioningState RUNNING = fromString("Running"); - /** Static value Creating for ProvisioningState. */ + /** + * Static value Creating for ProvisioningState. + */ public static final ProvisioningState CREATING = fromString("Creating"); - /** Static value Updating for ProvisioningState. */ + /** + * Static value Updating for ProvisioningState. + */ public static final ProvisioningState UPDATING = fromString("Updating"); - /** Static value Deleting for ProvisioningState. */ + /** + * Static value Deleting for ProvisioningState. + */ public static final ProvisioningState DELETING = fromString("Deleting"); - /** Static value Moving for ProvisioningState. */ + /** + * Static value Moving for ProvisioningState. + */ public static final ProvisioningState MOVING = fromString("Moving"); /** * Creates a new instance of ProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -48,7 +68,7 @@ public ProvisioningState() { /** * Creates or finds a ProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ProvisioningState. */ @@ -59,7 +79,7 @@ public static ProvisioningState fromString(String name) { /** * Gets known ProvisioningState values. - * + * * @return known ProvisioningState values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/RegenerateKeyParameters.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/RegenerateKeyParameters.java index 1b66779723926..778258cd794b2 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/RegenerateKeyParameters.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/RegenerateKeyParameters.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Parameters describes the request to regenerate access keys. */ +/** + * Parameters describes the request to regenerate access keys. + */ @Fluent public final class RegenerateKeyParameters { /* @@ -16,13 +18,15 @@ public final class RegenerateKeyParameters { @JsonProperty(value = "keyType") private KeyType keyType; - /** Creates an instance of RegenerateKeyParameters class. */ + /** + * Creates an instance of RegenerateKeyParameters class. + */ public RegenerateKeyParameters() { } /** * Get the keyType property: The type of access key. - * + * * @return the keyType value. */ public KeyType keyType() { @@ -31,7 +35,7 @@ public KeyType keyType() { /** * Set the keyType property: The type of access key. - * + * * @param keyType the keyType value to set. * @return the RegenerateKeyParameters object itself. */ @@ -42,7 +46,7 @@ public RegenerateKeyParameters withKeyType(KeyType keyType) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Replica.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Replica.java index 8e6bebec24b62..a697207f36516 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Replica.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Replica.java @@ -10,127 +10,136 @@ import com.azure.resourcemanager.signalr.fluent.models.ReplicaInner; import java.util.Map; -/** An immutable client-side representation of Replica. */ +/** + * An immutable client-side representation of Replica. + */ public interface Replica { /** * 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 sku property: The billing information of the resource. - * + * * @return the sku value. */ ResourceSku sku(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** - * Gets the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. - * + * Gets the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. + * * @return the regionEndpointEnabled value. */ String regionEndpointEnabled(); /** - * Gets the resourceStopped property: Stop or start the resource. Default to "false". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Gets the resourceStopped property: Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @return the resourceStopped value. */ String resourceStopped(); /** * 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.signalr.fluent.models.ReplicaInner object. - * + * * @return the inner object. */ ReplicaInner innerModel(); - /** The entirety of the Replica definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + /** + * The entirety of the Replica definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The Replica definition stages. */ + /** + * The Replica definition stages. + */ interface DefinitionStages { - /** The first stage of the Replica definition. */ + /** + * The first stage of the Replica definition. + */ interface Blank extends WithLocation { } - /** The stage of the Replica definition allowing to specify location. */ + /** + * The stage of the Replica 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. */ @@ -138,18 +147,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the Replica definition allowing to specify parent resource. */ + /** + * The stage of the Replica definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, resourceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @return the next definition stage. @@ -161,72 +172,80 @@ interface WithParentResource { * The stage of the Replica 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.WithSku, - DefinitionStages.WithRegionEndpointEnabled, - DefinitionStages.WithResourceStopped { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithSku, + DefinitionStages.WithRegionEndpointEnabled, DefinitionStages.WithResourceStopped { /** * Executes the create request. - * + * * @return the created resource. */ Replica create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Replica create(Context context); } - /** The stage of the Replica definition allowing to specify tags. */ + /** + * The stage of the Replica 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 Replica definition allowing to specify sku. */ + /** + * The stage of the Replica definition allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: The billing information of the resource.. - * + * * @param sku The billing information of the resource. * @return the next definition stage. */ WithCreate withSku(ResourceSku sku); } - /** The stage of the Replica definition allowing to specify regionEndpointEnabled. */ + /** + * The stage of the Replica definition allowing to specify regionEndpointEnabled. + */ interface WithRegionEndpointEnabled { /** * Specifies the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to - * "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing - * connections will not be affected.. - * - * @param regionEndpointEnabled Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not - * be affected. + * "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections + * will not be affected.. + * + * @param regionEndpointEnabled Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections + * will not be affected. * @return the next definition stage. */ WithCreate withRegionEndpointEnabled(String regionEndpointEnabled); } - /** The stage of the Replica definition allowing to specify resourceStopped. */ + /** + * The stage of the Replica definition allowing to specify resourceStopped. + */ interface WithResourceStopped { /** - * Specifies the resourceStopped property: Stop or start the resource. Default to "false". When it's true, - * the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.. - * - * @param resourceStopped Stop or start the resource. Default to "false". When it's true, the data plane of - * the resource is shutdown. When it's false, the data plane of the resource is started. + * Specifies the resourceStopped property: Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started.. + * + * @param resourceStopped Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. * @return the next definition stage. */ WithCreate withResourceStopped(String resourceStopped); @@ -235,80 +254,92 @@ interface WithResourceStopped { /** * Begins update for the Replica resource. - * + * * @return the stage of resource update. */ Replica.Update update(); - /** The template for Replica update. */ - interface Update - extends UpdateStages.WithTags, - UpdateStages.WithSku, - UpdateStages.WithRegionEndpointEnabled, - UpdateStages.WithResourceStopped { + /** + * The template for Replica update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithRegionEndpointEnabled, + UpdateStages.WithResourceStopped { /** * Executes the update request. - * + * * @return the updated resource. */ Replica apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ Replica apply(Context context); } - /** The Replica update stages. */ + /** + * The Replica update stages. + */ interface UpdateStages { - /** The stage of the Replica update allowing to specify tags. */ + /** + * The stage of the Replica 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); } - /** The stage of the Replica update allowing to specify sku. */ + /** + * The stage of the Replica update allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: The billing information of the resource.. - * + * * @param sku The billing information of the resource. * @return the next definition stage. */ Update withSku(ResourceSku sku); } - /** The stage of the Replica update allowing to specify regionEndpointEnabled. */ + /** + * The stage of the Replica update allowing to specify regionEndpointEnabled. + */ interface WithRegionEndpointEnabled { /** * Specifies the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to - * "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing - * connections will not be affected.. - * - * @param regionEndpointEnabled Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not - * be affected. + * "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections + * will not be affected.. + * + * @param regionEndpointEnabled Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections + * will not be affected. * @return the next definition stage. */ Update withRegionEndpointEnabled(String regionEndpointEnabled); } - /** The stage of the Replica update allowing to specify resourceStopped. */ + /** + * The stage of the Replica update allowing to specify resourceStopped. + */ interface WithResourceStopped { /** - * Specifies the resourceStopped property: Stop or start the resource. Default to "false". When it's true, - * the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.. - * - * @param resourceStopped Stop or start the resource. Default to "false". When it's true, the data plane of - * the resource is shutdown. When it's false, the data plane of the resource is started. + * Specifies the resourceStopped property: Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started.. + * + * @param resourceStopped Stop or start the resource. Default to "false". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. * @return the next definition stage. */ Update withResourceStopped(String resourceStopped); @@ -317,14 +348,14 @@ interface WithResourceStopped { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Replica refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -332,7 +363,7 @@ interface WithResourceStopped { /** * Operation to restart a replica. - * + * * @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. */ @@ -340,7 +371,7 @@ interface WithResourceStopped { /** * Operation to restart a replica. - * + * * @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. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ReplicaList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ReplicaList.java index bd5f8e7fdc0b2..f52adef1a7769 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ReplicaList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ReplicaList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The ReplicaList model. */ +/** + * The ReplicaList model. + */ @Fluent public final class ReplicaList { /* @@ -25,13 +27,15 @@ public final class ReplicaList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of ReplicaList class. */ + /** + * Creates an instance of ReplicaList class. + */ public ReplicaList() { } /** * Get the value property: List of the replica. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of the replica. - * + * * @param value the value value to set. * @return the ReplicaList object itself. */ @@ -50,9 +54,9 @@ public ReplicaList withValue(List value) { } /** - * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ public String nextLink() { @@ -60,9 +64,9 @@ public String nextLink() { } /** - * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @param nextLink the nextLink value to set. * @return the ReplicaList object itself. */ @@ -73,7 +77,7 @@ public ReplicaList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceLogCategory.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceLogCategory.java index 7520bc1b0ca5a..3af17288dce6f 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceLogCategory.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceLogCategory.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Resource log category configuration of a Microsoft.SignalRService resource. */ +/** + * Resource log category configuration of a Microsoft.SignalRService resource. + */ @Fluent public final class ResourceLogCategory { /* @@ -26,14 +28,17 @@ public final class ResourceLogCategory { @JsonProperty(value = "enabled") private String enabled; - /** Creates an instance of ResourceLogCategory class. */ + /** + * Creates an instance of ResourceLogCategory class. + */ public ResourceLogCategory() { } /** - * Get the name property: Gets or sets the resource log category's name. Available values: ConnectivityLogs, - * MessagingLogs. Case insensitive. - * + * Get the name property: Gets or sets the resource log category's name. + * Available values: ConnectivityLogs, MessagingLogs. + * Case insensitive. + * * @return the name value. */ public String name() { @@ -41,9 +46,10 @@ public String name() { } /** - * Set the name property: Gets or sets the resource log category's name. Available values: ConnectivityLogs, - * MessagingLogs. Case insensitive. - * + * Set the name property: Gets or sets the resource log category's name. + * Available values: ConnectivityLogs, MessagingLogs. + * Case insensitive. + * * @param name the name value to set. * @return the ResourceLogCategory object itself. */ @@ -53,9 +59,10 @@ public ResourceLogCategory withName(String name) { } /** - * Get the enabled property: Indicates whether or the resource log category is enabled. Available values: true, - * false. Case insensitive. - * + * Get the enabled property: Indicates whether or the resource log category is enabled. + * Available values: true, false. + * Case insensitive. + * * @return the enabled value. */ public String enabled() { @@ -63,9 +70,10 @@ public String enabled() { } /** - * Set the enabled property: Indicates whether or the resource log category is enabled. Available values: true, - * false. Case insensitive. - * + * Set the enabled property: Indicates whether or the resource log category is enabled. + * Available values: true, false. + * Case insensitive. + * * @param enabled the enabled value to set. * @return the ResourceLogCategory object itself. */ @@ -76,7 +84,7 @@ public ResourceLogCategory withEnabled(String enabled) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceLogConfiguration.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceLogConfiguration.java index e12558276f33f..4b48acc1e2836 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceLogConfiguration.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceLogConfiguration.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Resource log configuration of a Microsoft.SignalRService resource. */ +/** + * Resource log configuration of a Microsoft.SignalRService resource. + */ @Fluent public final class ResourceLogConfiguration { /* @@ -17,13 +19,15 @@ public final class ResourceLogConfiguration { @JsonProperty(value = "categories") private List categories; - /** Creates an instance of ResourceLogConfiguration class. */ + /** + * Creates an instance of ResourceLogConfiguration class. + */ public ResourceLogConfiguration() { } /** * Get the categories property: Gets or sets the list of category configurations. - * + * * @return the categories value. */ public List categories() { @@ -32,7 +36,7 @@ public List categories() { /** * Set the categories property: Gets or sets the list of category configurations. - * + * * @param categories the categories value to set. * @return the ResourceLogConfiguration object itself. */ @@ -43,7 +47,7 @@ public ResourceLogConfiguration withCategories(List categor /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceReference.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceReference.java index 494a5641e998a..9e93e1d2ce661 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceReference.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceReference.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Reference to a resource. */ +/** + * Reference to a resource. + */ @Fluent public final class ResourceReference { /* @@ -16,13 +18,15 @@ public final class ResourceReference { @JsonProperty(value = "id") private String id; - /** Creates an instance of ResourceReference class. */ + /** + * Creates an instance of ResourceReference class. + */ public ResourceReference() { } /** * Get the id property: Resource ID. - * + * * @return the id value. */ public String id() { @@ -31,7 +35,7 @@ public String id() { /** * Set the id property: Resource ID. - * + * * @param id the id value to set. * @return the ResourceReference object itself. */ @@ -42,7 +46,7 @@ public ResourceReference withId(String id) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceSku.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceSku.java index c1ba8ef212c3b..2508d300258e0 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceSku.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ResourceSku.java @@ -8,20 +8,22 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** The billing information of the resource. */ +/** + * The billing information of the resource. + */ @Fluent public final class ResourceSku { /* * The name of the SKU. Required. - * - * Allowed values: Standard_S1, Free_F1, Premium_P1 + * + * Allowed values: Standard_S1, Free_F1, Premium_P1, Premium_P2 */ @JsonProperty(value = "name", required = true) private String name; /* - * Optional tier of this particular SKU. 'Standard' or 'Free'. - * + * Optional tier of this particular SKU. 'Standard' or 'Free'. + * * `Basic` is deprecated, use `Standard` instead. */ @JsonProperty(value = "tier") @@ -40,25 +42,29 @@ public final class ResourceSku { private String family; /* - * Optional, integer. The unit count of the resource. 1 by default. - * + * Optional, integer. The unit count of the resource. + * 1 for Free_F1/Standard_S1/Premium_P1, 100 for Premium_P2 by default. + * * If present, following values are allowed: - * Free: 1; - * Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; - * Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Free_F1: 1; + * Standard_S1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Premium_P1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Premium_P2: 100,200,300,400,500,600,700,800,900,1000; */ @JsonProperty(value = "capacity") private Integer capacity; - /** Creates an instance of ResourceSku class. */ + /** + * Creates an instance of ResourceSku class. + */ public ResourceSku() { } /** * Get the name property: The name of the SKU. Required. - * - *

Allowed values: Standard_S1, Free_F1, Premium_P1. - * + * + * Allowed values: Standard_S1, Free_F1, Premium_P1, Premium_P2. + * * @return the name value. */ public String name() { @@ -67,9 +73,9 @@ public String name() { /** * Set the name property: The name of the SKU. Required. - * - *

Allowed values: Standard_S1, Free_F1, Premium_P1. - * + * + * Allowed values: Standard_S1, Free_F1, Premium_P1, Premium_P2. + * * @param name the name value to set. * @return the ResourceSku object itself. */ @@ -80,9 +86,9 @@ public ResourceSku withName(String name) { /** * Get the tier property: Optional tier of this particular SKU. 'Standard' or 'Free'. - * - *

`Basic` is deprecated, use `Standard` instead. - * + * + * `Basic` is deprecated, use `Standard` instead. + * * @return the tier value. */ public SignalRSkuTier tier() { @@ -91,9 +97,9 @@ public SignalRSkuTier tier() { /** * Set the tier property: Optional tier of this particular SKU. 'Standard' or 'Free'. - * - *

`Basic` is deprecated, use `Standard` instead. - * + * + * `Basic` is deprecated, use `Standard` instead. + * * @param tier the tier value to set. * @return the ResourceSku object itself. */ @@ -104,7 +110,7 @@ public ResourceSku withTier(SignalRSkuTier tier) { /** * Get the size property: Not used. Retained for future use. - * + * * @return the size value. */ public String size() { @@ -113,7 +119,7 @@ public String size() { /** * Get the family property: Not used. Retained for future use. - * + * * @return the family value. */ public String family() { @@ -121,11 +127,15 @@ public String family() { } /** - * Get the capacity property: Optional, integer. The unit count of the resource. 1 by default. - * - *

If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; - * Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;. - * + * Get the capacity property: Optional, integer. The unit count of the resource. + * 1 for Free_F1/Standard_S1/Premium_P1, 100 for Premium_P2 by default. + * + * If present, following values are allowed: + * Free_F1: 1; + * Standard_S1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Premium_P1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Premium_P2: 100,200,300,400,500,600,700,800,900,1000;. + * * @return the capacity value. */ public Integer capacity() { @@ -133,11 +143,15 @@ public Integer capacity() { } /** - * Set the capacity property: Optional, integer. The unit count of the resource. 1 by default. - * - *

If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; - * Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;. - * + * Set the capacity property: Optional, integer. The unit count of the resource. + * 1 for Free_F1/Standard_S1/Premium_P1, 100 for Premium_P2 by default. + * + * If present, following values are allowed: + * Free_F1: 1; + * Standard_S1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Premium_P1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; + * Premium_P2: 100,200,300,400,500,600,700,800,900,1000;. + * * @param capacity the capacity value to set. * @return the ResourceSku object itself. */ @@ -148,14 +162,13 @@ public ResourceSku withCapacity(Integer capacity) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property name in model ResourceSku")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model ResourceSku")); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ScaleType.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ScaleType.java index c8f0f4828b167..fac87bf1355b0 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ScaleType.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ScaleType.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The scale type applicable to the sku. */ +/** + * The scale type applicable to the sku. + */ public final class ScaleType extends ExpandableStringEnum { - /** Static value None for ScaleType. */ + /** + * Static value None for ScaleType. + */ public static final ScaleType NONE = fromString("None"); - /** Static value Manual for ScaleType. */ + /** + * Static value Manual for ScaleType. + */ public static final ScaleType MANUAL = fromString("Manual"); - /** Static value Automatic for ScaleType. */ + /** + * Static value Automatic for ScaleType. + */ public static final ScaleType AUTOMATIC = fromString("Automatic"); /** * Creates a new instance of ScaleType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public ScaleType() { /** * Creates or finds a ScaleType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ScaleType. */ @@ -41,7 +49,7 @@ public static ScaleType fromString(String name) { /** * Gets known ScaleType values. - * + * * @return known ScaleType values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServerlessSettings.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServerlessSettings.java index 1984b436c6f6f..7bbe8157332da 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServerlessSettings.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServerlessSettings.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Serverless settings. */ +/** + * Serverless settings. + */ @Fluent public final class ServerlessSettings { /* @@ -18,24 +20,28 @@ public final class ServerlessSettings { * and want the client to disconnect more quickly after the last message is sent. * You can set the timeout to a longer period if messages are expected to be sent in longer intervals, * and they want to keep the same client connection alive during this session. - * The service considers the client disconnected if it hasn't received a message (including keep-alive) in this - * interval. + * The service considers the client disconnected if it hasn't received a message (including keep-alive) in this interval. */ @JsonProperty(value = "connectionTimeoutInSeconds") private Integer connectionTimeoutInSeconds; - /** Creates an instance of ServerlessSettings class. */ + /** + * Creates an instance of ServerlessSettings class. + */ public ServerlessSettings() { } /** - * Get the connectionTimeoutInSeconds property: Gets or sets Client Connection Timeout. Optional to be set. Value in - * seconds. Default value is 30 seconds. Customer should set the timeout to a shorter period if messages are - * expected to be sent in shorter intervals, and want the client to disconnect more quickly after the last message - * is sent. You can set the timeout to a longer period if messages are expected to be sent in longer intervals, and - * they want to keep the same client connection alive during this session. The service considers the client - * disconnected if it hasn't received a message (including keep-alive) in this interval. - * + * Get the connectionTimeoutInSeconds property: Gets or sets Client Connection Timeout. Optional to be set. + * Value in seconds. + * Default value is 30 seconds. + * Customer should set the timeout to a shorter period if messages are expected to be sent in shorter intervals, + * and want the client to disconnect more quickly after the last message is sent. + * You can set the timeout to a longer period if messages are expected to be sent in longer intervals, + * and they want to keep the same client connection alive during this session. + * The service considers the client disconnected if it hasn't received a message (including keep-alive) in this + * interval. + * * @return the connectionTimeoutInSeconds value. */ public Integer connectionTimeoutInSeconds() { @@ -43,13 +49,16 @@ public Integer connectionTimeoutInSeconds() { } /** - * Set the connectionTimeoutInSeconds property: Gets or sets Client Connection Timeout. Optional to be set. Value in - * seconds. Default value is 30 seconds. Customer should set the timeout to a shorter period if messages are - * expected to be sent in shorter intervals, and want the client to disconnect more quickly after the last message - * is sent. You can set the timeout to a longer period if messages are expected to be sent in longer intervals, and - * they want to keep the same client connection alive during this session. The service considers the client - * disconnected if it hasn't received a message (including keep-alive) in this interval. - * + * Set the connectionTimeoutInSeconds property: Gets or sets Client Connection Timeout. Optional to be set. + * Value in seconds. + * Default value is 30 seconds. + * Customer should set the timeout to a shorter period if messages are expected to be sent in shorter intervals, + * and want the client to disconnect more quickly after the last message is sent. + * You can set the timeout to a longer period if messages are expected to be sent in longer intervals, + * and they want to keep the same client connection alive during this session. + * The service considers the client disconnected if it hasn't received a message (including keep-alive) in this + * interval. + * * @param connectionTimeoutInSeconds the connectionTimeoutInSeconds value to set. * @return the ServerlessSettings object itself. */ @@ -60,7 +69,7 @@ public ServerlessSettings withConnectionTimeoutInSeconds(Integer connectionTimeo /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServerlessUpstreamSettings.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServerlessUpstreamSettings.java index 4b42154bd8996..2d30abfb987ba 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServerlessUpstreamSettings.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServerlessUpstreamSettings.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The settings for the Upstream when the service is in server-less mode. */ +/** + * The settings for the Upstream when the service is in server-less mode. + */ @Fluent public final class ServerlessUpstreamSettings { /* @@ -17,14 +19,16 @@ public final class ServerlessUpstreamSettings { @JsonProperty(value = "templates") private List templates; - /** Creates an instance of ServerlessUpstreamSettings class. */ + /** + * Creates an instance of ServerlessUpstreamSettings class. + */ public ServerlessUpstreamSettings() { } /** * Get the templates property: Gets or sets the list of Upstream URL templates. Order matters, and the first * matching template takes effects. - * + * * @return the templates value. */ public List templates() { @@ -34,7 +38,7 @@ public List templates() { /** * Set the templates property: Gets or sets the list of Upstream URL templates. Order matters, and the first * matching template takes effects. - * + * * @param templates the templates value to set. * @return the ServerlessUpstreamSettings object itself. */ @@ -45,7 +49,7 @@ public ServerlessUpstreamSettings withTemplates(List templates /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServiceKind.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServiceKind.java index 90c232283700c..3e67769da1e68 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServiceKind.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServiceKind.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The kind of the service. */ +/** + * The kind of the service. + */ public final class ServiceKind extends ExpandableStringEnum { - /** Static value SignalR for ServiceKind. */ + /** + * Static value SignalR for ServiceKind. + */ public static final ServiceKind SIGNALR = fromString("SignalR"); - /** Static value RawWebSockets for ServiceKind. */ + /** + * Static value RawWebSockets for ServiceKind. + */ public static final ServiceKind RAW_WEB_SOCKETS = fromString("RawWebSockets"); /** * Creates a new instance of ServiceKind value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public ServiceKind() { /** * Creates or finds a ServiceKind from its string representation. - * + * * @param name a name to look for. * @return the corresponding ServiceKind. */ @@ -38,7 +44,7 @@ public static ServiceKind fromString(String name) { /** * Gets known ServiceKind values. - * + * * @return known ServiceKind values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServiceSpecification.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServiceSpecification.java index d293f509278db..e44e83ae9bfff 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServiceSpecification.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ServiceSpecification.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** An object that describes a specification. */ +/** + * An object that describes a specification. + */ @Fluent public final class ServiceSpecification { /* @@ -23,13 +25,15 @@ public final class ServiceSpecification { @JsonProperty(value = "logSpecifications") private List logSpecifications; - /** Creates an instance of ServiceSpecification class. */ + /** + * Creates an instance of ServiceSpecification class. + */ public ServiceSpecification() { } /** * Get the metricSpecifications property: Specifications of the Metrics for Azure Monitoring. - * + * * @return the metricSpecifications value. */ public List metricSpecifications() { @@ -38,7 +42,7 @@ public List metricSpecifications() { /** * Set the metricSpecifications property: Specifications of the Metrics for Azure Monitoring. - * + * * @param metricSpecifications the metricSpecifications value to set. * @return the ServiceSpecification object itself. */ @@ -49,7 +53,7 @@ public ServiceSpecification withMetricSpecifications(List m /** * Get the logSpecifications property: Specifications of the Logs for Azure Monitoring. - * + * * @return the logSpecifications value. */ public List logSpecifications() { @@ -58,7 +62,7 @@ public List logSpecifications() { /** * Set the logSpecifications property: Specifications of the Logs for Azure Monitoring. - * + * * @param logSpecifications the logSpecifications value to set. * @return the ServiceSpecification object itself. */ @@ -69,7 +73,7 @@ public ServiceSpecification withLogSpecifications(List logSpec /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ShareablePrivateLinkResourceProperties.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ShareablePrivateLinkResourceProperties.java index bc0fd65585082..37fc09cc8e2b0 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ShareablePrivateLinkResourceProperties.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ShareablePrivateLinkResourceProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Describes the properties of a resource type that has been onboarded to private link service. */ +/** + * Describes the properties of a resource type that has been onboarded to private link service. + */ @Fluent public final class ShareablePrivateLinkResourceProperties { /* @@ -28,14 +30,16 @@ public final class ShareablePrivateLinkResourceProperties { @JsonProperty(value = "type") private String type; - /** Creates an instance of ShareablePrivateLinkResourceProperties class. */ + /** + * Creates an instance of ShareablePrivateLinkResourceProperties class. + */ public ShareablePrivateLinkResourceProperties() { } /** * Get the description property: The description of the resource type that has been onboarded to private link * service. - * + * * @return the description value. */ public String description() { @@ -45,7 +49,7 @@ public String description() { /** * Set the description property: The description of the resource type that has been onboarded to private link * service. - * + * * @param description the description value to set. * @return the ShareablePrivateLinkResourceProperties object itself. */ @@ -57,7 +61,7 @@ public ShareablePrivateLinkResourceProperties withDescription(String description /** * Get the groupId property: The resource provider group id for the resource that has been onboarded to private link * service. - * + * * @return the groupId value. */ public String groupId() { @@ -67,7 +71,7 @@ public String groupId() { /** * Set the groupId property: The resource provider group id for the resource that has been onboarded to private link * service. - * + * * @param groupId the groupId value to set. * @return the ShareablePrivateLinkResourceProperties object itself. */ @@ -79,7 +83,7 @@ public ShareablePrivateLinkResourceProperties withGroupId(String groupId) { /** * Get the type property: The resource provider type for the resource that has been onboarded to private link * service. - * + * * @return the type value. */ public String type() { @@ -89,7 +93,7 @@ public String type() { /** * Set the type property: The resource provider type for the resource that has been onboarded to private link * service. - * + * * @param type the type value to set. * @return the ShareablePrivateLinkResourceProperties object itself. */ @@ -100,7 +104,7 @@ public ShareablePrivateLinkResourceProperties withType(String type) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ShareablePrivateLinkResourceType.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ShareablePrivateLinkResourceType.java index ac4518e4b995c..51bb9343d68bf 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ShareablePrivateLinkResourceType.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ShareablePrivateLinkResourceType.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Describes a resource type that has been onboarded to private link service. */ +/** + * Describes a resource type that has been onboarded to private link service. + */ @Fluent public final class ShareablePrivateLinkResourceType { /* @@ -22,13 +24,15 @@ public final class ShareablePrivateLinkResourceType { @JsonProperty(value = "properties") private ShareablePrivateLinkResourceProperties properties; - /** Creates an instance of ShareablePrivateLinkResourceType class. */ + /** + * Creates an instance of ShareablePrivateLinkResourceType class. + */ public ShareablePrivateLinkResourceType() { } /** * Get the name property: The name of the resource type that has been onboarded to private link service. - * + * * @return the name value. */ public String name() { @@ -37,7 +41,7 @@ public String name() { /** * Set the name property: The name of the resource type that has been onboarded to private link service. - * + * * @param name the name value to set. * @return the ShareablePrivateLinkResourceType object itself. */ @@ -49,7 +53,7 @@ public ShareablePrivateLinkResourceType withName(String name) { /** * Get the properties property: Describes the properties of a resource type that has been onboarded to private link * service. - * + * * @return the properties value. */ public ShareablePrivateLinkResourceProperties properties() { @@ -59,7 +63,7 @@ public ShareablePrivateLinkResourceProperties properties() { /** * Set the properties property: Describes the properties of a resource type that has been onboarded to private link * service. - * + * * @param properties the properties value to set. * @return the ShareablePrivateLinkResourceType object itself. */ @@ -70,7 +74,7 @@ public ShareablePrivateLinkResourceType withProperties(ShareablePrivateLinkResou /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SharedPrivateLinkResource.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SharedPrivateLinkResource.java index 21cabaa5ddd80..7b512b0c98efd 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SharedPrivateLinkResource.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SharedPrivateLinkResource.java @@ -8,53 +8,55 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner; -/** An immutable client-side representation of SharedPrivateLinkResource. */ +/** + * An immutable client-side representation of SharedPrivateLinkResource. + */ public interface SharedPrivateLinkResource { /** * 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 systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the groupId property: The group id from the provider of resource the shared private link resource is for. - * + * * @return the groupId value. */ String groupId(); /** * Gets the privateLinkResourceId property: The resource id of the resource the shared private link resource is for. - * + * * @return the privateLinkResourceId value. */ String privateLinkResourceId(); /** * Gets the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); @@ -62,109 +64,122 @@ public interface SharedPrivateLinkResource { /** * Gets the requestMessage property: The request message for requesting approval of the shared private link * resource. - * + * * @return the requestMessage value. */ String requestMessage(); /** * Gets the status property: Status of the shared private link resource. - * + * * @return the status value. */ SharedPrivateLinkResourceStatus status(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner object. - * + * * @return the inner object. */ SharedPrivateLinkResourceInner innerModel(); - /** The entirety of the SharedPrivateLinkResource definition. */ + /** + * The entirety of the SharedPrivateLinkResource definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SharedPrivateLinkResource definition stages. */ + /** + * The SharedPrivateLinkResource definition stages. + */ interface DefinitionStages { - /** The first stage of the SharedPrivateLinkResource definition. */ + /** + * The first stage of the SharedPrivateLinkResource definition. + */ interface Blank extends WithParentResource { } - /** The stage of the SharedPrivateLinkResource definition allowing to specify parent resource. */ + /** + * The stage of the SharedPrivateLinkResource definition allowing to specify parent resource. + */ interface WithParentResource { /** - * Specifies resourceGroupName, resourceName. - * + * Specifies resourceGroupName, resourceName, replicaName. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. + * @param replicaName The name of the replica. * @return the next definition stage. */ - WithCreate withExistingSignalR(String resourceGroupName, String resourceName); + WithCreate withExistingReplica(String resourceGroupName, String resourceName, String replicaName); } /** * The stage of the SharedPrivateLinkResource 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.WithGroupId, - DefinitionStages.WithPrivateLinkResourceId, - DefinitionStages.WithRequestMessage { + interface WithCreate extends DefinitionStages.WithGroupId, DefinitionStages.WithPrivateLinkResourceId, + DefinitionStages.WithRequestMessage { /** * Executes the create request. - * + * * @return the created resource. */ SharedPrivateLinkResource create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SharedPrivateLinkResource create(Context context); } - /** The stage of the SharedPrivateLinkResource definition allowing to specify groupId. */ + /** + * The stage of the SharedPrivateLinkResource definition allowing to specify groupId. + */ interface WithGroupId { /** * Specifies the groupId property: The group id from the provider of resource the shared private link * resource is for. - * + * * @param groupId The group id from the provider of resource the shared private link resource is for. * @return the next definition stage. */ WithCreate withGroupId(String groupId); } - /** The stage of the SharedPrivateLinkResource definition allowing to specify privateLinkResourceId. */ + /** + * The stage of the SharedPrivateLinkResource definition allowing to specify privateLinkResourceId. + */ interface WithPrivateLinkResourceId { /** * Specifies the privateLinkResourceId property: The resource id of the resource the shared private link * resource is for. - * + * * @param privateLinkResourceId The resource id of the resource the shared private link resource is for. * @return the next definition stage. */ WithCreate withPrivateLinkResourceId(String privateLinkResourceId); } - /** The stage of the SharedPrivateLinkResource definition allowing to specify requestMessage. */ + /** + * The stage of the SharedPrivateLinkResource definition allowing to specify requestMessage. + */ interface WithRequestMessage { /** * Specifies the requestMessage property: The request message for requesting approval of the shared private * link resource. - * + * * @param requestMessage The request message for requesting approval of the shared private link resource. * @return the next definition stage. */ @@ -174,62 +189,72 @@ interface WithRequestMessage { /** * Begins update for the SharedPrivateLinkResource resource. - * + * * @return the stage of resource update. */ SharedPrivateLinkResource.Update update(); - /** The template for SharedPrivateLinkResource update. */ + /** + * The template for SharedPrivateLinkResource update. + */ interface Update extends UpdateStages.WithGroupId, UpdateStages.WithPrivateLinkResourceId, UpdateStages.WithRequestMessage { /** * Executes the update request. - * + * * @return the updated resource. */ SharedPrivateLinkResource apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SharedPrivateLinkResource apply(Context context); } - /** The SharedPrivateLinkResource update stages. */ + /** + * The SharedPrivateLinkResource update stages. + */ interface UpdateStages { - /** The stage of the SharedPrivateLinkResource update allowing to specify groupId. */ + /** + * The stage of the SharedPrivateLinkResource update allowing to specify groupId. + */ interface WithGroupId { /** * Specifies the groupId property: The group id from the provider of resource the shared private link * resource is for. - * + * * @param groupId The group id from the provider of resource the shared private link resource is for. * @return the next definition stage. */ Update withGroupId(String groupId); } - /** The stage of the SharedPrivateLinkResource update allowing to specify privateLinkResourceId. */ + /** + * The stage of the SharedPrivateLinkResource update allowing to specify privateLinkResourceId. + */ interface WithPrivateLinkResourceId { /** * Specifies the privateLinkResourceId property: The resource id of the resource the shared private link * resource is for. - * + * * @param privateLinkResourceId The resource id of the resource the shared private link resource is for. * @return the next definition stage. */ Update withPrivateLinkResourceId(String privateLinkResourceId); } - /** The stage of the SharedPrivateLinkResource update allowing to specify requestMessage. */ + /** + * The stage of the SharedPrivateLinkResource update allowing to specify requestMessage. + */ interface WithRequestMessage { /** * Specifies the requestMessage property: The request message for requesting approval of the shared private * link resource. - * + * * @param requestMessage The request message for requesting approval of the shared private link resource. * @return the next definition stage. */ @@ -239,14 +264,14 @@ interface WithRequestMessage { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SharedPrivateLinkResource refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SharedPrivateLinkResourceList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SharedPrivateLinkResourceList.java index 939cfb53cb21b..20b5b8d5b903d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SharedPrivateLinkResourceList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SharedPrivateLinkResourceList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of shared private link resources. */ +/** + * A list of shared private link resources. + */ @Fluent public final class SharedPrivateLinkResourceList { /* @@ -19,19 +21,20 @@ public final class SharedPrivateLinkResourceList { private List value; /* - * Request URL that can be used to query next page of private endpoint connections. Returned when the total number - * of requested private endpoint connections exceed maximum page size. + * Request URL that can be used to query next page of private endpoint connections. Returned when the total number of requested private endpoint connections exceed maximum page size. */ @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of SharedPrivateLinkResourceList class. */ + /** + * Creates an instance of SharedPrivateLinkResourceList class. + */ public SharedPrivateLinkResourceList() { } /** * Get the value property: The list of the shared private link resources. - * + * * @return the value value. */ public List value() { @@ -40,7 +43,7 @@ public List value() { /** * Set the value property: The list of the shared private link resources. - * + * * @param value the value value to set. * @return the SharedPrivateLinkResourceList object itself. */ @@ -52,7 +55,7 @@ public SharedPrivateLinkResourceList withValue(List { - /** Static value Pending for SharedPrivateLinkResourceStatus. */ + /** + * Static value Pending for SharedPrivateLinkResourceStatus. + */ public static final SharedPrivateLinkResourceStatus PENDING = fromString("Pending"); - /** Static value Approved for SharedPrivateLinkResourceStatus. */ + /** + * Static value Approved for SharedPrivateLinkResourceStatus. + */ public static final SharedPrivateLinkResourceStatus APPROVED = fromString("Approved"); - /** Static value Rejected for SharedPrivateLinkResourceStatus. */ + /** + * Static value Rejected for SharedPrivateLinkResourceStatus. + */ public static final SharedPrivateLinkResourceStatus REJECTED = fromString("Rejected"); - /** Static value Disconnected for SharedPrivateLinkResourceStatus. */ + /** + * Static value Disconnected for SharedPrivateLinkResourceStatus. + */ public static final SharedPrivateLinkResourceStatus DISCONNECTED = fromString("Disconnected"); - /** Static value Timeout for SharedPrivateLinkResourceStatus. */ + /** + * Static value Timeout for SharedPrivateLinkResourceStatus. + */ public static final SharedPrivateLinkResourceStatus TIMEOUT = fromString("Timeout"); /** * Creates a new instance of SharedPrivateLinkResourceStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,7 +48,7 @@ public SharedPrivateLinkResourceStatus() { /** * Creates or finds a SharedPrivateLinkResourceStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding SharedPrivateLinkResourceStatus. */ @@ -47,7 +59,7 @@ public static SharedPrivateLinkResourceStatus fromString(String name) { /** * Gets known SharedPrivateLinkResourceStatus values. - * + * * @return known SharedPrivateLinkResourceStatus values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCorsSettings.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCorsSettings.java index 918e94ef7f3d4..feac34c010d19 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCorsSettings.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCorsSettings.java @@ -8,24 +8,27 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Cross-Origin Resource Sharing (CORS) settings. */ +/** + * Cross-Origin Resource Sharing (CORS) settings. + */ @Fluent public final class SignalRCorsSettings { /* - * Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: - * http://example.com:12345). Use "*" to allow all. If omitted, allow all by default. + * Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default. */ @JsonProperty(value = "allowedOrigins") private List allowedOrigins; - /** Creates an instance of SignalRCorsSettings class. */ + /** + * Creates an instance of SignalRCorsSettings class. + */ public SignalRCorsSettings() { } /** * Get the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin * calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default. - * + * * @return the allowedOrigins value. */ public List allowedOrigins() { @@ -35,7 +38,7 @@ public List allowedOrigins() { /** * Set the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin * calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default. - * + * * @param allowedOrigins the allowedOrigins value to set. * @return the SignalRCorsSettings object itself. */ @@ -46,7 +49,7 @@ public SignalRCorsSettings withAllowedOrigins(List allowedOrigins) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCustomCertificates.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCustomCertificates.java index 7cd37c9859081..4014df74996a3 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCustomCertificates.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCustomCertificates.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SignalRCustomCertificates. */ +/** + * Resource collection API of SignalRCustomCertificates. + */ public interface SignalRCustomCertificates { /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,7 +26,7 @@ public interface SignalRCustomCertificates { /** * List all custom certificates. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -37,7 +39,7 @@ public interface SignalRCustomCertificates { /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -47,12 +49,12 @@ public interface SignalRCustomCertificates { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a custom certificate along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, String certificateName, + Context context); /** * Get a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -65,7 +67,7 @@ Response getWithResponse( /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -75,12 +77,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String resourceName, String certificateName, Context context); + Response deleteWithResponse(String resourceGroupName, String resourceName, String certificateName, + Context context); /** * Delete a custom certificate. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. @@ -92,7 +94,7 @@ Response deleteWithResponse( /** * Get a custom certificate. - * + * * @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. @@ -103,7 +105,7 @@ Response deleteWithResponse( /** * Get a custom certificate. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -115,7 +117,7 @@ Response deleteWithResponse( /** * Delete a custom certificate. - * + * * @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. @@ -125,7 +127,7 @@ Response deleteWithResponse( /** * Delete a custom certificate. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +139,7 @@ Response deleteWithResponse( /** * Begins definition for a new CustomCertificate resource. - * + * * @param name resource name. * @return the first stage of the new CustomCertificate definition. */ diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCustomDomains.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCustomDomains.java index 505cda6614f3d..6da9815ec6506 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCustomDomains.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRCustomDomains.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SignalRCustomDomains. */ +/** + * Resource collection API of SignalRCustomDomains. + */ public interface SignalRCustomDomains { /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,7 +26,7 @@ public interface SignalRCustomDomains { /** * List all custom domains. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -37,7 +39,7 @@ public interface SignalRCustomDomains { /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -51,7 +53,7 @@ public interface SignalRCustomDomains { /** * Get a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -64,7 +66,7 @@ public interface SignalRCustomDomains { /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -76,7 +78,7 @@ public interface SignalRCustomDomains { /** * Delete a custom domain. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param name Custom domain name. @@ -89,7 +91,7 @@ public interface SignalRCustomDomains { /** * Get a custom domain. - * + * * @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. @@ -100,7 +102,7 @@ public interface SignalRCustomDomains { /** * Get a custom domain. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -112,7 +114,7 @@ public interface SignalRCustomDomains { /** * Delete a custom domain. - * + * * @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. @@ -122,7 +124,7 @@ public interface SignalRCustomDomains { /** * Delete a custom domain. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -133,7 +135,7 @@ public interface SignalRCustomDomains { /** * Begins definition for a new CustomDomain resource. - * + * * @param name resource name. * @return the first stage of the new CustomDomain definition. */ diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRFeature.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRFeature.java index 0acb86dd95140..aab676769aa08 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRFeature.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRFeature.java @@ -10,27 +10,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Feature of a resource, which controls the runtime behavior. */ +/** + * Feature of a resource, which controls the runtime behavior. + */ @Fluent public final class SignalRFeature { /* * FeatureFlags is the supported features of Azure SignalR service. - * - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have your own backend - * server; "Serverless": your application doesn't have a backend server; "Classic": for backward compatibility. - * Support both Default and Serverless mode but not recommended; "PredefinedOnly": for future use. + * - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have your own backend server; "Serverless": your application doesn't have a backend server; "Classic": for backward compatibility. Support both Default and Serverless mode but not recommended; "PredefinedOnly": for future use. * - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log category respectively. * - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category respectively. - * - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will give you - * live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or - * self-troubleshooting some issues. Please note that live traces are counted as outbound messages that will be - * charged. Values allowed: "true"/"false", to enable/disable live trace feature. + * - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will give you live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or self-troubleshooting some issues. Please note that live traces are counted as outbound messages that will be charged. Values allowed: "true"/"false", to enable/disable live trace feature. */ @JsonProperty(value = "flag", required = true) private FeatureFlags flag; /* - * Value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/azure/azure-signalr/ - * for allowed values. + * Value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/azure/azure-signalr/ for allowed values. */ @JsonProperty(value = "value", required = true) private String value; @@ -42,22 +38,24 @@ public final class SignalRFeature { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map properties; - /** Creates an instance of SignalRFeature class. */ + /** + * Creates an instance of SignalRFeature class. + */ public SignalRFeature() { } /** - * Get the flag property: FeatureFlags is the supported features of Azure SignalR service. - ServiceMode: Flag for - * backend server for SignalR service. Values allowed: "Default": have your own backend server; "Serverless": your - * application doesn't have a backend server; "Classic": for backward compatibility. Support both Default and - * Serverless mode but not recommended; "PredefinedOnly": for future use. - EnableConnectivityLogs: "true"/"false", - * to enable/disable the connectivity log category respectively. - EnableMessagingLogs: "true"/"false", to - * enable/disable the connectivity log category respectively. - EnableLiveTrace: Live Trace allows you to know - * what's happening inside Azure SignalR service, it will give you live traces in real time, it will be helpful when - * you developing your own Azure SignalR based web application or self-troubleshooting some issues. Please note that - * live traces are counted as outbound messages that will be charged. Values allowed: "true"/"false", to - * enable/disable live trace feature. - * + * Get the flag property: FeatureFlags is the supported features of Azure SignalR service. + * - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have your own backend + * server; "Serverless": your application doesn't have a backend server; "Classic": for backward compatibility. + * Support both Default and Serverless mode but not recommended; "PredefinedOnly": for future use. + * - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log category respectively. + * - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category respectively. + * - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will give you + * live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or + * self-troubleshooting some issues. Please note that live traces are counted as outbound messages that will be + * charged. Values allowed: "true"/"false", to enable/disable live trace feature. + * * @return the flag value. */ public FeatureFlags flag() { @@ -65,17 +63,17 @@ public FeatureFlags flag() { } /** - * Set the flag property: FeatureFlags is the supported features of Azure SignalR service. - ServiceMode: Flag for - * backend server for SignalR service. Values allowed: "Default": have your own backend server; "Serverless": your - * application doesn't have a backend server; "Classic": for backward compatibility. Support both Default and - * Serverless mode but not recommended; "PredefinedOnly": for future use. - EnableConnectivityLogs: "true"/"false", - * to enable/disable the connectivity log category respectively. - EnableMessagingLogs: "true"/"false", to - * enable/disable the connectivity log category respectively. - EnableLiveTrace: Live Trace allows you to know - * what's happening inside Azure SignalR service, it will give you live traces in real time, it will be helpful when - * you developing your own Azure SignalR based web application or self-troubleshooting some issues. Please note that - * live traces are counted as outbound messages that will be charged. Values allowed: "true"/"false", to - * enable/disable live trace feature. - * + * Set the flag property: FeatureFlags is the supported features of Azure SignalR service. + * - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have your own backend + * server; "Serverless": your application doesn't have a backend server; "Classic": for backward compatibility. + * Support both Default and Serverless mode but not recommended; "PredefinedOnly": for future use. + * - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log category respectively. + * - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category respectively. + * - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will give you + * live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or + * self-troubleshooting some issues. Please note that live traces are counted as outbound messages that will be + * charged. Values allowed: "true"/"false", to enable/disable live trace feature. + * * @param flag the flag value to set. * @return the SignalRFeature object itself. */ @@ -87,7 +85,7 @@ public SignalRFeature withFlag(FeatureFlags flag) { /** * Get the value property: Value of the feature flag. See Azure SignalR service document * https://docs.microsoft.com/azure/azure-signalr/ for allowed values. - * + * * @return the value value. */ public String value() { @@ -97,7 +95,7 @@ public String value() { /** * Set the value property: Value of the feature flag. See Azure SignalR service document * https://docs.microsoft.com/azure/azure-signalr/ for allowed values. - * + * * @param value the value value to set. * @return the SignalRFeature object itself. */ @@ -108,7 +106,7 @@ public SignalRFeature withValue(String value) { /** * Get the properties property: Optional properties related to this feature. - * + * * @return the properties value. */ public Map properties() { @@ -117,7 +115,7 @@ public Map properties() { /** * Set the properties property: Optional properties related to this feature. - * + * * @param properties the properties value to set. * @return the SignalRFeature object itself. */ @@ -128,19 +126,17 @@ public SignalRFeature withProperties(Map properties) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (flag() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property flag in model SignalRFeature")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property flag in model SignalRFeature")); } if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model SignalRFeature")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model SignalRFeature")); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRKeys.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRKeys.java index fec8422b0b6a6..40f093c28499f 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRKeys.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRKeys.java @@ -6,39 +6,41 @@ import com.azure.resourcemanager.signalr.fluent.models.SignalRKeysInner; -/** An immutable client-side representation of SignalRKeys. */ +/** + * An immutable client-side representation of SignalRKeys. + */ public interface SignalRKeys { /** * Gets the primaryKey property: The primary access key. - * + * * @return the primaryKey value. */ String primaryKey(); /** * Gets the secondaryKey property: The secondary access key. - * + * * @return the secondaryKey value. */ String secondaryKey(); /** * Gets the primaryConnectionString property: Connection string constructed via the primaryKey. - * + * * @return the primaryConnectionString value. */ String primaryConnectionString(); /** * Gets the secondaryConnectionString property: Connection string constructed via the secondaryKey. - * + * * @return the secondaryConnectionString value. */ String secondaryConnectionString(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.SignalRKeysInner object. - * + * * @return the inner object. */ SignalRKeysInner innerModel(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRNetworkACLs.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRNetworkACLs.java index b3c4b43cb638a..095e1061cd072 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRNetworkACLs.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRNetworkACLs.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Network ACLs for the resource. */ +/** + * Network ACLs for the resource. + */ @Fluent public final class SignalRNetworkACLs { /* @@ -35,13 +37,15 @@ public final class SignalRNetworkACLs { @JsonProperty(value = "ipRules") private List ipRules; - /** Creates an instance of SignalRNetworkACLs class. */ + /** + * Creates an instance of SignalRNetworkACLs class. + */ public SignalRNetworkACLs() { } /** * Get the defaultAction property: Azure Networking ACL Action. - * + * * @return the defaultAction value. */ public AclAction defaultAction() { @@ -50,7 +54,7 @@ public AclAction defaultAction() { /** * Set the defaultAction property: Azure Networking ACL Action. - * + * * @param defaultAction the defaultAction value to set. * @return the SignalRNetworkACLs object itself. */ @@ -61,7 +65,7 @@ public SignalRNetworkACLs withDefaultAction(AclAction defaultAction) { /** * Get the publicNetwork property: Network ACL. - * + * * @return the publicNetwork value. */ public NetworkAcl publicNetwork() { @@ -70,7 +74,7 @@ public NetworkAcl publicNetwork() { /** * Set the publicNetwork property: Network ACL. - * + * * @param publicNetwork the publicNetwork value to set. * @return the SignalRNetworkACLs object itself. */ @@ -81,7 +85,7 @@ public SignalRNetworkACLs withPublicNetwork(NetworkAcl publicNetwork) { /** * Get the privateEndpoints property: ACLs for requests from private endpoints. - * + * * @return the privateEndpoints value. */ public List privateEndpoints() { @@ -90,7 +94,7 @@ public List privateEndpoints() { /** * Set the privateEndpoints property: ACLs for requests from private endpoints. - * + * * @param privateEndpoints the privateEndpoints value to set. * @return the SignalRNetworkACLs object itself. */ @@ -101,7 +105,7 @@ public SignalRNetworkACLs withPrivateEndpoints(List privateE /** * Get the ipRules property: IP rules for filtering public traffic. - * + * * @return the ipRules value. */ public List ipRules() { @@ -110,7 +114,7 @@ public List ipRules() { /** * Set the ipRules property: IP rules for filtering public traffic. - * + * * @param ipRules the ipRules value to set. * @return the SignalRNetworkACLs object itself. */ @@ -121,7 +125,7 @@ public SignalRNetworkACLs withIpRules(List ipRules) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRPrivateEndpointConnections.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRPrivateEndpointConnections.java index 7522b3a472637..1b06a43a0b9c8 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRPrivateEndpointConnections.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRPrivateEndpointConnections.java @@ -9,11 +9,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.signalr.fluent.models.PrivateEndpointConnectionInner; -/** Resource collection API of SignalRPrivateEndpointConnections. */ +/** + * Resource collection API of SignalRPrivateEndpointConnections. + */ public interface SignalRPrivateEndpointConnections { /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -25,7 +27,7 @@ public interface SignalRPrivateEndpointConnections { /** * List private endpoint connections. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -38,9 +40,9 @@ public interface SignalRPrivateEndpointConnections { /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -49,14 +51,14 @@ public interface SignalRPrivateEndpointConnections { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified private endpoint connection along with {@link Response}. */ - Response getWithResponse( - String privateEndpointConnectionName, String resourceGroupName, String resourceName, Context context); + Response getWithResponse(String privateEndpointConnectionName, String resourceGroupName, + String resourceName, Context context); /** * Get the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -68,9 +70,9 @@ Response getWithResponse( /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -80,18 +82,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private endpoint connection to an azure resource along with {@link Response}. */ - Response updateWithResponse( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters, - Context context); + Response updateWithResponse(String privateEndpointConnectionName, + String resourceGroupName, String resourceName, PrivateEndpointConnectionInner parameters, Context context); /** * Update the state of specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. @@ -100,17 +98,14 @@ Response updateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private endpoint connection to an azure resource. */ - PrivateEndpointConnection update( - String privateEndpointConnectionName, - String resourceGroupName, - String resourceName, - PrivateEndpointConnectionInner parameters); + PrivateEndpointConnection update(String privateEndpointConnectionName, String resourceGroupName, + String resourceName, PrivateEndpointConnectionInner parameters); /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -121,9 +116,9 @@ PrivateEndpointConnection update( /** * Delete the specified private endpoint connection. - * + * * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRPrivateLinkResources.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRPrivateLinkResources.java index c5eaed23b19ea..6b2490508fb0f 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRPrivateLinkResources.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRPrivateLinkResources.java @@ -7,32 +7,34 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of SignalRPrivateLinkResources. */ +/** + * Resource collection API of SignalRPrivateLinkResources. + */ public interface SignalRPrivateLinkResources { /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 the private link resources that need to be created for a resource as paginated response with {@link - * PagedIterable}. + * @return the private link resources that need to be created for a resource as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String resourceName); /** * Get the private link resources that need to be created for a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the 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 private link resources that need to be created for a resource as paginated response with {@link - * PagedIterable}. + * @return the private link resources that need to be created for a resource as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicaSharedPrivateLinkResources.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicaSharedPrivateLinkResources.java new file mode 100644 index 0000000000000..947aafbdcab13 --- /dev/null +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicaSharedPrivateLinkResources.java @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.signalr.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 SignalRReplicaSharedPrivateLinkResources. + */ +public interface SignalRReplicaSharedPrivateLinkResources { + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String resourceName, String replicaName); + + /** + * List shared private link resources. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of shared private link resources as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String resourceName, String replicaName, + Context context); + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 specified shared private link resource along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String resourceName, + String replicaName, String sharedPrivateLinkResourceName, Context context); + + /** + * Get the specified shared private link resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the resource. + * @param replicaName The name of the replica. + * @param sharedPrivateLinkResourceName The name of the shared private link 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 the specified shared private link resource. + */ + SharedPrivateLinkResource get(String resourceGroupName, String resourceName, String replicaName, + String sharedPrivateLinkResourceName); + + /** + * Get the specified shared private link 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. + * @return the specified shared private link resource along with {@link Response}. + */ + SharedPrivateLinkResource getById(String id); + + /** + * Get the specified shared private link 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 specified shared private link resource along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new SharedPrivateLinkResource resource. + * + * @param name resource name. + * @return the first stage of the new SharedPrivateLinkResource definition. + */ + SharedPrivateLinkResource.DefinitionStages.Blank define(String name); +} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicas.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicas.java index be0a3996d3e37..cbec22f2104df 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicas.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicas.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SignalRReplicas. */ +/** + * Resource collection API of SignalRReplicas. + */ public interface SignalRReplicas { /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,7 +26,7 @@ public interface SignalRReplicas { /** * List all replicas belong to this resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -37,7 +39,7 @@ public interface SignalRReplicas { /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -47,12 +49,12 @@ public interface SignalRReplicas { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the replica and its properties along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context); + Response getWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context); /** * Get the replica and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -65,7 +67,7 @@ Response getWithResponse( /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -75,12 +77,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context); + Response deleteWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context); /** * Operation to delete a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -92,7 +94,7 @@ Response deleteWithResponse( /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -104,7 +106,7 @@ Response deleteWithResponse( /** * Operation to restart a replica. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -117,7 +119,7 @@ Response deleteWithResponse( /** * Get the replica and its properties. - * + * * @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. @@ -128,7 +130,7 @@ Response deleteWithResponse( /** * Get the replica and its properties. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,7 +142,7 @@ Response deleteWithResponse( /** * Operation to delete a replica. - * + * * @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. @@ -150,7 +152,7 @@ Response deleteWithResponse( /** * Operation to delete a replica. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -162,7 +164,7 @@ Response deleteWithResponse( /** * Begins definition for a new Replica resource. - * + * * @param name resource name. * @return the first stage of the new Replica definition. */ diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRRequestType.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRRequestType.java index 929b352a7f80c..8b39de8dd94ef 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRRequestType.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRRequestType.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The incoming request type to the service. */ +/** + * The incoming request type to the service. + */ public final class SignalRRequestType extends ExpandableStringEnum { - /** Static value ClientConnection for SignalRRequestType. */ + /** + * Static value ClientConnection for SignalRRequestType. + */ public static final SignalRRequestType CLIENT_CONNECTION = fromString("ClientConnection"); - /** Static value ServerConnection for SignalRRequestType. */ + /** + * Static value ServerConnection for SignalRRequestType. + */ public static final SignalRRequestType SERVER_CONNECTION = fromString("ServerConnection"); - /** Static value RESTAPI for SignalRRequestType. */ + /** + * Static value RESTAPI for SignalRRequestType. + */ public static final SignalRRequestType RESTAPI = fromString("RESTAPI"); - /** Static value Trace for SignalRRequestType. */ + /** + * Static value Trace for SignalRRequestType. + */ public static final SignalRRequestType TRACE = fromString("Trace"); /** * Creates a new instance of SignalRRequestType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public SignalRRequestType() { /** * Creates or finds a SignalRRequestType from its string representation. - * + * * @param name a name to look for. * @return the corresponding SignalRRequestType. */ @@ -44,7 +54,7 @@ public static SignalRRequestType fromString(String name) { /** * Gets known SignalRRequestType values. - * + * * @return known SignalRRequestType values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRResource.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRResource.java index 4adaf8a45d5b9..144dfd2c40f91 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRResource.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRResource.java @@ -12,88 +12,90 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of SignalRResource. */ +/** + * An immutable client-side representation of SignalRResource. + */ public interface SignalRResource { /** * 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 sku property: The billing information of the resource. - * + * * @return the sku value. */ ResourceSku sku(); /** * Gets the kind property: The kind of the service. - * + * * @return the kind value. */ ServiceKind kind(); /** * Gets the identity property: A class represent managed identities used for request and response. - * + * * @return the identity value. */ ManagedIdentity identity(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: Provisioning state of the resource. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** * Gets the externalIp property: The publicly accessible IP of the resource. - * + * * @return the externalIp value. */ String externalIp(); /** * Gets the hostname property: FQDN of the service instance. - * + * * @return the hostname value. */ String hostname(); @@ -101,7 +103,7 @@ public interface SignalRResource { /** * Gets the publicPort property: The publicly accessible port of the resource which is designed for browser/client * side usage. - * + * * @return the publicPort value. */ Integer publicPort(); @@ -109,189 +111,198 @@ public interface SignalRResource { /** * Gets the serverPort property: The publicly accessible port of the resource which is designed for customer server * side usage. - * + * * @return the serverPort value. */ Integer serverPort(); /** * Gets the version property: Version of the resource. Probably you need the same or higher version of client SDKs. - * + * * @return the version value. */ String version(); /** * Gets the privateEndpointConnections property: Private endpoint connections to the resource. - * + * * @return the privateEndpointConnections value. */ List privateEndpointConnections(); /** * Gets the sharedPrivateLinkResources property: The list of shared private link resources. - * + * * @return the sharedPrivateLinkResources value. */ List sharedPrivateLinkResources(); /** * Gets the tls property: TLS settings for the resource. - * + * * @return the tls value. */ SignalRTlsSettings tls(); /** * Gets the hostnamePrefix property: Deprecated. - * + * * @return the hostnamePrefix value. */ String hostnamePrefix(); /** * Gets the features property: List of the featureFlags. - * - *

FeatureFlags that are not included in the parameters for the update operation will not be modified. And the - * response will only include featureFlags that are explicitly set. When a featureFlag is not explicitly set, its - * globally default value will be used But keep in mind, the default value doesn't mean "false". It varies in terms - * of different FeatureFlags. - * + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. + * * @return the features value. */ List features(); /** * Gets the liveTraceConfiguration property: Live trace configuration of a Microsoft.SignalRService resource. - * + * * @return the liveTraceConfiguration value. */ LiveTraceConfiguration liveTraceConfiguration(); /** * Gets the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService resource. - * + * * @return the resourceLogConfiguration value. */ ResourceLogConfiguration resourceLogConfiguration(); /** * Gets the cors property: Cross-Origin Resource Sharing (CORS) settings. - * + * * @return the cors value. */ SignalRCorsSettings cors(); /** * Gets the serverless property: Serverless settings. - * + * * @return the serverless value. */ ServerlessSettings serverless(); /** * Gets the upstream property: The settings for the Upstream when the service is in server-less mode. - * + * * @return the upstream value. */ ServerlessUpstreamSettings upstream(); /** * Gets the networkACLs property: Network ACLs for the resource. - * + * * @return the networkACLs value. */ SignalRNetworkACLs networkACLs(); /** - * Gets the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". When it's - * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what - * you set in network ACLs. - * + * Gets the publicNetworkAccess property: Enable or disable public network access. Default to "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs. + * * @return the publicNetworkAccess value. */ String publicNetworkAccess(); /** - * Gets the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey When set as - * true, connection with AccessKey=xxx won't work. - * + * Gets the disableLocalAuth property: DisableLocalAuth + * Enable or disable local auth with AccessKey + * When set as true, connection with AccessKey=xxx won't work. + * * @return the disableLocalAuth value. */ Boolean disableLocalAuth(); /** - * Gets the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, connection with - * AuthType=aad won't work. - * + * Gets the disableAadAuth property: DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work. + * * @return the disableAadAuth value. */ Boolean disableAadAuth(); /** - * Gets the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. + * Gets the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be + * affected. * This property is replica specific. Disable the regional endpoint without replica is not allowed. - * + * * @return the regionEndpointEnabled value. */ String regionEndpointEnabled(); /** - * Gets the resourceStopped property: Stop or start the resource. Default to "False". When it's true, the data plane - * of the resource is shutdown. When it's false, the data plane of the resource is started. - * + * Gets the resourceStopped property: Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. + * * @return the resourceStopped value. */ String resourceStopped(); /** * 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.signalr.fluent.models.SignalRResourceInner object. - * + * * @return the inner object. */ SignalRResourceInner innerModel(); - /** The entirety of the SignalRResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, - DefinitionStages.WithCreate { + /** + * The entirety of the SignalRResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { } - /** The SignalRResource definition stages. */ + /** + * The SignalRResource definition stages. + */ interface DefinitionStages { - /** The first stage of the SignalRResource definition. */ + /** + * The first stage of the SignalRResource definition. + */ interface Blank extends WithLocation { } - /** The stage of the SignalRResource definition allowing to specify location. */ + /** + * The stage of the SignalRResource 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. */ @@ -299,18 +310,20 @@ interface WithLocation { /** * 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 SignalRResource definition allowing to specify parent resource. */ + /** + * The stage of the SignalRResource 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. */ @@ -321,249 +334,281 @@ interface WithResourceGroup { * The stage of the SignalRResource 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.WithSku, - DefinitionStages.WithKind, - DefinitionStages.WithIdentity, - DefinitionStages.WithTls, - DefinitionStages.WithFeatures, - DefinitionStages.WithLiveTraceConfiguration, - DefinitionStages.WithResourceLogConfiguration, - DefinitionStages.WithCors, - DefinitionStages.WithServerless, - DefinitionStages.WithUpstream, - DefinitionStages.WithNetworkACLs, - DefinitionStages.WithPublicNetworkAccess, - DefinitionStages.WithDisableLocalAuth, - DefinitionStages.WithDisableAadAuth, - DefinitionStages.WithRegionEndpointEnabled, - DefinitionStages.WithResourceStopped { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithSku, DefinitionStages.WithKind, + DefinitionStages.WithIdentity, DefinitionStages.WithTls, DefinitionStages.WithFeatures, + DefinitionStages.WithLiveTraceConfiguration, DefinitionStages.WithResourceLogConfiguration, + DefinitionStages.WithCors, DefinitionStages.WithServerless, DefinitionStages.WithUpstream, + DefinitionStages.WithNetworkACLs, DefinitionStages.WithPublicNetworkAccess, + DefinitionStages.WithDisableLocalAuth, DefinitionStages.WithDisableAadAuth, + DefinitionStages.WithRegionEndpointEnabled, DefinitionStages.WithResourceStopped { /** * Executes the create request. - * + * * @return the created resource. */ SignalRResource create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SignalRResource create(Context context); } - /** The stage of the SignalRResource definition allowing to specify tags. */ + /** + * The stage of the SignalRResource 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 SignalRResource definition allowing to specify sku. */ + /** + * The stage of the SignalRResource definition allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: The billing information of the resource.. - * + * * @param sku The billing information of the resource. * @return the next definition stage. */ WithCreate withSku(ResourceSku sku); } - /** The stage of the SignalRResource definition allowing to specify kind. */ + /** + * The stage of the SignalRResource definition allowing to specify kind. + */ interface WithKind { /** * Specifies the kind property: The kind of the service. - * + * * @param kind The kind of the service. * @return the next definition stage. */ WithCreate withKind(ServiceKind kind); } - /** The stage of the SignalRResource definition allowing to specify identity. */ + /** + * The stage of the SignalRResource definition allowing to specify identity. + */ interface WithIdentity { /** * Specifies the identity property: A class represent managed identities used for request and response. - * + * * @param identity A class represent managed identities used for request and response. * @return the next definition stage. */ WithCreate withIdentity(ManagedIdentity identity); } - /** The stage of the SignalRResource definition allowing to specify tls. */ + /** + * The stage of the SignalRResource definition allowing to specify tls. + */ interface WithTls { /** * Specifies the tls property: TLS settings for the resource. - * + * * @param tls TLS settings for the resource. * @return the next definition stage. */ WithCreate withTls(SignalRTlsSettings tls); } - /** The stage of the SignalRResource definition allowing to specify features. */ + /** + * The stage of the SignalRResource definition allowing to specify features. + */ interface WithFeatures { /** * Specifies the features property: List of the featureFlags. - * - *

FeatureFlags that are not included in the parameters for the update operation will not be modified. - * And the response will only include featureFlags that are explicitly set. When a featureFlag is not - * explicitly set, its globally default value will be used But keep in mind, the default value doesn't mean - * "false". It varies in terms of different FeatureFlags.. - * + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags.. + * * @param features List of the featureFlags. - *

FeatureFlags that are not included in the parameters for the update operation will not be - * modified. And the response will only include featureFlags that are explicitly set. When a featureFlag - * is not explicitly set, its globally default value will be used But keep in mind, the default value - * doesn't mean "false". It varies in terms of different FeatureFlags. + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. * @return the next definition stage. */ WithCreate withFeatures(List features); } - /** The stage of the SignalRResource definition allowing to specify liveTraceConfiguration. */ + /** + * The stage of the SignalRResource definition allowing to specify liveTraceConfiguration. + */ interface WithLiveTraceConfiguration { /** * Specifies the liveTraceConfiguration property: Live trace configuration of a Microsoft.SignalRService * resource.. - * + * * @param liveTraceConfiguration Live trace configuration of a Microsoft.SignalRService resource. * @return the next definition stage. */ WithCreate withLiveTraceConfiguration(LiveTraceConfiguration liveTraceConfiguration); } - /** The stage of the SignalRResource definition allowing to specify resourceLogConfiguration. */ + /** + * The stage of the SignalRResource definition allowing to specify resourceLogConfiguration. + */ interface WithResourceLogConfiguration { /** * Specifies the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService * resource.. - * + * * @param resourceLogConfiguration Resource log configuration of a Microsoft.SignalRService resource. * @return the next definition stage. */ WithCreate withResourceLogConfiguration(ResourceLogConfiguration resourceLogConfiguration); } - /** The stage of the SignalRResource definition allowing to specify cors. */ + /** + * The stage of the SignalRResource definition allowing to specify cors. + */ interface WithCors { /** * Specifies the cors property: Cross-Origin Resource Sharing (CORS) settings.. - * + * * @param cors Cross-Origin Resource Sharing (CORS) settings. * @return the next definition stage. */ WithCreate withCors(SignalRCorsSettings cors); } - /** The stage of the SignalRResource definition allowing to specify serverless. */ + /** + * The stage of the SignalRResource definition allowing to specify serverless. + */ interface WithServerless { /** * Specifies the serverless property: Serverless settings.. - * + * * @param serverless Serverless settings. * @return the next definition stage. */ WithCreate withServerless(ServerlessSettings serverless); } - /** The stage of the SignalRResource definition allowing to specify upstream. */ + /** + * The stage of the SignalRResource definition allowing to specify upstream. + */ interface WithUpstream { /** * Specifies the upstream property: The settings for the Upstream when the service is in server-less mode.. - * + * * @param upstream The settings for the Upstream when the service is in server-less mode. * @return the next definition stage. */ WithCreate withUpstream(ServerlessUpstreamSettings upstream); } - /** The stage of the SignalRResource definition allowing to specify networkACLs. */ + /** + * The stage of the SignalRResource definition allowing to specify networkACLs. + */ interface WithNetworkACLs { /** * Specifies the networkACLs property: Network ACLs for the resource. - * + * * @param networkACLs Network ACLs for the resource. * @return the next definition stage. */ WithCreate withNetworkACLs(SignalRNetworkACLs networkACLs); } - /** The stage of the SignalRResource definition allowing to specify publicNetworkAccess. */ + /** + * The stage of the SignalRResource definition allowing to specify publicNetworkAccess. + */ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: Enable or disable public network access. Default to - * "Enabled". When it's Enabled, network ACLs still apply. When it's Disabled, public network access is - * always disabled no matter what you set in network ACLs.. - * - * @param publicNetworkAccess Enable or disable public network access. Default to "Enabled". When it's - * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no - * matter what you set in network ACLs. + * "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs.. + * + * @param publicNetworkAccess Enable or disable public network access. Default to "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs. * @return the next definition stage. */ WithCreate withPublicNetworkAccess(String publicNetworkAccess); } - /** The stage of the SignalRResource definition allowing to specify disableLocalAuth. */ + /** + * The stage of the SignalRResource definition allowing to specify disableLocalAuth. + */ interface WithDisableLocalAuth { /** - * Specifies the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey + * Specifies the disableLocalAuth property: DisableLocalAuth + * Enable or disable local auth with AccessKey * When set as true, connection with AccessKey=xxx won't work.. - * - * @param disableLocalAuth DisableLocalAuth Enable or disable local auth with AccessKey When set as true, - * connection with AccessKey=xxx won't work. + * + * @param disableLocalAuth DisableLocalAuth + * Enable or disable local auth with AccessKey + * When set as true, connection with AccessKey=xxx won't work. * @return the next definition stage. */ WithCreate withDisableLocalAuth(Boolean disableLocalAuth); } - /** The stage of the SignalRResource definition allowing to specify disableAadAuth. */ + /** + * The stage of the SignalRResource definition allowing to specify disableAadAuth. + */ interface WithDisableAadAuth { /** - * Specifies the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, - * connection with AuthType=aad won't work.. - * - * @param disableAadAuth DisableLocalAuth Enable or disable aad auth When set as true, connection with - * AuthType=aad won't work. + * Specifies the disableAadAuth property: DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work.. + * + * @param disableAadAuth DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work. * @return the next definition stage. */ WithCreate withDisableAadAuth(Boolean disableAadAuth); } - /** The stage of the SignalRResource definition allowing to specify regionEndpointEnabled. */ + /** + * The stage of the SignalRResource definition allowing to specify regionEndpointEnabled. + */ interface WithRegionEndpointEnabled { /** * Specifies the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to - * "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing - * connections will not be affected. This property is replica specific. Disable the regional endpoint - * without replica is not allowed.. - * - * @param regionEndpointEnabled Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not - * be affected. This property is replica specific. Disable the regional endpoint without replica is not - * allowed. + * "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections + * will not be affected. + * This property is replica specific. Disable the regional endpoint without replica is not allowed.. + * + * @param regionEndpointEnabled Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections + * will not be affected. + * This property is replica specific. Disable the regional endpoint without replica is not allowed. * @return the next definition stage. */ WithCreate withRegionEndpointEnabled(String regionEndpointEnabled); } - /** The stage of the SignalRResource definition allowing to specify resourceStopped. */ + /** + * The stage of the SignalRResource definition allowing to specify resourceStopped. + */ interface WithResourceStopped { /** - * Specifies the resourceStopped property: Stop or start the resource. Default to "False". When it's true, - * the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.. - * - * @param resourceStopped Stop or start the resource. Default to "False". When it's true, the data plane of - * the resource is shutdown. When it's false, the data plane of the resource is started. + * Specifies the resourceStopped property: Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started.. + * + * @param resourceStopped Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. * @return the next definition stage. */ WithCreate withResourceStopped(String resourceStopped); @@ -572,245 +617,279 @@ interface WithResourceStopped { /** * Begins update for the SignalRResource resource. - * + * * @return the stage of resource update. */ SignalRResource.Update update(); - /** The template for SignalRResource update. */ + /** + * The template for SignalRResource update. + */ interface Update - extends UpdateStages.WithTags, - UpdateStages.WithSku, - UpdateStages.WithIdentity, - UpdateStages.WithTls, - UpdateStages.WithFeatures, - UpdateStages.WithLiveTraceConfiguration, - UpdateStages.WithResourceLogConfiguration, - UpdateStages.WithCors, - UpdateStages.WithServerless, - UpdateStages.WithUpstream, - UpdateStages.WithNetworkACLs, - UpdateStages.WithPublicNetworkAccess, - UpdateStages.WithDisableLocalAuth, - UpdateStages.WithDisableAadAuth, - UpdateStages.WithRegionEndpointEnabled, - UpdateStages.WithResourceStopped { + extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithIdentity, UpdateStages.WithTls, + UpdateStages.WithFeatures, UpdateStages.WithLiveTraceConfiguration, UpdateStages.WithResourceLogConfiguration, + UpdateStages.WithCors, UpdateStages.WithServerless, UpdateStages.WithUpstream, UpdateStages.WithNetworkACLs, + UpdateStages.WithPublicNetworkAccess, UpdateStages.WithDisableLocalAuth, UpdateStages.WithDisableAadAuth, + UpdateStages.WithRegionEndpointEnabled, UpdateStages.WithResourceStopped { /** * Executes the update request. - * + * * @return the updated resource. */ SignalRResource apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SignalRResource apply(Context context); } - /** The SignalRResource update stages. */ + /** + * The SignalRResource update stages. + */ interface UpdateStages { - /** The stage of the SignalRResource update allowing to specify tags. */ + /** + * The stage of the SignalRResource 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); } - /** The stage of the SignalRResource update allowing to specify sku. */ + /** + * The stage of the SignalRResource update allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: The billing information of the resource.. - * + * * @param sku The billing information of the resource. * @return the next definition stage. */ Update withSku(ResourceSku sku); } - /** The stage of the SignalRResource update allowing to specify identity. */ + /** + * The stage of the SignalRResource update allowing to specify identity. + */ interface WithIdentity { /** * Specifies the identity property: A class represent managed identities used for request and response. - * + * * @param identity A class represent managed identities used for request and response. * @return the next definition stage. */ Update withIdentity(ManagedIdentity identity); } - /** The stage of the SignalRResource update allowing to specify tls. */ + /** + * The stage of the SignalRResource update allowing to specify tls. + */ interface WithTls { /** * Specifies the tls property: TLS settings for the resource. - * + * * @param tls TLS settings for the resource. * @return the next definition stage. */ Update withTls(SignalRTlsSettings tls); } - /** The stage of the SignalRResource update allowing to specify features. */ + /** + * The stage of the SignalRResource update allowing to specify features. + */ interface WithFeatures { /** * Specifies the features property: List of the featureFlags. - * - *

FeatureFlags that are not included in the parameters for the update operation will not be modified. - * And the response will only include featureFlags that are explicitly set. When a featureFlag is not - * explicitly set, its globally default value will be used But keep in mind, the default value doesn't mean - * "false". It varies in terms of different FeatureFlags.. - * + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags.. + * * @param features List of the featureFlags. - *

FeatureFlags that are not included in the parameters for the update operation will not be - * modified. And the response will only include featureFlags that are explicitly set. When a featureFlag - * is not explicitly set, its globally default value will be used But keep in mind, the default value - * doesn't mean "false". It varies in terms of different FeatureFlags. + * + * FeatureFlags that are not included in the parameters for the update operation will not be modified. + * And the response will only include featureFlags that are explicitly set. + * When a featureFlag is not explicitly set, its globally default value will be used + * But keep in mind, the default value doesn't mean "false". It varies in terms of different FeatureFlags. * @return the next definition stage. */ Update withFeatures(List features); } - /** The stage of the SignalRResource update allowing to specify liveTraceConfiguration. */ + /** + * The stage of the SignalRResource update allowing to specify liveTraceConfiguration. + */ interface WithLiveTraceConfiguration { /** * Specifies the liveTraceConfiguration property: Live trace configuration of a Microsoft.SignalRService * resource.. - * + * * @param liveTraceConfiguration Live trace configuration of a Microsoft.SignalRService resource. * @return the next definition stage. */ Update withLiveTraceConfiguration(LiveTraceConfiguration liveTraceConfiguration); } - /** The stage of the SignalRResource update allowing to specify resourceLogConfiguration. */ + /** + * The stage of the SignalRResource update allowing to specify resourceLogConfiguration. + */ interface WithResourceLogConfiguration { /** * Specifies the resourceLogConfiguration property: Resource log configuration of a Microsoft.SignalRService * resource.. - * + * * @param resourceLogConfiguration Resource log configuration of a Microsoft.SignalRService resource. * @return the next definition stage. */ Update withResourceLogConfiguration(ResourceLogConfiguration resourceLogConfiguration); } - /** The stage of the SignalRResource update allowing to specify cors. */ + /** + * The stage of the SignalRResource update allowing to specify cors. + */ interface WithCors { /** * Specifies the cors property: Cross-Origin Resource Sharing (CORS) settings.. - * + * * @param cors Cross-Origin Resource Sharing (CORS) settings. * @return the next definition stage. */ Update withCors(SignalRCorsSettings cors); } - /** The stage of the SignalRResource update allowing to specify serverless. */ + /** + * The stage of the SignalRResource update allowing to specify serverless. + */ interface WithServerless { /** * Specifies the serverless property: Serverless settings.. - * + * * @param serverless Serverless settings. * @return the next definition stage. */ Update withServerless(ServerlessSettings serverless); } - /** The stage of the SignalRResource update allowing to specify upstream. */ + /** + * The stage of the SignalRResource update allowing to specify upstream. + */ interface WithUpstream { /** * Specifies the upstream property: The settings for the Upstream when the service is in server-less mode.. - * + * * @param upstream The settings for the Upstream when the service is in server-less mode. * @return the next definition stage. */ Update withUpstream(ServerlessUpstreamSettings upstream); } - /** The stage of the SignalRResource update allowing to specify networkACLs. */ + /** + * The stage of the SignalRResource update allowing to specify networkACLs. + */ interface WithNetworkACLs { /** * Specifies the networkACLs property: Network ACLs for the resource. - * + * * @param networkACLs Network ACLs for the resource. * @return the next definition stage. */ Update withNetworkACLs(SignalRNetworkACLs networkACLs); } - /** The stage of the SignalRResource update allowing to specify publicNetworkAccess. */ + /** + * The stage of the SignalRResource update allowing to specify publicNetworkAccess. + */ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: Enable or disable public network access. Default to - * "Enabled". When it's Enabled, network ACLs still apply. When it's Disabled, public network access is - * always disabled no matter what you set in network ACLs.. - * - * @param publicNetworkAccess Enable or disable public network access. Default to "Enabled". When it's - * Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no - * matter what you set in network ACLs. + * "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs.. + * + * @param publicNetworkAccess Enable or disable public network access. Default to "Enabled". + * When it's Enabled, network ACLs still apply. + * When it's Disabled, public network access is always disabled no matter what you set in network ACLs. * @return the next definition stage. */ Update withPublicNetworkAccess(String publicNetworkAccess); } - /** The stage of the SignalRResource update allowing to specify disableLocalAuth. */ + /** + * The stage of the SignalRResource update allowing to specify disableLocalAuth. + */ interface WithDisableLocalAuth { /** - * Specifies the disableLocalAuth property: DisableLocalAuth Enable or disable local auth with AccessKey + * Specifies the disableLocalAuth property: DisableLocalAuth + * Enable or disable local auth with AccessKey * When set as true, connection with AccessKey=xxx won't work.. - * - * @param disableLocalAuth DisableLocalAuth Enable or disable local auth with AccessKey When set as true, - * connection with AccessKey=xxx won't work. + * + * @param disableLocalAuth DisableLocalAuth + * Enable or disable local auth with AccessKey + * When set as true, connection with AccessKey=xxx won't work. * @return the next definition stage. */ Update withDisableLocalAuth(Boolean disableLocalAuth); } - /** The stage of the SignalRResource update allowing to specify disableAadAuth. */ + /** + * The stage of the SignalRResource update allowing to specify disableAadAuth. + */ interface WithDisableAadAuth { /** - * Specifies the disableAadAuth property: DisableLocalAuth Enable or disable aad auth When set as true, - * connection with AuthType=aad won't work.. - * - * @param disableAadAuth DisableLocalAuth Enable or disable aad auth When set as true, connection with - * AuthType=aad won't work. + * Specifies the disableAadAuth property: DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work.. + * + * @param disableAadAuth DisableLocalAuth + * Enable or disable aad auth + * When set as true, connection with AuthType=aad won't work. * @return the next definition stage. */ Update withDisableAadAuth(Boolean disableAadAuth); } - /** The stage of the SignalRResource update allowing to specify regionEndpointEnabled. */ + /** + * The stage of the SignalRResource update allowing to specify regionEndpointEnabled. + */ interface WithRegionEndpointEnabled { /** * Specifies the regionEndpointEnabled property: Enable or disable the regional endpoint. Default to - * "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing - * connections will not be affected. This property is replica specific. Disable the regional endpoint - * without replica is not allowed.. - * - * @param regionEndpointEnabled Enable or disable the regional endpoint. Default to "Enabled". When it's - * Disabled, new connections will not be routed to this endpoint, however existing connections will not - * be affected. This property is replica specific. Disable the regional endpoint without replica is not - * allowed. + * "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections + * will not be affected. + * This property is replica specific. Disable the regional endpoint without replica is not allowed.. + * + * @param regionEndpointEnabled Enable or disable the regional endpoint. Default to "Enabled". + * When it's Disabled, new connections will not be routed to this endpoint, however existing connections + * will not be affected. + * This property is replica specific. Disable the regional endpoint without replica is not allowed. * @return the next definition stage. */ Update withRegionEndpointEnabled(String regionEndpointEnabled); } - /** The stage of the SignalRResource update allowing to specify resourceStopped. */ + /** + * The stage of the SignalRResource update allowing to specify resourceStopped. + */ interface WithResourceStopped { /** - * Specifies the resourceStopped property: Stop or start the resource. Default to "False". When it's true, - * the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.. - * - * @param resourceStopped Stop or start the resource. Default to "False". When it's true, the data plane of - * the resource is shutdown. When it's false, the data plane of the resource is started. + * Specifies the resourceStopped property: Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started.. + * + * @param resourceStopped Stop or start the resource. Default to "False". + * When it's true, the data plane of the resource is shutdown. + * When it's false, the data plane of the resource is started. * @return the next definition stage. */ Update withResourceStopped(String resourceStopped); @@ -819,14 +898,14 @@ interface WithResourceStopped { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SignalRResource refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -834,7 +913,7 @@ interface WithResourceStopped { /** * Get the access keys of the 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. @@ -845,7 +924,7 @@ interface WithResourceStopped { /** * Get the access keys of the resource. - * + * * @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 access keys of the resource. @@ -854,7 +933,7 @@ interface WithResourceStopped { /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -865,7 +944,7 @@ interface WithResourceStopped { /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -877,7 +956,7 @@ interface WithResourceStopped { /** * Operation to restart a resource. - * + * * @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. */ @@ -885,7 +964,7 @@ interface WithResourceStopped { /** * Operation to restart a 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. diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRResourceList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRResourceList.java index f37cc2f08331f..2de016d7c52cc 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRResourceList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRResourceList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Object that includes an array of resources and a possible link for next set. */ +/** + * Object that includes an array of resources and a possible link for next set. + */ @Fluent public final class SignalRResourceList { /* @@ -25,13 +27,15 @@ public final class SignalRResourceList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of SignalRResourceList class. */ + /** + * Creates an instance of SignalRResourceList class. + */ public SignalRResourceList() { } /** * Get the value property: List of the resources. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of the resources. - * + * * @param value the value value to set. * @return the SignalRResourceList object itself. */ @@ -50,9 +54,9 @@ public SignalRResourceList withValue(List value) { } /** - * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ public String nextLink() { @@ -60,9 +64,9 @@ public String nextLink() { } /** - * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @param nextLink the nextLink value to set. * @return the SignalRResourceList object itself. */ @@ -73,7 +77,7 @@ public SignalRResourceList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRSharedPrivateLinkResources.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRSharedPrivateLinkResources.java index c9aca909fdebc..d7b63b3b6e721 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRSharedPrivateLinkResources.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRSharedPrivateLinkResources.java @@ -7,12 +7,15 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; +import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner; -/** Resource collection API of SignalRSharedPrivateLinkResources. */ +/** + * Resource collection API of SignalRSharedPrivateLinkResources. + */ public interface SignalRSharedPrivateLinkResources { /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,7 +27,7 @@ public interface SignalRSharedPrivateLinkResources { /** * List shared private link resources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -37,7 +40,7 @@ public interface SignalRSharedPrivateLinkResources { /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -47,12 +50,12 @@ public interface SignalRSharedPrivateLinkResources { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified shared private link resource along with {@link Response}. */ - Response getWithResponse( - String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context); + Response getWithResponse(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, Context context); /** * Get the specified shared private link resource. - * + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. @@ -64,79 +67,58 @@ Response getWithResponse( SharedPrivateLinkResource get(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName); /** - * Delete the specified shared private link resource. - * + * Create or update a shared private link resource. + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource. */ - void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName); + SharedPrivateLinkResource createOrUpdate(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, SharedPrivateLinkResourceInner parameters); /** - * Delete the specified shared private link resource. - * + * Create or update a shared private link resource. + * * @param sharedPrivateLinkResourceName The name of the shared private link resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. + * @param parameters The shared private link 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 describes a Shared Private Link Resource. */ - void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context); - - /** - * Get the specified shared private link 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. - * @return the specified shared private link resource along with {@link Response}. - */ - SharedPrivateLinkResource getById(String id); - - /** - * Get the specified shared private link 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 specified shared private link resource along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); + SharedPrivateLinkResource createOrUpdate(String sharedPrivateLinkResourceName, String resourceGroupName, + String resourceName, SharedPrivateLinkResourceInner parameters, Context context); /** * Delete the specified shared private link resource. - * - * @param id the resource ID. + * + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the 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 deleteById(String id); + void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName); /** * Delete the specified shared private link resource. - * - * @param id the resource ID. + * + * @param sharedPrivateLinkResourceName The name of the shared private link resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the 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. */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new SharedPrivateLinkResource resource. - * - * @param name resource name. - * @return the first stage of the new SharedPrivateLinkResource definition. - */ - SharedPrivateLinkResource.DefinitionStages.Blank define(String name); + void delete(String sharedPrivateLinkResourceName, String resourceGroupName, String resourceName, Context context); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRSkuTier.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRSkuTier.java index 6f095428b5a98..beb78d8029a4a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRSkuTier.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRSkuTier.java @@ -10,25 +10,33 @@ /** * Optional tier of this particular SKU. 'Standard' or 'Free'. - * - *

`Basic` is deprecated, use `Standard` instead. + * + * `Basic` is deprecated, use `Standard` instead. */ public final class SignalRSkuTier extends ExpandableStringEnum { - /** Static value Free for SignalRSkuTier. */ + /** + * Static value Free for SignalRSkuTier. + */ public static final SignalRSkuTier FREE = fromString("Free"); - /** Static value Basic for SignalRSkuTier. */ + /** + * Static value Basic for SignalRSkuTier. + */ public static final SignalRSkuTier BASIC = fromString("Basic"); - /** Static value Standard for SignalRSkuTier. */ + /** + * Static value Standard for SignalRSkuTier. + */ public static final SignalRSkuTier STANDARD = fromString("Standard"); - /** Static value Premium for SignalRSkuTier. */ + /** + * Static value Premium for SignalRSkuTier. + */ public static final SignalRSkuTier PREMIUM = fromString("Premium"); /** * Creates a new instance of SignalRSkuTier value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,7 +45,7 @@ public SignalRSkuTier() { /** * Creates or finds a SignalRSkuTier from its string representation. - * + * * @param name a name to look for. * @return the corresponding SignalRSkuTier. */ @@ -48,7 +56,7 @@ public static SignalRSkuTier fromString(String name) { /** * Gets known SignalRSkuTier values. - * + * * @return known SignalRSkuTier values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRTlsSettings.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRTlsSettings.java index 3c5087502c0fe..aa40104850589 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRTlsSettings.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRTlsSettings.java @@ -7,24 +7,27 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** TLS settings for the resource. */ +/** + * TLS settings for the resource. + */ @Fluent public final class SignalRTlsSettings { /* - * Request client certificate during TLS handshake if enabled. Not supported for free tier. Any input will be - * ignored for free tier. + * Request client certificate during TLS handshake if enabled. Not supported for free tier. Any input will be ignored for free tier. */ @JsonProperty(value = "clientCertEnabled") private Boolean clientCertEnabled; - /** Creates an instance of SignalRTlsSettings class. */ + /** + * Creates an instance of SignalRTlsSettings class. + */ public SignalRTlsSettings() { } /** * Get the clientCertEnabled property: Request client certificate during TLS handshake if enabled. Not supported for * free tier. Any input will be ignored for free tier. - * + * * @return the clientCertEnabled value. */ public Boolean clientCertEnabled() { @@ -34,7 +37,7 @@ public Boolean clientCertEnabled() { /** * Set the clientCertEnabled property: Request client certificate during TLS handshake if enabled. Not supported for * free tier. Any input will be ignored for free tier. - * + * * @param clientCertEnabled the clientCertEnabled value to set. * @return the SignalRTlsSettings object itself. */ @@ -45,7 +48,7 @@ public SignalRTlsSettings withClientCertEnabled(Boolean clientCertEnabled) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsage.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsage.java index 10ad57a8fe62c..e5885b50a0779 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsage.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsage.java @@ -6,18 +6,20 @@ import com.azure.resourcemanager.signalr.fluent.models.SignalRUsageInner; -/** An immutable client-side representation of SignalRUsage. */ +/** + * An immutable client-side representation of SignalRUsage. + */ public interface SignalRUsage { /** * Gets the id property: Fully qualified ARM resource id. - * + * * @return the id value. */ String id(); /** * Gets the currentValue property: Current value for the usage quota. - * + * * @return the currentValue value. */ Long currentValue(); @@ -25,14 +27,14 @@ public interface SignalRUsage { /** * Gets the limit property: The maximum permitted value for the usage quota. If there is no limit, this value will * be -1. - * + * * @return the limit value. */ Long limit(); /** * Gets the name property: Localizable String object containing the name and a localized value. - * + * * @return the name value. */ SignalRUsageName name(); @@ -40,14 +42,14 @@ public interface SignalRUsage { /** * Gets the unit property: Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, * Percent, CountPerSecond, BytesPerSecond. - * + * * @return the unit value. */ String unit(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.SignalRUsageInner object. - * + * * @return the inner object. */ SignalRUsageInner innerModel(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsageList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsageList.java index 8390614c6b44e..2d2f038322be2 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsageList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsageList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Object that includes an array of the resource usages and a possible link for next set. */ +/** + * Object that includes an array of the resource usages and a possible link for next set. + */ @Fluent public final class SignalRUsageList { /* @@ -25,13 +27,15 @@ public final class SignalRUsageList { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of SignalRUsageList class. */ + /** + * Creates an instance of SignalRUsageList class. + */ public SignalRUsageList() { } /** * Get the value property: List of the resource usages. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of the resource usages. - * + * * @param value the value value to set. * @return the SignalRUsageList object itself. */ @@ -50,9 +54,9 @@ public SignalRUsageList withValue(List value) { } /** - * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Get the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ public String nextLink() { @@ -60,9 +64,9 @@ public String nextLink() { } /** - * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Set the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @param nextLink the nextLink value to set. * @return the SignalRUsageList object itself. */ @@ -73,7 +77,7 @@ public SignalRUsageList withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsageName.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsageName.java index 0cd0dc87e4aa6..37346698f5ff8 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsageName.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRUsageName.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Localizable String object containing the name and a localized value. */ +/** + * Localizable String object containing the name and a localized value. + */ @Fluent public final class SignalRUsageName { /* @@ -22,13 +24,15 @@ public final class SignalRUsageName { @JsonProperty(value = "localizedValue") private String localizedValue; - /** Creates an instance of SignalRUsageName class. */ + /** + * Creates an instance of SignalRUsageName class. + */ public SignalRUsageName() { } /** * Get the value property: The identifier of the usage. - * + * * @return the value value. */ public String value() { @@ -37,7 +41,7 @@ public String value() { /** * Set the value property: The identifier of the usage. - * + * * @param value the value value to set. * @return the SignalRUsageName object itself. */ @@ -48,7 +52,7 @@ public SignalRUsageName withValue(String value) { /** * Get the localizedValue property: Localized name of the usage. - * + * * @return the localizedValue value. */ public String localizedValue() { @@ -57,7 +61,7 @@ public String localizedValue() { /** * Set the localizedValue property: Localized name of the usage. - * + * * @param localizedValue the localizedValue value to set. * @return the SignalRUsageName object itself. */ @@ -68,7 +72,7 @@ public SignalRUsageName withLocalizedValue(String localizedValue) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRs.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRs.java index 664146e0a3937..99974ecf895da 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRs.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRs.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SignalRs. */ +/** + * Resource collection API of SignalRs. + */ public interface SignalRs { /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the operation. * @param context The context to associate with this operation. @@ -21,12 +23,12 @@ public interface SignalRs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to check name availability along with {@link Response}. */ - Response checkNameAvailabilityWithResponse( - String location, NameAvailabilityParameters parameters, Context context); + Response checkNameAvailabilityWithResponse(String location, NameAvailabilityParameters parameters, + Context context); /** * Checks that the resource name is valid and is not already in use. - * + * * @param location the region. * @param parameters Parameters supplied to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,54 +40,54 @@ Response checkNameAvailabilityWithResponse( /** * Handles requests to list all resources in a subscription. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable list(); /** * Handles requests to list all resources in a subscription. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable list(Context context); /** * Handles requests to list all resources in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * Handles requests to list all resources in a resource group. - * + * * @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 object that includes an array of resources and a possible link for next set as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -94,12 +96,12 @@ Response checkNameAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the resource and its properties along with {@link Response}. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String resourceName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String resourceName, + Context context); /** * Get the resource and its properties. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -111,7 +113,7 @@ Response getByResourceGroupWithResponse( /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,7 +124,7 @@ Response getByResourceGroupWithResponse( /** * Operation to delete a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -134,7 +136,7 @@ Response getByResourceGroupWithResponse( /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -147,7 +149,7 @@ Response getByResourceGroupWithResponse( /** * Get the access keys of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,7 +161,7 @@ Response getByResourceGroupWithResponse( /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -172,7 +174,7 @@ Response getByResourceGroupWithResponse( /** * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. @@ -182,12 +184,12 @@ Response getByResourceGroupWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a class represents the access keys of the resource. */ - SignalRKeys regenerateKey( - String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, Context context); + SignalRKeys regenerateKey(String resourceGroupName, String resourceName, RegenerateKeyParameters parameters, + Context context); /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -197,12 +199,12 @@ SignalRKeys regenerateKey( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list skus operation response along with {@link Response}. */ - Response listReplicaSkusWithResponse( - String resourceGroupName, String resourceName, String replicaName, Context context); + Response listReplicaSkusWithResponse(String resourceGroupName, String resourceName, String replicaName, + Context context); /** * List all available skus of the replica resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param replicaName The name of the replica. @@ -215,7 +217,7 @@ Response listReplicaSkusWithResponse( /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,7 +228,7 @@ Response listReplicaSkusWithResponse( /** * Operation to restart a resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -238,7 +240,7 @@ Response listReplicaSkusWithResponse( /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -251,7 +253,7 @@ Response listReplicaSkusWithResponse( /** * List all available skus of the resource. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -263,7 +265,7 @@ Response listReplicaSkusWithResponse( /** * Get the resource and its properties. - * + * * @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. @@ -274,7 +276,7 @@ Response listReplicaSkusWithResponse( /** * Get the resource and its properties. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -286,7 +288,7 @@ Response listReplicaSkusWithResponse( /** * Operation to delete a 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. @@ -296,7 +298,7 @@ Response listReplicaSkusWithResponse( /** * Operation to delete a resource. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -307,7 +309,7 @@ Response listReplicaSkusWithResponse( /** * Begins definition for a new SignalRResource resource. - * + * * @param name resource name. * @return the first stage of the new SignalRResource definition. */ diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Sku.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Sku.java index 614500f53382a..ac1c9a42d3f0a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Sku.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Sku.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Describes an available sku.". */ +/** + * Describes an available sku.". + */ @Immutable public final class Sku { /* @@ -28,13 +30,15 @@ public final class Sku { @JsonProperty(value = "capacity", access = JsonProperty.Access.WRITE_ONLY) private SkuCapacity capacity; - /** Creates an instance of Sku class. */ + /** + * Creates an instance of Sku class. + */ public Sku() { } /** * Get the resourceType property: The resource type that this object applies to. - * + * * @return the resourceType value. */ public String resourceType() { @@ -43,7 +47,7 @@ public String resourceType() { /** * Get the sku property: The billing information of the resource. - * + * * @return the sku value. */ public ResourceSku sku() { @@ -52,7 +56,7 @@ public ResourceSku sku() { /** * Get the capacity property: Describes scaling information of a sku. - * + * * @return the capacity value. */ public SkuCapacity capacity() { @@ -61,7 +65,7 @@ public SkuCapacity capacity() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SkuCapacity.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SkuCapacity.java index 96009ca1ad856..66d3ef3551e87 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SkuCapacity.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SkuCapacity.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Describes scaling information of a sku. */ +/** + * Describes scaling information of a sku. + */ @Immutable public final class SkuCapacity { /* @@ -41,13 +43,15 @@ public final class SkuCapacity { @JsonProperty(value = "scaleType", access = JsonProperty.Access.WRITE_ONLY) private ScaleType scaleType; - /** Creates an instance of SkuCapacity class. */ + /** + * Creates an instance of SkuCapacity class. + */ public SkuCapacity() { } /** * Get the minimum property: The lowest permitted capacity for this resource. - * + * * @return the minimum value. */ public Integer minimum() { @@ -56,7 +60,7 @@ public Integer minimum() { /** * Get the maximum property: The highest permitted capacity for this resource. - * + * * @return the maximum value. */ public Integer maximum() { @@ -65,7 +69,7 @@ public Integer maximum() { /** * Get the defaultProperty property: The default capacity. - * + * * @return the defaultProperty value. */ public Integer defaultProperty() { @@ -74,7 +78,7 @@ public Integer defaultProperty() { /** * Get the allowedValues property: Allows capacity value list. - * + * * @return the allowedValues value. */ public List allowedValues() { @@ -83,7 +87,7 @@ public List allowedValues() { /** * Get the scaleType property: The scale type applicable to the sku. - * + * * @return the scaleType value. */ public ScaleType scaleType() { @@ -92,7 +96,7 @@ public ScaleType scaleType() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SkuList.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SkuList.java index 332e83ca2109f..384da965775ee 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SkuList.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SkuList.java @@ -7,26 +7,28 @@ import com.azure.resourcemanager.signalr.fluent.models.SkuListInner; import java.util.List; -/** An immutable client-side representation of SkuList. */ +/** + * An immutable client-side representation of SkuList. + */ public interface SkuList { /** * Gets the value property: The list of skus available for the resource. - * + * * @return the value value. */ List value(); /** - * Gets the nextLink property: The URL the client should use to fetch the next page (per server side paging). It's - * null for now, added for future use. - * + * Gets the nextLink property: The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * * @return the nextLink value. */ String nextLink(); /** * Gets the inner com.azure.resourcemanager.signalr.fluent.models.SkuListInner object. - * + * * @return the inner object. */ SkuListInner innerModel(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamAuthSettings.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamAuthSettings.java index 97d705735c77a..d782caa1f2f73 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamAuthSettings.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamAuthSettings.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Upstream auth settings. If not set, no auth is used for upstream messages. */ +/** + * Upstream auth settings. If not set, no auth is used for upstream messages. + */ @Fluent public final class UpstreamAuthSettings { /* @@ -22,13 +24,15 @@ public final class UpstreamAuthSettings { @JsonProperty(value = "managedIdentity") private ManagedIdentitySettings managedIdentity; - /** Creates an instance of UpstreamAuthSettings class. */ + /** + * Creates an instance of UpstreamAuthSettings class. + */ public UpstreamAuthSettings() { } /** * Get the type property: Upstream auth type enum. - * + * * @return the type value. */ public UpstreamAuthType type() { @@ -37,7 +41,7 @@ public UpstreamAuthType type() { /** * Set the type property: Upstream auth type enum. - * + * * @param type the type value to set. * @return the UpstreamAuthSettings object itself. */ @@ -48,7 +52,7 @@ public UpstreamAuthSettings withType(UpstreamAuthType type) { /** * Get the managedIdentity property: Managed identity settings for upstream. - * + * * @return the managedIdentity value. */ public ManagedIdentitySettings managedIdentity() { @@ -57,7 +61,7 @@ public ManagedIdentitySettings managedIdentity() { /** * Set the managedIdentity property: Managed identity settings for upstream. - * + * * @param managedIdentity the managedIdentity value to set. * @return the UpstreamAuthSettings object itself. */ @@ -68,7 +72,7 @@ public UpstreamAuthSettings withManagedIdentity(ManagedIdentitySettings managedI /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamAuthType.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamAuthType.java index 7592069512821..bd2f50443eb6d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamAuthType.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamAuthType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Upstream auth type enum. */ +/** + * Upstream auth type enum. + */ public final class UpstreamAuthType extends ExpandableStringEnum { - /** Static value None for UpstreamAuthType. */ + /** + * Static value None for UpstreamAuthType. + */ public static final UpstreamAuthType NONE = fromString("None"); - /** Static value ManagedIdentity for UpstreamAuthType. */ + /** + * Static value ManagedIdentity for UpstreamAuthType. + */ public static final UpstreamAuthType MANAGED_IDENTITY = fromString("ManagedIdentity"); /** * Creates a new instance of UpstreamAuthType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public UpstreamAuthType() { /** * Creates or finds a UpstreamAuthType from its string representation. - * + * * @param name a name to look for. * @return the corresponding UpstreamAuthType. */ @@ -38,7 +44,7 @@ public static UpstreamAuthType fromString(String name) { /** * Gets known UpstreamAuthType values. - * + * * @return known UpstreamAuthType values. */ public static Collection values() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamTemplate.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamTemplate.java index fdb674bcd29ff..871a07ef65618 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamTemplate.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UpstreamTemplate.java @@ -9,17 +9,18 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Upstream template item settings. It defines the Upstream URL of the incoming requests. The template defines the - * pattern of the event, the hub or the category of the incoming request that matches current URL template. + * Upstream template item settings. It defines the Upstream URL of the incoming requests. + * The template defines the pattern of the event, the hub or the category of the incoming request that matches current + * URL template. */ @Fluent public final class UpstreamTemplate { /* * Gets or sets the matching pattern for hub names. If not set, it matches any hub. * There are 3 kind of patterns supported: - * 1. "*", it to matches any hub name. - * 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches "hub1" and "hub2". - * 3. The single hub name, for example, "hub1", it matches "hub1". + * 1. "*", it to matches any hub name. + * 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches "hub1" and "hub2". + * 3. The single hub name, for example, "hub1", it matches "hub1". */ @JsonProperty(value = "hubPattern") private String hubPattern; @@ -27,10 +28,9 @@ public final class UpstreamTemplate { /* * Gets or sets the matching pattern for event names. If not set, it matches any event. * There are 3 kind of patterns supported: - * 1. "*", it to matches any event name. - * 2. Combine multiple events with ",", for example "connect,disconnect", it matches event "connect" and - * "disconnect". - * 3. The single event name, for example, "connect", it matches "connect". + * 1. "*", it to matches any event name. + * 2. Combine multiple events with ",", for example "connect,disconnect", it matches event "connect" and "disconnect". + * 3. The single event name, for example, "connect", it matches "connect". */ @JsonProperty(value = "eventPattern") private String eventPattern; @@ -38,19 +38,16 @@ public final class UpstreamTemplate { /* * Gets or sets the matching pattern for category names. If not set, it matches any category. * There are 3 kind of patterns supported: - * 1. "*", it to matches any category name. - * 2. Combine multiple categories with ",", for example "connections,messages", it matches category "connections" - * and "messages". - * 3. The single category name, for example, "connections", it matches the category "connections". + * 1. "*", it to matches any category name. + * 2. Combine multiple categories with ",", for example "connections,messages", it matches category "connections" and "messages". + * 3. The single category name, for example, "connections", it matches the category "connections". */ @JsonProperty(value = "categoryPattern") private String categoryPattern; /* - * Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, {category} {event} inside the - * template, the value of the Upstream URL is dynamically calculated when the client request comes in. - * For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client request from hub `chat` - * connects, it will first POST to this URL: `http://example.com/chat/api/connect`. + * Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, {category} {event} inside the template, the value of the Upstream URL is dynamically calculated when the client request comes in. + * For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client request from hub `chat` connects, it will first POST to this URL: `http://example.com/chat/api/connect`. */ @JsonProperty(value = "urlTemplate", required = true) private String urlTemplate; @@ -61,16 +58,19 @@ public final class UpstreamTemplate { @JsonProperty(value = "auth") private UpstreamAuthSettings auth; - /** Creates an instance of UpstreamTemplate class. */ + /** + * Creates an instance of UpstreamTemplate class. + */ public UpstreamTemplate() { } /** * Get the hubPattern property: Gets or sets the matching pattern for hub names. If not set, it matches any hub. - * There are 3 kind of patterns supported: 1. "*", it to matches any hub name. 2. Combine multiple hubs with ",", - * for example "hub1,hub2", it matches "hub1" and "hub2". 3. The single hub name, for example, "hub1", it matches - * "hub1". - * + * There are 3 kind of patterns supported: + * 1. "*", it to matches any hub name. + * 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches "hub1" and "hub2". + * 3. The single hub name, for example, "hub1", it matches "hub1". + * * @return the hubPattern value. */ public String hubPattern() { @@ -79,10 +79,11 @@ public String hubPattern() { /** * Set the hubPattern property: Gets or sets the matching pattern for hub names. If not set, it matches any hub. - * There are 3 kind of patterns supported: 1. "*", it to matches any hub name. 2. Combine multiple hubs with ",", - * for example "hub1,hub2", it matches "hub1" and "hub2". 3. The single hub name, for example, "hub1", it matches - * "hub1". - * + * There are 3 kind of patterns supported: + * 1. "*", it to matches any hub name. + * 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches "hub1" and "hub2". + * 3. The single hub name, for example, "hub1", it matches "hub1". + * * @param hubPattern the hubPattern value to set. * @return the UpstreamTemplate object itself. */ @@ -93,10 +94,13 @@ public UpstreamTemplate withHubPattern(String hubPattern) { /** * Get the eventPattern property: Gets or sets the matching pattern for event names. If not set, it matches any - * event. There are 3 kind of patterns supported: 1. "*", it to matches any event name. 2. Combine multiple events - * with ",", for example "connect,disconnect", it matches event "connect" and "disconnect". 3. The single event - * name, for example, "connect", it matches "connect". - * + * event. + * There are 3 kind of patterns supported: + * 1. "*", it to matches any event name. + * 2. Combine multiple events with ",", for example "connect,disconnect", it matches event "connect" and + * "disconnect". + * 3. The single event name, for example, "connect", it matches "connect". + * * @return the eventPattern value. */ public String eventPattern() { @@ -105,10 +109,13 @@ public String eventPattern() { /** * Set the eventPattern property: Gets or sets the matching pattern for event names. If not set, it matches any - * event. There are 3 kind of patterns supported: 1. "*", it to matches any event name. 2. Combine multiple events - * with ",", for example "connect,disconnect", it matches event "connect" and "disconnect". 3. The single event - * name, for example, "connect", it matches "connect". - * + * event. + * There are 3 kind of patterns supported: + * 1. "*", it to matches any event name. + * 2. Combine multiple events with ",", for example "connect,disconnect", it matches event "connect" and + * "disconnect". + * 3. The single event name, for example, "connect", it matches "connect". + * * @param eventPattern the eventPattern value to set. * @return the UpstreamTemplate object itself. */ @@ -119,10 +126,13 @@ public UpstreamTemplate withEventPattern(String eventPattern) { /** * Get the categoryPattern property: Gets or sets the matching pattern for category names. If not set, it matches - * any category. There are 3 kind of patterns supported: 1. "*", it to matches any category name. 2. Combine - * multiple categories with ",", for example "connections,messages", it matches category "connections" and - * "messages". 3. The single category name, for example, "connections", it matches the category "connections". - * + * any category. + * There are 3 kind of patterns supported: + * 1. "*", it to matches any category name. + * 2. Combine multiple categories with ",", for example "connections,messages", it matches category "connections" + * and "messages". + * 3. The single category name, for example, "connections", it matches the category "connections". + * * @return the categoryPattern value. */ public String categoryPattern() { @@ -131,10 +141,13 @@ public String categoryPattern() { /** * Set the categoryPattern property: Gets or sets the matching pattern for category names. If not set, it matches - * any category. There are 3 kind of patterns supported: 1. "*", it to matches any category name. 2. Combine - * multiple categories with ",", for example "connections,messages", it matches category "connections" and - * "messages". 3. The single category name, for example, "connections", it matches the category "connections". - * + * any category. + * There are 3 kind of patterns supported: + * 1. "*", it to matches any category name. + * 2. Combine multiple categories with ",", for example "connections,messages", it matches category "connections" + * and "messages". + * 3. The single category name, for example, "connections", it matches the category "connections". + * * @param categoryPattern the categoryPattern value to set. * @return the UpstreamTemplate object itself. */ @@ -146,9 +159,10 @@ public UpstreamTemplate withCategoryPattern(String categoryPattern) { /** * Get the urlTemplate property: Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, * {category} {event} inside the template, the value of the Upstream URL is dynamically calculated when the client - * request comes in. For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client - * request from hub `chat` connects, it will first POST to this URL: `http://example.com/chat/api/connect`. - * + * request comes in. + * For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client request from hub `chat` + * connects, it will first POST to this URL: `http://example.com/chat/api/connect`. + * * @return the urlTemplate value. */ public String urlTemplate() { @@ -158,9 +172,10 @@ public String urlTemplate() { /** * Set the urlTemplate property: Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, * {category} {event} inside the template, the value of the Upstream URL is dynamically calculated when the client - * request comes in. For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client - * request from hub `chat` connects, it will first POST to this URL: `http://example.com/chat/api/connect`. - * + * request comes in. + * For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client request from hub `chat` + * connects, it will first POST to this URL: `http://example.com/chat/api/connect`. + * * @param urlTemplate the urlTemplate value to set. * @return the UpstreamTemplate object itself. */ @@ -171,7 +186,7 @@ public UpstreamTemplate withUrlTemplate(String urlTemplate) { /** * Get the auth property: Upstream auth settings. If not set, no auth is used for upstream messages. - * + * * @return the auth value. */ public UpstreamAuthSettings auth() { @@ -180,7 +195,7 @@ public UpstreamAuthSettings auth() { /** * Set the auth property: Upstream auth settings. If not set, no auth is used for upstream messages. - * + * * @param auth the auth value to set. * @return the UpstreamTemplate object itself. */ @@ -191,14 +206,13 @@ public UpstreamTemplate withAuth(UpstreamAuthSettings auth) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (urlTemplate() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property urlTemplate in model UpstreamTemplate")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property urlTemplate in model UpstreamTemplate")); } if (auth() != null) { auth().validate(); diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Usages.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Usages.java index bbe902ae71222..0738f27d99303 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Usages.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Usages.java @@ -7,30 +7,32 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of Usages. */ +/** + * Resource collection API of Usages. + */ public interface Usages { /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of the resource usages and a possible link for next set as paginated - * response with {@link PagedIterable}. + * response with {@link PagedIterable}. */ PagedIterable list(String location); /** * List resource usage quotas by location. - * + * * @param location the location like "eastus". * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object that includes an array of the resource usages and a possible link for next set as paginated - * response with {@link PagedIterable}. + * response with {@link PagedIterable}. */ PagedIterable list(String location, Context context); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UserAssignedIdentityProperty.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UserAssignedIdentityProperty.java index ed8151cb5eca8..834303716c625 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UserAssignedIdentityProperty.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/UserAssignedIdentityProperty.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of user assigned identity. */ +/** + * Properties of user assigned identity. + */ @Immutable public final class UserAssignedIdentityProperty { /* @@ -22,13 +24,15 @@ public final class UserAssignedIdentityProperty { @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private String clientId; - /** Creates an instance of UserAssignedIdentityProperty class. */ + /** + * Creates an instance of UserAssignedIdentityProperty class. + */ public UserAssignedIdentityProperty() { } /** * Get the principalId property: Get the principal id for the user assigned identity. - * + * * @return the principalId value. */ public String principalId() { @@ -37,7 +41,7 @@ public String principalId() { /** * Get the clientId property: Get the client id for the user assigned identity. - * + * * @return the clientId value. */ public String clientId() { @@ -46,7 +50,7 @@ public String clientId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/package-info.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/package-info.java index bff80d19552c8..c8838ef9cafb6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/package-info.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the data models for SignalRManagementClient. REST API for Azure SignalR Service. */ +/** + * Package containing the data models for SignalRManagementClient. + * REST API for Azure SignalR Service. + */ package com.azure.resourcemanager.signalr.models; diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/package-info.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/package-info.java index 0685d07d9b24e..62efd6fd557b6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/package-info.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the classes for SignalRManagementClient. REST API for Azure SignalR Service. */ +/** + * Package containing the classes for SignalRManagementClient. + * REST API for Azure SignalR Service. + */ package com.azure.resourcemanager.signalr; diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/module-info.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/module-info.java index 346c0e5321d1d..ffb3854b1cc2a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/module-info.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/module-info.java @@ -4,16 +4,10 @@ module com.azure.resourcemanager.signalr { requires transitive com.azure.core.management; - exports com.azure.resourcemanager.signalr; exports com.azure.resourcemanager.signalr.fluent; exports com.azure.resourcemanager.signalr.fluent.models; exports com.azure.resourcemanager.signalr.models; - - opens com.azure.resourcemanager.signalr.fluent.models to - com.azure.core, - com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.signalr.models to - com.azure.core, - com.fasterxml.jackson.databind; -} + opens com.azure.resourcemanager.signalr.fluent.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.signalr.models to com.azure.core, com.fasterxml.jackson.databind; +} \ No newline at end of file diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-signalr/proxy-config.json b/sdk/signalr/azure-resourcemanager-signalr/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-signalr/proxy-config.json index 0a841202be64d..f392948ff68c1 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-signalr/proxy-config.json +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-signalr/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.signalr.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRsClientImpl$SignalRsService" ], [ "com.azure.resourcemanager.signalr.implementation.UsagesClientImpl$UsagesService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRCustomCertificatesClientImpl$SignalRCustomCertificatesService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRCustomDomainsClientImpl$SignalRCustomDomainsService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRPrivateEndpointConnectionsClientImpl$SignalRPrivateEndpointConnectionsService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRPrivateLinkResourcesClientImpl$SignalRPrivateLinkResourcesService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRReplicasClientImpl$SignalRReplicasService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRSharedPrivateLinkResourcesClientImpl$SignalRSharedPrivateLinkResourcesService" ] ] \ No newline at end of file +[ [ "com.azure.resourcemanager.signalr.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRsClientImpl$SignalRsService" ], [ "com.azure.resourcemanager.signalr.implementation.UsagesClientImpl$UsagesService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRCustomCertificatesClientImpl$SignalRCustomCertificatesService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRCustomDomainsClientImpl$SignalRCustomDomainsService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRPrivateEndpointConnectionsClientImpl$SignalRPrivateEndpointConnectionsService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRPrivateLinkResourcesClientImpl$SignalRPrivateLinkResourcesService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRReplicasClientImpl$SignalRReplicasService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRReplicaSharedPrivateLinkResourcesClientImpl$SignalRReplicaSharedPrivateLinkResourcesService" ], [ "com.azure.resourcemanager.signalr.implementation.SignalRSharedPrivateLinkResourcesClientImpl$SignalRSharedPrivateLinkResourcesService" ] ] \ No newline at end of file diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-signalr/reflect-config.json b/sdk/signalr/azure-resourcemanager-signalr/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-signalr/reflect-config.json index c65db252bc57a..0fb2395c01bfd 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-signalr/reflect-config.json +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-signalr/reflect-config.json @@ -294,22 +294,22 @@ "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.signalr.fluent.models.SkuListInner", + "name" : "com.azure.resourcemanager.signalr.models.SharedPrivateLinkResourceList", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.signalr.models.Sku", + "name" : "com.azure.resourcemanager.signalr.fluent.models.SkuListInner", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.signalr.models.SkuCapacity", + "name" : "com.azure.resourcemanager.signalr.models.Sku", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true }, { - "name" : "com.azure.resourcemanager.signalr.models.SharedPrivateLinkResourceList", + "name" : "com.azure.resourcemanager.signalr.models.SkuCapacity", "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/OperationsListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/OperationsListSamples.java index 63687672b9a45..cc453386d084a 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/OperationsListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/OperationsListSamples.java @@ -4,14 +4,16 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Operations_List.json */ /** * Sample code: Operations_List. - * + * * @param manager Entry point to SignalRManager. */ public static void operationsList(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCheckNameAvailabilitySamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCheckNameAvailabilitySamples.java index cf923581e1d37..fb3c5b32d458e 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCheckNameAvailabilitySamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCheckNameAvailabilitySamples.java @@ -6,23 +6,22 @@ import com.azure.resourcemanager.signalr.models.NameAvailabilityParameters; -/** Samples for SignalR CheckNameAvailability. */ +/** + * Samples for SignalR CheckNameAvailability. + */ public final class SignalRCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_CheckNameAvailability.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_CheckNameAvailability.json */ /** * Sample code: SignalR_CheckNameAvailability. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCheckNameAvailability(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() - .checkNameAvailabilityWithResponse( - "eastus", - new NameAvailabilityParameters() - .withType("Microsoft.SignalRService/SignalR") + manager.signalRs() + .checkNameAvailabilityWithResponse("eastus", + new NameAvailabilityParameters().withType("Microsoft.SignalRService/SignalR") .withName("mySignalRService"), com.azure.core.util.Context.NONE); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCreateOrUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCreateOrUpdateSamples.java index b577a81e753bb..2c5b7692e8f1b 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCreateOrUpdateSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCreateOrUpdateSamples.java @@ -30,19 +30,20 @@ import java.util.HashMap; import java.util.Map; -/** Samples for SignalR CreateOrUpdate. */ +/** + * Samples for SignalR CreateOrUpdate. + */ public final class SignalRCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_CreateOrUpdate.json */ /** * Sample code: SignalR_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() + manager.signalRs() .define("mySignalRService") .withRegion("eastus") .withExistingResourceGroup("myResourceGroup") @@ -51,57 +52,36 @@ public static void signalRCreateOrUpdate(com.azure.resourcemanager.signalr.Signa .withKind(ServiceKind.SIGNALR) .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED)) .withTls(new SignalRTlsSettings().withClientCertEnabled(false)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.SERVICE_MODE) - .withValue("Serverless") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) - .withValue("True") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("False") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("False") - .withProperties(mapOf()))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("false") - .withCategories( - Arrays.asList(new LiveTraceCategory().withName("ConnectivityLogs").withEnabled("true")))) + .withFeatures(Arrays.asList( + new SignalRFeature().withFlag(FeatureFlags.SERVICE_MODE) + .withValue("Serverless") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) + .withValue("True") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("False") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_LIVE_TRACE) + .withValue("False") + .withProperties(mapOf()))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("false") + .withCategories( + Arrays.asList(new LiveTraceCategory().withName("ConnectivityLogs").withEnabled("true")))) .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("https://foo.com", "https://bar.com"))) .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(5)) .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate() - .withHubPattern("*") - .withEventPattern("connect,disconnect") - .withCategoryPattern("*") - .withUrlTemplate("https://example.com/chat/api/connect") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity( - new ManagedIdentitySettings().withResource("api://example")))))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.DENY) - .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withName("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e")))) + new ServerlessUpstreamSettings().withTemplates(Arrays.asList(new UpstreamTemplate().withHubPattern("*") + .withEventPattern("connect,disconnect") + .withCategoryPattern("*") + .withUrlTemplate("https://example.com/chat/api/connect") + .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.MANAGED_IDENTITY) + .withManagedIdentity(new ManagedIdentitySettings().withResource("api://example")))))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.DENY) + .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) + .withPrivateEndpoints(Arrays + .asList(new PrivateEndpointAcl().withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) + .withName("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e")))) .withPublicNetworkAccess("Enabled") .withDisableLocalAuth(false) .withDisableAadAuth(false) diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesCreateOrUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesCreateOrUpdateSamples.java index d481a60114152..35f83549b3c77 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesCreateOrUpdateSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesCreateOrUpdateSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRCustomCertificates CreateOrUpdate. */ +/** + * Samples for SignalRCustomCertificates CreateOrUpdate. + */ public final class SignalRCustomCertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomCertificates_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomCertificates_CreateOrUpdate.json */ /** * Sample code: SignalRCustomCertificates_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRCustomCertificatesCreateOrUpdate( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomCertificates() + public static void + signalRCustomCertificatesCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRCustomCertificates() .define("myCert") .withExistingSignalR("myResourceGroup", "mySignalRService") .withKeyVaultBaseUri("https://myvault.keyvault.azure.net/") diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesDeleteSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesDeleteSamples.java index e2b712e326fa4..764508489f83d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesDeleteSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesDeleteSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRCustomCertificates Delete. */ +/** + * Samples for SignalRCustomCertificates Delete. + */ public final class SignalRCustomCertificatesDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomCertificates_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomCertificates_Delete.json */ /** * Sample code: SignalRCustomCertificates_Delete. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomCertificatesDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomCertificates() + manager.signalRCustomCertificates() .deleteWithResponse("myResourceGroup", "mySignalRService", "myCert", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesGetSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesGetSamples.java index dc5d4cc7389a7..acf3be8755e90 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesGetSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesGetSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRCustomCertificates Get. */ +/** + * Samples for SignalRCustomCertificates Get. + */ public final class SignalRCustomCertificatesGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomCertificates_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomCertificates_Get.json */ /** * Sample code: SignalRCustomCertificates_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomCertificatesGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomCertificates() + manager.signalRCustomCertificates() .getWithResponse("myResourceGroup", "mySignalRService", "myCert", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesListSamples.java index ef33033eee8da..c6204c0397e43 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesListSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRCustomCertificates List. */ +/** + * Samples for SignalRCustomCertificates List. + */ public final class SignalRCustomCertificatesListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomCertificates_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomCertificates_List.json */ /** * Sample code: SignalRCustomCertificates_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomCertificatesList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomCertificates() + manager.signalRCustomCertificates() .list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsCreateOrUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsCreateOrUpdateSamples.java index 929ddd6442468..95de1c1fc271d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsCreateOrUpdateSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsCreateOrUpdateSamples.java @@ -6,26 +6,25 @@ import com.azure.resourcemanager.signalr.models.ResourceReference; -/** Samples for SignalRCustomDomains CreateOrUpdate. */ +/** + * Samples for SignalRCustomDomains CreateOrUpdate. + */ public final class SignalRCustomDomainsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomDomains_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomDomains_CreateOrUpdate.json */ /** * Sample code: SignalRCustomDomains_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomDomainsCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomDomains() + manager.signalRCustomDomains() .define("myDomain") .withExistingSignalR("myResourceGroup", "mySignalRService") .withDomainName("example.com") - .withCustomCertificate( - new ResourceReference() - .withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert")) + .withCustomCertificate(new ResourceReference().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert")) .create(); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsDeleteSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsDeleteSamples.java index d324ebae9919a..a739771e46712 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsDeleteSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsDeleteSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRCustomDomains Delete. */ +/** + * Samples for SignalRCustomDomains Delete. + */ public final class SignalRCustomDomainsDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomDomains_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomDomains_Delete.json */ /** * Sample code: SignalRCustomDomains_Delete. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomDomainsDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomDomains() + manager.signalRCustomDomains() .delete("myResourceGroup", "mySignalRService", "example", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsGetSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsGetSamples.java index 40a92ab9fb455..d4eda210d7e37 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsGetSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsGetSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRCustomDomains Get. */ +/** + * Samples for SignalRCustomDomains Get. + */ public final class SignalRCustomDomainsGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomDomains_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomDomains_Get.json */ /** * Sample code: SignalRCustomDomains_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomDomainsGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRCustomDomains() + manager.signalRCustomDomains() .getWithResponse("myResourceGroup", "mySignalRService", "example", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsListSamples.java index 7af6aa74503d2..2794a15c3a983 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsListSamples.java @@ -4,14 +4,16 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRCustomDomains List. */ +/** + * Samples for SignalRCustomDomains List. + */ public final class SignalRCustomDomainsListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRCustomDomains_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRCustomDomains_List.json */ /** * Sample code: SignalRCustomDomains_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRCustomDomainsList(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRDeleteSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRDeleteSamples.java index 49a36d4fff624..909f0ce45426e 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRDeleteSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRDeleteSamples.java @@ -4,14 +4,16 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalR Delete. */ +/** + * Samples for SignalR Delete. + */ public final class SignalRDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_Delete.json */ /** * Sample code: SignalR_Delete. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRGetByResourceGroupSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRGetByResourceGroupSamples.java index 462f74e8f038a..e84fc90fdc7c7 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRGetByResourceGroupSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRGetByResourceGroupSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalR GetByResourceGroup. */ +/** + * Samples for SignalR GetByResourceGroup. + */ public final class SignalRGetByResourceGroupSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_Get.json */ /** * Sample code: SignalR_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() + manager.signalRs() .getByResourceGroupWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListByResourceGroupSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListByResourceGroupSamples.java index 31809ce0fa456..a1b17d16a913c 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListByResourceGroupSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListByResourceGroupSamples.java @@ -4,14 +4,16 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalR ListByResourceGroup. */ +/** + * Samples for SignalR ListByResourceGroup. + */ public final class SignalRListByResourceGroupSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListByResourceGroup.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListByResourceGroup.json */ /** * Sample code: SignalR_ListByResourceGroup. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListByResourceGroup(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListKeysSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListKeysSamples.java index 8d63a0b7fb265..fdaee347399b9 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListKeysSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListKeysSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalR ListKeys. */ +/** + * Samples for SignalR ListKeys. + */ public final class SignalRListKeysSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListKeys.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListKeys.json */ /** * Sample code: SignalR_ListKeys. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListKeys(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() + manager.signalRs() .listKeysWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListReplicaSkusSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListReplicaSkusSamples.java index 499b7231bb409..ef5aa920edd70 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListReplicaSkusSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListReplicaSkusSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalR ListReplicaSkus. */ +/** + * Samples for SignalR ListReplicaSkus. + */ public final class SignalRListReplicaSkusSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListReplicaSkus.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListReplicaSkus.json */ /** * Sample code: SignalR_ListReplicaSkus. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListReplicaSkus(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() - .listReplicaSkusWithResponse( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + manager.signalRs() + .listReplicaSkusWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListSamples.java index f32eb4cac19be..a2a48cc7172ce 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListSamples.java @@ -4,14 +4,16 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalR List. */ +/** + * Samples for SignalR List. + */ public final class SignalRListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListBySubscription.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListBySubscription.json */ /** * Sample code: SignalR_ListBySubscription. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListBySubscription(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListSkusSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListSkusSamples.java index 5a4c924b6d382..e2bfd0bb5be24 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListSkusSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListSkusSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalR ListSkus. */ +/** + * Samples for SignalR ListSkus. + */ public final class SignalRListSkusSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_ListSkus.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_ListSkus.json */ /** * Sample code: SignalR_ListSkus. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRListSkus(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() + manager.signalRs() .listSkusWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsDeleteSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsDeleteSamples.java index 8ee950f32e185..4db8f66cb615e 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsDeleteSamples.java @@ -4,24 +4,22 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRPrivateEndpointConnections Delete. */ +/** + * Samples for SignalRPrivateEndpointConnections Delete. + */ public final class SignalRPrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateEndpointConnections_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateEndpointConnections_Delete.json */ /** * Sample code: SignalRPrivateEndpointConnections_Delete. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRPrivateEndpointConnectionsDelete( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateEndpointConnections() - .delete( - "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - "myResourceGroup", - "mySignalRService", + public static void + signalRPrivateEndpointConnectionsDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRPrivateEndpointConnections() + .delete("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", "myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsGetSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsGetSamples.java index 45e8a84175ee6..5eca26a5cab1c 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsGetSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsGetSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRPrivateEndpointConnections Get. */ +/** + * Samples for SignalRPrivateEndpointConnections Get. + */ public final class SignalRPrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateEndpointConnections_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateEndpointConnections_Get.json */ /** * Sample code: SignalRPrivateEndpointConnections_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRPrivateEndpointConnectionsGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateEndpointConnections() - .getWithResponse( - "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - "myResourceGroup", - "mySignalRService", - com.azure.core.util.Context.NONE); + manager.signalRPrivateEndpointConnections() + .getWithResponse("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", "myResourceGroup", + "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsListSamples.java index 3fa0344c4d5ee..cba9bcc550adb 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsListSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRPrivateEndpointConnections List. */ +/** + * Samples for SignalRPrivateEndpointConnections List. + */ public final class SignalRPrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateEndpointConnections_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateEndpointConnections_List.json */ /** * Sample code: SignalRPrivateEndpointConnections_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRPrivateEndpointConnectionsList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateEndpointConnections() + manager.signalRPrivateEndpointConnections() .list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsUpdateSamples.java index 1a88e4952dfc1..ee0832ead1b35 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsUpdateSamples.java @@ -9,29 +9,26 @@ import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionState; import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -/** Samples for SignalRPrivateEndpointConnections Update. */ +/** + * Samples for SignalRPrivateEndpointConnections Update. + */ public final class SignalRPrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateEndpointConnections_Update.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateEndpointConnections_Update.json */ /** * Sample code: SignalRPrivateEndpointConnections_Update. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRPrivateEndpointConnectionsUpdate( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateEndpointConnections() - .updateWithResponse( - "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", - "myResourceGroup", + public static void + signalRPrivateEndpointConnectionsUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRPrivateEndpointConnections() + .updateWithResponse("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", "myResourceGroup", "mySignalRService", - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint()) + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.APPROVED) + new PrivateLinkServiceConnectionState().withStatus(PrivateLinkServiceConnectionStatus.APPROVED) .withActionsRequired("None")), com.azure.core.util.Context.NONE); } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateLinkResourcesListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateLinkResourcesListSamples.java index b165252636171..d6837b6267ca8 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateLinkResourcesListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateLinkResourcesListSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRPrivateLinkResources List. */ +/** + * Samples for SignalRPrivateLinkResources List. + */ public final class SignalRPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRPrivateLinkResources_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRPrivateLinkResources_List.json */ /** * Sample code: SignalRPrivateLinkResources_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRPrivateLinkResourcesList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRPrivateLinkResources() + manager.signalRPrivateLinkResources() .list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRRegenerateKeySamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRRegenerateKeySamples.java index d846729ffb864..4ed07d715ff86 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRRegenerateKeySamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRRegenerateKeySamples.java @@ -7,23 +7,21 @@ import com.azure.resourcemanager.signalr.models.KeyType; import com.azure.resourcemanager.signalr.models.RegenerateKeyParameters; -/** Samples for SignalR RegenerateKey. */ +/** + * Samples for SignalR RegenerateKey. + */ public final class SignalRRegenerateKeySamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_RegenerateKey.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_RegenerateKey.json */ /** * Sample code: SignalR_RegenerateKey. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRRegenerateKey(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRs() - .regenerateKey( - "myResourceGroup", - "mySignalRService", - new RegenerateKeyParameters().withKeyType(KeyType.PRIMARY), - com.azure.core.util.Context.NONE); + manager.signalRs() + .regenerateKey("myResourceGroup", "mySignalRService", + new RegenerateKeyParameters().withKeyType(KeyType.PRIMARY), com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesCreateOrUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..dea301b0a2c7c --- /dev/null +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.signalr.generated; + +/** + * Samples for SignalRReplicaSharedPrivateLinkResources CreateOrUpdate. + */ +public final class SignalRReplicaSharedPrivateLinkResourcesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicaSharedPrivateLinkResources_CreateOrUpdate.json + */ + /** + * Sample code: SignalRReplicaSharedPrivateLinkResources_CreateOrUpdate. + * + * @param manager Entry point to SignalRManager. + */ + public static void signalRReplicaSharedPrivateLinkResourcesCreateOrUpdate( + com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRReplicaSharedPrivateLinkResources() + .define("upstream") + .withExistingReplica("myResourceGroup", "mySignalRService", "mySignalRService-eastus") + .withGroupId("sites") + .withPrivateLinkResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp") + .withRequestMessage("Please approve") + .create(); + } +} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesGetSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesGetSamples.java new file mode 100644 index 0000000000000..e919376b31245 --- /dev/null +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.signalr.generated; + +/** + * Samples for SignalRReplicaSharedPrivateLinkResources Get. + */ +public final class SignalRReplicaSharedPrivateLinkResourcesGetSamples { + /* + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicaSharedPrivateLinkResources_Get.json + */ + /** + * Sample code: SignalRReplicaSharedPrivateLinkResources_Get. + * + * @param manager Entry point to SignalRManager. + */ + public static void + signalRReplicaSharedPrivateLinkResourcesGet(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRReplicaSharedPrivateLinkResources() + .getWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", "upstream", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesListSamples.java new file mode 100644 index 0000000000000..0c8402e5f0113 --- /dev/null +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicaSharedPrivateLinkResourcesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.signalr.generated; + +/** + * Samples for SignalRReplicaSharedPrivateLinkResources List. + */ +public final class SignalRReplicaSharedPrivateLinkResourcesListSamples { + /* + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicaSharedPrivateLinkResources_List.json + */ + /** + * Sample code: SignalRReplicaSharedPrivateLinkResources_List. + * + * @param manager Entry point to SignalRManager. + */ + public static void + signalRReplicaSharedPrivateLinkResourcesList(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRReplicaSharedPrivateLinkResources() + .list("myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateSamples.java index 9957066e02de3..1874674f22f94 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateSamples.java @@ -9,19 +9,20 @@ import java.util.HashMap; import java.util.Map; -/** Samples for SignalRReplicas CreateOrUpdate. */ +/** + * Samples for SignalRReplicas CreateOrUpdate. + */ public final class SignalRReplicasCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_CreateOrUpdate.json */ /** * Sample code: SignalRReplicas_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRReplicas() + manager.signalRReplicas() .define("mySignalRService-eastus") .withRegion("eastus") .withExistingSignalR("myResourceGroup", "mySignalRService") diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteSamples.java index 000c946d585eb..06fd667e5b589 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRReplicas Delete. */ +/** + * Samples for SignalRReplicas Delete. + */ public final class SignalRReplicasDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_Delete.json */ /** * Sample code: SignalRReplicas_Delete. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRReplicas() - .deleteWithResponse( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + manager.signalRReplicas() + .deleteWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetSamples.java index 8e4a2765e8291..d09ef9903bbc6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRReplicas Get. */ +/** + * Samples for SignalRReplicas Get. + */ public final class SignalRReplicasGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_Get.json */ /** * Sample code: SignalRReplicas_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRReplicas() - .getWithResponse( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + manager.signalRReplicas() + .getWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListSamples.java index 68e83bed0ef0a..fa071e519c223 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListSamples.java @@ -4,14 +4,16 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRReplicas List. */ +/** + * Samples for SignalRReplicas List. + */ public final class SignalRReplicasListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_List.json */ /** * Sample code: SignalRReplicas_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasList(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasRestartSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasRestartSamples.java index a809823fd0fa0..743f7d9e58ef6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasRestartSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasRestartSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRReplicas Restart. */ +/** + * Samples for SignalRReplicas Restart. + */ public final class SignalRReplicasRestartSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_Restart.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_Restart.json */ /** * Sample code: SignalRReplicas_Restart. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasRestart(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRReplicas() - .restart( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE); + manager.signalRReplicas() + .restart("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasUpdateSamples.java index 4dc1a58f75515..7cd4269ae4f4d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasUpdateSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasUpdateSamples.java @@ -10,25 +10,24 @@ import java.util.HashMap; import java.util.Map; -/** Samples for SignalRReplicas Update. */ +/** + * Samples for SignalRReplicas Update. + */ public final class SignalRReplicasUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRReplicas_Update.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRReplicas_Update.json */ /** * Sample code: SignalRReplicas_Update. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRReplicasUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - Replica resource = - manager - .signalRReplicas() - .getWithResponse( - "myResourceGroup", "mySignalRService", "mySignalRService-eastus", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Replica resource = manager.signalRReplicas() + .getWithResponse("myResourceGroup", "mySignalRService", "mySignalRService-eastus", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withSku(new ResourceSku().withName("Premium_P1").withTier(SignalRSkuTier.PREMIUM).withCapacity(1)) .withResourceStopped("false") diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRRestartSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRRestartSamples.java index 06c1920087a2f..fbdba0ee67343 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRRestartSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRRestartSamples.java @@ -4,14 +4,16 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalR Restart. */ +/** + * Samples for SignalR Restart. + */ public final class SignalRRestartSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Restart.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_Restart.json */ /** * Sample code: SignalR_Restart. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRRestart(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples.java index 123ba47ed25e3..348397ecdcb56 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples.java @@ -4,26 +4,27 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRSharedPrivateLinkResources CreateOrUpdate. */ +import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner; + +/** + * Samples for SignalRSharedPrivateLinkResources CreateOrUpdate. + */ public final class SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRSharedPrivateLinkResources_CreateOrUpdate.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRSharedPrivateLinkResources_CreateOrUpdate.json */ /** * Sample code: SignalRSharedPrivateLinkResources_CreateOrUpdate. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRSharedPrivateLinkResourcesCreateOrUpdate( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRSharedPrivateLinkResources() - .define("upstream") - .withExistingSignalR("myResourceGroup", "mySignalRService") - .withGroupId("sites") - .withPrivateLinkResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp") - .withRequestMessage("Please approve") - .create(); + public static void + signalRSharedPrivateLinkResourcesCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRSharedPrivateLinkResources() + .createOrUpdate("upstream", "myResourceGroup", "mySignalRService", new SharedPrivateLinkResourceInner() + .withGroupId("sites") + .withPrivateLinkResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp") + .withRequestMessage("Please approve"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesDeleteSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesDeleteSamples.java index 4a57b64aad649..238a2096bdff5 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesDeleteSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesDeleteSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRSharedPrivateLinkResources Delete. */ +/** + * Samples for SignalRSharedPrivateLinkResources Delete. + */ public final class SignalRSharedPrivateLinkResourcesDeleteSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRSharedPrivateLinkResources_Delete.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRSharedPrivateLinkResources_Delete.json */ /** * Sample code: SignalRSharedPrivateLinkResources_Delete. - * + * * @param manager Entry point to SignalRManager. */ - public static void signalRSharedPrivateLinkResourcesDelete( - com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRSharedPrivateLinkResources() + public static void + signalRSharedPrivateLinkResourcesDelete(com.azure.resourcemanager.signalr.SignalRManager manager) { + manager.signalRSharedPrivateLinkResources() .delete("upstream", "myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesGetSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesGetSamples.java index ad9e06f3bd558..59f2497083720 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesGetSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesGetSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRSharedPrivateLinkResources Get. */ +/** + * Samples for SignalRSharedPrivateLinkResources Get. + */ public final class SignalRSharedPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRSharedPrivateLinkResources_Get.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRSharedPrivateLinkResources_Get.json */ /** * Sample code: SignalRSharedPrivateLinkResources_Get. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRSharedPrivateLinkResourcesGet(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRSharedPrivateLinkResources() + manager.signalRSharedPrivateLinkResources() .getWithResponse("upstream", "myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesListSamples.java index b0a3cc798be11..d1e587318df3d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesListSamples.java @@ -4,19 +4,20 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for SignalRSharedPrivateLinkResources List. */ +/** + * Samples for SignalRSharedPrivateLinkResources List. + */ public final class SignalRSharedPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalRSharedPrivateLinkResources_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalRSharedPrivateLinkResources_List.json */ /** * Sample code: SignalRSharedPrivateLinkResources_List. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRSharedPrivateLinkResourcesList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager - .signalRSharedPrivateLinkResources() + manager.signalRSharedPrivateLinkResources() .list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRUpdateSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRUpdateSamples.java index add535944f63d..62fb7a18ff94f 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRUpdateSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRUpdateSamples.java @@ -30,79 +30,57 @@ import java.util.HashMap; import java.util.Map; -/** Samples for SignalR Update. */ +/** + * Samples for SignalR Update. + */ public final class SignalRUpdateSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Update.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/SignalR_Update.json */ /** * Sample code: SignalR_Update. - * + * * @param manager Entry point to SignalRManager. */ public static void signalRUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - SignalRResource resource = - manager - .signalRs() - .getByResourceGroupWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + SignalRResource resource = manager.signalRs() + .getByResourceGroupWithResponse("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withSku(new ResourceSku().withName("Premium_P1").withTier(SignalRSkuTier.PREMIUM).withCapacity(1)) .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED)) .withTls(new SignalRTlsSettings().withClientCertEnabled(false)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.SERVICE_MODE) - .withValue("Serverless") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) - .withValue("True") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("False") - .withProperties(mapOf()), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("False") - .withProperties(mapOf()))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("false") - .withCategories( - Arrays.asList(new LiveTraceCategory().withName("ConnectivityLogs").withEnabled("true")))) + .withFeatures(Arrays.asList( + new SignalRFeature().withFlag(FeatureFlags.SERVICE_MODE) + .withValue("Serverless") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) + .withValue("True") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("False") + .withProperties(mapOf()), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_LIVE_TRACE) + .withValue("False") + .withProperties(mapOf()))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("false") + .withCategories( + Arrays.asList(new LiveTraceCategory().withName("ConnectivityLogs").withEnabled("true")))) .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("https://foo.com", "https://bar.com"))) .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(5)) .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate() - .withHubPattern("*") - .withEventPattern("connect,disconnect") - .withCategoryPattern("*") - .withUrlTemplate("https://example.com/chat/api/connect") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity( - new ManagedIdentitySettings().withResource("api://example")))))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.DENY) - .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withName("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e")))) + new ServerlessUpstreamSettings().withTemplates(Arrays.asList(new UpstreamTemplate().withHubPattern("*") + .withEventPattern("connect,disconnect") + .withCategoryPattern("*") + .withUrlTemplate("https://example.com/chat/api/connect") + .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.MANAGED_IDENTITY) + .withManagedIdentity(new ManagedIdentitySettings().withResource("api://example")))))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.DENY) + .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) + .withPrivateEndpoints(Arrays + .asList(new PrivateEndpointAcl().withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) + .withName("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e")))) .withPublicNetworkAccess("Enabled") .withDisableLocalAuth(false) .withDisableAadAuth(false) diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/UsagesListSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/UsagesListSamples.java index 9970bfe09bcc5..b728d0ee78195 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/UsagesListSamples.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/UsagesListSamples.java @@ -4,14 +4,16 @@ package com.azure.resourcemanager.signalr.generated; -/** Samples for Usages List. */ +/** + * Samples for Usages List. + */ public final class UsagesListSamples { /* - * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List.json + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Usages_List.json */ /** * Sample code: Usages_List. - * + * * @param manager Entry point to SignalRManager. */ public static void usagesList(com.azure.resourcemanager.signalr.SignalRManager manager) { diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainInnerTests.java deleted file mode 100644 index d6b71add308d8..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainInnerTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.CustomDomainInner; -import com.azure.resourcemanager.signalr.models.ResourceReference; -import org.junit.jupiter.api.Assertions; - -public final class CustomDomainInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDomainInner model = - BinaryData - .fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"domainName\":\"aehvbbxuri\",\"customCertificate\":{\"id\":\"tfnhtbaxkgxywr\"}},\"id\":\"pyklyhpluodpvru\",\"name\":\"dlgzibthostgkt\",\"type\":\"tvdxeclzedqb\"}") - .toObject(CustomDomainInner.class); - Assertions.assertEquals("aehvbbxuri", model.domainName()); - Assertions.assertEquals("tfnhtbaxkgxywr", model.customCertificate().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDomainInner model = - new CustomDomainInner() - .withDomainName("aehvbbxuri") - .withCustomCertificate(new ResourceReference().withId("tfnhtbaxkgxywr")); - model = BinaryData.fromObject(model).toObject(CustomDomainInner.class); - Assertions.assertEquals("aehvbbxuri", model.domainName()); - Assertions.assertEquals("tfnhtbaxkgxywr", model.customCertificate().id()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainListTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainListTests.java deleted file mode 100644 index 06a8fc910d379..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainListTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.CustomDomainInner; -import com.azure.resourcemanager.signalr.models.CustomDomainList; -import com.azure.resourcemanager.signalr.models.ResourceReference; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CustomDomainListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDomainList model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"domainName\":\"jw\",\"customCertificate\":{\"id\":\"wqiok\"}},\"id\":\"sx\",\"name\":\"ojmsvpkjprvkwc\",\"type\":\"zqljyxgtczh\"}],\"nextLink\":\"dbsdshm\"}") - .toObject(CustomDomainList.class); - Assertions.assertEquals("jw", model.value().get(0).domainName()); - Assertions.assertEquals("wqiok", model.value().get(0).customCertificate().id()); - Assertions.assertEquals("dbsdshm", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDomainList model = - new CustomDomainList() - .withValue( - Arrays - .asList( - new CustomDomainInner() - .withDomainName("jw") - .withCustomCertificate(new ResourceReference().withId("wqiok")))) - .withNextLink("dbsdshm"); - model = BinaryData.fromObject(model).toObject(CustomDomainList.class); - Assertions.assertEquals("jw", model.value().get(0).domainName()); - Assertions.assertEquals("wqiok", model.value().get(0).customCertificate().id()); - Assertions.assertEquals("dbsdshm", model.nextLink()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainPropertiesTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainPropertiesTests.java deleted file mode 100644 index bb22151710fad..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/CustomDomainPropertiesTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.CustomDomainProperties; -import com.azure.resourcemanager.signalr.models.ResourceReference; -import org.junit.jupiter.api.Assertions; - -public final class CustomDomainPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDomainProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Updating\",\"domainName\":\"zlhp\",\"customCertificate\":{\"id\":\"dqkdlwwqfbu\"}}") - .toObject(CustomDomainProperties.class); - Assertions.assertEquals("zlhp", model.domainName()); - Assertions.assertEquals("dqkdlwwqfbu", model.customCertificate().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDomainProperties model = - new CustomDomainProperties() - .withDomainName("zlhp") - .withCustomCertificate(new ResourceReference().withId("dqkdlwwqfbu")); - model = BinaryData.fromObject(model).toObject(CustomDomainProperties.class); - Assertions.assertEquals("zlhp", model.domainName()); - Assertions.assertEquals("dqkdlwwqfbu", model.customCertificate().id()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/DimensionTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/DimensionTests.java deleted file mode 100644 index 3d85ebe7614a2..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/DimensionTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.Dimension; -import org.junit.jupiter.api.Assertions; - -public final class DimensionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Dimension model = - BinaryData - .fromString( - "{\"name\":\"alhbx\",\"displayName\":\"e\",\"internalName\":\"zzvdudgwds\",\"toBeExportedForShoebox\":true}") - .toObject(Dimension.class); - Assertions.assertEquals("alhbx", model.name()); - Assertions.assertEquals("e", model.displayName()); - Assertions.assertEquals("zzvdudgwds", model.internalName()); - Assertions.assertEquals(true, model.toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dimension model = - new Dimension() - .withName("alhbx") - .withDisplayName("e") - .withInternalName("zzvdudgwds") - .withToBeExportedForShoebox(true); - model = BinaryData.fromObject(model).toObject(Dimension.class); - Assertions.assertEquals("alhbx", model.name()); - Assertions.assertEquals("e", model.displayName()); - Assertions.assertEquals("zzvdudgwds", model.internalName()); - Assertions.assertEquals(true, model.toBeExportedForShoebox()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/IpRuleTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/IpRuleTests.java deleted file mode 100644 index 0503d59238799..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/IpRuleTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.IpRule; -import org.junit.jupiter.api.Assertions; - -public final class IpRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpRule model = - BinaryData.fromString("{\"value\":\"ytxifqjzgxmrh\",\"action\":\"Allow\"}").toObject(IpRule.class); - Assertions.assertEquals("ytxifqjzgxmrh", model.value()); - Assertions.assertEquals(AclAction.ALLOW, model.action()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpRule model = new IpRule().withValue("ytxifqjzgxmrh").withAction(AclAction.ALLOW); - model = BinaryData.fromObject(model).toObject(IpRule.class); - Assertions.assertEquals("ytxifqjzgxmrh", model.value()); - Assertions.assertEquals(AclAction.ALLOW, model.action()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LiveTraceCategoryTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LiveTraceCategoryTests.java deleted file mode 100644 index 7141b23e99952..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LiveTraceCategoryTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.LiveTraceCategory; -import org.junit.jupiter.api.Assertions; - -public final class LiveTraceCategoryTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LiveTraceCategory model = - BinaryData.fromString("{\"name\":\"ool\",\"enabled\":\"tpkiwkkbnujry\"}").toObject(LiveTraceCategory.class); - Assertions.assertEquals("ool", model.name()); - Assertions.assertEquals("tpkiwkkbnujry", model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LiveTraceCategory model = new LiveTraceCategory().withName("ool").withEnabled("tpkiwkkbnujry"); - model = BinaryData.fromObject(model).toObject(LiveTraceCategory.class); - Assertions.assertEquals("ool", model.name()); - Assertions.assertEquals("tpkiwkkbnujry", model.enabled()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LiveTraceConfigurationTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LiveTraceConfigurationTests.java deleted file mode 100644 index 987ba51c75894..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LiveTraceConfigurationTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.LiveTraceCategory; -import com.azure.resourcemanager.signalr.models.LiveTraceConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LiveTraceConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LiveTraceConfiguration model = - BinaryData - .fromString( - "{\"enabled\":\"tezlwff\",\"categories\":[{\"name\":\"pjpqqmtedltmmji\",\"enabled\":\"eozphv\"},{\"name\":\"uyqncygupkvipmd\",\"enabled\":\"wx\"},{\"name\":\"pevzhfst\",\"enabled\":\"xhojuj\"},{\"name\":\"pelmcuvhixbjxyf\",\"enabled\":\"yl\"}]}") - .toObject(LiveTraceConfiguration.class); - Assertions.assertEquals("tezlwff", model.enabled()); - Assertions.assertEquals("pjpqqmtedltmmji", model.categories().get(0).name()); - Assertions.assertEquals("eozphv", model.categories().get(0).enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LiveTraceConfiguration model = - new LiveTraceConfiguration() - .withEnabled("tezlwff") - .withCategories( - Arrays - .asList( - new LiveTraceCategory().withName("pjpqqmtedltmmji").withEnabled("eozphv"), - new LiveTraceCategory().withName("uyqncygupkvipmd").withEnabled("wx"), - new LiveTraceCategory().withName("pevzhfst").withEnabled("xhojuj"), - new LiveTraceCategory().withName("pelmcuvhixbjxyf").withEnabled("yl"))); - model = BinaryData.fromObject(model).toObject(LiveTraceConfiguration.class); - Assertions.assertEquals("tezlwff", model.enabled()); - Assertions.assertEquals("pjpqqmtedltmmji", model.categories().get(0).name()); - Assertions.assertEquals("eozphv", model.categories().get(0).enabled()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LogSpecificationTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LogSpecificationTests.java deleted file mode 100644 index e4a2e40dd3ab1..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/LogSpecificationTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.LogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class LogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogSpecification model = - BinaryData - .fromString("{\"name\":\"twmcynpwlb\",\"displayName\":\"pgacftadehxnlty\"}") - .toObject(LogSpecification.class); - Assertions.assertEquals("twmcynpwlb", model.name()); - Assertions.assertEquals("pgacftadehxnlty", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogSpecification model = new LogSpecification().withName("twmcynpwlb").withDisplayName("pgacftadehxnlty"); - model = BinaryData.fromObject(model).toObject(LogSpecification.class); - Assertions.assertEquals("twmcynpwlb", model.name()); - Assertions.assertEquals("pgacftadehxnlty", model.displayName()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ManagedIdentitySettingsTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ManagedIdentitySettingsTests.java deleted file mode 100644 index 85fd3aa68adf2..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ManagedIdentitySettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ManagedIdentitySettings; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentitySettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentitySettings model = - BinaryData.fromString("{\"resource\":\"rfh\"}").toObject(ManagedIdentitySettings.class); - Assertions.assertEquals("rfh", model.resource()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentitySettings model = new ManagedIdentitySettings().withResource("rfh"); - model = BinaryData.fromObject(model).toObject(ManagedIdentitySettings.class); - Assertions.assertEquals("rfh", model.resource()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ManagedIdentityTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ManagedIdentityTests.java deleted file mode 100644 index b9434d4d20748..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ManagedIdentityTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ManagedIdentity; -import com.azure.resourcemanager.signalr.models.ManagedIdentityType; -import com.azure.resourcemanager.signalr.models.UserAssignedIdentityProperty; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentity model = - BinaryData - .fromString( - "{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"woqhihe\":{\"principalId\":\"utr\",\"clientId\":\"upauut\"},\"xjvfoimwksl\":{\"principalId\":\"g\",\"clientId\":\"pnfqntcyp\"},\"awjs\":{\"principalId\":\"cizjxvydfceacvl\",\"clientId\":\"ygdyftumrtw\"},\"qphchqnrnrpxehuw\":{\"principalId\":\"iw\",\"clientId\":\"jgcyztsfmznba\"}},\"principalId\":\"k\",\"tenantId\":\"aifmvikl\"}") - .toObject(ManagedIdentity.class); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentity model = - new ManagedIdentity() - .withType(ManagedIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "woqhihe", - new UserAssignedIdentityProperty(), - "xjvfoimwksl", - new UserAssignedIdentityProperty(), - "awjs", - new UserAssignedIdentityProperty(), - "qphchqnrnrpxehuw", - new UserAssignedIdentityProperty())); - model = BinaryData.fromObject(model).toObject(ManagedIdentity.class); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.type()); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/MetricSpecificationTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/MetricSpecificationTests.java deleted file mode 100644 index 5e5082898bf9d..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/MetricSpecificationTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.Dimension; -import com.azure.resourcemanager.signalr.models.MetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MetricSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetricSpecification model = - BinaryData - .fromString( - "{\"name\":\"cgyncocpecf\",\"displayName\":\"mcoo\",\"displayDescription\":\"xlzevgbmqjqabcy\",\"unit\":\"ivkwlzuvccfwnfnb\",\"aggregationType\":\"fionl\",\"fillGapWithZero\":\"x\",\"category\":\"qgtz\",\"dimensions\":[{\"name\":\"qbqqwxr\",\"displayName\":\"eallnwsubisnj\",\"internalName\":\"pmng\",\"toBeExportedForShoebox\":false},{\"name\":\"xaqwoochcbonqv\",\"displayName\":\"vlrxnjeaseiph\",\"internalName\":\"f\",\"toBeExportedForShoebox\":false},{\"name\":\"yyien\",\"displayName\":\"dlwtgrhpdj\",\"internalName\":\"umasxazjpq\",\"toBeExportedForShoebox\":false}]}") - .toObject(MetricSpecification.class); - Assertions.assertEquals("cgyncocpecf", model.name()); - Assertions.assertEquals("mcoo", model.displayName()); - Assertions.assertEquals("xlzevgbmqjqabcy", model.displayDescription()); - Assertions.assertEquals("ivkwlzuvccfwnfnb", model.unit()); - Assertions.assertEquals("fionl", model.aggregationType()); - Assertions.assertEquals("x", model.fillGapWithZero()); - Assertions.assertEquals("qgtz", model.category()); - Assertions.assertEquals("qbqqwxr", model.dimensions().get(0).name()); - Assertions.assertEquals("eallnwsubisnj", model.dimensions().get(0).displayName()); - Assertions.assertEquals("pmng", model.dimensions().get(0).internalName()); - Assertions.assertEquals(false, model.dimensions().get(0).toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetricSpecification model = - new MetricSpecification() - .withName("cgyncocpecf") - .withDisplayName("mcoo") - .withDisplayDescription("xlzevgbmqjqabcy") - .withUnit("ivkwlzuvccfwnfnb") - .withAggregationType("fionl") - .withFillGapWithZero("x") - .withCategory("qgtz") - .withDimensions( - Arrays - .asList( - new Dimension() - .withName("qbqqwxr") - .withDisplayName("eallnwsubisnj") - .withInternalName("pmng") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("xaqwoochcbonqv") - .withDisplayName("vlrxnjeaseiph") - .withInternalName("f") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("yyien") - .withDisplayName("dlwtgrhpdj") - .withInternalName("umasxazjpq") - .withToBeExportedForShoebox(false))); - model = BinaryData.fromObject(model).toObject(MetricSpecification.class); - Assertions.assertEquals("cgyncocpecf", model.name()); - Assertions.assertEquals("mcoo", model.displayName()); - Assertions.assertEquals("xlzevgbmqjqabcy", model.displayDescription()); - Assertions.assertEquals("ivkwlzuvccfwnfnb", model.unit()); - Assertions.assertEquals("fionl", model.aggregationType()); - Assertions.assertEquals("x", model.fillGapWithZero()); - Assertions.assertEquals("qgtz", model.category()); - Assertions.assertEquals("qbqqwxr", model.dimensions().get(0).name()); - Assertions.assertEquals("eallnwsubisnj", model.dimensions().get(0).displayName()); - Assertions.assertEquals("pmng", model.dimensions().get(0).internalName()); - Assertions.assertEquals(false, model.dimensions().get(0).toBeExportedForShoebox()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NameAvailabilityInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NameAvailabilityInnerTests.java deleted file mode 100644 index 7bf221e2a6af0..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NameAvailabilityInnerTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.NameAvailabilityInner; -import org.junit.jupiter.api.Assertions; - -public final class NameAvailabilityInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NameAvailabilityInner model = - BinaryData - .fromString("{\"nameAvailable\":true,\"reason\":\"dejbavo\",\"message\":\"zdmohctbqvu\"}") - .toObject(NameAvailabilityInner.class); - Assertions.assertEquals(true, model.nameAvailable()); - Assertions.assertEquals("dejbavo", model.reason()); - Assertions.assertEquals("zdmohctbqvu", model.message()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NameAvailabilityInner model = - new NameAvailabilityInner().withNameAvailable(true).withReason("dejbavo").withMessage("zdmohctbqvu"); - model = BinaryData.fromObject(model).toObject(NameAvailabilityInner.class); - Assertions.assertEquals(true, model.nameAvailable()); - Assertions.assertEquals("dejbavo", model.reason()); - Assertions.assertEquals("zdmohctbqvu", model.message()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NameAvailabilityParametersTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NameAvailabilityParametersTests.java deleted file mode 100644 index af06f600fb5a2..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NameAvailabilityParametersTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.NameAvailabilityParameters; -import org.junit.jupiter.api.Assertions; - -public final class NameAvailabilityParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NameAvailabilityParameters model = - BinaryData.fromString("{\"type\":\"sop\",\"name\":\"usue\"}").toObject(NameAvailabilityParameters.class); - Assertions.assertEquals("sop", model.type()); - Assertions.assertEquals("usue", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NameAvailabilityParameters model = new NameAvailabilityParameters().withType("sop").withName("usue"); - model = BinaryData.fromObject(model).toObject(NameAvailabilityParameters.class); - Assertions.assertEquals("sop", model.type()); - Assertions.assertEquals("usue", model.name()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NetworkAclTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NetworkAclTests.java deleted file mode 100644 index db18f898ddbff..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/NetworkAclTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.NetworkAcl; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkAclTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkAcl model = - BinaryData - .fromString( - "{\"allow\":[\"ServerConnection\"],\"deny\":[\"ClientConnection\",\"Trace\",\"RESTAPI\",\"ServerConnection\"]}") - .toObject(NetworkAcl.class); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, model.allow().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.deny().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkAcl model = - new NetworkAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withDeny( - Arrays - .asList( - SignalRRequestType.CLIENT_CONNECTION, - SignalRRequestType.TRACE, - SignalRRequestType.RESTAPI, - SignalRRequestType.SERVER_CONNECTION)); - model = BinaryData.fromObject(model).toObject(NetworkAcl.class); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, model.allow().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.deny().get(0)); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationDisplayTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationDisplayTests.java deleted file mode 100644 index 4c1736bb81104..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationDisplayTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = - BinaryData - .fromString( - "{\"provider\":\"ozkrwfndiodjpslw\",\"resource\":\"dpvwryoqpsoaccta\",\"operation\":\"kljla\",\"description\":\"cr\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("ozkrwfndiodjpslw", model.provider()); - Assertions.assertEquals("dpvwryoqpsoaccta", model.resource()); - Assertions.assertEquals("kljla", model.operation()); - Assertions.assertEquals("cr", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = - new OperationDisplay() - .withProvider("ozkrwfndiodjpslw") - .withResource("dpvwryoqpsoaccta") - .withOperation("kljla") - .withDescription("cr"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("ozkrwfndiodjpslw", model.provider()); - Assertions.assertEquals("dpvwryoqpsoaccta", model.resource()); - Assertions.assertEquals("kljla", model.operation()); - Assertions.assertEquals("cr", model.description()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationInnerTests.java deleted file mode 100644 index 84e62316fcbb0..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationInnerTests.java +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.OperationInner; -import com.azure.resourcemanager.signalr.models.Dimension; -import com.azure.resourcemanager.signalr.models.LogSpecification; -import com.azure.resourcemanager.signalr.models.MetricSpecification; -import com.azure.resourcemanager.signalr.models.OperationDisplay; -import com.azure.resourcemanager.signalr.models.OperationProperties; -import com.azure.resourcemanager.signalr.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = - BinaryData - .fromString( - "{\"name\":\"fcqhsmyurkd\",\"isDataAction\":false,\"display\":{\"provider\":\"ekuksjtx\",\"resource\":\"cdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"kknryrtihf\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"zvgnwzs\",\"displayName\":\"glzufc\",\"displayDescription\":\"kohdbiha\",\"unit\":\"fhfcb\",\"aggregationType\":\"s\",\"fillGapWithZero\":\"ithxqhabifpi\",\"category\":\"wczbys\",\"dimensions\":[{}]},{\"name\":\"x\",\"displayName\":\"ivyqniwbybrkxvd\",\"displayDescription\":\"jgrtfwvukxga\",\"unit\":\"ccsnhsjc\",\"aggregationType\":\"ejhkry\",\"fillGapWithZero\":\"napczwlokjy\",\"category\":\"kkvnipjox\",\"dimensions\":[{},{}]}],\"logSpecifications\":[{\"name\":\"ejspodmail\",\"displayName\":\"deh\"},{\"name\":\"wyahuxinpmqnja\",\"displayName\":\"ixjsprozvcputeg\"},{\"name\":\"wmfdatscmdvpjhul\",\"displayName\":\"uvm\"}]}}}") - .toObject(OperationInner.class); - Assertions.assertEquals("fcqhsmyurkd", model.name()); - Assertions.assertEquals(false, model.isDataAction()); - Assertions.assertEquals("ekuksjtx", model.display().provider()); - Assertions.assertEquals("cdm", model.display().resource()); - Assertions.assertEquals("rcryuanzwuxzdxta", model.display().operation()); - Assertions.assertEquals("lhmwhfpmrqobm", model.display().description()); - Assertions.assertEquals("kknryrtihf", model.origin()); - Assertions - .assertEquals("zvgnwzs", model.properties().serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals( - "glzufc", model.properties().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals( - "kohdbiha", - model.properties().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions - .assertEquals("fhfcb", model.properties().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - "s", model.properties().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - "ithxqhabifpi", - model.properties().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions - .assertEquals("wczbys", model.properties().serviceSpecification().metricSpecifications().get(0).category()); - Assertions - .assertEquals("ejspodmail", model.properties().serviceSpecification().logSpecifications().get(0).name()); - Assertions - .assertEquals("deh", model.properties().serviceSpecification().logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = - new OperationInner() - .withName("fcqhsmyurkd") - .withIsDataAction(false) - .withDisplay( - new OperationDisplay() - .withProvider("ekuksjtx") - .withResource("cdm") - .withOperation("rcryuanzwuxzdxta") - .withDescription("lhmwhfpmrqobm")) - .withOrigin("kknryrtihf") - .withProperties( - new OperationProperties() - .withServiceSpecification( - new ServiceSpecification() - .withMetricSpecifications( - Arrays - .asList( - new MetricSpecification() - .withName("zvgnwzs") - .withDisplayName("glzufc") - .withDisplayDescription("kohdbiha") - .withUnit("fhfcb") - .withAggregationType("s") - .withFillGapWithZero("ithxqhabifpi") - .withCategory("wczbys") - .withDimensions(Arrays.asList(new Dimension())), - new MetricSpecification() - .withName("x") - .withDisplayName("ivyqniwbybrkxvd") - .withDisplayDescription("jgrtfwvukxga") - .withUnit("ccsnhsjc") - .withAggregationType("ejhkry") - .withFillGapWithZero("napczwlokjy") - .withCategory("kkvnipjox") - .withDimensions(Arrays.asList(new Dimension(), new Dimension())))) - .withLogSpecifications( - Arrays - .asList( - new LogSpecification().withName("ejspodmail").withDisplayName("deh"), - new LogSpecification() - .withName("wyahuxinpmqnja") - .withDisplayName("ixjsprozvcputeg"), - new LogSpecification() - .withName("wmfdatscmdvpjhul") - .withDisplayName("uvm"))))); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("fcqhsmyurkd", model.name()); - Assertions.assertEquals(false, model.isDataAction()); - Assertions.assertEquals("ekuksjtx", model.display().provider()); - Assertions.assertEquals("cdm", model.display().resource()); - Assertions.assertEquals("rcryuanzwuxzdxta", model.display().operation()); - Assertions.assertEquals("lhmwhfpmrqobm", model.display().description()); - Assertions.assertEquals("kknryrtihf", model.origin()); - Assertions - .assertEquals("zvgnwzs", model.properties().serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals( - "glzufc", model.properties().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals( - "kohdbiha", - model.properties().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions - .assertEquals("fhfcb", model.properties().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - "s", model.properties().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - "ithxqhabifpi", - model.properties().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions - .assertEquals("wczbys", model.properties().serviceSpecification().metricSpecifications().get(0).category()); - Assertions - .assertEquals("ejspodmail", model.properties().serviceSpecification().logSpecifications().get(0).name()); - Assertions - .assertEquals("deh", model.properties().serviceSpecification().logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationListTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationListTests.java deleted file mode 100644 index 7629096a95318..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationListTests.java +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.OperationInner; -import com.azure.resourcemanager.signalr.models.LogSpecification; -import com.azure.resourcemanager.signalr.models.MetricSpecification; -import com.azure.resourcemanager.signalr.models.OperationDisplay; -import com.azure.resourcemanager.signalr.models.OperationList; -import com.azure.resourcemanager.signalr.models.OperationProperties; -import com.azure.resourcemanager.signalr.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationList model = - BinaryData - .fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"ownoizhw\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{}],\"logSpecifications\":[{},{}]}}},{\"name\":\"qijgkd\",\"isDataAction\":true,\"display\":{\"provider\":\"lobcufpdznrbtcq\",\"resource\":\"nq\",\"operation\":\"hqgnufooojywif\",\"description\":\"esaagdfm\"},\"origin\":\"zlhjxrifkwmrvkt\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{}],\"logSpecifications\":[{},{}]}}},{\"name\":\"pa\",\"isDataAction\":false,\"display\":{\"provider\":\"s\",\"resource\":\"cmpoyfdkfogkny\",\"operation\":\"ofjdde\",\"description\":\"rd\"},\"origin\":\"pewnw\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{},{}],\"logSpecifications\":[{},{},{}]}}}],\"nextLink\":\"lusarh\"}") - .toObject(OperationList.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals(true, model.value().get(0).isDataAction()); - Assertions.assertEquals("pbsphrupidgs", model.value().get(0).display().provider()); - Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource()); - Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation()); - Assertions.assertEquals("zehtbmu", model.value().get(0).display().description()); - Assertions.assertEquals("ownoizhw", model.value().get(0).origin()); - Assertions.assertEquals("lusarh", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationList model = - new OperationList() - .withValue( - Arrays - .asList( - new OperationInner() - .withName("quvgjxpybczme") - .withIsDataAction(true) - .withDisplay( - new OperationDisplay() - .withProvider("pbsphrupidgs") - .withResource("bejhphoycmsxa") - .withOperation("hdxbmtqio") - .withDescription("zehtbmu")) - .withOrigin("ownoizhw") - .withProperties( - new OperationProperties() - .withServiceSpecification( - new ServiceSpecification() - .withMetricSpecifications( - Arrays.asList(new MetricSpecification(), new MetricSpecification())) - .withLogSpecifications( - Arrays.asList(new LogSpecification(), new LogSpecification())))), - new OperationInner() - .withName("qijgkd") - .withIsDataAction(true) - .withDisplay( - new OperationDisplay() - .withProvider("lobcufpdznrbtcq") - .withResource("nq") - .withOperation("hqgnufooojywif") - .withDescription("esaagdfm")) - .withOrigin("zlhjxrifkwmrvkt") - .withProperties( - new OperationProperties() - .withServiceSpecification( - new ServiceSpecification() - .withMetricSpecifications(Arrays.asList(new MetricSpecification())) - .withLogSpecifications( - Arrays.asList(new LogSpecification(), new LogSpecification())))), - new OperationInner() - .withName("pa") - .withIsDataAction(false) - .withDisplay( - new OperationDisplay() - .withProvider("s") - .withResource("cmpoyfdkfogkny") - .withOperation("ofjdde") - .withDescription("rd")) - .withOrigin("pewnw") - .withProperties( - new OperationProperties() - .withServiceSpecification( - new ServiceSpecification() - .withMetricSpecifications( - Arrays.asList(new MetricSpecification(), new MetricSpecification())) - .withLogSpecifications( - Arrays - .asList( - new LogSpecification(), - new LogSpecification(), - new LogSpecification())))))) - .withNextLink("lusarh"); - model = BinaryData.fromObject(model).toObject(OperationList.class); - Assertions.assertEquals("quvgjxpybczme", model.value().get(0).name()); - Assertions.assertEquals(true, model.value().get(0).isDataAction()); - Assertions.assertEquals("pbsphrupidgs", model.value().get(0).display().provider()); - Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().resource()); - Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().operation()); - Assertions.assertEquals("zehtbmu", model.value().get(0).display().description()); - Assertions.assertEquals("ownoizhw", model.value().get(0).origin()); - Assertions.assertEquals("lusarh", model.nextLink()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationPropertiesTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationPropertiesTests.java deleted file mode 100644 index 4c5f7311a5345..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationPropertiesTests.java +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.Dimension; -import com.azure.resourcemanager.signalr.models.LogSpecification; -import com.azure.resourcemanager.signalr.models.MetricSpecification; -import com.azure.resourcemanager.signalr.models.OperationProperties; -import com.azure.resourcemanager.signalr.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationProperties model = - BinaryData - .fromString( - "{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"dosyg\",\"displayName\":\"paojakhmsbzjh\",\"displayDescription\":\"zevdphlx\",\"unit\":\"lthqtrgqjbp\",\"aggregationType\":\"fsinzgvfcjrwzoxx\",\"fillGapWithZero\":\"felluwfzitonpe\",\"category\":\"pjkjlxofpdv\",\"dimensions\":[{\"name\":\"xypininmayhuybbk\",\"displayName\":\"depoog\",\"internalName\":\"uvamiheognarxzxt\",\"toBeExportedForShoebox\":false},{\"name\":\"usivye\",\"displayName\":\"ciqihnhung\",\"internalName\":\"jzrnf\",\"toBeExportedForShoebox\":true},{\"name\":\"ispe\",\"displayName\":\"tzfkufubl\",\"internalName\":\"fxqeof\",\"toBeExportedForShoebox\":false},{\"name\":\"jhqjbasvmsmjqul\",\"displayName\":\"sntnbybkzgcw\",\"internalName\":\"clxxwrljdo\",\"toBeExportedForShoebox\":true}]},{\"name\":\"qvkoc\",\"displayName\":\"jdkwtnhxbnjb\",\"displayDescription\":\"sqrglssainq\",\"unit\":\"wnzlljfmppeeb\",\"aggregationType\":\"gxsabkyq\",\"fillGapWithZero\":\"ujitcjcz\",\"category\":\"evndh\",\"dimensions\":[{\"name\":\"d\",\"displayName\":\"p\",\"internalName\":\"bdkvwrwjf\",\"toBeExportedForShoebox\":false},{\"name\":\"hutje\",\"displayName\":\"mrldhu\",\"internalName\":\"zzd\",\"toBeExportedForShoebox\":true},{\"name\":\"hocdgeab\",\"displayName\":\"phut\",\"internalName\":\"ndv\",\"toBeExportedForShoebox\":true}]},{\"name\":\"wyiftyhxhur\",\"displayName\":\"ftyxolniw\",\"displayDescription\":\"cukjf\",\"unit\":\"iawxklry\",\"aggregationType\":\"wckbasyypnd\",\"fillGapWithZero\":\"sgcbac\",\"category\":\"ejk\",\"dimensions\":[{\"name\":\"qgoulznd\",\"displayName\":\"kwy\",\"internalName\":\"gfgibm\",\"toBeExportedForShoebox\":false},{\"name\":\"keqsrxybzqqedq\",\"displayName\":\"bciqfouflm\",\"internalName\":\"kzsmodm\",\"toBeExportedForShoebox\":false},{\"name\":\"gpbkwtmut\",\"displayName\":\"qktapspwgcuert\",\"internalName\":\"kdosvqw\",\"toBeExportedForShoebox\":true},{\"name\":\"gbbjfddgmbmbe\",\"displayName\":\"pbhtqqrolfpfpsa\",\"internalName\":\"bquxigjy\",\"toBeExportedForShoebox\":true}]}],\"logSpecifications\":[{\"name\":\"yfhrtxilnerkujy\",\"displayName\":\"l\"},{\"name\":\"uvfqawrlyxwj\",\"displayName\":\"prbnwbxgjvtbv\"},{\"name\":\"sszdnru\",\"displayName\":\"guhmuouqfpr\"},{\"name\":\"wbnguitnwui\",\"displayName\":\"a\"}]}}") - .toObject(OperationProperties.class); - Assertions.assertEquals("dosyg", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals("paojakhmsbzjh", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals("zevdphlx", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("lthqtrgqjbp", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - "fsinzgvfcjrwzoxx", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - "felluwfzitonpe", model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("pjkjlxofpdv", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions - .assertEquals( - "xypininmayhuybbk", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions - .assertEquals( - "depoog", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions - .assertEquals( - "uvamiheognarxzxt", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).internalName()); - Assertions - .assertEquals( - false, - model - .serviceSpecification() - .metricSpecifications() - .get(0) - .dimensions() - .get(0) - .toBeExportedForShoebox()); - Assertions.assertEquals("yfhrtxilnerkujy", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("l", model.serviceSpecification().logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationProperties model = - new OperationProperties() - .withServiceSpecification( - new ServiceSpecification() - .withMetricSpecifications( - Arrays - .asList( - new MetricSpecification() - .withName("dosyg") - .withDisplayName("paojakhmsbzjh") - .withDisplayDescription("zevdphlx") - .withUnit("lthqtrgqjbp") - .withAggregationType("fsinzgvfcjrwzoxx") - .withFillGapWithZero("felluwfzitonpe") - .withCategory("pjkjlxofpdv") - .withDimensions( - Arrays - .asList( - new Dimension() - .withName("xypininmayhuybbk") - .withDisplayName("depoog") - .withInternalName("uvamiheognarxzxt") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("usivye") - .withDisplayName("ciqihnhung") - .withInternalName("jzrnf") - .withToBeExportedForShoebox(true), - new Dimension() - .withName("ispe") - .withDisplayName("tzfkufubl") - .withInternalName("fxqeof") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("jhqjbasvmsmjqul") - .withDisplayName("sntnbybkzgcw") - .withInternalName("clxxwrljdo") - .withToBeExportedForShoebox(true))), - new MetricSpecification() - .withName("qvkoc") - .withDisplayName("jdkwtnhxbnjb") - .withDisplayDescription("sqrglssainq") - .withUnit("wnzlljfmppeeb") - .withAggregationType("gxsabkyq") - .withFillGapWithZero("ujitcjcz") - .withCategory("evndh") - .withDimensions( - Arrays - .asList( - new Dimension() - .withName("d") - .withDisplayName("p") - .withInternalName("bdkvwrwjf") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("hutje") - .withDisplayName("mrldhu") - .withInternalName("zzd") - .withToBeExportedForShoebox(true), - new Dimension() - .withName("hocdgeab") - .withDisplayName("phut") - .withInternalName("ndv") - .withToBeExportedForShoebox(true))), - new MetricSpecification() - .withName("wyiftyhxhur") - .withDisplayName("ftyxolniw") - .withDisplayDescription("cukjf") - .withUnit("iawxklry") - .withAggregationType("wckbasyypnd") - .withFillGapWithZero("sgcbac") - .withCategory("ejk") - .withDimensions( - Arrays - .asList( - new Dimension() - .withName("qgoulznd") - .withDisplayName("kwy") - .withInternalName("gfgibm") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("keqsrxybzqqedq") - .withDisplayName("bciqfouflm") - .withInternalName("kzsmodm") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("gpbkwtmut") - .withDisplayName("qktapspwgcuert") - .withInternalName("kdosvqw") - .withToBeExportedForShoebox(true), - new Dimension() - .withName("gbbjfddgmbmbe") - .withDisplayName("pbhtqqrolfpfpsa") - .withInternalName("bquxigjy") - .withToBeExportedForShoebox(true))))) - .withLogSpecifications( - Arrays - .asList( - new LogSpecification().withName("yfhrtxilnerkujy").withDisplayName("l"), - new LogSpecification().withName("uvfqawrlyxwj").withDisplayName("prbnwbxgjvtbv"), - new LogSpecification().withName("sszdnru").withDisplayName("guhmuouqfpr"), - new LogSpecification().withName("wbnguitnwui").withDisplayName("a")))); - model = BinaryData.fromObject(model).toObject(OperationProperties.class); - Assertions.assertEquals("dosyg", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals("paojakhmsbzjh", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions - .assertEquals("zevdphlx", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("lthqtrgqjbp", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - "fsinzgvfcjrwzoxx", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions - .assertEquals( - "felluwfzitonpe", model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("pjkjlxofpdv", model.serviceSpecification().metricSpecifications().get(0).category()); - Assertions - .assertEquals( - "xypininmayhuybbk", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); - Assertions - .assertEquals( - "depoog", model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions - .assertEquals( - "uvamiheognarxzxt", - model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).internalName()); - Assertions - .assertEquals( - false, - model - .serviceSpecification() - .metricSpecifications() - .get(0) - .dimensions() - .get(0) - .toBeExportedForShoebox()); - Assertions.assertEquals("yfhrtxilnerkujy", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("l", model.serviceSpecification().logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationsListMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationsListMockTests.java deleted file mode 100644 index da4fb537fe65b..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/OperationsListMockTests.java +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.Operation; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"name\":\"uqgsj\",\"isDataAction\":true,\"display\":{\"provider\":\"xgketwz\",\"resource\":\"zjhfjmhvv\",\"operation\":\"vgpmun\",\"description\":\"sx\"},\"origin\":\"hfbuzjyihsasbhud\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"emslynsqyrp\",\"displayName\":\"obrltt\",\"displayDescription\":\"sjnygqdnfwqzdzgt\",\"unit\":\"axhnfh\",\"aggregationType\":\"yvi\",\"fillGapWithZero\":\"uwivkxoy\",\"category\":\"nbixxrti\",\"dimensions\":[{},{}]}],\"logSpecifications\":[{\"name\":\"gclrci\",\"displayName\":\"soxfrken\"},{\"name\":\"m\",\"displayName\":\"efrp\"},{\"name\":\"dnqqskawaoqvmmb\",\"displayName\":\"qfr\"}]}}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("uqgsj", response.iterator().next().name()); - Assertions.assertEquals(true, response.iterator().next().isDataAction()); - Assertions.assertEquals("xgketwz", response.iterator().next().display().provider()); - Assertions.assertEquals("zjhfjmhvv", response.iterator().next().display().resource()); - Assertions.assertEquals("vgpmun", response.iterator().next().display().operation()); - Assertions.assertEquals("sx", response.iterator().next().display().description()); - Assertions.assertEquals("hfbuzjyihsasbhud", response.iterator().next().origin()); - Assertions - .assertEquals( - "emslynsqyrp", - response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).name()); - Assertions - .assertEquals( - "obrltt", - response - .iterator() - .next() - .properties() - .serviceSpecification() - .metricSpecifications() - .get(0) - .displayName()); - Assertions - .assertEquals( - "sjnygqdnfwqzdzgt", - response - .iterator() - .next() - .properties() - .serviceSpecification() - .metricSpecifications() - .get(0) - .displayDescription()); - Assertions - .assertEquals( - "axhnfh", - response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - "yvi", - response - .iterator() - .next() - .properties() - .serviceSpecification() - .metricSpecifications() - .get(0) - .aggregationType()); - Assertions - .assertEquals( - "uwivkxoy", - response - .iterator() - .next() - .properties() - .serviceSpecification() - .metricSpecifications() - .get(0) - .fillGapWithZero()); - Assertions - .assertEquals( - "nbixxrti", - response - .iterator() - .next() - .properties() - .serviceSpecification() - .metricSpecifications() - .get(0) - .category()); - Assertions - .assertEquals( - "gclrci", - response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).name()); - Assertions - .assertEquals( - "soxfrken", - response - .iterator() - .next() - .properties() - .serviceSpecification() - .logSpecifications() - .get(0) - .displayName()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointAclTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointAclTests.java deleted file mode 100644 index 1c9dbe07dcee1..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointAclTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.PrivateEndpointAcl; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointAclTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointAcl model = - BinaryData - .fromString("{\"name\":\"uzvx\",\"allow\":[\"ServerConnection\"],\"deny\":[\"ClientConnection\"]}") - .toObject(PrivateEndpointAcl.class); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, model.allow().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.deny().get(0)); - Assertions.assertEquals("uzvx", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointAcl model = - new PrivateEndpointAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withDeny(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION)) - .withName("uzvx"); - model = BinaryData.fromObject(model).toObject(PrivateEndpointAcl.class); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, model.allow().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.deny().get(0)); - Assertions.assertEquals("uzvx", model.name()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionInnerTests.java deleted file mode 100644 index c6d07817afa29..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionInnerTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.PrivateEndpointConnectionInner; -import com.azure.resourcemanager.signalr.models.PrivateEndpoint; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionState; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionInner model = - BinaryData - .fromString( - "{\"properties\":{\"provisioningState\":\"Unknown\",\"privateEndpoint\":{\"id\":\"k\"},\"groupIds\":[\"qwjygvja\",\"vblm\",\"vkzuhbxvvyhgso\",\"byrqufeg\"],\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"fbn\",\"actionsRequired\":\"mctlpdngitv\"}},\"id\":\"mhrixkwmyijejve\",\"name\":\"rh\",\"type\":\"pna\"}") - .toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("k", model.privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.PENDING, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("fbn", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("mctlpdngitv", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionInner model = - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint().withId("k")) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.PENDING) - .withDescription("fbn") - .withActionsRequired("mctlpdngitv")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("k", model.privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.PENDING, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("fbn", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("mctlpdngitv", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionListTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionListTests.java deleted file mode 100644 index 2725c748a1cf0..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionListTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.PrivateEndpointConnectionInner; -import com.azure.resourcemanager.signalr.models.PrivateEndpoint; -import com.azure.resourcemanager.signalr.models.PrivateEndpointConnectionList; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionState; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionList model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{\"id\":\"ubskhudygoookkq\"},\"groupIds\":[\"bvleorfmluiqtqzf\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"qqybarye\",\"actionsRequired\":\"yjkqabqgzslesjcb\"}},\"id\":\"rnntiewdjcv\",\"name\":\"quwrbehwag\",\"type\":\"hbuffkmrq\"},{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"xtdr\"},\"groupIds\":[\"tac\",\"ebjvewzcjzn\"],\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"guaadraufactkahz\",\"actionsRequired\":\"ajjziuxxpshne\"}},\"id\":\"ulfgslqu\",\"name\":\"kwdlenrdsutujba\",\"type\":\"pjuohminyfl\"},{\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{\"id\":\"uvwpklvxwmyg\"},\"groupIds\":[\"gpqch\",\"sze\",\"nnbj\",\"rxgibbd\"],\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"fozauorsuk\",\"actionsRequired\":\"wbqpl\"}},\"id\":\"vnuuepzl\",\"name\":\"phwzsoldweyuqdu\",\"type\":\"vmnnrw\"}],\"nextLink\":\"i\"}") - .toObject(PrivateEndpointConnectionList.class); - Assertions.assertEquals("ubskhudygoookkq", model.value().get(0).privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.REJECTED, - model.value().get(0).privateLinkServiceConnectionState().status()); - Assertions.assertEquals("qqybarye", model.value().get(0).privateLinkServiceConnectionState().description()); - Assertions - .assertEquals( - "yjkqabqgzslesjcb", model.value().get(0).privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("i", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionList model = - new PrivateEndpointConnectionList() - .withValue( - Arrays - .asList( - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint().withId("ubskhudygoookkq")) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.REJECTED) - .withDescription("qqybarye") - .withActionsRequired("yjkqabqgzslesjcb")), - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint().withId("xtdr")) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.DISCONNECTED) - .withDescription("guaadraufactkahz") - .withActionsRequired("ajjziuxxpshne")), - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint().withId("uvwpklvxwmyg")) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.PENDING) - .withDescription("fozauorsuk") - .withActionsRequired("wbqpl")))) - .withNextLink("i"); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionList.class); - Assertions.assertEquals("ubskhudygoookkq", model.value().get(0).privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.REJECTED, - model.value().get(0).privateLinkServiceConnectionState().status()); - Assertions.assertEquals("qqybarye", model.value().get(0).privateLinkServiceConnectionState().description()); - Assertions - .assertEquals( - "yjkqabqgzslesjcb", model.value().get(0).privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("i", model.nextLink()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionPropertiesTests.java deleted file mode 100644 index 2acfb9f07177a..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointConnectionPropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.signalr.models.PrivateEndpoint; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionState; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Unknown\",\"privateEndpoint\":{\"id\":\"cbdreaxhcexd\"},\"groupIds\":[\"qahqkghtpwijn\",\"yjsvfyc\",\"z\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"wvrvmtg\",\"actionsRequired\":\"ppyostronzmyhgf\"}}") - .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("cbdreaxhcexd", model.privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("wvrvmtg", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ppyostronzmyhgf", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionProperties model = - new PrivateEndpointConnectionProperties() - .withPrivateEndpoint(new PrivateEndpoint().withId("cbdreaxhcexd")) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.APPROVED) - .withDescription("wvrvmtg") - .withActionsRequired("ppyostronzmyhgf")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("cbdreaxhcexd", model.privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("wvrvmtg", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ppyostronzmyhgf", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointTests.java deleted file mode 100644 index 1b6e6143752a9..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateEndpointTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.PrivateEndpoint; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"nsxkmcwaekrrjr\"}").toObject(PrivateEndpoint.class); - Assertions.assertEquals("nsxkmcwaekrrjr", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint().withId("nsxkmcwaekrrjr"); - model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - Assertions.assertEquals("nsxkmcwaekrrjr", model.id()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourceInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourceInnerTests.java deleted file mode 100644 index 3bc15adc4d63b..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourceInnerTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.PrivateLinkResourceInner; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceProperties; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"groupId\":\"ddviacegfnmntfpm\",\"requiredMembers\":[\"mfnczd\",\"vvbalx\",\"l\",\"chp\"],\"requiredZoneNames\":[\"zevwrdnhfukuv\",\"jcswsmys\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"qypfcv\",\"properties\":{\"description\":\"chpqbmfpjba\",\"groupId\":\"idfcxsspuunnoxyh\",\"type\":\"g\"}},{\"name\":\"drihpfhoqcaaewda\",\"properties\":{\"description\":\"jvlpjxxkzbr\",\"groupId\":\"geivsiykzkdncj\",\"type\":\"onbzoggculapzwy\"}},{\"name\":\"gogtqxepnylbf\",\"properties\":{\"description\":\"lyjt\",\"groupId\":\"of\",\"type\":\"hvfcibyfmow\"}},{\"name\":\"rkjpvdwxfzwii\",\"properties\":{\"description\":\"jbhyzsxjrkambtr\",\"groupId\":\"gvmnvuqeq\",\"type\":\"dspastjbkkdmfl\"}}]},\"id\":\"stmjlxrri\",\"name\":\"ozapeew\",\"type\":\"hpxlktwkuziycs\"}") - .toObject(PrivateLinkResourceInner.class); - Assertions.assertEquals("ddviacegfnmntfpm", model.groupId()); - Assertions.assertEquals("mfnczd", model.requiredMembers().get(0)); - Assertions.assertEquals("zevwrdnhfukuv", model.requiredZoneNames().get(0)); - Assertions.assertEquals("qypfcv", model.shareablePrivateLinkResourceTypes().get(0).name()); - Assertions - .assertEquals("chpqbmfpjba", model.shareablePrivateLinkResourceTypes().get(0).properties().description()); - Assertions - .assertEquals("idfcxsspuunnoxyh", model.shareablePrivateLinkResourceTypes().get(0).properties().groupId()); - Assertions.assertEquals("g", model.shareablePrivateLinkResourceTypes().get(0).properties().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceInner model = - new PrivateLinkResourceInner() - .withGroupId("ddviacegfnmntfpm") - .withRequiredMembers(Arrays.asList("mfnczd", "vvbalx", "l", "chp")) - .withRequiredZoneNames(Arrays.asList("zevwrdnhfukuv", "jcswsmys")) - .withShareablePrivateLinkResourceTypes( - Arrays - .asList( - new ShareablePrivateLinkResourceType() - .withName("qypfcv") - .withProperties( - new ShareablePrivateLinkResourceProperties() - .withDescription("chpqbmfpjba") - .withGroupId("idfcxsspuunnoxyh") - .withType("g")), - new ShareablePrivateLinkResourceType() - .withName("drihpfhoqcaaewda") - .withProperties( - new ShareablePrivateLinkResourceProperties() - .withDescription("jvlpjxxkzbr") - .withGroupId("geivsiykzkdncj") - .withType("onbzoggculapzwy")), - new ShareablePrivateLinkResourceType() - .withName("gogtqxepnylbf") - .withProperties( - new ShareablePrivateLinkResourceProperties() - .withDescription("lyjt") - .withGroupId("of") - .withType("hvfcibyfmow")), - new ShareablePrivateLinkResourceType() - .withName("rkjpvdwxfzwii") - .withProperties( - new ShareablePrivateLinkResourceProperties() - .withDescription("jbhyzsxjrkambtr") - .withGroupId("gvmnvuqeq") - .withType("dspastjbkkdmfl")))); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceInner.class); - Assertions.assertEquals("ddviacegfnmntfpm", model.groupId()); - Assertions.assertEquals("mfnczd", model.requiredMembers().get(0)); - Assertions.assertEquals("zevwrdnhfukuv", model.requiredZoneNames().get(0)); - Assertions.assertEquals("qypfcv", model.shareablePrivateLinkResourceTypes().get(0).name()); - Assertions - .assertEquals("chpqbmfpjba", model.shareablePrivateLinkResourceTypes().get(0).properties().description()); - Assertions - .assertEquals("idfcxsspuunnoxyh", model.shareablePrivateLinkResourceTypes().get(0).properties().groupId()); - Assertions.assertEquals("g", model.shareablePrivateLinkResourceTypes().get(0).properties().type()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourceListTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourceListTests.java deleted file mode 100644 index f817ff112c4c5..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourceListTests.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.PrivateLinkResourceInner; -import com.azure.resourcemanager.signalr.models.PrivateLinkResourceList; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceProperties; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceList model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"lywjhh\",\"requiredMembers\":[\"hxmsivfo\",\"iloxggdufiq\"],\"requiredZoneNames\":[\"euzaof\",\"chvcyyysfgdo\",\"cubiipuipw\",\"qonmacj\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"zshq\",\"properties\":{}},{\"name\":\"m\",\"properties\":{}},{\"name\":\"fgmblrrilbywdxsm\",\"properties\":{}}]},\"id\":\"wrwfscjfnyns\",\"name\":\"qujizdvo\",\"type\":\"ytibyow\"},{\"properties\":{\"groupId\":\"gyavu\",\"requiredMembers\":[\"hjoxo\",\"smsks\",\"pi\"],\"requiredZoneNames\":[\"oljxkcgx\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"ffgcvizqz\",\"properties\":{}},{\"name\":\"vwlyoup\",\"properties\":{}},{\"name\":\"bkjubdyhgkfmins\",\"properties\":{}}]},\"id\":\"zfttsttktlahb\",\"name\":\"actxtgzukxitm\",\"type\":\"qtgqqqxhrnxr\"},{\"properties\":{\"groupId\":\"juisavokqdzf\",\"requiredMembers\":[\"ivjlfrqttbajlka\"],\"requiredZoneNames\":[\"xyiopidkqqfku\",\"s\",\"xkdmligo\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"xk\",\"properties\":{}}]},\"id\":\"oaz\",\"name\":\"ruocbgo\",\"type\":\"rb\"},{\"properties\":{\"groupId\":\"ybfhjxa\",\"requiredMembers\":[\"jgslordilmyww\",\"kgkxn\"],\"requiredZoneNames\":[\"abgyvudt\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"bcihxuuwhc\",\"properties\":{}},{\"name\":\"ccybvp\",\"properties\":{}},{\"name\":\"kkudzp\",\"properties\":{}}]},\"id\":\"jplmagstcy\",\"name\":\"hpfkyrkdbdgi\",\"type\":\"gsj\"}],\"nextLink\":\"nwqjnoba\"}") - .toObject(PrivateLinkResourceList.class); - Assertions.assertEquals("lywjhh", model.value().get(0).groupId()); - Assertions.assertEquals("hxmsivfo", model.value().get(0).requiredMembers().get(0)); - Assertions.assertEquals("euzaof", model.value().get(0).requiredZoneNames().get(0)); - Assertions.assertEquals("zshq", model.value().get(0).shareablePrivateLinkResourceTypes().get(0).name()); - Assertions.assertEquals("nwqjnoba", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceList model = - new PrivateLinkResourceList() - .withValue( - Arrays - .asList( - new PrivateLinkResourceInner() - .withGroupId("lywjhh") - .withRequiredMembers(Arrays.asList("hxmsivfo", "iloxggdufiq")) - .withRequiredZoneNames(Arrays.asList("euzaof", "chvcyyysfgdo", "cubiipuipw", "qonmacj")) - .withShareablePrivateLinkResourceTypes( - Arrays - .asList( - new ShareablePrivateLinkResourceType() - .withName("zshq") - .withProperties(new ShareablePrivateLinkResourceProperties()), - new ShareablePrivateLinkResourceType() - .withName("m") - .withProperties(new ShareablePrivateLinkResourceProperties()), - new ShareablePrivateLinkResourceType() - .withName("fgmblrrilbywdxsm") - .withProperties(new ShareablePrivateLinkResourceProperties()))), - new PrivateLinkResourceInner() - .withGroupId("gyavu") - .withRequiredMembers(Arrays.asList("hjoxo", "smsks", "pi")) - .withRequiredZoneNames(Arrays.asList("oljxkcgx")) - .withShareablePrivateLinkResourceTypes( - Arrays - .asList( - new ShareablePrivateLinkResourceType() - .withName("ffgcvizqz") - .withProperties(new ShareablePrivateLinkResourceProperties()), - new ShareablePrivateLinkResourceType() - .withName("vwlyoup") - .withProperties(new ShareablePrivateLinkResourceProperties()), - new ShareablePrivateLinkResourceType() - .withName("bkjubdyhgkfmins") - .withProperties(new ShareablePrivateLinkResourceProperties()))), - new PrivateLinkResourceInner() - .withGroupId("juisavokqdzf") - .withRequiredMembers(Arrays.asList("ivjlfrqttbajlka")) - .withRequiredZoneNames(Arrays.asList("xyiopidkqqfku", "s", "xkdmligo")) - .withShareablePrivateLinkResourceTypes( - Arrays - .asList( - new ShareablePrivateLinkResourceType() - .withName("xk") - .withProperties(new ShareablePrivateLinkResourceProperties()))), - new PrivateLinkResourceInner() - .withGroupId("ybfhjxa") - .withRequiredMembers(Arrays.asList("jgslordilmyww", "kgkxn")) - .withRequiredZoneNames(Arrays.asList("abgyvudt")) - .withShareablePrivateLinkResourceTypes( - Arrays - .asList( - new ShareablePrivateLinkResourceType() - .withName("bcihxuuwhc") - .withProperties(new ShareablePrivateLinkResourceProperties()), - new ShareablePrivateLinkResourceType() - .withName("ccybvp") - .withProperties(new ShareablePrivateLinkResourceProperties()), - new ShareablePrivateLinkResourceType() - .withName("kkudzp") - .withProperties(new ShareablePrivateLinkResourceProperties()))))) - .withNextLink("nwqjnoba"); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceList.class); - Assertions.assertEquals("lywjhh", model.value().get(0).groupId()); - Assertions.assertEquals("hxmsivfo", model.value().get(0).requiredMembers().get(0)); - Assertions.assertEquals("euzaof", model.value().get(0).requiredZoneNames().get(0)); - Assertions.assertEquals("zshq", model.value().get(0).shareablePrivateLinkResourceTypes().get(0).name()); - Assertions.assertEquals("nwqjnoba", model.nextLink()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourcePropertiesTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourcePropertiesTests.java deleted file mode 100644 index ebe5272c551ae..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkResourcePropertiesTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.PrivateLinkResourceProperties; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceProperties; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = - BinaryData - .fromString( - "{\"groupId\":\"vu\",\"requiredMembers\":[\"tcktyhjtqedcgzu\",\"wmmrq\"],\"requiredZoneNames\":[\"rjvpglydzgkrvqee\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"pryu\",\"properties\":{\"description\":\"ytp\",\"groupId\":\"mov\",\"type\":\"fvaawzqa\"}},{\"name\":\"lgzurig\",\"properties\":{\"description\":\"cx\",\"groupId\":\"t\",\"type\":\"okpvzm\"}}]}") - .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("vu", model.groupId()); - Assertions.assertEquals("tcktyhjtqedcgzu", model.requiredMembers().get(0)); - Assertions.assertEquals("rjvpglydzgkrvqee", model.requiredZoneNames().get(0)); - Assertions.assertEquals("pryu", model.shareablePrivateLinkResourceTypes().get(0).name()); - Assertions.assertEquals("ytp", model.shareablePrivateLinkResourceTypes().get(0).properties().description()); - Assertions.assertEquals("mov", model.shareablePrivateLinkResourceTypes().get(0).properties().groupId()); - Assertions.assertEquals("fvaawzqa", model.shareablePrivateLinkResourceTypes().get(0).properties().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceProperties model = - new PrivateLinkResourceProperties() - .withGroupId("vu") - .withRequiredMembers(Arrays.asList("tcktyhjtqedcgzu", "wmmrq")) - .withRequiredZoneNames(Arrays.asList("rjvpglydzgkrvqee")) - .withShareablePrivateLinkResourceTypes( - Arrays - .asList( - new ShareablePrivateLinkResourceType() - .withName("pryu") - .withProperties( - new ShareablePrivateLinkResourceProperties() - .withDescription("ytp") - .withGroupId("mov") - .withType("fvaawzqa")), - new ShareablePrivateLinkResourceType() - .withName("lgzurig") - .withProperties( - new ShareablePrivateLinkResourceProperties() - .withDescription("cx") - .withGroupId("t") - .withType("okpvzm")))); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("vu", model.groupId()); - Assertions.assertEquals("tcktyhjtqedcgzu", model.requiredMembers().get(0)); - Assertions.assertEquals("rjvpglydzgkrvqee", model.requiredZoneNames().get(0)); - Assertions.assertEquals("pryu", model.shareablePrivateLinkResourceTypes().get(0).name()); - Assertions.assertEquals("ytp", model.shareablePrivateLinkResourceTypes().get(0).properties().description()); - Assertions.assertEquals("mov", model.shareablePrivateLinkResourceTypes().get(0).properties().groupId()); - Assertions.assertEquals("fvaawzqa", model.shareablePrivateLinkResourceTypes().get(0).properties().type()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkServiceConnectionStateTests.java deleted file mode 100644 index 348c5e3317789..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/PrivateLinkServiceConnectionStateTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionState; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkServiceConnectionStateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkServiceConnectionState model = - BinaryData - .fromString("{\"status\":\"Approved\",\"description\":\"tsgumhj\",\"actionsRequired\":\"ikkx\"}") - .toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, model.status()); - Assertions.assertEquals("tsgumhj", model.description()); - Assertions.assertEquals("ikkx", model.actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkServiceConnectionState model = - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.APPROVED) - .withDescription("tsgumhj") - .withActionsRequired("ikkx"); - model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, model.status()); - Assertions.assertEquals("tsgumhj", model.description()); - Assertions.assertEquals("ikkx", model.actionsRequired()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaInnerTests.java deleted file mode 100644 index f3eaa30c58d42..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaInnerTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.ReplicaInner; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ReplicaInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicaInner model = - BinaryData - .fromString( - "{\"sku\":{\"name\":\"zuxylfsbtkadpyso\",\"tier\":\"Premium\",\"size\":\"gkbugrjqct\",\"family\":\"cmisofie\",\"capacity\":860547851},\"properties\":{\"provisioningState\":\"Running\",\"regionEndpointEnabled\":\"qdhcu\",\"resourceStopped\":\"cp\"},\"location\":\"wkhihihlhzdsqt\",\"tags\":{\"ecactx\":\"rgnowcjhfgm\"},\"id\":\"wotey\",\"name\":\"wcluqovekqvgq\",\"type\":\"uwifzmpjwyiv\"}") - .toObject(ReplicaInner.class); - Assertions.assertEquals("wkhihihlhzdsqt", model.location()); - Assertions.assertEquals("rgnowcjhfgm", model.tags().get("ecactx")); - Assertions.assertEquals("zuxylfsbtkadpyso", model.sku().name()); - Assertions.assertEquals(SignalRSkuTier.PREMIUM, model.sku().tier()); - Assertions.assertEquals(860547851, model.sku().capacity()); - Assertions.assertEquals("qdhcu", model.regionEndpointEnabled()); - Assertions.assertEquals("cp", model.resourceStopped()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicaInner model = - new ReplicaInner() - .withLocation("wkhihihlhzdsqt") - .withTags(mapOf("ecactx", "rgnowcjhfgm")) - .withSku( - new ResourceSku() - .withName("zuxylfsbtkadpyso") - .withTier(SignalRSkuTier.PREMIUM) - .withCapacity(860547851)) - .withRegionEndpointEnabled("qdhcu") - .withResourceStopped("cp"); - model = BinaryData.fromObject(model).toObject(ReplicaInner.class); - Assertions.assertEquals("wkhihihlhzdsqt", model.location()); - Assertions.assertEquals("rgnowcjhfgm", model.tags().get("ecactx")); - Assertions.assertEquals("zuxylfsbtkadpyso", model.sku().name()); - Assertions.assertEquals(SignalRSkuTier.PREMIUM, model.sku().tier()); - Assertions.assertEquals(860547851, model.sku().capacity()); - Assertions.assertEquals("qdhcu", model.regionEndpointEnabled()); - Assertions.assertEquals("cp", model.resourceStopped()); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaListTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaListTests.java deleted file mode 100644 index 14cb779ed260d..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaListTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.ReplicaInner; -import com.azure.resourcemanager.signalr.models.ReplicaList; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ReplicaListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicaList model = - BinaryData - .fromString( - "{\"value\":[{\"sku\":{\"name\":\"zhezwwvaiq\",\"tier\":\"Free\",\"size\":\"fonkphhqyikvyla\",\"family\":\"avluwmncs\",\"capacity\":736005906},\"properties\":{\"provisioningState\":\"Succeeded\",\"regionEndpointEnabled\":\"vpo\",\"resourceStopped\":\"rsg\"},\"location\":\"b\",\"tags\":{\"njdgkynscliq\":\"zq\",\"mtk\":\"zvhxnk\",\"ppnvdxz\":\"bo\",\"hlfkqojpy\":\"hihfrbbcevqagtlt\"},\"id\":\"vgtrdcnifmzzs\",\"name\":\"ymbrnysuxmpraf\",\"type\":\"g\"},{\"sku\":{\"name\":\"hocxvdfffwafqrou\",\"tier\":\"Basic\",\"size\":\"avehhrvkbunzo\",\"family\":\"dhcxgkmoy\",\"capacity\":1284986304},\"properties\":{\"provisioningState\":\"Updating\",\"regionEndpointEnabled\":\"hmfdnbzydvfvfcj\",\"resourceStopped\":\"eoisrvhmgor\"},\"location\":\"ukiscvwmzhw\",\"tags\":{\"btgn\":\"faxvxil\",\"zqlqhyc\":\"nzeyqxtjj\",\"mieknlraria\":\"vodggxdbee\"},\"id\":\"wiuagydwqf\",\"name\":\"ylyrfgiagtco\",\"type\":\"ocqwogfnzjvus\"}],\"nextLink\":\"ld\"}") - .toObject(ReplicaList.class); - Assertions.assertEquals("b", model.value().get(0).location()); - Assertions.assertEquals("zq", model.value().get(0).tags().get("njdgkynscliq")); - Assertions.assertEquals("zhezwwvaiq", model.value().get(0).sku().name()); - Assertions.assertEquals(SignalRSkuTier.FREE, model.value().get(0).sku().tier()); - Assertions.assertEquals(736005906, model.value().get(0).sku().capacity()); - Assertions.assertEquals("vpo", model.value().get(0).regionEndpointEnabled()); - Assertions.assertEquals("rsg", model.value().get(0).resourceStopped()); - Assertions.assertEquals("ld", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicaList model = - new ReplicaList() - .withValue( - Arrays - .asList( - new ReplicaInner() - .withLocation("b") - .withTags( - mapOf( - "njdgkynscliq", - "zq", - "mtk", - "zvhxnk", - "ppnvdxz", - "bo", - "hlfkqojpy", - "hihfrbbcevqagtlt")) - .withSku( - new ResourceSku() - .withName("zhezwwvaiq") - .withTier(SignalRSkuTier.FREE) - .withCapacity(736005906)) - .withRegionEndpointEnabled("vpo") - .withResourceStopped("rsg"), - new ReplicaInner() - .withLocation("ukiscvwmzhw") - .withTags(mapOf("btgn", "faxvxil", "zqlqhyc", "nzeyqxtjj", "mieknlraria", "vodggxdbee")) - .withSku( - new ResourceSku() - .withName("hocxvdfffwafqrou") - .withTier(SignalRSkuTier.BASIC) - .withCapacity(1284986304)) - .withRegionEndpointEnabled("hmfdnbzydvfvfcj") - .withResourceStopped("eoisrvhmgor"))) - .withNextLink("ld"); - model = BinaryData.fromObject(model).toObject(ReplicaList.class); - Assertions.assertEquals("b", model.value().get(0).location()); - Assertions.assertEquals("zq", model.value().get(0).tags().get("njdgkynscliq")); - Assertions.assertEquals("zhezwwvaiq", model.value().get(0).sku().name()); - Assertions.assertEquals(SignalRSkuTier.FREE, model.value().get(0).sku().tier()); - Assertions.assertEquals(736005906, model.value().get(0).sku().capacity()); - Assertions.assertEquals("vpo", model.value().get(0).regionEndpointEnabled()); - Assertions.assertEquals("rsg", model.value().get(0).resourceStopped()); - Assertions.assertEquals("ld", model.nextLink()); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaPropertiesTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaPropertiesTests.java deleted file mode 100644 index 100efc55c5e93..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaPropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.ReplicaProperties; -import org.junit.jupiter.api.Assertions; - -public final class ReplicaPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicaProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Running\",\"regionEndpointEnabled\":\"xcvhrfs\",\"resourceStopped\":\"uagrttikteusqc\"}") - .toObject(ReplicaProperties.class); - Assertions.assertEquals("xcvhrfs", model.regionEndpointEnabled()); - Assertions.assertEquals("uagrttikteusqc", model.resourceStopped()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicaProperties model = - new ReplicaProperties().withRegionEndpointEnabled("xcvhrfs").withResourceStopped("uagrttikteusqc"); - model = BinaryData.fromObject(model).toObject(ReplicaProperties.class); - Assertions.assertEquals("xcvhrfs", model.regionEndpointEnabled()); - Assertions.assertEquals("uagrttikteusqc", model.resourceStopped()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceLogCategoryTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceLogCategoryTests.java deleted file mode 100644 index 81033d8f1b739..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceLogCategoryTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ResourceLogCategory; -import org.junit.jupiter.api.Assertions; - -public final class ResourceLogCategoryTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceLogCategory model = - BinaryData - .fromString("{\"name\":\"qknp\",\"enabled\":\"gnepttwqmsni\"}") - .toObject(ResourceLogCategory.class); - Assertions.assertEquals("qknp", model.name()); - Assertions.assertEquals("gnepttwqmsni", model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceLogCategory model = new ResourceLogCategory().withName("qknp").withEnabled("gnepttwqmsni"); - model = BinaryData.fromObject(model).toObject(ResourceLogCategory.class); - Assertions.assertEquals("qknp", model.name()); - Assertions.assertEquals("gnepttwqmsni", model.enabled()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceLogConfigurationTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceLogConfigurationTests.java deleted file mode 100644 index 2a6a6c9212667..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceLogConfigurationTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ResourceLogCategory; -import com.azure.resourcemanager.signalr.models.ResourceLogConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResourceLogConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceLogConfiguration model = - BinaryData - .fromString( - "{\"categories\":[{\"name\":\"lbfpncurd\",\"enabled\":\"wiithtywub\"},{\"name\":\"bihwqknfdnt\",\"enabled\":\"chrdgoihxumwcto\"},{\"name\":\"zj\",\"enabled\":\"udfdlwgg\"},{\"name\":\"sb\",\"enabled\":\"ovvtgseinqfiu\"}]}") - .toObject(ResourceLogConfiguration.class); - Assertions.assertEquals("lbfpncurd", model.categories().get(0).name()); - Assertions.assertEquals("wiithtywub", model.categories().get(0).enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceLogConfiguration model = - new ResourceLogConfiguration() - .withCategories( - Arrays - .asList( - new ResourceLogCategory().withName("lbfpncurd").withEnabled("wiithtywub"), - new ResourceLogCategory().withName("bihwqknfdnt").withEnabled("chrdgoihxumwcto"), - new ResourceLogCategory().withName("zj").withEnabled("udfdlwgg"), - new ResourceLogCategory().withName("sb").withEnabled("ovvtgseinqfiu"))); - model = BinaryData.fromObject(model).toObject(ResourceLogConfiguration.class); - Assertions.assertEquals("lbfpncurd", model.categories().get(0).name()); - Assertions.assertEquals("wiithtywub", model.categories().get(0).enabled()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceReferenceTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceReferenceTests.java deleted file mode 100644 index 1ca4c3943b59e..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceReferenceTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ResourceReference; -import org.junit.jupiter.api.Assertions; - -public final class ResourceReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceReference model = BinaryData.fromString("{\"id\":\"kxtrq\"}").toObject(ResourceReference.class); - Assertions.assertEquals("kxtrq", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceReference model = new ResourceReference().withId("kxtrq"); - model = BinaryData.fromObject(model).toObject(ResourceReference.class); - Assertions.assertEquals("kxtrq", model.id()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceSkuTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceSkuTests.java deleted file mode 100644 index e38a70e61df08..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ResourceSkuTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import org.junit.jupiter.api.Assertions; - -public final class ResourceSkuTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceSku model = - BinaryData - .fromString( - "{\"name\":\"dlhewp\",\"tier\":\"Basic\",\"size\":\"ttwvogvbbe\",\"family\":\"cngqqmoakufgmjz\",\"capacity\":1463483261}") - .toObject(ResourceSku.class); - Assertions.assertEquals("dlhewp", model.name()); - Assertions.assertEquals(SignalRSkuTier.BASIC, model.tier()); - Assertions.assertEquals(1463483261, model.capacity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceSku model = - new ResourceSku().withName("dlhewp").withTier(SignalRSkuTier.BASIC).withCapacity(1463483261); - model = BinaryData.fromObject(model).toObject(ResourceSku.class); - Assertions.assertEquals("dlhewp", model.name()); - Assertions.assertEquals(SignalRSkuTier.BASIC, model.tier()); - Assertions.assertEquals(1463483261, model.capacity()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServerlessSettingsTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServerlessSettingsTests.java deleted file mode 100644 index d4caa5e4364b1..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServerlessSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ServerlessSettings; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessSettings model = - BinaryData.fromString("{\"connectionTimeoutInSeconds\":2062903356}").toObject(ServerlessSettings.class); - Assertions.assertEquals(2062903356, model.connectionTimeoutInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServerlessSettings model = new ServerlessSettings().withConnectionTimeoutInSeconds(2062903356); - model = BinaryData.fromObject(model).toObject(ServerlessSettings.class); - Assertions.assertEquals(2062903356, model.connectionTimeoutInSeconds()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServerlessUpstreamSettingsTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServerlessUpstreamSettingsTests.java deleted file mode 100644 index 8b39a46a8050b..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServerlessUpstreamSettingsTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ManagedIdentitySettings; -import com.azure.resourcemanager.signalr.models.ServerlessUpstreamSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthType; -import com.azure.resourcemanager.signalr.models.UpstreamTemplate; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ServerlessUpstreamSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerlessUpstreamSettings model = - BinaryData - .fromString( - "{\"templates\":[{\"hubPattern\":\"ddhcratizzr\",\"eventPattern\":\"asxifto\",\"categoryPattern\":\"yzhftwesgogczh\",\"urlTemplate\":\"nnxk\",\"auth\":{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"mossxkkgthrrghxj\"}}},{\"hubPattern\":\"hqxvcxgfrpdsofbs\",\"eventPattern\":\"nsvbuswdv\",\"categoryPattern\":\"ybycnunvj\",\"urlTemplate\":\"rtkfawnopq\",\"auth\":{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"rtxdyuxzejnt\"}}},{\"hubPattern\":\"ewgioilqukrydxt\",\"eventPattern\":\"ieoxorggufhyaomt\",\"categoryPattern\":\"hhavgrvkffovjz\",\"urlTemplate\":\"pjbi\",\"auth\":{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"umvfclu\"}}}]}") - .toObject(ServerlessUpstreamSettings.class); - Assertions.assertEquals("ddhcratizzr", model.templates().get(0).hubPattern()); - Assertions.assertEquals("asxifto", model.templates().get(0).eventPattern()); - Assertions.assertEquals("yzhftwesgogczh", model.templates().get(0).categoryPattern()); - Assertions.assertEquals("nnxk", model.templates().get(0).urlTemplate()); - Assertions.assertEquals(UpstreamAuthType.MANAGED_IDENTITY, model.templates().get(0).auth().type()); - Assertions.assertEquals("mossxkkgthrrghxj", model.templates().get(0).auth().managedIdentity().resource()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServerlessUpstreamSettings model = - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate() - .withHubPattern("ddhcratizzr") - .withEventPattern("asxifto") - .withCategoryPattern("yzhftwesgogczh") - .withUrlTemplate("nnxk") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity( - new ManagedIdentitySettings().withResource("mossxkkgthrrghxj"))), - new UpstreamTemplate() - .withHubPattern("hqxvcxgfrpdsofbs") - .withEventPattern("nsvbuswdv") - .withCategoryPattern("ybycnunvj") - .withUrlTemplate("rtkfawnopq") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity( - new ManagedIdentitySettings().withResource("rtxdyuxzejnt"))), - new UpstreamTemplate() - .withHubPattern("ewgioilqukrydxt") - .withEventPattern("ieoxorggufhyaomt") - .withCategoryPattern("hhavgrvkffovjz") - .withUrlTemplate("pjbi") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity(new ManagedIdentitySettings().withResource("umvfclu"))))); - model = BinaryData.fromObject(model).toObject(ServerlessUpstreamSettings.class); - Assertions.assertEquals("ddhcratizzr", model.templates().get(0).hubPattern()); - Assertions.assertEquals("asxifto", model.templates().get(0).eventPattern()); - Assertions.assertEquals("yzhftwesgogczh", model.templates().get(0).categoryPattern()); - Assertions.assertEquals("nnxk", model.templates().get(0).urlTemplate()); - Assertions.assertEquals(UpstreamAuthType.MANAGED_IDENTITY, model.templates().get(0).auth().type()); - Assertions.assertEquals("mossxkkgthrrghxj", model.templates().get(0).auth().managedIdentity().resource()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServiceSpecificationTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServiceSpecificationTests.java deleted file mode 100644 index 406903314f1ea..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ServiceSpecificationTests.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.Dimension; -import com.azure.resourcemanager.signalr.models.LogSpecification; -import com.azure.resourcemanager.signalr.models.MetricSpecification; -import com.azure.resourcemanager.signalr.models.ServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServiceSpecification model = - BinaryData - .fromString( - "{\"metricSpecifications\":[{\"name\":\"izuckyfihrfidfvz\",\"displayName\":\"zuhtymwisdkfthwx\",\"displayDescription\":\"t\",\"unit\":\"waopvkmijcmmxd\",\"aggregationType\":\"fufsrpymzi\",\"fillGapWithZero\":\"sezcxtb\",\"category\":\"gfycc\",\"dimensions\":[{\"name\":\"mdwzjeiachboo\",\"displayName\":\"lnrosfqp\",\"internalName\":\"ehzzvypyqrim\",\"toBeExportedForShoebox\":true},{\"name\":\"vswjdk\",\"displayName\":\"soodqxhcrmnoh\",\"internalName\":\"ckwhds\",\"toBeExportedForShoebox\":true}]},{\"name\":\"yip\",\"displayName\":\"sqwpgrjb\",\"displayDescription\":\"orcjxvsnby\",\"unit\":\"abnmocpcyshu\",\"aggregationType\":\"afbljjgpbtoqcjmk\",\"fillGapWithZero\":\"a\",\"category\":\"qidtqajzyu\",\"dimensions\":[{\"name\":\"dj\",\"displayName\":\"lkhbz\",\"internalName\":\"epgzgqexz\",\"toBeExportedForShoebox\":false},{\"name\":\"scpai\",\"displayName\":\"hhbcsglummajtjao\",\"internalName\":\"obnbdxkqpxokaj\",\"toBeExportedForShoebox\":false},{\"name\":\"imexgstxgcpodgma\",\"displayName\":\"r\",\"internalName\":\"djwzrlov\",\"toBeExportedForShoebox\":true}]},{\"name\":\"hijco\",\"displayName\":\"ctbzaq\",\"displayDescription\":\"sycbkbfk\",\"unit\":\"kdkexxp\",\"aggregationType\":\"fmxa\",\"fillGapWithZero\":\"fjpgddtocjjxhvp\",\"category\":\"uexhdzx\",\"dimensions\":[{\"name\":\"ojnxqbzvdd\",\"displayName\":\"wndeicbtwnp\",\"internalName\":\"oqvuhr\",\"toBeExportedForShoebox\":false},{\"name\":\"cyddglmjthjqk\",\"displayName\":\"yeicxmqciwqvhk\",\"internalName\":\"xuigdtopbobj\",\"toBeExportedForShoebox\":false},{\"name\":\"e\",\"displayName\":\"a\",\"internalName\":\"uhrzayvvt\",\"toBeExportedForShoebox\":false},{\"name\":\"f\",\"displayName\":\"otkftutqxlngx\",\"internalName\":\"fgugnxkrxdqmid\",\"toBeExportedForShoebox\":false}]}],\"logSpecifications\":[{\"name\":\"qdrabhjybigehoqf\",\"displayName\":\"wska\"},{\"name\":\"ktzlcuiywg\",\"displayName\":\"wgndrvynhzgpp\"}]}") - .toObject(ServiceSpecification.class); - Assertions.assertEquals("izuckyfihrfidfvz", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("zuhtymwisdkfthwx", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("t", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("waopvkmijcmmxd", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("fufsrpymzi", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("sezcxtb", model.metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("gfycc", model.metricSpecifications().get(0).category()); - Assertions.assertEquals("mdwzjeiachboo", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("lnrosfqp", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("ehzzvypyqrim", model.metricSpecifications().get(0).dimensions().get(0).internalName()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals("qdrabhjybigehoqf", model.logSpecifications().get(0).name()); - Assertions.assertEquals("wska", model.logSpecifications().get(0).displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServiceSpecification model = - new ServiceSpecification() - .withMetricSpecifications( - Arrays - .asList( - new MetricSpecification() - .withName("izuckyfihrfidfvz") - .withDisplayName("zuhtymwisdkfthwx") - .withDisplayDescription("t") - .withUnit("waopvkmijcmmxd") - .withAggregationType("fufsrpymzi") - .withFillGapWithZero("sezcxtb") - .withCategory("gfycc") - .withDimensions( - Arrays - .asList( - new Dimension() - .withName("mdwzjeiachboo") - .withDisplayName("lnrosfqp") - .withInternalName("ehzzvypyqrim") - .withToBeExportedForShoebox(true), - new Dimension() - .withName("vswjdk") - .withDisplayName("soodqxhcrmnoh") - .withInternalName("ckwhds") - .withToBeExportedForShoebox(true))), - new MetricSpecification() - .withName("yip") - .withDisplayName("sqwpgrjb") - .withDisplayDescription("orcjxvsnby") - .withUnit("abnmocpcyshu") - .withAggregationType("afbljjgpbtoqcjmk") - .withFillGapWithZero("a") - .withCategory("qidtqajzyu") - .withDimensions( - Arrays - .asList( - new Dimension() - .withName("dj") - .withDisplayName("lkhbz") - .withInternalName("epgzgqexz") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("scpai") - .withDisplayName("hhbcsglummajtjao") - .withInternalName("obnbdxkqpxokaj") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("imexgstxgcpodgma") - .withDisplayName("r") - .withInternalName("djwzrlov") - .withToBeExportedForShoebox(true))), - new MetricSpecification() - .withName("hijco") - .withDisplayName("ctbzaq") - .withDisplayDescription("sycbkbfk") - .withUnit("kdkexxp") - .withAggregationType("fmxa") - .withFillGapWithZero("fjpgddtocjjxhvp") - .withCategory("uexhdzx") - .withDimensions( - Arrays - .asList( - new Dimension() - .withName("ojnxqbzvdd") - .withDisplayName("wndeicbtwnp") - .withInternalName("oqvuhr") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("cyddglmjthjqk") - .withDisplayName("yeicxmqciwqvhk") - .withInternalName("xuigdtopbobj") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("e") - .withDisplayName("a") - .withInternalName("uhrzayvvt") - .withToBeExportedForShoebox(false), - new Dimension() - .withName("f") - .withDisplayName("otkftutqxlngx") - .withInternalName("fgugnxkrxdqmid") - .withToBeExportedForShoebox(false))))) - .withLogSpecifications( - Arrays - .asList( - new LogSpecification().withName("qdrabhjybigehoqf").withDisplayName("wska"), - new LogSpecification().withName("ktzlcuiywg").withDisplayName("wgndrvynhzgpp"))); - model = BinaryData.fromObject(model).toObject(ServiceSpecification.class); - Assertions.assertEquals("izuckyfihrfidfvz", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("zuhtymwisdkfthwx", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("t", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("waopvkmijcmmxd", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("fufsrpymzi", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("sezcxtb", model.metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("gfycc", model.metricSpecifications().get(0).category()); - Assertions.assertEquals("mdwzjeiachboo", model.metricSpecifications().get(0).dimensions().get(0).name()); - Assertions.assertEquals("lnrosfqp", model.metricSpecifications().get(0).dimensions().get(0).displayName()); - Assertions.assertEquals("ehzzvypyqrim", model.metricSpecifications().get(0).dimensions().get(0).internalName()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals("qdrabhjybigehoqf", model.logSpecifications().get(0).name()); - Assertions.assertEquals("wska", model.logSpecifications().get(0).displayName()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ShareablePrivateLinkResourcePropertiesTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ShareablePrivateLinkResourcePropertiesTests.java deleted file mode 100644 index cc28d4c7c5480..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ShareablePrivateLinkResourcePropertiesTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceProperties; -import org.junit.jupiter.api.Assertions; - -public final class ShareablePrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ShareablePrivateLinkResourceProperties model = - BinaryData - .fromString("{\"description\":\"mxho\",\"groupId\":\"ynhdwdigum\",\"type\":\"raauzzpt\"}") - .toObject(ShareablePrivateLinkResourceProperties.class); - Assertions.assertEquals("mxho", model.description()); - Assertions.assertEquals("ynhdwdigum", model.groupId()); - Assertions.assertEquals("raauzzpt", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShareablePrivateLinkResourceProperties model = - new ShareablePrivateLinkResourceProperties() - .withDescription("mxho") - .withGroupId("ynhdwdigum") - .withType("raauzzpt"); - model = BinaryData.fromObject(model).toObject(ShareablePrivateLinkResourceProperties.class); - Assertions.assertEquals("mxho", model.description()); - Assertions.assertEquals("ynhdwdigum", model.groupId()); - Assertions.assertEquals("raauzzpt", model.type()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ShareablePrivateLinkResourceTypeTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ShareablePrivateLinkResourceTypeTests.java deleted file mode 100644 index 49e0aac12dbd6..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ShareablePrivateLinkResourceTypeTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceProperties; -import com.azure.resourcemanager.signalr.models.ShareablePrivateLinkResourceType; -import org.junit.jupiter.api.Assertions; - -public final class ShareablePrivateLinkResourceTypeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ShareablePrivateLinkResourceType model = - BinaryData - .fromString( - "{\"name\":\"t\",\"properties\":{\"description\":\"gxobfirclnp\",\"groupId\":\"iayz\",\"type\":\"ykhyawfvjlboxqvk\"}}") - .toObject(ShareablePrivateLinkResourceType.class); - Assertions.assertEquals("t", model.name()); - Assertions.assertEquals("gxobfirclnp", model.properties().description()); - Assertions.assertEquals("iayz", model.properties().groupId()); - Assertions.assertEquals("ykhyawfvjlboxqvk", model.properties().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ShareablePrivateLinkResourceType model = - new ShareablePrivateLinkResourceType() - .withName("t") - .withProperties( - new ShareablePrivateLinkResourceProperties() - .withDescription("gxobfirclnp") - .withGroupId("iayz") - .withType("ykhyawfvjlboxqvk")); - model = BinaryData.fromObject(model).toObject(ShareablePrivateLinkResourceType.class); - Assertions.assertEquals("t", model.name()); - Assertions.assertEquals("gxobfirclnp", model.properties().description()); - Assertions.assertEquals("iayz", model.properties().groupId()); - Assertions.assertEquals("ykhyawfvjlboxqvk", model.properties().type()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourceInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourceInnerTests.java deleted file mode 100644 index 70410f2a2a83d..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourceInnerTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner; -import org.junit.jupiter.api.Assertions; - -public final class SharedPrivateLinkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharedPrivateLinkResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"groupId\":\"lo\",\"privateLinkResourceId\":\"bq\",\"provisioningState\":\"Updating\",\"requestMessage\":\"lmv\",\"status\":\"Timeout\"},\"id\":\"ktgplcr\",\"name\":\"wjxeznoigbr\",\"type\":\"jwmwkpnbs\"}") - .toObject(SharedPrivateLinkResourceInner.class); - Assertions.assertEquals("lo", model.groupId()); - Assertions.assertEquals("bq", model.privateLinkResourceId()); - Assertions.assertEquals("lmv", model.requestMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharedPrivateLinkResourceInner model = - new SharedPrivateLinkResourceInner() - .withGroupId("lo") - .withPrivateLinkResourceId("bq") - .withRequestMessage("lmv"); - model = BinaryData.fromObject(model).toObject(SharedPrivateLinkResourceInner.class); - Assertions.assertEquals("lo", model.groupId()); - Assertions.assertEquals("bq", model.privateLinkResourceId()); - Assertions.assertEquals("lmv", model.requestMessage()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourceListTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourceListTests.java deleted file mode 100644 index 48c3fb82ad9c8..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourceListTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceInner; -import com.azure.resourcemanager.signalr.models.SharedPrivateLinkResourceList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SharedPrivateLinkResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharedPrivateLinkResourceList model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"jnjwltlwt\",\"privateLinkResourceId\":\"j\",\"provisioningState\":\"Unknown\",\"requestMessage\":\"alhsnvkc\",\"status\":\"Timeout\"},\"id\":\"rpoaimlnwi\",\"name\":\"aomylwea\",\"type\":\"ulcsethwwnpj\"},{\"properties\":{\"groupId\":\"fz\",\"privateLinkResourceId\":\"wpchwahf\",\"provisioningState\":\"Canceled\",\"requestMessage\":\"nfepgf\",\"status\":\"Pending\"},\"id\":\"wlyxgncxyk\",\"name\":\"hdjhlimmbcx\",\"type\":\"h\"},{\"properties\":{\"groupId\":\"po\",\"privateLinkResourceId\":\"xvxcjzhq\",\"provisioningState\":\"Moving\",\"requestMessage\":\"pxtgqscjav\",\"status\":\"Pending\"},\"id\":\"hdqazkmtgguwp\",\"name\":\"jrajcivm\",\"type\":\"ghfcfiwrxgkneuvy\"},{\"properties\":{\"groupId\":\"zqodfvpgshox\",\"privateLinkResourceId\":\"sgbpfgzdjtx\",\"provisioningState\":\"Creating\",\"requestMessage\":\"bqvgaqv\",\"status\":\"Approved\"},\"id\":\"cqusr\",\"name\":\"vetnwsdtutn\",\"type\":\"lduycv\"}],\"nextLink\":\"hyrmewipmvekdx\"}") - .toObject(SharedPrivateLinkResourceList.class); - Assertions.assertEquals("jnjwltlwt", model.value().get(0).groupId()); - Assertions.assertEquals("j", model.value().get(0).privateLinkResourceId()); - Assertions.assertEquals("alhsnvkc", model.value().get(0).requestMessage()); - Assertions.assertEquals("hyrmewipmvekdx", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharedPrivateLinkResourceList model = - new SharedPrivateLinkResourceList() - .withValue( - Arrays - .asList( - new SharedPrivateLinkResourceInner() - .withGroupId("jnjwltlwt") - .withPrivateLinkResourceId("j") - .withRequestMessage("alhsnvkc"), - new SharedPrivateLinkResourceInner() - .withGroupId("fz") - .withPrivateLinkResourceId("wpchwahf") - .withRequestMessage("nfepgf"), - new SharedPrivateLinkResourceInner() - .withGroupId("po") - .withPrivateLinkResourceId("xvxcjzhq") - .withRequestMessage("pxtgqscjav"), - new SharedPrivateLinkResourceInner() - .withGroupId("zqodfvpgshox") - .withPrivateLinkResourceId("sgbpfgzdjtx") - .withRequestMessage("bqvgaqv"))) - .withNextLink("hyrmewipmvekdx"); - model = BinaryData.fromObject(model).toObject(SharedPrivateLinkResourceList.class); - Assertions.assertEquals("jnjwltlwt", model.value().get(0).groupId()); - Assertions.assertEquals("j", model.value().get(0).privateLinkResourceId()); - Assertions.assertEquals("alhsnvkc", model.value().get(0).requestMessage()); - Assertions.assertEquals("hyrmewipmvekdx", model.nextLink()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourcePropertiesTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourcePropertiesTests.java deleted file mode 100644 index a9779d8f0aa56..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SharedPrivateLinkResourcePropertiesTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SharedPrivateLinkResourceProperties; -import org.junit.jupiter.api.Assertions; - -public final class SharedPrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SharedPrivateLinkResourceProperties model = - BinaryData - .fromString( - "{\"groupId\":\"zejjoqk\",\"privateLinkResourceId\":\"gfhsxttaugzxn\",\"provisioningState\":\"Failed\",\"requestMessage\":\"pxdtnkdmkq\",\"status\":\"Rejected\"}") - .toObject(SharedPrivateLinkResourceProperties.class); - Assertions.assertEquals("zejjoqk", model.groupId()); - Assertions.assertEquals("gfhsxttaugzxn", model.privateLinkResourceId()); - Assertions.assertEquals("pxdtnkdmkq", model.requestMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SharedPrivateLinkResourceProperties model = - new SharedPrivateLinkResourceProperties() - .withGroupId("zejjoqk") - .withPrivateLinkResourceId("gfhsxttaugzxn") - .withRequestMessage("pxdtnkdmkq"); - model = BinaryData.fromObject(model).toObject(SharedPrivateLinkResourceProperties.class); - Assertions.assertEquals("zejjoqk", model.groupId()); - Assertions.assertEquals("gfhsxttaugzxn", model.privateLinkResourceId()); - Assertions.assertEquals("pxdtnkdmkq", model.requestMessage()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCorsSettingsTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCorsSettingsTests.java deleted file mode 100644 index d831212628778..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCorsSettingsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.SignalRCorsSettings; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SignalRCorsSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRCorsSettings model = - BinaryData.fromString("{\"allowedOrigins\":[\"dmqnrojlpij\"]}").toObject(SignalRCorsSettings.class); - Assertions.assertEquals("dmqnrojlpij", model.allowedOrigins().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRCorsSettings model = new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("dmqnrojlpij")); - model = BinaryData.fromObject(model).toObject(SignalRCorsSettings.class); - Assertions.assertEquals("dmqnrojlpij", model.allowedOrigins().get(0)); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesDeleteWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesDeleteWithResponseMockTests.java deleted file mode 100644 index 18a6eee7b3724..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomCertificatesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRCustomCertificatesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .signalRCustomCertificates() - .deleteWithResponse("guihywar", "spphk", "xkykxdssjp", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsDeleteMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsDeleteMockTests.java deleted file mode 100644 index 8791cc19270ca..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRCustomDomainsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .signalRCustomDomains() - .delete("ephmgtvljvrcmyfq", "pgxh", "pomyqwcabvnuile", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsGetWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsGetWithResponseMockTests.java deleted file mode 100644 index 03baaa96fa8e2..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsGetWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.CustomDomain; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRCustomDomainsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"Running\",\"domainName\":\"ovpbbttefjoknssq\",\"customCertificate\":{\"id\":\"qedikdfrd\"}},\"id\":\"qmrjg\",\"name\":\"ihfqlggwfiwzc\",\"type\":\"mjpb\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CustomDomain response = - manager - .signalRCustomDomains() - .getWithResponse("pivlsbbjpm", "ubkmifo", "xkubvphavpmhbrbq", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ovpbbttefjoknssq", response.domainName()); - Assertions.assertEquals("qedikdfrd", response.customCertificate().id()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsListMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsListMockTests.java deleted file mode 100644 index d70f07cc9f52d..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRCustomDomainsListMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.CustomDomain; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRCustomDomainsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"provisioningState\":\"Moving\",\"domainName\":\"totiowlxteqdptjg\",\"customCertificate\":{\"id\":\"tgukranblwphql\"}},\"id\":\"c\",\"name\":\"zgygqwahoiulwgni\",\"type\":\"prglvawuwzduf\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.signalRCustomDomains().list("v", "qcgxuug", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("totiowlxteqdptjg", response.iterator().next().domainName()); - Assertions.assertEquals("tgukranblwphql", response.iterator().next().customCertificate().id()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRFeatureTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRFeatureTests.java deleted file mode 100644 index 84a2f707b118b..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRFeatureTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.FeatureFlags; -import com.azure.resourcemanager.signalr.models.SignalRFeature; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SignalRFeatureTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRFeature model = - BinaryData - .fromString( - "{\"flag\":\"EnableLiveTrace\",\"value\":\"nvrk\",\"properties\":{\"ixqtn\":\"uaibrebqaaysj\"}}") - .toObject(SignalRFeature.class); - Assertions.assertEquals(FeatureFlags.ENABLE_LIVE_TRACE, model.flag()); - Assertions.assertEquals("nvrk", model.value()); - Assertions.assertEquals("uaibrebqaaysj", model.properties().get("ixqtn")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRFeature model = - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("nvrk") - .withProperties(mapOf("ixqtn", "uaibrebqaaysj")); - model = BinaryData.fromObject(model).toObject(SignalRFeature.class); - Assertions.assertEquals(FeatureFlags.ENABLE_LIVE_TRACE, model.flag()); - Assertions.assertEquals("nvrk", model.value()); - Assertions.assertEquals("uaibrebqaaysj", model.properties().get("ixqtn")); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRNetworkACLsTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRNetworkACLsTests.java deleted file mode 100644 index b6b9854d18ffb..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRNetworkACLsTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.IpRule; -import com.azure.resourcemanager.signalr.models.NetworkAcl; -import com.azure.resourcemanager.signalr.models.PrivateEndpointAcl; -import com.azure.resourcemanager.signalr.models.SignalRNetworkACLs; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SignalRNetworkACLsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRNetworkACLs model = - BinaryData - .fromString( - "{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"Trace\",\"Trace\"],\"deny\":[\"RESTAPI\",\"Trace\",\"ServerConnection\"]},\"privateEndpoints\":[{\"name\":\"wycz\",\"allow\":[\"ClientConnection\",\"RESTAPI\"],\"deny\":[\"ServerConnection\",\"Trace\",\"RESTAPI\",\"ClientConnection\"]},{\"name\":\"hyus\",\"allow\":[\"ServerConnection\",\"Trace\"],\"deny\":[\"ServerConnection\",\"ServerConnection\",\"RESTAPI\",\"RESTAPI\"]}],\"ipRules\":[{\"value\":\"x\",\"action\":\"Allow\"}]}") - .toObject(SignalRNetworkACLs.class); - Assertions.assertEquals(AclAction.DENY, model.defaultAction()); - Assertions.assertEquals(SignalRRequestType.TRACE, model.publicNetwork().allow().get(0)); - Assertions.assertEquals(SignalRRequestType.RESTAPI, model.publicNetwork().deny().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, model.privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("wycz", model.privateEndpoints().get(0).name()); - Assertions.assertEquals("x", model.ipRules().get(0).value()); - Assertions.assertEquals(AclAction.ALLOW, model.ipRules().get(0).action()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRNetworkACLs model = - new SignalRNetworkACLs() - .withDefaultAction(AclAction.DENY) - .withPublicNetwork( - new NetworkAcl() - .withAllow(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.TRACE)) - .withDeny( - Arrays - .asList( - SignalRRequestType.RESTAPI, - SignalRRequestType.TRACE, - SignalRRequestType.SERVER_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl() - .withAllow( - Arrays.asList(SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.RESTAPI)) - .withDeny( - Arrays - .asList( - SignalRRequestType.SERVER_CONNECTION, - SignalRRequestType.TRACE, - SignalRRequestType.RESTAPI, - SignalRRequestType.CLIENT_CONNECTION)) - .withName("wycz"), - new PrivateEndpointAcl() - .withAllow( - Arrays.asList(SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.TRACE)) - .withDeny( - Arrays - .asList( - SignalRRequestType.SERVER_CONNECTION, - SignalRRequestType.SERVER_CONNECTION, - SignalRRequestType.RESTAPI, - SignalRRequestType.RESTAPI)) - .withName("hyus"))) - .withIpRules(Arrays.asList(new IpRule().withValue("x").withAction(AclAction.ALLOW))); - model = BinaryData.fromObject(model).toObject(SignalRNetworkACLs.class); - Assertions.assertEquals(AclAction.DENY, model.defaultAction()); - Assertions.assertEquals(SignalRRequestType.TRACE, model.publicNetwork().allow().get(0)); - Assertions.assertEquals(SignalRRequestType.RESTAPI, model.publicNetwork().deny().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, model.privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("wycz", model.privateEndpoints().get(0).name()); - Assertions.assertEquals("x", model.ipRules().get(0).value()); - Assertions.assertEquals(AclAction.ALLOW, model.ipRules().get(0).action()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsDeleteMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsDeleteMockTests.java deleted file mode 100644 index e2c585e397c5d..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRPrivateEndpointConnectionsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .signalRPrivateEndpointConnections() - .delete("afcbqw", "e", "jelaqacigele", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsGetWithResponseMockTests.java deleted file mode 100644 index 8e1c4f8762506..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsGetWithResponseMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.PrivateEndpointConnection; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRPrivateEndpointConnectionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"nsghp\"},\"groupIds\":[\"phdrw\",\"jkhvyomacluzvxnq\",\"hrpq\",\"df\"],\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"sqcssffx\",\"actionsRequired\":\"fmcsypobkd\"}},\"id\":\"rdzsylollgtrczzy\",\"name\":\"mxzjijpvua\",\"type\":\"rkihcirld\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnection response = - manager - .signalRPrivateEndpointConnections() - .getWithResponse("nxkympqanxrjk", "xtwbta", "ypnyghshxc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("nsghp", response.privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.PENDING, response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("sqcssffx", response.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("fmcsypobkd", response.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsListMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsListMockTests.java deleted file mode 100644 index 4d2c5e0dda284..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsListMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.PrivateEndpointConnection; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRPrivateEndpointConnectionsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{\"id\":\"sizmoae\"},\"groupIds\":[\"jwuive\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"eewxeiqbpsmg\",\"actionsRequired\":\"guamlj\"}},\"id\":\"rgmsplzga\",\"name\":\"fcshh\",\"type\":\"new\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .signalRPrivateEndpointConnections() - .list("yaswlpaugmr", "fjlrxwtoauk", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("sizmoae", response.iterator().next().privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.REJECTED, - response.iterator().next().privateLinkServiceConnectionState().status()); - Assertions - .assertEquals("eewxeiqbpsmg", response.iterator().next().privateLinkServiceConnectionState().description()); - Assertions - .assertEquals("guamlj", response.iterator().next().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsUpdateWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsUpdateWithResponseMockTests.java deleted file mode 100644 index 874867c2d1d9a..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateEndpointConnectionsUpdateWithResponseMockTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.fluent.models.PrivateEndpointConnectionInner; -import com.azure.resourcemanager.signalr.models.PrivateEndpoint; -import com.azure.resourcemanager.signalr.models.PrivateEndpointConnection; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionState; -import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRPrivateEndpointConnectionsUpdateWithResponseMockTests { - @Test - public void testUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"Moving\",\"privateEndpoint\":{\"id\":\"czezkhhlt\"},\"groupIds\":[\"dhqoawj\",\"oyueayfbpcmsp\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"ueq\",\"actionsRequired\":\"wmgn\"}},\"id\":\"scbbxig\",\"name\":\"hxiidlopedb\",\"type\":\"dpyqyybxubmd\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnection response = - manager - .signalRPrivateEndpointConnections() - .updateWithResponse( - "fx", - "dcoxnbk", - "ja", - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint().withId("bnqbpizxqltgrd")) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.DISCONNECTED) - .withDescription("li") - .withActionsRequired("xihspnxwq")), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("czezkhhlt", response.privateEndpoint().id()); - Assertions - .assertEquals( - PrivateLinkServiceConnectionStatus.REJECTED, response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ueq", response.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("wmgn", response.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateLinkResourcesListMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateLinkResourcesListMockTests.java deleted file mode 100644 index ed47ff8f3bdf3..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPrivateLinkResourcesListMockTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.PrivateLinkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRPrivateLinkResourcesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"groupId\":\"ceakxc\",\"requiredMembers\":[\"oqfyiaseqch\",\"rttzrazisgykiu\",\"mvanbwzo\",\"mnrxxbsojkl\"],\"requiredZoneNames\":[\"mdptys\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"gnzxojpslsvj\",\"properties\":{\"description\":\"iufiqwo\",\"groupId\":\"qvapcohhoucq\",\"type\":\"oj\"}},{\"name\":\"x\",\"properties\":{\"description\":\"dcgdzbenribca\",\"groupId\":\"tzqdd\",\"type\":\"wflj\"}},{\"name\":\"namtuatmzw\",\"properties\":{\"description\":\"nc\",\"groupId\":\"jzmizv\",\"type\":\"gat\"}}]},\"id\":\"uvbxngr\",\"name\":\"bwggahtt\",\"type\":\"lswva\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.signalRPrivateLinkResources().list("hdbvqvwzkjop", "beonrlkwzdq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ceakxc", response.iterator().next().groupId()); - Assertions.assertEquals("oqfyiaseqch", response.iterator().next().requiredMembers().get(0)); - Assertions.assertEquals("mdptys", response.iterator().next().requiredZoneNames().get(0)); - Assertions - .assertEquals("gnzxojpslsvj", response.iterator().next().shareablePrivateLinkResourceTypes().get(0).name()); - Assertions - .assertEquals( - "iufiqwo", - response.iterator().next().shareablePrivateLinkResourceTypes().get(0).properties().description()); - Assertions - .assertEquals( - "qvapcohhoucq", - response.iterator().next().shareablePrivateLinkResourceTypes().get(0).properties().groupId()); - Assertions - .assertEquals( - "oj", response.iterator().next().shareablePrivateLinkResourceTypes().get(0).properties().type()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPropertiesTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPropertiesTests.java deleted file mode 100644 index 6018eac5bcc41..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRPropertiesTests.java +++ /dev/null @@ -1,249 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SignalRProperties; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.FeatureFlags; -import com.azure.resourcemanager.signalr.models.IpRule; -import com.azure.resourcemanager.signalr.models.LiveTraceCategory; -import com.azure.resourcemanager.signalr.models.LiveTraceConfiguration; -import com.azure.resourcemanager.signalr.models.ManagedIdentitySettings; -import com.azure.resourcemanager.signalr.models.NetworkAcl; -import com.azure.resourcemanager.signalr.models.PrivateEndpointAcl; -import com.azure.resourcemanager.signalr.models.ResourceLogCategory; -import com.azure.resourcemanager.signalr.models.ResourceLogConfiguration; -import com.azure.resourcemanager.signalr.models.ServerlessSettings; -import com.azure.resourcemanager.signalr.models.ServerlessUpstreamSettings; -import com.azure.resourcemanager.signalr.models.SignalRCorsSettings; -import com.azure.resourcemanager.signalr.models.SignalRFeature; -import com.azure.resourcemanager.signalr.models.SignalRNetworkACLs; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import com.azure.resourcemanager.signalr.models.SignalRTlsSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthType; -import com.azure.resourcemanager.signalr.models.UpstreamTemplate; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SignalRPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Failed\",\"externalIP\":\"twaenuuzko\",\"hostName\":\"minrfdw\",\"publicPort\":1704063633,\"serverPort\":1542145375,\"version\":\"iuiefozbhdmsm\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"rmaequ\"},\"groupIds\":[\"xicslfao\",\"z\",\"iyylhalnswhccsp\"],\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"witqscywuggwoluh\",\"actionsRequired\":\"bwemhairs\"}},\"id\":\"gzd\",\"name\":\"msweypqwdxggicc\",\"type\":\"n\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"mkttlstvlzywem\"},\"groupIds\":[\"ncsdtclusiyp\",\"sfgytguslfead\",\"ygqukyhejh\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"fpel\",\"actionsRequired\":\"p\"}},\"id\":\"ksrpqv\",\"name\":\"jzraehtwdwrf\",\"type\":\"swibyr\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"h\",\"privateLinkResourceId\":\"hfwpracstwit\",\"provisioningState\":\"Canceled\",\"requestMessage\":\"vxccedcp\",\"status\":\"Disconnected\"},\"id\":\"odn\",\"name\":\"zxltjcvn\",\"type\":\"ltiugcxnavv\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"y\",\"features\":[{\"flag\":\"ServiceMode\",\"value\":\"owx\",\"properties\":{\"odacizs\":\"djrkvfgbvfvpd\",\"hkr\":\"q\",\"p\":\"ibdeibq\",\"ndzwmkrefa\":\"kghv\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"jorwkqnyhgbij\",\"properties\":{\"bsystawfsdjpvk\":\"vfxzsjab\",\"jxbkzbzkdvn\":\"p\",\"zhjjklffhmouwq\":\"jabudurgkakmo\",\"eeyebi\":\"gzrf\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"kayuhqlbjbs\",\"properties\":{\"vm\":\"qwrvtldgmfp\",\"wbdsr\":\"ipaslthaqfxssmwu\",\"owqkdwytisi\":\"zpdrhneu\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"rcgp\",\"properties\":{\"av\":\"zimejzanlfzx\",\"jq\":\"mbzonokix\",\"rlazszrnw\":\"irgzp\",\"fpwpjylwbt\":\"iin\"}}],\"liveTraceConfiguration\":{\"enabled\":\"lsj\",\"categories\":[{\"name\":\"zfjvfbgofe\",\"enabled\":\"a\"},{\"name\":\"qmqhldvriii\",\"enabled\":\"nalghfkvtvsexso\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"qhhahhxvrhmzkwpj\",\"enabled\":\"wspughftqsxhqx\"},{\"name\":\"xukndxdigr\",\"enabled\":\"uufzdmsyqtfihw\"},{\"name\":\"otzi\",\"enabled\":\"amvpphoszqzudph\"}]},\"cors\":{\"allowedOrigins\":[\"dkfw\",\"nwcvtbvkayhmtnv\",\"qiatkzwpcnp\",\"zcjaesgvvsccy\"]},\"serverless\":{\"connectionTimeoutInSeconds\":306781812},\"upstream\":{\"templates\":[{\"hubPattern\":\"ygz\",\"eventPattern\":\"dnkfx\",\"categoryPattern\":\"emdwzrmuhapfc\",\"urlTemplate\":\"dpsqx\",\"auth\":{\"type\":\"None\",\"managedIdentity\":{\"resource\":\"oymgccelvezr\"}}}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"Trace\",\"ServerConnection\",\"Trace\",\"ServerConnection\"],\"deny\":[\"RESTAPI\",\"ClientConnection\",\"RESTAPI\"]},\"privateEndpoints\":[{\"name\":\"bopgxedkowepbqp\",\"allow\":[\"ServerConnection\"],\"deny\":[\"Trace\",\"Trace\",\"Trace\",\"ClientConnection\"]}],\"ipRules\":[{\"value\":\"dw\",\"action\":\"Allow\"},{\"value\":\"ekftnkhtj\",\"action\":\"Allow\"},{\"value\":\"gwfqatmt\",\"action\":\"Deny\"},{\"value\":\"dvypgikdgsz\",\"action\":\"Allow\"}]},\"publicNetworkAccess\":\"irryuzhlh\",\"disableLocalAuth\":true,\"disableAadAuth\":false,\"regionEndpointEnabled\":\"qqaatjinrvgou\",\"resourceStopped\":\"fiibfggjioolvr\"}") - .toObject(SignalRProperties.class); - Assertions.assertEquals(true, model.tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.SERVICE_MODE, model.features().get(0).flag()); - Assertions.assertEquals("owx", model.features().get(0).value()); - Assertions.assertEquals("djrkvfgbvfvpd", model.features().get(0).properties().get("odacizs")); - Assertions.assertEquals("lsj", model.liveTraceConfiguration().enabled()); - Assertions.assertEquals("zfjvfbgofe", model.liveTraceConfiguration().categories().get(0).name()); - Assertions.assertEquals("a", model.liveTraceConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("qhhahhxvrhmzkwpj", model.resourceLogConfiguration().categories().get(0).name()); - Assertions.assertEquals("wspughftqsxhqx", model.resourceLogConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("dkfw", model.cors().allowedOrigins().get(0)); - Assertions.assertEquals(306781812, model.serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("ygz", model.upstream().templates().get(0).hubPattern()); - Assertions.assertEquals("dnkfx", model.upstream().templates().get(0).eventPattern()); - Assertions.assertEquals("emdwzrmuhapfc", model.upstream().templates().get(0).categoryPattern()); - Assertions.assertEquals("dpsqx", model.upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(UpstreamAuthType.NONE, model.upstream().templates().get(0).auth().type()); - Assertions - .assertEquals("oymgccelvezr", model.upstream().templates().get(0).auth().managedIdentity().resource()); - Assertions.assertEquals(AclAction.DENY, model.networkACLs().defaultAction()); - Assertions.assertEquals(SignalRRequestType.TRACE, model.networkACLs().publicNetwork().allow().get(0)); - Assertions.assertEquals(SignalRRequestType.RESTAPI, model.networkACLs().publicNetwork().deny().get(0)); - Assertions - .assertEquals( - SignalRRequestType.SERVER_CONNECTION, model.networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.TRACE, model.networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("bopgxedkowepbqp", model.networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("dw", model.networkACLs().ipRules().get(0).value()); - Assertions.assertEquals(AclAction.ALLOW, model.networkACLs().ipRules().get(0).action()); - Assertions.assertEquals("irryuzhlh", model.publicNetworkAccess()); - Assertions.assertEquals(true, model.disableLocalAuth()); - Assertions.assertEquals(false, model.disableAadAuth()); - Assertions.assertEquals("qqaatjinrvgou", model.regionEndpointEnabled()); - Assertions.assertEquals("fiibfggjioolvr", model.resourceStopped()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRProperties model = - new SignalRProperties() - .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.SERVICE_MODE) - .withValue("owx") - .withProperties( - mapOf( - "odacizs", "djrkvfgbvfvpd", "hkr", "q", "p", "ibdeibq", "ndzwmkrefa", "kghv")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("jorwkqnyhgbij") - .withProperties( - mapOf( - "bsystawfsdjpvk", - "vfxzsjab", - "jxbkzbzkdvn", - "p", - "zhjjklffhmouwq", - "jabudurgkakmo", - "eeyebi", - "gzrf")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("kayuhqlbjbs") - .withProperties( - mapOf("vm", "qwrvtldgmfp", "wbdsr", "ipaslthaqfxssmwu", "owqkdwytisi", "zpdrhneu")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("rcgp") - .withProperties( - mapOf( - "av", - "zimejzanlfzx", - "jq", - "mbzonokix", - "rlazszrnw", - "irgzp", - "fpwpjylwbt", - "iin")))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("lsj") - .withCategories( - Arrays - .asList( - new LiveTraceCategory().withName("zfjvfbgofe").withEnabled("a"), - new LiveTraceCategory().withName("qmqhldvriii").withEnabled("nalghfkvtvsexso")))) - .withResourceLogConfiguration( - new ResourceLogConfiguration() - .withCategories( - Arrays - .asList( - new ResourceLogCategory() - .withName("qhhahhxvrhmzkwpj") - .withEnabled("wspughftqsxhqx"), - new ResourceLogCategory().withName("xukndxdigr").withEnabled("uufzdmsyqtfihw"), - new ResourceLogCategory().withName("otzi").withEnabled("amvpphoszqzudph")))) - .withCors( - new SignalRCorsSettings() - .withAllowedOrigins(Arrays.asList("dkfw", "nwcvtbvkayhmtnv", "qiatkzwpcnp", "zcjaesgvvsccy"))) - .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(306781812)) - .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate() - .withHubPattern("ygz") - .withEventPattern("dnkfx") - .withCategoryPattern("emdwzrmuhapfc") - .withUrlTemplate("dpsqx") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.NONE) - .withManagedIdentity( - new ManagedIdentitySettings().withResource("oymgccelvezr")))))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.DENY) - .withPublicNetwork( - new NetworkAcl() - .withAllow( - Arrays - .asList( - SignalRRequestType.TRACE, - SignalRRequestType.SERVER_CONNECTION, - SignalRRequestType.TRACE, - SignalRRequestType.SERVER_CONNECTION)) - .withDeny( - Arrays - .asList( - SignalRRequestType.RESTAPI, - SignalRRequestType.CLIENT_CONNECTION, - SignalRRequestType.RESTAPI))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withDeny( - Arrays - .asList( - SignalRRequestType.TRACE, - SignalRRequestType.TRACE, - SignalRRequestType.TRACE, - SignalRRequestType.CLIENT_CONNECTION)) - .withName("bopgxedkowepbqp"))) - .withIpRules( - Arrays - .asList( - new IpRule().withValue("dw").withAction(AclAction.ALLOW), - new IpRule().withValue("ekftnkhtj").withAction(AclAction.ALLOW), - new IpRule().withValue("gwfqatmt").withAction(AclAction.DENY), - new IpRule().withValue("dvypgikdgsz").withAction(AclAction.ALLOW)))) - .withPublicNetworkAccess("irryuzhlh") - .withDisableLocalAuth(true) - .withDisableAadAuth(false) - .withRegionEndpointEnabled("qqaatjinrvgou") - .withResourceStopped("fiibfggjioolvr"); - model = BinaryData.fromObject(model).toObject(SignalRProperties.class); - Assertions.assertEquals(true, model.tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.SERVICE_MODE, model.features().get(0).flag()); - Assertions.assertEquals("owx", model.features().get(0).value()); - Assertions.assertEquals("djrkvfgbvfvpd", model.features().get(0).properties().get("odacizs")); - Assertions.assertEquals("lsj", model.liveTraceConfiguration().enabled()); - Assertions.assertEquals("zfjvfbgofe", model.liveTraceConfiguration().categories().get(0).name()); - Assertions.assertEquals("a", model.liveTraceConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("qhhahhxvrhmzkwpj", model.resourceLogConfiguration().categories().get(0).name()); - Assertions.assertEquals("wspughftqsxhqx", model.resourceLogConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("dkfw", model.cors().allowedOrigins().get(0)); - Assertions.assertEquals(306781812, model.serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("ygz", model.upstream().templates().get(0).hubPattern()); - Assertions.assertEquals("dnkfx", model.upstream().templates().get(0).eventPattern()); - Assertions.assertEquals("emdwzrmuhapfc", model.upstream().templates().get(0).categoryPattern()); - Assertions.assertEquals("dpsqx", model.upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(UpstreamAuthType.NONE, model.upstream().templates().get(0).auth().type()); - Assertions - .assertEquals("oymgccelvezr", model.upstream().templates().get(0).auth().managedIdentity().resource()); - Assertions.assertEquals(AclAction.DENY, model.networkACLs().defaultAction()); - Assertions.assertEquals(SignalRRequestType.TRACE, model.networkACLs().publicNetwork().allow().get(0)); - Assertions.assertEquals(SignalRRequestType.RESTAPI, model.networkACLs().publicNetwork().deny().get(0)); - Assertions - .assertEquals( - SignalRRequestType.SERVER_CONNECTION, model.networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.TRACE, model.networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("bopgxedkowepbqp", model.networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("dw", model.networkACLs().ipRules().get(0).value()); - Assertions.assertEquals(AclAction.ALLOW, model.networkACLs().ipRules().get(0).action()); - Assertions.assertEquals("irryuzhlh", model.publicNetworkAccess()); - Assertions.assertEquals(true, model.disableLocalAuth()); - Assertions.assertEquals(false, model.disableAadAuth()); - Assertions.assertEquals("qqaatjinrvgou", model.regionEndpointEnabled()); - Assertions.assertEquals("fiibfggjioolvr", model.resourceStopped()); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateMockTests.java deleted file mode 100644 index 60faf94489746..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateMockTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.Replica; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRReplicasCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"name\":\"xltbsjuscvsf\",\"tier\":\"Premium\",\"size\":\"tmgxuupbezqcc\",\"family\":\"rtceukdqkkyihzt\",\"capacity\":277174049},\"properties\":{\"provisioningState\":\"Succeeded\",\"regionEndpointEnabled\":\"gwldo\",\"resourceStopped\":\"hillce\"},\"location\":\"ehuwaoa\",\"tags\":{\"lizst\":\"icq\"},\"id\":\"csjvhrwef\",\"name\":\"kwqejpmvsseh\",\"type\":\"epwamcxtcz\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Replica response = - manager - .signalRReplicas() - .define("xkyctwwgzwx") - .withRegion("idbz") - .withExistingSignalR("kiexhajlfnthiq", "yuttdiygbpvnwswm") - .withTags(mapOf("nkbw", "qtfbovn", "ccxnafbwqroohtuo", "tnjuhpsprkzyaupi")) - .withSku( - new ResourceSku() - .withName("mecvogygzyvneeza") - .withTier(SignalRSkuTier.FREE) - .withCapacity(1220341853)) - .withRegionEndpointEnabled("hnqoewdo") - .withResourceStopped("yetesy") - .create(); - - Assertions.assertEquals("ehuwaoa", response.location()); - Assertions.assertEquals("icq", response.tags().get("lizst")); - Assertions.assertEquals("xltbsjuscvsf", response.sku().name()); - Assertions.assertEquals(SignalRSkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals(277174049, response.sku().capacity()); - Assertions.assertEquals("gwldo", response.regionEndpointEnabled()); - Assertions.assertEquals("hillce", response.resourceStopped()); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteWithResponseMockTests.java deleted file mode 100644 index 067721dfcba8f..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteWithResponseMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRReplicasDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.signalRReplicas().deleteWithResponse("ommpvfqaw", "fgbrtt", "iac", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetWithResponseMockTests.java deleted file mode 100644 index 295fa08b19961..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetWithResponseMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.Replica; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRReplicasGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"name\":\"erctatoyin\",\"tier\":\"Premium\",\"size\":\"rlcyrduc\",\"family\":\"go\",\"capacity\":243797938},\"properties\":{\"provisioningState\":\"Creating\",\"regionEndpointEnabled\":\"cvcrrp\",\"resourceStopped\":\"ttbst\"},\"location\":\"eaqnrmvvfkoxm\",\"tags\":{\"zlpdwwex\":\"ktuidvrm\",\"wvqsgny\":\"mzvlazipbh\",\"patlbijp\":\"uuzivensrpmeyyvp\"},\"id\":\"gsksrfhf\",\"name\":\"olmk\",\"type\":\"bnxwc\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Replica response = - manager - .signalRReplicas() - .getWithResponse("lexwhcbjp", "bke", "hu", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("eaqnrmvvfkoxm", response.location()); - Assertions.assertEquals("ktuidvrm", response.tags().get("zlpdwwex")); - Assertions.assertEquals("erctatoyin", response.sku().name()); - Assertions.assertEquals(SignalRSkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals(243797938, response.sku().capacity()); - Assertions.assertEquals("cvcrrp", response.regionEndpointEnabled()); - Assertions.assertEquals("ttbst", response.resourceStopped()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListMockTests.java deleted file mode 100644 index 78c2cd116858c..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.Replica; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRReplicasListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"sku\":{\"name\":\"ohcmbu\",\"tier\":\"Standard\",\"size\":\"r\",\"family\":\"mbpyryxamebly\",\"capacity\":1356441160},\"properties\":{\"provisioningState\":\"Creating\",\"regionEndpointEnabled\":\"rocxnehvs\",\"resourceStopped\":\"odlfpyapucygvo\"},\"location\":\"yunssx\",\"tags\":{\"vvpa\":\"ieegjl\"},\"id\":\"eksgbuxantuygd\",\"name\":\"gaqi\",\"type\":\"irpiwrqofulopmj\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.signalRReplicas().list("qfutlxjo", "zasunwqrjzfrgq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yunssx", response.iterator().next().location()); - Assertions.assertEquals("ieegjl", response.iterator().next().tags().get("vvpa")); - Assertions.assertEquals("ohcmbu", response.iterator().next().sku().name()); - Assertions.assertEquals(SignalRSkuTier.STANDARD, response.iterator().next().sku().tier()); - Assertions.assertEquals(1356441160, response.iterator().next().sku().capacity()); - Assertions.assertEquals("rocxnehvs", response.iterator().next().regionEndpointEnabled()); - Assertions.assertEquals("odlfpyapucygvo", response.iterator().next().resourceStopped()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRResourceInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRResourceInnerTests.java deleted file mode 100644 index 49ad511a164d3..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRResourceInnerTests.java +++ /dev/null @@ -1,295 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SignalRResourceInner; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.FeatureFlags; -import com.azure.resourcemanager.signalr.models.IpRule; -import com.azure.resourcemanager.signalr.models.LiveTraceCategory; -import com.azure.resourcemanager.signalr.models.LiveTraceConfiguration; -import com.azure.resourcemanager.signalr.models.ManagedIdentity; -import com.azure.resourcemanager.signalr.models.ManagedIdentitySettings; -import com.azure.resourcemanager.signalr.models.ManagedIdentityType; -import com.azure.resourcemanager.signalr.models.NetworkAcl; -import com.azure.resourcemanager.signalr.models.PrivateEndpointAcl; -import com.azure.resourcemanager.signalr.models.ResourceLogCategory; -import com.azure.resourcemanager.signalr.models.ResourceLogConfiguration; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.ServerlessSettings; -import com.azure.resourcemanager.signalr.models.ServerlessUpstreamSettings; -import com.azure.resourcemanager.signalr.models.ServiceKind; -import com.azure.resourcemanager.signalr.models.SignalRCorsSettings; -import com.azure.resourcemanager.signalr.models.SignalRFeature; -import com.azure.resourcemanager.signalr.models.SignalRNetworkACLs; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import com.azure.resourcemanager.signalr.models.SignalRTlsSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthType; -import com.azure.resourcemanager.signalr.models.UpstreamTemplate; -import com.azure.resourcemanager.signalr.models.UserAssignedIdentityProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SignalRResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRResourceInner model = - BinaryData - .fromString( - "{\"sku\":{\"name\":\"fsynljphuop\",\"tier\":\"Standard\",\"size\":\"qiy\",\"family\":\"orzihle\",\"capacity\":410536008},\"properties\":{\"provisioningState\":\"Unknown\",\"externalIP\":\"mslyzrpzbchckqqz\",\"hostName\":\"ox\",\"publicPort\":1168629825,\"serverPort\":1721034864,\"version\":\"zynkedya\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{\"id\":\"bzyh\"},\"groupIds\":[\"smypyynpc\",\"pumnz\",\"mwzn\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"nsorgjhxbldt\",\"actionsRequired\":\"wrlkdmtn\"}},\"id\":\"ok\",\"name\":\"tllxdyhgsyocogj\",\"type\":\"tdtbnnhadooc\"},{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"hnvpamqgxq\"},\"groupIds\":[\"zikywgg\",\"kallatmel\",\"uipiccjzk\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"vc\",\"actionsRequired\":\"y\"}},\"id\":\"yrnxxmueedn\",\"name\":\"rdvstkwqqtch\",\"type\":\"alm\"},{\"properties\":{\"provisioningState\":\"Running\",\"privateEndpoint\":{\"id\":\"ygdvwv\"},\"groupIds\":[\"ohgwxrtfudxepxg\",\"qagvrvm\",\"pkukghi\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"gwimfn\",\"actionsRequired\":\"fjxwmsz\"}},\"id\":\"foqreyfkzik\",\"name\":\"jawneaiv\",\"type\":\"wczelpci\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{\"id\":\"aenwabf\"},\"groupIds\":[\"lddxbjhwua\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"osphyoul\",\"actionsRequired\":\"rvxaglrvimjwosy\"}},\"id\":\"itc\",\"name\":\"kfcktqum\",\"type\":\"ekkezzikhlyfjh\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"gebdunygaeq\",\"privateLinkResourceId\":\"db\",\"provisioningState\":\"Running\",\"requestMessage\":\"pxllrx\",\"status\":\"Timeout\"},\"id\":\"oadsuvar\",\"name\":\"ywdmjsjqbjh\",\"type\":\"yxxrwlycoduh\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"ymareqnajxqugj\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"ubeddg\",\"properties\":{\"i\":\"fwqmzqalkrmn\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"xacqqudfnbyx\",\"properties\":{\"ayffim\":\"abjy\",\"gsexne\":\"zrtuzq\",\"wmewzsyy\":\"fdnw\",\"judpfrxt\":\"euzsoi\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"hzv\",\"properties\":{\"bpaxhexiilivpdt\":\"dwkqbrq\",\"oruzfgsquyfxrxx\":\"irqtdqoa\"}}],\"liveTraceConfiguration\":{\"enabled\":\"tramxjez\",\"categories\":[{\"name\":\"wxuqlcvydypatdoo\",\"enabled\":\"jkniodko\"},{\"name\":\"bw\",\"enabled\":\"jhemms\"},{\"name\":\"dkcrodt\",\"enabled\":\"nfwjlfltkacjvefk\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"kggkfpa\",\"enabled\":\"owpulpq\"},{\"name\":\"ylsyxkqjnsje\",\"enabled\":\"tiagx\"},{\"name\":\"sz\",\"enabled\":\"mpsbzkfzbeyv\"}]},\"cors\":{\"allowedOrigins\":[\"cvinvkjjxdxrbuuk\"]},\"serverless\":{\"connectionTimeoutInSeconds\":1482696459},\"upstream\":{\"templates\":[{\"hubPattern\":\"lw\",\"eventPattern\":\"ztzp\",\"categoryPattern\":\"ncckw\",\"urlTemplate\":\"fz\",\"auth\":{\"type\":\"None\",\"managedIdentity\":{}}},{\"hubPattern\":\"uyqaxzfeqztppr\",\"eventPattern\":\"lxorjaltolmncws\",\"categoryPattern\":\"qwcsdbnwdcfhuc\",\"urlTemplate\":\"dpfuvg\",\"auth\":{\"type\":\"ManagedIdentity\",\"managedIdentity\":{}}},{\"hubPattern\":\"anvx\",\"eventPattern\":\"t\",\"categoryPattern\":\"dut\",\"urlTemplate\":\"cormr\",\"auth\":{\"type\":\"None\",\"managedIdentity\":{}}}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"ServerConnection\"],\"deny\":[\"ClientConnection\",\"ClientConnection\",\"ClientConnection\",\"ServerConnection\"]},\"privateEndpoints\":[{\"name\":\"knnqvsaznq\",\"allow\":[\"ServerConnection\",\"ServerConnection\"],\"deny\":[\"Trace\",\"ServerConnection\",\"ClientConnection\"]},{\"name\":\"hmk\",\"allow\":[\"RESTAPI\",\"RESTAPI\",\"Trace\",\"ClientConnection\"],\"deny\":[\"ServerConnection\",\"RESTAPI\"]},{\"name\":\"aeburuvdmo\",\"allow\":[\"Trace\"],\"deny\":[\"ClientConnection\",\"ClientConnection\"]}],\"ipRules\":[{\"value\":\"oefki\",\"action\":\"Deny\"},{\"value\":\"puqujmqlgkfbtn\",\"action\":\"Allow\"},{\"value\":\"n\",\"action\":\"Allow\"},{\"value\":\"ntuji\",\"action\":\"Allow\"}]},\"publicNetworkAccess\":\"df\",\"disableLocalAuth\":true,\"disableAadAuth\":true,\"regionEndpointEnabled\":\"kojvd\",\"resourceStopped\":\"zfoqouicybxar\"},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"khnzbonlw\":{\"principalId\":\"iqopidoamciod\",\"clientId\":\"haz\"}},\"principalId\":\"oegokdwbwh\",\"tenantId\":\"z\"},\"location\":\"mrv\",\"tags\":{\"qgsfraoyzkoow\":\"tvb\",\"aldsy\":\"lmnguxaw\",\"znkbykutwpfhpagm\":\"uximerqfobw\"},\"id\":\"r\",\"name\":\"kdsnfdsdoakgtdl\",\"type\":\"kkze\"}") - .toObject(SignalRResourceInner.class); - Assertions.assertEquals("mrv", model.location()); - Assertions.assertEquals("tvb", model.tags().get("qgsfraoyzkoow")); - Assertions.assertEquals("fsynljphuop", model.sku().name()); - Assertions.assertEquals(SignalRSkuTier.STANDARD, model.sku().tier()); - Assertions.assertEquals(410536008, model.sku().capacity()); - Assertions.assertEquals(ServiceKind.RAW_WEB_SOCKETS, model.kind()); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals(true, model.tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.ENABLE_MESSAGING_LOGS, model.features().get(0).flag()); - Assertions.assertEquals("ubeddg", model.features().get(0).value()); - Assertions.assertEquals("fwqmzqalkrmn", model.features().get(0).properties().get("i")); - Assertions.assertEquals("tramxjez", model.liveTraceConfiguration().enabled()); - Assertions.assertEquals("wxuqlcvydypatdoo", model.liveTraceConfiguration().categories().get(0).name()); - Assertions.assertEquals("jkniodko", model.liveTraceConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("kggkfpa", model.resourceLogConfiguration().categories().get(0).name()); - Assertions.assertEquals("owpulpq", model.resourceLogConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("cvinvkjjxdxrbuuk", model.cors().allowedOrigins().get(0)); - Assertions.assertEquals(1482696459, model.serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("lw", model.upstream().templates().get(0).hubPattern()); - Assertions.assertEquals("ztzp", model.upstream().templates().get(0).eventPattern()); - Assertions.assertEquals("ncckw", model.upstream().templates().get(0).categoryPattern()); - Assertions.assertEquals("fz", model.upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(UpstreamAuthType.NONE, model.upstream().templates().get(0).auth().type()); - Assertions.assertEquals(AclAction.DENY, model.networkACLs().defaultAction()); - Assertions - .assertEquals(SignalRRequestType.SERVER_CONNECTION, model.networkACLs().publicNetwork().allow().get(0)); - Assertions - .assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.networkACLs().publicNetwork().deny().get(0)); - Assertions - .assertEquals( - SignalRRequestType.SERVER_CONNECTION, model.networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.TRACE, model.networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("knnqvsaznq", model.networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("oefki", model.networkACLs().ipRules().get(0).value()); - Assertions.assertEquals(AclAction.DENY, model.networkACLs().ipRules().get(0).action()); - Assertions.assertEquals("df", model.publicNetworkAccess()); - Assertions.assertEquals(true, model.disableLocalAuth()); - Assertions.assertEquals(true, model.disableAadAuth()); - Assertions.assertEquals("kojvd", model.regionEndpointEnabled()); - Assertions.assertEquals("zfoqouicybxar", model.resourceStopped()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRResourceInner model = - new SignalRResourceInner() - .withLocation("mrv") - .withTags(mapOf("qgsfraoyzkoow", "tvb", "aldsy", "lmnguxaw", "znkbykutwpfhpagm", "uximerqfobw")) - .withSku( - new ResourceSku().withName("fsynljphuop").withTier(SignalRSkuTier.STANDARD).withCapacity(410536008)) - .withKind(ServiceKind.RAW_WEB_SOCKETS) - .withIdentity( - new ManagedIdentity() - .withType(ManagedIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("khnzbonlw", new UserAssignedIdentityProperty()))) - .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("ubeddg") - .withProperties(mapOf("i", "fwqmzqalkrmn")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("xacqqudfnbyx") - .withProperties( - mapOf( - "ayffim", - "abjy", - "gsexne", - "zrtuzq", - "wmewzsyy", - "fdnw", - "judpfrxt", - "euzsoi")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("hzv") - .withProperties(mapOf("bpaxhexiilivpdt", "dwkqbrq", "oruzfgsquyfxrxx", "irqtdqoa")))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("tramxjez") - .withCategories( - Arrays - .asList( - new LiveTraceCategory().withName("wxuqlcvydypatdoo").withEnabled("jkniodko"), - new LiveTraceCategory().withName("bw").withEnabled("jhemms"), - new LiveTraceCategory().withName("dkcrodt").withEnabled("nfwjlfltkacjvefk")))) - .withResourceLogConfiguration( - new ResourceLogConfiguration() - .withCategories( - Arrays - .asList( - new ResourceLogCategory().withName("kggkfpa").withEnabled("owpulpq"), - new ResourceLogCategory().withName("ylsyxkqjnsje").withEnabled("tiagx"), - new ResourceLogCategory().withName("sz").withEnabled("mpsbzkfzbeyv")))) - .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("cvinvkjjxdxrbuuk"))) - .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(1482696459)) - .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate() - .withHubPattern("lw") - .withEventPattern("ztzp") - .withCategoryPattern("ncckw") - .withUrlTemplate("fz") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.NONE) - .withManagedIdentity(new ManagedIdentitySettings())), - new UpstreamTemplate() - .withHubPattern("uyqaxzfeqztppr") - .withEventPattern("lxorjaltolmncws") - .withCategoryPattern("qwcsdbnwdcfhuc") - .withUrlTemplate("dpfuvg") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity(new ManagedIdentitySettings())), - new UpstreamTemplate() - .withHubPattern("anvx") - .withEventPattern("t") - .withCategoryPattern("dut") - .withUrlTemplate("cormr") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.NONE) - .withManagedIdentity(new ManagedIdentitySettings()))))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.DENY) - .withPublicNetwork( - new NetworkAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withDeny( - Arrays - .asList( - SignalRRequestType.CLIENT_CONNECTION, - SignalRRequestType.CLIENT_CONNECTION, - SignalRRequestType.CLIENT_CONNECTION, - SignalRRequestType.SERVER_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl() - .withAllow( - Arrays - .asList( - SignalRRequestType.SERVER_CONNECTION, - SignalRRequestType.SERVER_CONNECTION)) - .withDeny( - Arrays - .asList( - SignalRRequestType.TRACE, - SignalRRequestType.SERVER_CONNECTION, - SignalRRequestType.CLIENT_CONNECTION)) - .withName("knnqvsaznq"), - new PrivateEndpointAcl() - .withAllow( - Arrays - .asList( - SignalRRequestType.RESTAPI, - SignalRRequestType.RESTAPI, - SignalRRequestType.TRACE, - SignalRRequestType.CLIENT_CONNECTION)) - .withDeny( - Arrays - .asList( - SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.RESTAPI)) - .withName("hmk"), - new PrivateEndpointAcl() - .withAllow(Arrays.asList(SignalRRequestType.TRACE)) - .withDeny( - Arrays - .asList( - SignalRRequestType.CLIENT_CONNECTION, - SignalRRequestType.CLIENT_CONNECTION)) - .withName("aeburuvdmo"))) - .withIpRules( - Arrays - .asList( - new IpRule().withValue("oefki").withAction(AclAction.DENY), - new IpRule().withValue("puqujmqlgkfbtn").withAction(AclAction.ALLOW), - new IpRule().withValue("n").withAction(AclAction.ALLOW), - new IpRule().withValue("ntuji").withAction(AclAction.ALLOW)))) - .withPublicNetworkAccess("df") - .withDisableLocalAuth(true) - .withDisableAadAuth(true) - .withRegionEndpointEnabled("kojvd") - .withResourceStopped("zfoqouicybxar"); - model = BinaryData.fromObject(model).toObject(SignalRResourceInner.class); - Assertions.assertEquals("mrv", model.location()); - Assertions.assertEquals("tvb", model.tags().get("qgsfraoyzkoow")); - Assertions.assertEquals("fsynljphuop", model.sku().name()); - Assertions.assertEquals(SignalRSkuTier.STANDARD, model.sku().tier()); - Assertions.assertEquals(410536008, model.sku().capacity()); - Assertions.assertEquals(ServiceKind.RAW_WEB_SOCKETS, model.kind()); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals(true, model.tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.ENABLE_MESSAGING_LOGS, model.features().get(0).flag()); - Assertions.assertEquals("ubeddg", model.features().get(0).value()); - Assertions.assertEquals("fwqmzqalkrmn", model.features().get(0).properties().get("i")); - Assertions.assertEquals("tramxjez", model.liveTraceConfiguration().enabled()); - Assertions.assertEquals("wxuqlcvydypatdoo", model.liveTraceConfiguration().categories().get(0).name()); - Assertions.assertEquals("jkniodko", model.liveTraceConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("kggkfpa", model.resourceLogConfiguration().categories().get(0).name()); - Assertions.assertEquals("owpulpq", model.resourceLogConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("cvinvkjjxdxrbuuk", model.cors().allowedOrigins().get(0)); - Assertions.assertEquals(1482696459, model.serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("lw", model.upstream().templates().get(0).hubPattern()); - Assertions.assertEquals("ztzp", model.upstream().templates().get(0).eventPattern()); - Assertions.assertEquals("ncckw", model.upstream().templates().get(0).categoryPattern()); - Assertions.assertEquals("fz", model.upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(UpstreamAuthType.NONE, model.upstream().templates().get(0).auth().type()); - Assertions.assertEquals(AclAction.DENY, model.networkACLs().defaultAction()); - Assertions - .assertEquals(SignalRRequestType.SERVER_CONNECTION, model.networkACLs().publicNetwork().allow().get(0)); - Assertions - .assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.networkACLs().publicNetwork().deny().get(0)); - Assertions - .assertEquals( - SignalRRequestType.SERVER_CONNECTION, model.networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.TRACE, model.networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("knnqvsaznq", model.networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("oefki", model.networkACLs().ipRules().get(0).value()); - Assertions.assertEquals(AclAction.DENY, model.networkACLs().ipRules().get(0).action()); - Assertions.assertEquals("df", model.publicNetworkAccess()); - Assertions.assertEquals(true, model.disableLocalAuth()); - Assertions.assertEquals(true, model.disableAadAuth()); - Assertions.assertEquals("kojvd", model.regionEndpointEnabled()); - Assertions.assertEquals("zfoqouicybxar", model.resourceStopped()); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRResourceListTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRResourceListTests.java deleted file mode 100644 index 1614b3d565a27..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRResourceListTests.java +++ /dev/null @@ -1,528 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SignalRResourceInner; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.FeatureFlags; -import com.azure.resourcemanager.signalr.models.IpRule; -import com.azure.resourcemanager.signalr.models.LiveTraceCategory; -import com.azure.resourcemanager.signalr.models.LiveTraceConfiguration; -import com.azure.resourcemanager.signalr.models.ManagedIdentity; -import com.azure.resourcemanager.signalr.models.ManagedIdentityType; -import com.azure.resourcemanager.signalr.models.NetworkAcl; -import com.azure.resourcemanager.signalr.models.PrivateEndpointAcl; -import com.azure.resourcemanager.signalr.models.ResourceLogCategory; -import com.azure.resourcemanager.signalr.models.ResourceLogConfiguration; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.ServerlessSettings; -import com.azure.resourcemanager.signalr.models.ServerlessUpstreamSettings; -import com.azure.resourcemanager.signalr.models.ServiceKind; -import com.azure.resourcemanager.signalr.models.SignalRCorsSettings; -import com.azure.resourcemanager.signalr.models.SignalRFeature; -import com.azure.resourcemanager.signalr.models.SignalRNetworkACLs; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import com.azure.resourcemanager.signalr.models.SignalRResourceList; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import com.azure.resourcemanager.signalr.models.SignalRTlsSettings; -import com.azure.resourcemanager.signalr.models.UpstreamTemplate; -import com.azure.resourcemanager.signalr.models.UserAssignedIdentityProperty; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SignalRResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRResourceList model = - BinaryData - .fromString( - "{\"value\":[{\"sku\":{\"name\":\"tpngjcrcczsqpjh\",\"tier\":\"Free\",\"size\":\"jvnysounqe\",\"family\":\"noae\",\"capacity\":1901274446},\"properties\":{\"provisioningState\":\"Deleting\",\"externalIP\":\"trpmo\",\"hostName\":\"mcmatuokthfuiu\",\"publicPort\":1445775245,\"serverPort\":680550088,\"version\":\"pk\",\"privateEndpointConnections\":[{\"properties\":{},\"id\":\"uozmyzydagfua\",\"name\":\"bezy\",\"type\":\"uokktwhrdxwz\"},{\"properties\":{},\"id\":\"sm\",\"name\":\"surex\",\"type\":\"moryocfsfksym\"},{\"properties\":{},\"id\":\"stkiiuxhqyud\",\"name\":\"o\",\"type\":\"rq\"},{\"properties\":{},\"id\":\"oczvy\",\"name\":\"fqrvkdvjsllrmvvd\",\"type\":\"watkpnpulexxb\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"ruwiqzbqjvsov\",\"privateLinkResourceId\":\"yokacspkw\"},\"id\":\"zdobpxjmflbvvnch\",\"name\":\"kcciwwzjuqkhr\",\"type\":\"ajiwkuo\"},{\"properties\":{\"groupId\":\"skghsauuimj\",\"privateLinkResourceId\":\"vxieduugidyj\"},\"id\":\"f\",\"name\":\"y\",\"type\":\"osvexcsonpclhoc\"},{\"properties\":{\"groupId\":\"slkevle\",\"privateLinkResourceId\":\"gz\"},\"id\":\"u\",\"name\":\"fmvfaxkffeiit\",\"type\":\"lvmezyvshxmzsbbz\"},{\"properties\":{\"groupId\":\"gigr\",\"privateLinkResourceId\":\"wburvjxxjnspydpt\"},\"id\":\"enkouknvudw\",\"name\":\"iukbldngkpoci\",\"type\":\"azyxoegukg\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"cgygev\",\"features\":[{\"flag\":\"EnableLiveTrace\",\"value\":\"yp\",\"properties\":{\"zcdrqjsdpydnfyhx\":\"p\",\"ifsjttgzfbishcb\":\"eoejzic\",\"alpbuxwgipwhon\":\"hajdeyeamdpha\",\"kix\":\"wkgshwa\"}},{\"flag\":\"ServiceMode\",\"value\":\"injep\",\"properties\":{\"uzoqft\":\"mryw\",\"zlsico\":\"yqzrnkcqvyxlw\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"qqn\",\"properties\":{\"yxzk\":\"ryavwhheunmmqh\",\"koklya\":\"noc\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"conuqszfkbeype\",\"properties\":{\"kt\":\"jmwvvj\",\"ffrzpwvlqdqgbiqy\":\"xsenhwlr\",\"vf\":\"ihkaetcktvfc\"}}],\"liveTraceConfiguration\":{\"enabled\":\"ymuctqhjfbebrj\",\"categories\":[{},{},{}]},\"resourceLogConfiguration\":{\"categories\":[{},{},{},{}]},\"cors\":{\"allowedOrigins\":[\"ttxfvjr\",\"i\",\"phxepcyvahf\"]},\"serverless\":{\"connectionTimeoutInSeconds\":1999582411},\"upstream\":{\"templates\":[{\"urlTemplate\":\"j\"},{\"urlTemplate\":\"uujqgidokgjljyo\"},{\"urlTemplate\":\"gvcl\"},{\"urlTemplate\":\"bgsncghkjeszzhb\"}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"ClientConnection\",\"ClientConnection\"],\"deny\":[\"ClientConnection\"]},\"privateEndpoints\":[{\"name\":\"nehmpvecx\"},{\"name\":\"odebfqkkrbmpu\"},{\"name\":\"gr\"}],\"ipRules\":[{}]},\"publicNetworkAccess\":\"zlfbxzpuzycispnq\",\"disableLocalAuth\":true,\"disableAadAuth\":false,\"regionEndpointEnabled\":\"brpyydhi\",\"resourceStopped\":\"uqqkpik\"},\"kind\":\"SignalR\",\"identity\":{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"fsiarbutr\":{\"principalId\":\"n\",\"clientId\":\"ynhijggme\"}},\"principalId\":\"pnazzm\",\"tenantId\":\"runmp\"},\"location\":\"tdbhrbnla\",\"tags\":{\"ny\":\"myskpbhenbtkcxy\",\"nlqidybyxczf\":\"nrs\"},\"id\":\"lhaaxdbabp\",\"name\":\"lwrq\",\"type\":\"fkts\"},{\"sku\":{\"name\":\"sucocmnyyazttbtw\",\"tier\":\"Premium\",\"size\":\"uedck\",\"family\":\"wbiexzfey\",\"capacity\":2061798656},\"properties\":{\"provisioningState\":\"Running\",\"externalIP\":\"ujwb\",\"hostName\":\"walm\",\"publicPort\":978941807,\"serverPort\":1532421493,\"version\":\"epdkzja\",\"privateEndpointConnections\":[{\"properties\":{},\"id\":\"hdwbavxbniwdjs\",\"name\":\"zt\",\"type\":\"dbpgnxytxhp\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"pfza\",\"privateLinkResourceId\":\"glcuhxwtctyqi\"},\"id\":\"bbovplwzbhvgyugu\",\"name\":\"svmkfssxquk\",\"type\":\"fpl\"},{\"properties\":{\"groupId\":\"gsxnkjzkdeslpv\",\"privateLinkResourceId\":\"opwi\"},\"id\":\"ghxpkdw\",\"name\":\"baiuebbaumny\",\"type\":\"upedeojnabckhs\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"ie\",\"features\":[{\"flag\":\"EnableLiveTrace\",\"value\":\"vpesapskrdqmhjjd\",\"properties\":{\"kn\":\"dwkyzxuu\",\"wsvlxotogtwrupqs\":\"ws\",\"cykvceo\":\"vnm\"}},{\"flag\":\"ServiceMode\",\"value\":\"ilovnot\",\"properties\":{\"k\":\"fcnj\"}},{\"flag\":\"EnableConnectivityLogs\",\"value\":\"x\",\"properties\":{\"mclfplphoxuscr\":\"ttkphywpnvjtoqne\"}}],\"liveTraceConfiguration\":{\"enabled\":\"gyepsbjt\",\"categories\":[{},{},{},{}]},\"resourceLogConfiguration\":{\"categories\":[{},{},{},{}]},\"cors\":{\"allowedOrigins\":[\"mueef\",\"zwfqkqujidsuyon\",\"bglaocqxtccm\"]},\"serverless\":{\"connectionTimeoutInSeconds\":1054992005},\"upstream\":{\"templates\":[{\"urlTemplate\":\"lmoyrx\"},{\"urlTemplate\":\"wfudwpzntxhdzhl\"}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"ClientConnection\",\"ServerConnection\",\"RESTAPI\"],\"deny\":[\"RESTAPI\",\"Trace\"]},\"privateEndpoints\":[{\"name\":\"yvpycanuzbpzk\"}],\"ipRules\":[{},{},{}]},\"publicNetworkAccess\":\"wbcrnwbmehhseyv\",\"disableLocalAuth\":true,\"disableAadAuth\":true,\"regionEndpointEnabled\":\"lhspkdee\",\"resourceStopped\":\"ofmxagkvtmelmqkr\"},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{\"gvxp\":{\"principalId\":\"aquhcdhm\",\"clientId\":\"alaexqpvfadmwsrc\"},\"e\":{\"principalId\":\"omzlfmi\",\"clientId\":\"wbnb\"}},\"principalId\":\"awkz\",\"tenantId\":\"liourqhak\"},\"location\":\"hashsfwxosow\",\"tags\":{\"ucww\":\"ugicjooxdjebw\",\"bvmeuecivy\":\"vo\",\"ueiotwmcdyt\":\"zceuojgjrw\"},\"id\":\"x\",\"name\":\"it\",\"type\":\"nrjawgqwg\"},{\"sku\":{\"name\":\"ni\",\"tier\":\"Free\",\"size\":\"bkpyc\",\"family\":\"lwn\",\"capacity\":1035502887},\"properties\":{\"provisioningState\":\"Creating\",\"externalIP\":\"whvylw\",\"hostName\":\"tdhxujznbmpowuwp\",\"publicPort\":1149825898,\"serverPort\":1300670095,\"version\":\"ualupjmkh\",\"privateEndpointConnections\":[{\"properties\":{},\"id\":\"cswsrtjri\",\"name\":\"lrbpbewtghfgbl\",\"type\":\"gw\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"v\",\"privateLinkResourceId\":\"hjkbegibtnmxieb\"},\"id\":\"aloayqcgwrtzju\",\"name\":\"gwyzm\",\"type\":\"txon\"},{\"properties\":{\"groupId\":\"ts\",\"privateLinkResourceId\":\"vjcbpwxqpsrknf\"},\"id\":\"uvriuhprwm\",\"name\":\"yvxqtayriwwroy\",\"type\":\"bexrmcq\"},{\"properties\":{\"groupId\":\"ycnojvknmefqsg\",\"privateLinkResourceId\":\"vah\"},\"id\":\"jyzhpvgq\",\"name\":\"cjrvxdjzlmwlxkv\",\"type\":\"gfhzovawjvzunlut\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"nxipeil\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"aejxd\",\"properties\":{\"dzumveekg\":\"skzbb\",\"bsjyofdx\":\"wozuhkf\",\"oekqvk\":\"uusdttouwa\",\"vbxwyjsflhh\":\"lns\"}},{\"flag\":\"EnableConnectivityLogs\",\"value\":\"aln\",\"properties\":{\"kiidzyex\":\"isxyawjoyaqcslyj\",\"hb\":\"nelixhnrztfo\",\"dtpnapnyiropuhp\":\"xknalaulppg\",\"gqgitxmedjvcsl\":\"gvpgy\"}}],\"liveTraceConfiguration\":{\"enabled\":\"wwncwzzhxgk\",\"categories\":[{},{}]},\"resourceLogConfiguration\":{\"categories\":[{},{},{}]},\"cors\":{\"allowedOrigins\":[\"kteo\",\"llwptfdy\"]},\"serverless\":{\"connectionTimeoutInSeconds\":975485251},\"upstream\":{\"templates\":[{\"urlTemplate\":\"ceopzfqrhhuaopp\"}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"Trace\"],\"deny\":[\"RESTAPI\",\"ServerConnection\",\"ServerConnection\"]},\"privateEndpoints\":[{\"name\":\"t\"},{\"name\":\"bgbkdmoizpost\"}],\"ipRules\":[{},{}]},\"publicNetworkAccess\":\"fbunrmfqjhhk\",\"disableLocalAuth\":true,\"disableAadAuth\":false,\"regionEndpointEnabled\":\"mjh\",\"resourceStopped\":\"j\"},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"auvjfdxxivet\":{\"principalId\":\"tswb\",\"clientId\":\"zvszj\"},\"bhsfxob\":{\"principalId\":\"cqaqtdoqmcbx\",\"clientId\":\"vxysl\"},\"shqjohxcrsbf\":{\"principalId\":\"tkblmpewww\",\"clientId\":\"krvrns\"}},\"principalId\":\"asrru\",\"tenantId\":\"bhsqfsubcgjbirxb\"},\"location\":\"bsrfbj\",\"tags\":{\"sotftpvj\":\"w\"},\"id\":\"bexilzznfqqnv\",\"name\":\"pmqtaru\",\"type\":\"ujmkcjhwqy\"},{\"sku\":{\"name\":\"r\",\"tier\":\"Free\",\"size\":\"jewgdrjerv\",\"family\":\"enq\",\"capacity\":682074960},\"properties\":{\"provisioningState\":\"Creating\",\"externalIP\":\"ygmi\",\"hostName\":\"hnzdndslgnayqi\",\"publicPort\":1427716289,\"serverPort\":1655484798,\"version\":\"avhqlkth\",\"privateEndpointConnections\":[{\"properties\":{},\"id\":\"lbg\",\"name\":\"cdui\",\"type\":\"r\"},{\"properties\":{},\"id\":\"cym\",\"name\":\"aolps\",\"type\":\"lqlfm\"},{\"properties\":{},\"id\":\"bbglzpswiydmc\",\"name\":\"yhz\",\"type\":\"xssadbzmnvdf\"},{\"properties\":{},\"id\":\"daodvxzbncblyl\",\"name\":\"stdbhhxsrzdzu\",\"type\":\"erscdntne\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"jmygtdsslswtmwer\",\"privateLinkResourceId\":\"ofz\"},\"id\":\"qsemwabne\",\"name\":\"shhszhedplvwiw\",\"type\":\"bmwmbesldnkw\"},{\"properties\":{\"groupId\":\"pp\",\"privateLinkResourceId\":\"flcxoga\"},\"id\":\"onz\",\"name\":\"nsikvmkqzeqqkdl\",\"type\":\"fzxmhhvhgureodkw\"},{\"properties\":{\"groupId\":\"dagxtibqd\",\"privateLinkResourceId\":\"bxwakbog\"},\"id\":\"ndlkzgxhurip\",\"name\":\"bpodxunkbebxm\",\"type\":\"byyntwlrbqt\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"seotgqrllt\",\"features\":[{\"flag\":\"EnableLiveTrace\",\"value\":\"auwzizxbmpgc\",\"properties\":{\"muvp\":\"u\",\"bhjpglkfgohdne\":\"ttdumorppxebmnzb\",\"phsdyhto\":\"el\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"ikdowwquuvx\",\"properties\":{\"hcohfwdsjnk\":\"lvithhqzonosgg\",\"swacffgdkzz\":\"ljuti\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"kfvhqcrailvpn\",\"properties\":{\"hdlxyjrxsagafcn\":\"uflrwd\",\"apnedgfbcvkc\":\"hgw\",\"pkeqdcvdrhvoo\":\"q\"}},{\"flag\":\"EnableConnectivityLogs\",\"value\":\"otbobzdopcj\",\"properties\":{\"mutwuoe\":\"hdldwmgxcxrsl\",\"yqsluic\":\"rpkhjwn\",\"modfvuefywsbpfvm\":\"dggkzzlvmbmpa\"}}],\"liveTraceConfiguration\":{\"enabled\":\"rfouyftaakcpw\",\"categories\":[{},{},{}]},\"resourceLogConfiguration\":{\"categories\":[{},{},{},{}]},\"cors\":{\"allowedOrigins\":[\"bexkpzksmondj\"]},\"serverless\":{\"connectionTimeoutInSeconds\":628279381},\"upstream\":{\"templates\":[{\"urlTemplate\":\"omgkopkwho\"},{\"urlTemplate\":\"v\"},{\"urlTemplate\":\"ajqgxy\"},{\"urlTemplate\":\"mocmbqfqvmk\"}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"RESTAPI\",\"Trace\",\"Trace\",\"RESTAPI\"],\"deny\":[\"Trace\"]},\"privateEndpoints\":[{\"name\":\"atddc\"}],\"ipRules\":[{},{},{}]},\"publicNetworkAccess\":\"uejrjxgc\",\"disableLocalAuth\":true,\"disableAadAuth\":false,\"regionEndpointEnabled\":\"osx\",\"resourceStopped\":\"qrhzoymibmrqyib\"},\"kind\":\"SignalR\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"nwashrtd\":{\"principalId\":\"tmhrkwofyyvoqacp\",\"clientId\":\"xpbtgiwbwo\"},\"i\":{\"principalId\":\"cnqxwbpokulpi\",\"clientId\":\"waasip\"},\"fbtkuwhhmhyk\":{\"principalId\":\"byuqerpqlp\",\"clientId\":\"cciuqgbdbutau\"}},\"principalId\":\"oxafn\",\"tenantId\":\"lpichk\"},\"location\":\"mkcdyhbpkkpwdre\",\"tags\":{\"w\":\"vvqfovljxyws\",\"dsytgadgvr\":\"yrs\",\"neqn\":\"ea\",\"jfqka\":\"arrwlquu\"},\"id\":\"e\",\"name\":\"iipfpubj\",\"type\":\"bwwift\"}],\"nextLink\":\"qkvpuvksgplsakn\"}") - .toObject(SignalRResourceList.class); - Assertions.assertEquals("tdbhrbnla", model.value().get(0).location()); - Assertions.assertEquals("myskpbhenbtkcxy", model.value().get(0).tags().get("ny")); - Assertions.assertEquals("tpngjcrcczsqpjh", model.value().get(0).sku().name()); - Assertions.assertEquals(SignalRSkuTier.FREE, model.value().get(0).sku().tier()); - Assertions.assertEquals(1901274446, model.value().get(0).sku().capacity()); - Assertions.assertEquals(ServiceKind.SIGNALR, model.value().get(0).kind()); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals(true, model.value().get(0).tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.ENABLE_LIVE_TRACE, model.value().get(0).features().get(0).flag()); - Assertions.assertEquals("yp", model.value().get(0).features().get(0).value()); - Assertions.assertEquals("p", model.value().get(0).features().get(0).properties().get("zcdrqjsdpydnfyhx")); - Assertions.assertEquals("ymuctqhjfbebrj", model.value().get(0).liveTraceConfiguration().enabled()); - Assertions.assertEquals("ttxfvjr", model.value().get(0).cors().allowedOrigins().get(0)); - Assertions.assertEquals(1999582411, model.value().get(0).serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("j", model.value().get(0).upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(AclAction.ALLOW, model.value().get(0).networkACLs().defaultAction()); - Assertions - .assertEquals( - SignalRRequestType.CLIENT_CONNECTION, - model.value().get(0).networkACLs().publicNetwork().allow().get(0)); - Assertions - .assertEquals( - SignalRRequestType.CLIENT_CONNECTION, model.value().get(0).networkACLs().publicNetwork().deny().get(0)); - Assertions.assertEquals("nehmpvecx", model.value().get(0).networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("zlfbxzpuzycispnq", model.value().get(0).publicNetworkAccess()); - Assertions.assertEquals(true, model.value().get(0).disableLocalAuth()); - Assertions.assertEquals(false, model.value().get(0).disableAadAuth()); - Assertions.assertEquals("brpyydhi", model.value().get(0).regionEndpointEnabled()); - Assertions.assertEquals("uqqkpik", model.value().get(0).resourceStopped()); - Assertions.assertEquals("qkvpuvksgplsakn", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRResourceList model = - new SignalRResourceList() - .withValue( - Arrays - .asList( - new SignalRResourceInner() - .withLocation("tdbhrbnla") - .withTags(mapOf("ny", "myskpbhenbtkcxy", "nlqidybyxczf", "nrs")) - .withSku( - new ResourceSku() - .withName("tpngjcrcczsqpjh") - .withTier(SignalRSkuTier.FREE) - .withCapacity(1901274446)) - .withKind(ServiceKind.SIGNALR) - .withIdentity( - new ManagedIdentity() - .withType(ManagedIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities( - mapOf("fsiarbutr", new UserAssignedIdentityProperty()))) - .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("yp") - .withProperties( - mapOf( - "zcdrqjsdpydnfyhx", - "p", - "ifsjttgzfbishcb", - "eoejzic", - "alpbuxwgipwhon", - "hajdeyeamdpha", - "kix", - "wkgshwa")), - new SignalRFeature() - .withFlag(FeatureFlags.SERVICE_MODE) - .withValue("injep") - .withProperties(mapOf("uzoqft", "mryw", "zlsico", "yqzrnkcqvyxlw")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("qqn") - .withProperties(mapOf("yxzk", "ryavwhheunmmqh", "koklya", "noc")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("conuqszfkbeype") - .withProperties( - mapOf( - "kt", - "jmwvvj", - "ffrzpwvlqdqgbiqy", - "xsenhwlr", - "vf", - "ihkaetcktvfc")))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("ymuctqhjfbebrj") - .withCategories( - Arrays - .asList( - new LiveTraceCategory(), - new LiveTraceCategory(), - new LiveTraceCategory()))) - .withResourceLogConfiguration( - new ResourceLogConfiguration() - .withCategories( - Arrays - .asList( - new ResourceLogCategory(), - new ResourceLogCategory(), - new ResourceLogCategory(), - new ResourceLogCategory()))) - .withCors( - new SignalRCorsSettings() - .withAllowedOrigins(Arrays.asList("ttxfvjr", "i", "phxepcyvahf"))) - .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(1999582411)) - .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate().withUrlTemplate("j"), - new UpstreamTemplate().withUrlTemplate("uujqgidokgjljyo"), - new UpstreamTemplate().withUrlTemplate("gvcl"), - new UpstreamTemplate().withUrlTemplate("bgsncghkjeszzhb")))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.ALLOW) - .withPublicNetwork( - new NetworkAcl() - .withAllow( - Arrays - .asList( - SignalRRequestType.CLIENT_CONNECTION, - SignalRRequestType.CLIENT_CONNECTION)) - .withDeny(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl().withName("nehmpvecx"), - new PrivateEndpointAcl().withName("odebfqkkrbmpu"), - new PrivateEndpointAcl().withName("gr"))) - .withIpRules(Arrays.asList(new IpRule()))) - .withPublicNetworkAccess("zlfbxzpuzycispnq") - .withDisableLocalAuth(true) - .withDisableAadAuth(false) - .withRegionEndpointEnabled("brpyydhi") - .withResourceStopped("uqqkpik"), - new SignalRResourceInner() - .withLocation("hashsfwxosow") - .withTags( - mapOf("ucww", "ugicjooxdjebw", "bvmeuecivy", "vo", "ueiotwmcdyt", "zceuojgjrw")) - .withSku( - new ResourceSku() - .withName("sucocmnyyazttbtw") - .withTier(SignalRSkuTier.PREMIUM) - .withCapacity(2061798656)) - .withKind(ServiceKind.RAW_WEB_SOCKETS) - .withIdentity( - new ManagedIdentity() - .withType(ManagedIdentityType.NONE) - .withUserAssignedIdentities( - mapOf( - "gvxp", - new UserAssignedIdentityProperty(), - "e", - new UserAssignedIdentityProperty()))) - .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("vpesapskrdqmhjjd") - .withProperties( - mapOf( - "kn", "dwkyzxuu", "wsvlxotogtwrupqs", "ws", "cykvceo", "vnm")), - new SignalRFeature() - .withFlag(FeatureFlags.SERVICE_MODE) - .withValue("ilovnot") - .withProperties(mapOf("k", "fcnj")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) - .withValue("x") - .withProperties(mapOf("mclfplphoxuscr", "ttkphywpnvjtoqne")))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("gyepsbjt") - .withCategories( - Arrays - .asList( - new LiveTraceCategory(), - new LiveTraceCategory(), - new LiveTraceCategory(), - new LiveTraceCategory()))) - .withResourceLogConfiguration( - new ResourceLogConfiguration() - .withCategories( - Arrays - .asList( - new ResourceLogCategory(), - new ResourceLogCategory(), - new ResourceLogCategory(), - new ResourceLogCategory()))) - .withCors( - new SignalRCorsSettings() - .withAllowedOrigins(Arrays.asList("mueef", "zwfqkqujidsuyon", "bglaocqxtccm"))) - .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(1054992005)) - .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate().withUrlTemplate("lmoyrx"), - new UpstreamTemplate().withUrlTemplate("wfudwpzntxhdzhl")))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.ALLOW) - .withPublicNetwork( - new NetworkAcl() - .withAllow( - Arrays - .asList( - SignalRRequestType.CLIENT_CONNECTION, - SignalRRequestType.SERVER_CONNECTION, - SignalRRequestType.RESTAPI)) - .withDeny( - Arrays - .asList(SignalRRequestType.RESTAPI, SignalRRequestType.TRACE))) - .withPrivateEndpoints( - Arrays.asList(new PrivateEndpointAcl().withName("yvpycanuzbpzk"))) - .withIpRules(Arrays.asList(new IpRule(), new IpRule(), new IpRule()))) - .withPublicNetworkAccess("wbcrnwbmehhseyv") - .withDisableLocalAuth(true) - .withDisableAadAuth(true) - .withRegionEndpointEnabled("lhspkdee") - .withResourceStopped("ofmxagkvtmelmqkr"), - new SignalRResourceInner() - .withLocation("bsrfbj") - .withTags(mapOf("sotftpvj", "w")) - .withSku( - new ResourceSku() - .withName("ni") - .withTier(SignalRSkuTier.FREE) - .withCapacity(1035502887)) - .withKind(ServiceKind.RAW_WEB_SOCKETS) - .withIdentity( - new ManagedIdentity() - .withType(ManagedIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "auvjfdxxivet", - new UserAssignedIdentityProperty(), - "bhsfxob", - new UserAssignedIdentityProperty(), - "shqjohxcrsbf", - new UserAssignedIdentityProperty()))) - .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("aejxd") - .withProperties( - mapOf( - "dzumveekg", - "skzbb", - "bsjyofdx", - "wozuhkf", - "oekqvk", - "uusdttouwa", - "vbxwyjsflhh", - "lns")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) - .withValue("aln") - .withProperties( - mapOf( - "kiidzyex", - "isxyawjoyaqcslyj", - "hb", - "nelixhnrztfo", - "dtpnapnyiropuhp", - "xknalaulppg", - "gqgitxmedjvcsl", - "gvpgy")))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("wwncwzzhxgk") - .withCategories( - Arrays.asList(new LiveTraceCategory(), new LiveTraceCategory()))) - .withResourceLogConfiguration( - new ResourceLogConfiguration() - .withCategories( - Arrays - .asList( - new ResourceLogCategory(), - new ResourceLogCategory(), - new ResourceLogCategory()))) - .withCors( - new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("kteo", "llwptfdy"))) - .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(975485251)) - .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays.asList(new UpstreamTemplate().withUrlTemplate("ceopzfqrhhuaopp")))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.ALLOW) - .withPublicNetwork( - new NetworkAcl() - .withAllow(Arrays.asList(SignalRRequestType.TRACE)) - .withDeny( - Arrays - .asList( - SignalRRequestType.RESTAPI, - SignalRRequestType.SERVER_CONNECTION, - SignalRRequestType.SERVER_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl().withName("t"), - new PrivateEndpointAcl().withName("bgbkdmoizpost"))) - .withIpRules(Arrays.asList(new IpRule(), new IpRule()))) - .withPublicNetworkAccess("fbunrmfqjhhk") - .withDisableLocalAuth(true) - .withDisableAadAuth(false) - .withRegionEndpointEnabled("mjh") - .withResourceStopped("j"), - new SignalRResourceInner() - .withLocation("mkcdyhbpkkpwdre") - .withTags( - mapOf("w", "vvqfovljxyws", "dsytgadgvr", "yrs", "neqn", "ea", "jfqka", "arrwlquu")) - .withSku( - new ResourceSku() - .withName("r") - .withTier(SignalRSkuTier.FREE) - .withCapacity(682074960)) - .withKind(ServiceKind.SIGNALR) - .withIdentity( - new ManagedIdentity() - .withType(ManagedIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "nwashrtd", - new UserAssignedIdentityProperty(), - "i", - new UserAssignedIdentityProperty(), - "fbtkuwhhmhyk", - new UserAssignedIdentityProperty()))) - .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("auwzizxbmpgc") - .withProperties( - mapOf( - "muvp", - "u", - "bhjpglkfgohdne", - "ttdumorppxebmnzb", - "phsdyhto", - "el")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("ikdowwquuvx") - .withProperties( - mapOf("hcohfwdsjnk", "lvithhqzonosgg", "swacffgdkzz", "ljuti")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_LIVE_TRACE) - .withValue("kfvhqcrailvpn") - .withProperties( - mapOf( - "hdlxyjrxsagafcn", - "uflrwd", - "apnedgfbcvkc", - "hgw", - "pkeqdcvdrhvoo", - "q")), - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) - .withValue("otbobzdopcj") - .withProperties( - mapOf( - "mutwuoe", - "hdldwmgxcxrsl", - "yqsluic", - "rpkhjwn", - "modfvuefywsbpfvm", - "dggkzzlvmbmpa")))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("rfouyftaakcpw") - .withCategories( - Arrays - .asList( - new LiveTraceCategory(), - new LiveTraceCategory(), - new LiveTraceCategory()))) - .withResourceLogConfiguration( - new ResourceLogConfiguration() - .withCategories( - Arrays - .asList( - new ResourceLogCategory(), - new ResourceLogCategory(), - new ResourceLogCategory(), - new ResourceLogCategory()))) - .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("bexkpzksmondj"))) - .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(628279381)) - .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate().withUrlTemplate("omgkopkwho"), - new UpstreamTemplate().withUrlTemplate("v"), - new UpstreamTemplate().withUrlTemplate("ajqgxy"), - new UpstreamTemplate().withUrlTemplate("mocmbqfqvmk")))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.ALLOW) - .withPublicNetwork( - new NetworkAcl() - .withAllow( - Arrays - .asList( - SignalRRequestType.RESTAPI, - SignalRRequestType.TRACE, - SignalRRequestType.TRACE, - SignalRRequestType.RESTAPI)) - .withDeny(Arrays.asList(SignalRRequestType.TRACE))) - .withPrivateEndpoints(Arrays.asList(new PrivateEndpointAcl().withName("atddc"))) - .withIpRules(Arrays.asList(new IpRule(), new IpRule(), new IpRule()))) - .withPublicNetworkAccess("uejrjxgc") - .withDisableLocalAuth(true) - .withDisableAadAuth(false) - .withRegionEndpointEnabled("osx") - .withResourceStopped("qrhzoymibmrqyib"))) - .withNextLink("qkvpuvksgplsakn"); - model = BinaryData.fromObject(model).toObject(SignalRResourceList.class); - Assertions.assertEquals("tdbhrbnla", model.value().get(0).location()); - Assertions.assertEquals("myskpbhenbtkcxy", model.value().get(0).tags().get("ny")); - Assertions.assertEquals("tpngjcrcczsqpjh", model.value().get(0).sku().name()); - Assertions.assertEquals(SignalRSkuTier.FREE, model.value().get(0).sku().tier()); - Assertions.assertEquals(1901274446, model.value().get(0).sku().capacity()); - Assertions.assertEquals(ServiceKind.SIGNALR, model.value().get(0).kind()); - Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals(true, model.value().get(0).tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.ENABLE_LIVE_TRACE, model.value().get(0).features().get(0).flag()); - Assertions.assertEquals("yp", model.value().get(0).features().get(0).value()); - Assertions.assertEquals("p", model.value().get(0).features().get(0).properties().get("zcdrqjsdpydnfyhx")); - Assertions.assertEquals("ymuctqhjfbebrj", model.value().get(0).liveTraceConfiguration().enabled()); - Assertions.assertEquals("ttxfvjr", model.value().get(0).cors().allowedOrigins().get(0)); - Assertions.assertEquals(1999582411, model.value().get(0).serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("j", model.value().get(0).upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(AclAction.ALLOW, model.value().get(0).networkACLs().defaultAction()); - Assertions - .assertEquals( - SignalRRequestType.CLIENT_CONNECTION, - model.value().get(0).networkACLs().publicNetwork().allow().get(0)); - Assertions - .assertEquals( - SignalRRequestType.CLIENT_CONNECTION, model.value().get(0).networkACLs().publicNetwork().deny().get(0)); - Assertions.assertEquals("nehmpvecx", model.value().get(0).networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("zlfbxzpuzycispnq", model.value().get(0).publicNetworkAccess()); - Assertions.assertEquals(true, model.value().get(0).disableLocalAuth()); - Assertions.assertEquals(false, model.value().get(0).disableAadAuth()); - Assertions.assertEquals("brpyydhi", model.value().get(0).regionEndpointEnabled()); - Assertions.assertEquals("uqqkpik", model.value().get(0).resourceStopped()); - Assertions.assertEquals("qkvpuvksgplsakn", model.nextLink()); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesCreateOrUpdateMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesCreateOrUpdateMockTests.java deleted file mode 100644 index 1d45cf5ab73d2..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.SharedPrivateLinkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRSharedPrivateLinkResourcesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"groupId\":\"mkfqlwxldy\",\"privateLinkResourceId\":\"alsygao\",\"provisioningState\":\"Succeeded\",\"requestMessage\":\"nnbmjksibjgsjj\",\"status\":\"Disconnected\"},\"id\":\"mr\",\"name\":\"ad\",\"type\":\"yqegx\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SharedPrivateLinkResource response = - manager - .signalRSharedPrivateLinkResources() - .define("lz") - .withExistingSignalR("zjknyuxg", "ttxpnrupza") - .withGroupId("rdixt") - .withPrivateLinkResourceId("ekidswyskb") - .withRequestMessage("gllukkutvlxhrpqh") - .create(); - - Assertions.assertEquals("mkfqlwxldy", response.groupId()); - Assertions.assertEquals("alsygao", response.privateLinkResourceId()); - Assertions.assertEquals("nnbmjksibjgsjj", response.requestMessage()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesDeleteMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesDeleteMockTests.java deleted file mode 100644 index dd4d2f663d57a..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRSharedPrivateLinkResourcesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .signalRSharedPrivateLinkResources() - .delete("e", "oyzbamwineofvf", "akpoldtvevbo", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesGetWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesGetWithResponseMockTests.java deleted file mode 100644 index e6e160e93d947..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesGetWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.SharedPrivateLinkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRSharedPrivateLinkResourcesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"groupId\":\"btsuahxs\",\"privateLinkResourceId\":\"xjcmmzrrsc\",\"provisioningState\":\"Moving\",\"requestMessage\":\"sd\",\"status\":\"Rejected\"},\"id\":\"qwodiffjx\",\"name\":\"jrmmuabwib\",\"type\":\"jogjonmc\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SharedPrivateLinkResource response = - manager - .signalRSharedPrivateLinkResources() - .getWithResponse("ay", "xbulpzealbmqkyo", "wyvf", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("btsuahxs", response.groupId()); - Assertions.assertEquals("xjcmmzrrsc", response.privateLinkResourceId()); - Assertions.assertEquals("sd", response.requestMessage()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesListMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesListMockTests.java deleted file mode 100644 index 0666d41b4fab0..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRSharedPrivateLinkResourcesListMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.SharedPrivateLinkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRSharedPrivateLinkResourcesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"groupId\":\"hhulrtywikdm\",\"privateLinkResourceId\":\"lakuflgbhgauacd\",\"provisioningState\":\"Creating\",\"requestMessage\":\"ufr\",\"status\":\"Rejected\"},\"id\":\"qg\",\"name\":\"kfnozoeoqbvj\",\"type\":\"vefgwbmqjchntas\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .signalRSharedPrivateLinkResources() - .list("upeuknijduyye", "pydjfboc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hhulrtywikdm", response.iterator().next().groupId()); - Assertions.assertEquals("lakuflgbhgauacd", response.iterator().next().privateLinkResourceId()); - Assertions.assertEquals("ufr", response.iterator().next().requestMessage()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRTlsSettingsTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRTlsSettingsTests.java deleted file mode 100644 index e6201ba709d65..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRTlsSettingsTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.SignalRTlsSettings; -import org.junit.jupiter.api.Assertions; - -public final class SignalRTlsSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRTlsSettings model = - BinaryData.fromString("{\"clientCertEnabled\":false}").toObject(SignalRTlsSettings.class); - Assertions.assertEquals(false, model.clientCertEnabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRTlsSettings model = new SignalRTlsSettings().withClientCertEnabled(false); - model = BinaryData.fromObject(model).toObject(SignalRTlsSettings.class); - Assertions.assertEquals(false, model.clientCertEnabled()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageInnerTests.java deleted file mode 100644 index afd3bc6e283f6..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SignalRUsageInner; -import com.azure.resourcemanager.signalr.models.SignalRUsageName; -import org.junit.jupiter.api.Assertions; - -public final class SignalRUsageInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRUsageInner model = - BinaryData - .fromString( - "{\"id\":\"vyvdcs\",\"currentValue\":6235593202680912824,\"limit\":7516654710743281273,\"name\":{\"value\":\"ectehf\",\"localizedValue\":\"scjeypv\"},\"unit\":\"zrkgqhcjrefovg\"}") - .toObject(SignalRUsageInner.class); - Assertions.assertEquals("vyvdcs", model.id()); - Assertions.assertEquals(6235593202680912824L, model.currentValue()); - Assertions.assertEquals(7516654710743281273L, model.limit()); - Assertions.assertEquals("ectehf", model.name().value()); - Assertions.assertEquals("scjeypv", model.name().localizedValue()); - Assertions.assertEquals("zrkgqhcjrefovg", model.unit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRUsageInner model = - new SignalRUsageInner() - .withId("vyvdcs") - .withCurrentValue(6235593202680912824L) - .withLimit(7516654710743281273L) - .withName(new SignalRUsageName().withValue("ectehf").withLocalizedValue("scjeypv")) - .withUnit("zrkgqhcjrefovg"); - model = BinaryData.fromObject(model).toObject(SignalRUsageInner.class); - Assertions.assertEquals("vyvdcs", model.id()); - Assertions.assertEquals(6235593202680912824L, model.currentValue()); - Assertions.assertEquals(7516654710743281273L, model.limit()); - Assertions.assertEquals("ectehf", model.name().value()); - Assertions.assertEquals("scjeypv", model.name().localizedValue()); - Assertions.assertEquals("zrkgqhcjrefovg", model.unit()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageListTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageListTests.java deleted file mode 100644 index 8fcd9550fc5bf..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageListTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SignalRUsageInner; -import com.azure.resourcemanager.signalr.models.SignalRUsageList; -import com.azure.resourcemanager.signalr.models.SignalRUsageName; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SignalRUsageListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRUsageList model = - BinaryData - .fromString( - "{\"value\":[{\"id\":\"ndnvo\",\"currentValue\":4292877192766299113,\"limit\":3293446474919179561,\"name\":{\"value\":\"kcglhslaz\",\"localizedValue\":\"yggdtjixh\"},\"unit\":\"uofqwe\"}],\"nextLink\":\"hmenevfyexfwhybc\"}") - .toObject(SignalRUsageList.class); - Assertions.assertEquals("ndnvo", model.value().get(0).id()); - Assertions.assertEquals(4292877192766299113L, model.value().get(0).currentValue()); - Assertions.assertEquals(3293446474919179561L, model.value().get(0).limit()); - Assertions.assertEquals("kcglhslaz", model.value().get(0).name().value()); - Assertions.assertEquals("yggdtjixh", model.value().get(0).name().localizedValue()); - Assertions.assertEquals("uofqwe", model.value().get(0).unit()); - Assertions.assertEquals("hmenevfyexfwhybc", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRUsageList model = - new SignalRUsageList() - .withValue( - Arrays - .asList( - new SignalRUsageInner() - .withId("ndnvo") - .withCurrentValue(4292877192766299113L) - .withLimit(3293446474919179561L) - .withName(new SignalRUsageName().withValue("kcglhslaz").withLocalizedValue("yggdtjixh")) - .withUnit("uofqwe"))) - .withNextLink("hmenevfyexfwhybc"); - model = BinaryData.fromObject(model).toObject(SignalRUsageList.class); - Assertions.assertEquals("ndnvo", model.value().get(0).id()); - Assertions.assertEquals(4292877192766299113L, model.value().get(0).currentValue()); - Assertions.assertEquals(3293446474919179561L, model.value().get(0).limit()); - Assertions.assertEquals("kcglhslaz", model.value().get(0).name().value()); - Assertions.assertEquals("yggdtjixh", model.value().get(0).name().localizedValue()); - Assertions.assertEquals("uofqwe", model.value().get(0).unit()); - Assertions.assertEquals("hmenevfyexfwhybc", model.nextLink()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageNameTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageNameTests.java deleted file mode 100644 index 97864f35bce58..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRUsageNameTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.SignalRUsageName; -import org.junit.jupiter.api.Assertions; - -public final class SignalRUsageNameTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SignalRUsageName model = - BinaryData - .fromString("{\"value\":\"qsl\",\"localizedValue\":\"yvxyqjp\"}") - .toObject(SignalRUsageName.class); - Assertions.assertEquals("qsl", model.value()); - Assertions.assertEquals("yvxyqjp", model.localizedValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SignalRUsageName model = new SignalRUsageName().withValue("qsl").withLocalizedValue("yvxyqjp"); - model = BinaryData.fromObject(model).toObject(SignalRUsageName.class); - Assertions.assertEquals("qsl", model.value()); - Assertions.assertEquals("yvxyqjp", model.localizedValue()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsCheckNameAvailabilityWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index aff660f110657..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.NameAvailability; -import com.azure.resourcemanager.signalr.models.NameAvailabilityParameters; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"nameAvailable\":false,\"reason\":\"moy\",\"message\":\"lwigdivbkbx\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - NameAvailability response = - manager - .signalRs() - .checkNameAvailabilityWithResponse( - "qlkzme", - new NameAvailabilityParameters().withType("nitgvkxlz").withName("qdrfegcealzxwhc"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals("moy", response.reason()); - Assertions.assertEquals("lwigdivbkbx", response.message()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsCreateOrUpdateMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsCreateOrUpdateMockTests.java deleted file mode 100644 index a5ed5b14c04d4..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,270 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.FeatureFlags; -import com.azure.resourcemanager.signalr.models.IpRule; -import com.azure.resourcemanager.signalr.models.LiveTraceCategory; -import com.azure.resourcemanager.signalr.models.LiveTraceConfiguration; -import com.azure.resourcemanager.signalr.models.ManagedIdentity; -import com.azure.resourcemanager.signalr.models.ManagedIdentityType; -import com.azure.resourcemanager.signalr.models.NetworkAcl; -import com.azure.resourcemanager.signalr.models.PrivateEndpointAcl; -import com.azure.resourcemanager.signalr.models.ResourceLogCategory; -import com.azure.resourcemanager.signalr.models.ResourceLogConfiguration; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.ServerlessSettings; -import com.azure.resourcemanager.signalr.models.ServerlessUpstreamSettings; -import com.azure.resourcemanager.signalr.models.ServiceKind; -import com.azure.resourcemanager.signalr.models.SignalRCorsSettings; -import com.azure.resourcemanager.signalr.models.SignalRFeature; -import com.azure.resourcemanager.signalr.models.SignalRNetworkACLs; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import com.azure.resourcemanager.signalr.models.SignalRResource; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import com.azure.resourcemanager.signalr.models.SignalRTlsSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthSettings; -import com.azure.resourcemanager.signalr.models.UpstreamTemplate; -import com.azure.resourcemanager.signalr.models.UserAssignedIdentityProperty; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"name\":\"lhikcyychunsj\",\"tier\":\"Basic\",\"size\":\"twszhvvuic\",\"family\":\"vtrrmhwrbfdpyflu\",\"capacity\":2023214586},\"properties\":{\"provisioningState\":\"Succeeded\",\"externalIP\":\"ocu\",\"hostName\":\"lw\",\"publicPort\":1284227714,\"serverPort\":1438409396,\"version\":\"ooclutnp\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Moving\",\"privateEndpoint\":{},\"groupIds\":[\"mykyujxsglhs\",\"rryejylmbkzudnig\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"hotj\",\"name\":\"wlpxuzzjg\",\"type\":\"refqy\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"oihiqak\",\"privateLinkResourceId\":\"diw\",\"provisioningState\":\"Canceled\",\"requestMessage\":\"wpzdqtvhcspo\",\"status\":\"Pending\"},\"id\":\"xsi\",\"name\":\"ietgbebjfu\",\"type\":\"bmoichd\"},{\"properties\":{\"groupId\":\"nfpubntnbatz\",\"privateLinkResourceId\":\"iqsowsaaelc\",\"provisioningState\":\"Creating\",\"requestMessage\":\"ju\",\"status\":\"Disconnected\"},\"id\":\"vkmjcwmjvlgf\",\"name\":\"gcvkyyli\",\"type\":\"rzbjpsfxsfuz\"}],\"tls\":{\"clientCertEnabled\":false},\"hostNamePrefix\":\"vagbwidqlvhukove\",\"features\":[{\"flag\":\"EnableLiveTrace\",\"value\":\"rvjfnmjmvlw\",\"properties\":{\"lfojuidjp\":\"iblkujr\",\"ovvtzejetjkln\":\"uyjucejikzo\",\"k\":\"ikyju\"}}],\"liveTraceConfiguration\":{\"enabled\":\"zolxrzvhqjwtr\",\"categories\":[{\"name\":\"gzpcrrkolaw\",\"enabled\":\"jsmwrokc\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"zwyjafitlhgu\",\"enabled\":\"uchlgmltx\"},{\"name\":\"hmoz\",\"enabled\":\"gzvlnsnn\"}]},\"cors\":{\"allowedOrigins\":[\"afolpymwamxqzrag\",\"gdphtvdula\"]},\"serverless\":{\"connectionTimeoutInSeconds\":254887878},\"upstream\":{\"templates\":[{\"hubPattern\":\"srlzknmzlan\",\"eventPattern\":\"pdwvnphcn\",\"categoryPattern\":\"tpjhm\",\"urlTemplate\":\"rhv\",\"auth\":{}},{\"hubPattern\":\"aiwdcxsmlzzhz\",\"eventPattern\":\"xetlgydlhqv\",\"categoryPattern\":\"npxybafiq\",\"urlTemplate\":\"eaarbgjekglklbyu\",\"auth\":{}},{\"hubPattern\":\"wcwvmzeg\",\"eventPattern\":\"nfhjirwgdnqzbr\",\"categoryPattern\":\"spzhzmtksjc\",\"urlTemplate\":\"tdigsxcdglj\",\"auth\":{}}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"Trace\",\"RESTAPI\",\"Trace\",\"RESTAPI\"],\"deny\":[\"ServerConnection\",\"Trace\"]},\"privateEndpoints\":[{\"name\":\"fpfmdgycxnmskwh\",\"allow\":[\"ClientConnection\",\"Trace\"],\"deny\":[\"ServerConnection\",\"Trace\"]},{\"name\":\"pshhkvpedwqslsr\",\"allow\":[\"ServerConnection\"],\"deny\":[\"Trace\",\"RESTAPI\"]},{\"name\":\"kondcb\",\"allow\":[\"RESTAPI\",\"Trace\",\"RESTAPI\",\"ClientConnection\"],\"deny\":[\"Trace\",\"ClientConnection\",\"Trace\"]}],\"ipRules\":[{\"value\":\"rleaes\",\"action\":\"Deny\"},{\"value\":\"tljqobbpih\",\"action\":\"Deny\"},{\"value\":\"cy\",\"action\":\"Deny\"},{\"value\":\"brjbbmpxdlvy\",\"action\":\"Deny\"}]},\"publicNetworkAccess\":\"xcrseqwjksgh\",\"disableLocalAuth\":false,\"disableAadAuth\":true,\"regionEndpointEnabled\":\"ogjggsvoujkxibda\",\"resourceStopped\":\"rkmdyom\"},\"kind\":\"SignalR\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"kumuikjcjca\":{\"principalId\":\"y\",\"clientId\":\"hpwpgddeimawzovg\"}},\"principalId\":\"bwsnsqow\",\"tenantId\":\"comlikytwvczc\"},\"location\":\"k\",\"tags\":{\"gddpq\":\"ejyfdvlvhbwrnfx\"},\"id\":\"hehnmnaoya\",\"name\":\"kcoeqswank\",\"type\":\"t\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SignalRResource response = - manager - .signalRs() - .define("txrdcqtjvi") - .withRegion("vwgf") - .withExistingResourceGroup("vnekhenlusfnrdtj") - .withTags(mapOf("aoaf", "hqykizmdk", "gc", "luqvoxmycjimryv", "hecbvopwndyq", "wpbmzgwesydsxwef")) - .withSku( - new ResourceSku() - .withName("tgepuslvyjtcvuwk") - .withTier(SignalRSkuTier.PREMIUM) - .withCapacity(1444717829)) - .withKind(ServiceKind.RAW_WEB_SOCKETS) - .withIdentity( - new ManagedIdentity() - .withType(ManagedIdentityType.NONE) - .withUserAssignedIdentities(mapOf("hlvbmxu", new UserAssignedIdentityProperty()))) - .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) - .withFeatures( - Arrays - .asList( - new SignalRFeature() - .withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) - .withValue("r") - .withProperties( - mapOf( - "yggagflnlgmt", - "zoyuelyetndnbf", - "lrohkpig", - "wahzjmucftbyr", - "axmqeqal", - "fusuckzmkwklsno", - "gbv", - "hjnhgwydyynfsvk")), - new SignalRFeature() - .withFlag(FeatureFlags.SERVICE_MODE) - .withValue("anarfdlpukhpyrne") - .withProperties( - mapOf( - "ddbhf", - "cpeogkhnmgbrou", - "ontacnpq", - "pfpazjzoywjxhpdu", - "xh", - "tehtuevrhrljyoog")))) - .withLiveTraceConfiguration( - new LiveTraceConfiguration() - .withEnabled("uug") - .withCategories( - Arrays - .asList( - new LiveTraceCategory().withName("e").withEnabled("fqkfuarenl"), - new LiveTraceCategory().withName("htkln").withEnabled("afvvk"), - new LiveTraceCategory().withName("edev").withEnabled("oslc"), - new LiveTraceCategory().withName("y").withEnabled("kkhminqcymczngn")))) - .withResourceLogConfiguration( - new ResourceLogConfiguration() - .withCategories( - Arrays.asList(new ResourceLogCategory().withName("wuninv").withEnabled("bchaqd")))) - .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("crqctmxxdtddmflh"))) - .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(1691518178)) - .withUpstream( - new ServerlessUpstreamSettings() - .withTemplates( - Arrays - .asList( - new UpstreamTemplate() - .withHubPattern("napxbannovv") - .withEventPattern("czytprwn") - .withCategoryPattern("roevyt") - .withUrlTemplate("yo") - .withAuth(new UpstreamAuthSettings()), - new UpstreamTemplate() - .withHubPattern("rouuxvnsasbcry") - .withEventPattern("dizr") - .withCategoryPattern("lobdxna") - .withUrlTemplate("pmkmlmvevfx") - .withAuth(new UpstreamAuthSettings()), - new UpstreamTemplate() - .withHubPattern("jhbzxliohrdddtf") - .withEventPattern("qbawpcbbnzqcykn") - .withCategoryPattern("qofyuicdhzbdy") - .withUrlTemplate("wwgbdv") - .withAuth(new UpstreamAuthSettings()), - new UpstreamTemplate() - .withHubPattern("dmhm") - .withEventPattern("f") - .withCategoryPattern("fmuvapckccr") - .withUrlTemplate("vwe") - .withAuth(new UpstreamAuthSettings())))) - .withNetworkACLs( - new SignalRNetworkACLs() - .withDefaultAction(AclAction.DENY) - .withPublicNetwork( - new NetworkAcl() - .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withDeny( - Arrays - .asList( - SignalRRequestType.TRACE, - SignalRRequestType.TRACE, - SignalRRequestType.SERVER_CONNECTION))) - .withPrivateEndpoints( - Arrays - .asList( - new PrivateEndpointAcl() - .withAllow(Arrays.asList(SignalRRequestType.TRACE)) - .withDeny(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) - .withName("roqboshbragapyy"), - new PrivateEndpointAcl() - .withAllow( - Arrays - .asList( - SignalRRequestType.RESTAPI, - SignalRRequestType.RESTAPI, - SignalRRequestType.RESTAPI, - SignalRRequestType.RESTAPI)) - .withDeny(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.RESTAPI)) - .withName("avbopfp"))) - .withIpRules( - Arrays.asList(new IpRule().withValue("asjcaacfdmmcpu").withAction(AclAction.DENY)))) - .withPublicNetworkAccess("qepvufhbzeh") - .withDisableLocalAuth(false) - .withDisableAadAuth(true) - .withRegionEndpointEnabled("nlbqnbldxeaclg") - .withResourceStopped("horimkr") - .create(); - - Assertions.assertEquals("k", response.location()); - Assertions.assertEquals("ejyfdvlvhbwrnfx", response.tags().get("gddpq")); - Assertions.assertEquals("lhikcyychunsj", response.sku().name()); - Assertions.assertEquals(SignalRSkuTier.BASIC, response.sku().tier()); - Assertions.assertEquals(2023214586, response.sku().capacity()); - Assertions.assertEquals(ServiceKind.SIGNALR, response.kind()); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals(false, response.tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.ENABLE_LIVE_TRACE, response.features().get(0).flag()); - Assertions.assertEquals("rvjfnmjmvlw", response.features().get(0).value()); - Assertions.assertEquals("iblkujr", response.features().get(0).properties().get("lfojuidjp")); - Assertions.assertEquals("zolxrzvhqjwtr", response.liveTraceConfiguration().enabled()); - Assertions.assertEquals("gzpcrrkolaw", response.liveTraceConfiguration().categories().get(0).name()); - Assertions.assertEquals("jsmwrokc", response.liveTraceConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("zwyjafitlhgu", response.resourceLogConfiguration().categories().get(0).name()); - Assertions.assertEquals("uchlgmltx", response.resourceLogConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("afolpymwamxqzrag", response.cors().allowedOrigins().get(0)); - Assertions.assertEquals(254887878, response.serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("srlzknmzlan", response.upstream().templates().get(0).hubPattern()); - Assertions.assertEquals("pdwvnphcn", response.upstream().templates().get(0).eventPattern()); - Assertions.assertEquals("tpjhm", response.upstream().templates().get(0).categoryPattern()); - Assertions.assertEquals("rhv", response.upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(AclAction.ALLOW, response.networkACLs().defaultAction()); - Assertions.assertEquals(SignalRRequestType.TRACE, response.networkACLs().publicNetwork().allow().get(0)); - Assertions - .assertEquals(SignalRRequestType.SERVER_CONNECTION, response.networkACLs().publicNetwork().deny().get(0)); - Assertions - .assertEquals( - SignalRRequestType.CLIENT_CONNECTION, response.networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions - .assertEquals( - SignalRRequestType.SERVER_CONNECTION, response.networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("fpfmdgycxnmskwh", response.networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("rleaes", response.networkACLs().ipRules().get(0).value()); - Assertions.assertEquals(AclAction.DENY, response.networkACLs().ipRules().get(0).action()); - Assertions.assertEquals("xcrseqwjksgh", response.publicNetworkAccess()); - Assertions.assertEquals(false, response.disableLocalAuth()); - Assertions.assertEquals(true, response.disableAadAuth()); - Assertions.assertEquals("ogjggsvoujkxibda", response.regionEndpointEnabled()); - Assertions.assertEquals("rkmdyom", response.resourceStopped()); - } - - // 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/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsDeleteMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsDeleteMockTests.java deleted file mode 100644 index 0693974535b4a..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.signalRs().delete("kfvxcnq", "xqpswok", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsGetByResourceGroupWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 41be64311da2a..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.FeatureFlags; -import com.azure.resourcemanager.signalr.models.ManagedIdentityType; -import com.azure.resourcemanager.signalr.models.ServiceKind; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import com.azure.resourcemanager.signalr.models.SignalRResource; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRsGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"name\":\"e\",\"tier\":\"Premium\",\"size\":\"w\",\"family\":\"wl\",\"capacity\":953163194},\"properties\":{\"provisioningState\":\"Running\",\"externalIP\":\"psihcla\",\"hostName\":\"va\",\"publicPort\":371223759,\"serverPort\":207185331,\"version\":\"qqwzt\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{},\"groupIds\":[\"waxfewzjkj\",\"xfdeqvhpsyl\",\"ksh\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"f\",\"name\":\"bmxzjrgywwpg\",\"type\":\"xs\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"ujgicgaaoe\",\"privateLinkResourceId\":\"ttaqutdew\",\"provisioningState\":\"Moving\",\"requestMessage\":\"wvruunzzj\",\"status\":\"Approved\"},\"id\":\"fkimrtix\",\"name\":\"kffqyinljqepqwh\",\"type\":\"xmonstshi\"}],\"tls\":{\"clientCertEnabled\":false},\"hostNamePrefix\":\"lfcldu\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"rds\",\"properties\":{\"i\":\"cobiegstmninwjiz\",\"tbxqmuluxlxq\":\"nghgshej\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"nersb\",\"properties\":{\"brqbsmswzi\":\"crwnamikz\",\"vhczznvfby\":\"gfuhokzrusw\"}},{\"flag\":\"EnableConnectivityLogs\",\"value\":\"sxjwwixz\",\"properties\":{\"haohdjhhflzokxc\":\"wmxqhndvnoamlds\",\"atftgzpnpbsw\":\"xpelnjetagltsx\",\"loccsrmozihm\":\"e\",\"rytfmpcycil\":\"pgawtxxpkyjcxcjx\"}},{\"flag\":\"EnableConnectivityLogs\",\"value\":\"caykggnoxuz\",\"properties\":{\"wkjaos\":\"sxwpndfcpfnznthj\",\"smgbzahgxqdl\":\"xuzvoamktcqi\"}}],\"liveTraceConfiguration\":{\"enabled\":\"ltlaprltzkatbhj\",\"categories\":[{\"name\":\"bsoqeqala\",\"enabled\":\"lagun\"},{\"name\":\"gfebwlnb\",\"enabled\":\"yreeudz\"},{\"name\":\"vbpdqmjxlyyzglgo\",\"enabled\":\"tlmj\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"qtobaxkjeyt\",\"enabled\":\"lbfjkwr\"},{\"name\":\"nkqbhsyrq\",\"enabled\":\"jqhden\"},{\"name\":\"ulkpakd\",\"enabled\":\"fmjnnawtqa\"}]},\"cors\":{\"allowedOrigins\":[\"ckpggqoweyird\",\"lisn\",\"wfl\",\"qmp\"]},\"serverless\":{\"connectionTimeoutInSeconds\":1526757762},\"upstream\":{\"templates\":[{\"hubPattern\":\"xpxiwfcngjs\",\"eventPattern\":\"sii\",\"categoryPattern\":\"mkzjvkviir\",\"urlTemplate\":\"gfgrwsdp\",\"auth\":{}},{\"hubPattern\":\"t\",\"eventPattern\":\"zb\",\"categoryPattern\":\"byvi\",\"urlTemplate\":\"tctbrxkjzwrgxffm\",\"auth\":{}}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"ServerConnection\",\"Trace\"],\"deny\":[\"RESTAPI\",\"Trace\",\"ClientConnection\"]},\"privateEndpoints\":[{\"name\":\"dpizq\",\"allow\":[\"RESTAPI\",\"ServerConnection\",\"Trace\"],\"deny\":[\"Trace\",\"ClientConnection\",\"ClientConnection\",\"ClientConnection\"]}],\"ipRules\":[{\"value\":\"knfsmfcttuxuuyil\",\"action\":\"Deny\"}]},\"publicNetworkAccess\":\"iquvrehm\",\"disableLocalAuth\":true,\"disableAadAuth\":true,\"regionEndpointEnabled\":\"ujztcz\",\"resourceStopped\":\"qjtwhauu\"},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"zdvpiw\":{\"principalId\":\"lxsmrpddouifamow\",\"clientId\":\"iynknlq\"},\"mzyospspshck\":{\"principalId\":\"qszdtmaajquhuxyl\",\"clientId\":\"vmtygj\"}},\"principalId\":\"yjpmspbpssdfppyo\",\"tenantId\":\"ieyujtvc\"},\"location\":\"cnyxrxmunjd\",\"tags\":{\"aglqivbgkcvkh\":\"lnkvxlx\",\"yp\":\"zvuqdflvon\",\"idibgqjxgpn\":\"pubcpzgpxtivhjk\"},\"id\":\"hgovfgp\",\"name\":\"kqmhhaowjr\",\"type\":\"zvuporqzdfuydz\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SignalRResource response = - manager - .signalRs() - .getByResourceGroupWithResponse("qnyophzfyls", "crpfbcunez", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("cnyxrxmunjd", response.location()); - Assertions.assertEquals("lnkvxlx", response.tags().get("aglqivbgkcvkh")); - Assertions.assertEquals("e", response.sku().name()); - Assertions.assertEquals(SignalRSkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals(953163194, response.sku().capacity()); - Assertions.assertEquals(ServiceKind.RAW_WEB_SOCKETS, response.kind()); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals(false, response.tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.ENABLE_MESSAGING_LOGS, response.features().get(0).flag()); - Assertions.assertEquals("rds", response.features().get(0).value()); - Assertions.assertEquals("cobiegstmninwjiz", response.features().get(0).properties().get("i")); - Assertions.assertEquals("ltlaprltzkatbhj", response.liveTraceConfiguration().enabled()); - Assertions.assertEquals("bsoqeqala", response.liveTraceConfiguration().categories().get(0).name()); - Assertions.assertEquals("lagun", response.liveTraceConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("qtobaxkjeyt", response.resourceLogConfiguration().categories().get(0).name()); - Assertions.assertEquals("lbfjkwr", response.resourceLogConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("ckpggqoweyird", response.cors().allowedOrigins().get(0)); - Assertions.assertEquals(1526757762, response.serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("xpxiwfcngjs", response.upstream().templates().get(0).hubPattern()); - Assertions.assertEquals("sii", response.upstream().templates().get(0).eventPattern()); - Assertions.assertEquals("mkzjvkviir", response.upstream().templates().get(0).categoryPattern()); - Assertions.assertEquals("gfgrwsdp", response.upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(AclAction.DENY, response.networkACLs().defaultAction()); - Assertions - .assertEquals(SignalRRequestType.SERVER_CONNECTION, response.networkACLs().publicNetwork().allow().get(0)); - Assertions.assertEquals(SignalRRequestType.RESTAPI, response.networkACLs().publicNetwork().deny().get(0)); - Assertions - .assertEquals(SignalRRequestType.RESTAPI, response.networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions - .assertEquals(SignalRRequestType.TRACE, response.networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("dpizq", response.networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("knfsmfcttuxuuyil", response.networkACLs().ipRules().get(0).value()); - Assertions.assertEquals(AclAction.DENY, response.networkACLs().ipRules().get(0).action()); - Assertions.assertEquals("iquvrehm", response.publicNetworkAccess()); - Assertions.assertEquals(true, response.disableLocalAuth()); - Assertions.assertEquals(true, response.disableAadAuth()); - Assertions.assertEquals("ujztcz", response.regionEndpointEnabled()); - Assertions.assertEquals("qjtwhauu", response.resourceStopped()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListByResourceGroupMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListByResourceGroupMockTests.java deleted file mode 100644 index 14872e4d28847..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListByResourceGroupMockTests.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.FeatureFlags; -import com.azure.resourcemanager.signalr.models.ManagedIdentityType; -import com.azure.resourcemanager.signalr.models.ServiceKind; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import com.azure.resourcemanager.signalr.models.SignalRResource; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"sku\":{\"name\":\"wq\",\"tier\":\"Premium\",\"size\":\"lwi\",\"family\":\"sttex\",\"capacity\":496912008},\"properties\":{\"provisioningState\":\"Canceled\",\"externalIP\":\"yufmhruncuwmq\",\"hostName\":\"kcdqzhlct\",\"publicPort\":1266865634,\"serverPort\":302400307,\"version\":\"dyfpchrqbnj\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Failed\",\"privateEndpoint\":{},\"groupIds\":[\"wboxjumvqqo\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"r\",\"name\":\"aiouaubrjt\",\"type\":\"oq\"},{\"properties\":{\"provisioningState\":\"Failed\",\"privateEndpoint\":{},\"groupIds\":[\"giflrzpasccbiu\",\"mzdlyjdfqwmkyo\",\"ufdvruz\",\"lzo\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"ctfnmdxotng\",\"name\":\"dgug\",\"type\":\"yzihgrkyuizabsn\"},{\"properties\":{\"provisioningState\":\"Failed\",\"privateEndpoint\":{},\"groupIds\":[\"eevy\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"sgzfczbg\",\"name\":\"mfg\",\"type\":\"eglqgleohibetn\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"krrfx\",\"privateLinkResourceId\":\"eebtijvacvb\",\"provisioningState\":\"Canceled\",\"requestMessage\":\"qqxlajr\",\"status\":\"Pending\"},\"id\":\"cevehjkuyxoafg\",\"name\":\"oqltfae\",\"type\":\"linmfgv\"},{\"properties\":{\"groupId\":\"r\",\"privateLinkResourceId\":\"gh\",\"provisioningState\":\"Updating\",\"requestMessage\":\"oqeyhlqhykprl\",\"status\":\"Timeout\"},\"id\":\"uciqdsme\",\"name\":\"iitdfuxt\",\"type\":\"asiibmiybnnust\"},{\"properties\":{\"groupId\":\"ljhnmgixhcmav\",\"privateLinkResourceId\":\"qfoudorhcgyy\",\"provisioningState\":\"Deleting\",\"requestMessage\":\"wy\",\"status\":\"Approved\"},\"id\":\"mbxhugcmjkav\",\"name\":\"gorbmftpm\",\"type\":\"tzfjltf\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"jtotpvopvpbd\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"qqihedsvqwthmk\",\"properties\":{\"qcwdhoh\":\"cysihs\",\"sufco\":\"dtmcd\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"xbzlmc\",\"properties\":{\"onqzinkfkbgbzbow\":\"pcvhdbevwqqxeys\",\"qkjjeokbz\":\"eqocljmygvk\"}},{\"flag\":\"EnableConnectivityLogs\",\"value\":\"ezrxcczurtleipqx\",\"properties\":{\"nzvdfbzdixzmq\":\"vz\"}},{\"flag\":\"ServiceMode\",\"value\":\"odawopqhewjptmcg\",\"properties\":{\"zlbiojlvfhrbbpn\":\"stzelndlatut\",\"yurmochpprprs\":\"qvcww\",\"ayzejnhlbkpbz\":\"mo\"}}],\"liveTraceConfiguration\":{\"enabled\":\"iljhahz\",\"categories\":[{\"name\":\"ndbnwieh\",\"enabled\":\"ewjwiuubw\"},{\"name\":\"qsfapaqt\",\"enabled\":\"rrqwexjk\"},{\"name\":\"xap\",\"enabled\":\"og\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"pud\",\"enabled\":\"abtqwpwyawbzasqb\"}]},\"cors\":{\"allowedOrigins\":[\"gkyexaoguy\"]},\"serverless\":{\"connectionTimeoutInSeconds\":731871951},\"upstream\":{\"templates\":[{\"hubPattern\":\"ultxijjumfq\",\"eventPattern\":\"z\",\"categoryPattern\":\"qnmcjngzqdqx\",\"urlTemplate\":\"bjwgnyfus\",\"auth\":{}},{\"hubPattern\":\"vtuikzhajq\",\"eventPattern\":\"cfhmlrqryxyn\",\"categoryPattern\":\"zrdpsovwxznptgoe\",\"urlTemplate\":\"ybbabpfhvfsl\",\"auth\":{}},{\"hubPattern\":\"tjlrigjksky\",\"eventPattern\":\"oov\",\"categoryPattern\":\"dsxwaab\",\"urlTemplate\":\"mifrygznmma\",\"auth\":{}},{\"hubPattern\":\"zkzobgopxlhslnel\",\"eventPattern\":\"eixynllxecwcroj\",\"categoryPattern\":\"slhcawjutifd\",\"urlTemplate\":\"fmvigorqjbttzh\",\"auth\":{}}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"Trace\",\"ClientConnection\",\"Trace\",\"ClientConnection\"],\"deny\":[\"ServerConnection\",\"ServerConnection\"]},\"privateEndpoints\":[{\"name\":\"pzvcpopmxelnwc\",\"allow\":[\"RESTAPI\",\"RESTAPI\"],\"deny\":[\"Trace\"]},{\"name\":\"xm\",\"allow\":[\"Trace\",\"RESTAPI\"],\"deny\":[\"ServerConnection\",\"Trace\"]},{\"name\":\"uawxtzx\",\"allow\":[\"RESTAPI\",\"Trace\",\"Trace\",\"Trace\"],\"deny\":[\"ServerConnection\",\"Trace\",\"ServerConnection\",\"ClientConnection\"]},{\"name\":\"ushsp\",\"allow\":[\"ClientConnection\",\"Trace\",\"RESTAPI\"],\"deny\":[\"Trace\",\"ClientConnection\"]}],\"ipRules\":[{\"value\":\"sgzwywakoihknsm\",\"action\":\"Deny\"},{\"value\":\"ljhlnymzotq\",\"action\":\"Deny\"},{\"value\":\"zcbmqqvxmvwf\",\"action\":\"Deny\"},{\"value\":\"xo\",\"action\":\"Deny\"}]},\"publicNetworkAccess\":\"e\",\"disableLocalAuth\":false,\"disableAadAuth\":true,\"regionEndpointEnabled\":\"hcvsqltnzoi\",\"resourceStopped\":\"sxgnx\"},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{\"h\":{\"principalId\":\"xwdofdb\",\"clientId\":\"qxeiiqbimhtmwwi\"},\"embnkbw\":{\"principalId\":\"f\",\"clientId\":\"ofvwbcb\"}},\"principalId\":\"vxkdivqihebwtswb\",\"tenantId\":\"wfmdurage\"},\"location\":\"zvcjfelisdjubggb\",\"tags\":{\"m\":\"kxkbsazgakgacyr\",\"pv\":\"dmspof\",\"iofrzgbzjedmstk\":\"hryl\"},\"id\":\"nlvxbcuii\",\"name\":\"nktwfansnvpdibmi\",\"type\":\"ostbzbkiwb\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.signalRs().listByResourceGroup("mysu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zvcjfelisdjubggb", response.iterator().next().location()); - Assertions.assertEquals("kxkbsazgakgacyr", response.iterator().next().tags().get("m")); - Assertions.assertEquals("wq", response.iterator().next().sku().name()); - Assertions.assertEquals(SignalRSkuTier.PREMIUM, response.iterator().next().sku().tier()); - Assertions.assertEquals(496912008, response.iterator().next().sku().capacity()); - Assertions.assertEquals(ServiceKind.RAW_WEB_SOCKETS, response.iterator().next().kind()); - Assertions.assertEquals(ManagedIdentityType.NONE, response.iterator().next().identity().type()); - Assertions.assertEquals(true, response.iterator().next().tls().clientCertEnabled()); - Assertions - .assertEquals(FeatureFlags.ENABLE_MESSAGING_LOGS, response.iterator().next().features().get(0).flag()); - Assertions.assertEquals("qqihedsvqwthmk", response.iterator().next().features().get(0).value()); - Assertions.assertEquals("cysihs", response.iterator().next().features().get(0).properties().get("qcwdhoh")); - Assertions.assertEquals("iljhahz", response.iterator().next().liveTraceConfiguration().enabled()); - Assertions - .assertEquals("ndbnwieh", response.iterator().next().liveTraceConfiguration().categories().get(0).name()); - Assertions - .assertEquals( - "ewjwiuubw", response.iterator().next().liveTraceConfiguration().categories().get(0).enabled()); - Assertions - .assertEquals("pud", response.iterator().next().resourceLogConfiguration().categories().get(0).name()); - Assertions - .assertEquals( - "abtqwpwyawbzasqb", - response.iterator().next().resourceLogConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("gkyexaoguy", response.iterator().next().cors().allowedOrigins().get(0)); - Assertions.assertEquals(731871951, response.iterator().next().serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("ultxijjumfq", response.iterator().next().upstream().templates().get(0).hubPattern()); - Assertions.assertEquals("z", response.iterator().next().upstream().templates().get(0).eventPattern()); - Assertions - .assertEquals("qnmcjngzqdqx", response.iterator().next().upstream().templates().get(0).categoryPattern()); - Assertions.assertEquals("bjwgnyfus", response.iterator().next().upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(AclAction.ALLOW, response.iterator().next().networkACLs().defaultAction()); - Assertions - .assertEquals( - SignalRRequestType.TRACE, response.iterator().next().networkACLs().publicNetwork().allow().get(0)); - Assertions - .assertEquals( - SignalRRequestType.SERVER_CONNECTION, - response.iterator().next().networkACLs().publicNetwork().deny().get(0)); - Assertions - .assertEquals( - SignalRRequestType.RESTAPI, - response.iterator().next().networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions - .assertEquals( - SignalRRequestType.TRACE, - response.iterator().next().networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions - .assertEquals("pzvcpopmxelnwc", response.iterator().next().networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("sgzwywakoihknsm", response.iterator().next().networkACLs().ipRules().get(0).value()); - Assertions.assertEquals(AclAction.DENY, response.iterator().next().networkACLs().ipRules().get(0).action()); - Assertions.assertEquals("e", response.iterator().next().publicNetworkAccess()); - Assertions.assertEquals(false, response.iterator().next().disableLocalAuth()); - Assertions.assertEquals(true, response.iterator().next().disableAadAuth()); - Assertions.assertEquals("hcvsqltnzoi", response.iterator().next().regionEndpointEnabled()); - Assertions.assertEquals("sxgnx", response.iterator().next().resourceStopped()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListMockTests.java deleted file mode 100644 index 1d127dcd8dcc6..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListMockTests.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.AclAction; -import com.azure.resourcemanager.signalr.models.FeatureFlags; -import com.azure.resourcemanager.signalr.models.ManagedIdentityType; -import com.azure.resourcemanager.signalr.models.ServiceKind; -import com.azure.resourcemanager.signalr.models.SignalRRequestType; -import com.azure.resourcemanager.signalr.models.SignalRResource; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"sku\":{\"name\":\"mf\",\"tier\":\"Basic\",\"size\":\"asqvd\",\"family\":\"y\",\"capacity\":1460947945},\"properties\":{\"provisioningState\":\"Creating\",\"externalIP\":\"sqzhzbezkg\",\"hostName\":\"sidxasicdd\",\"publicPort\":83141311,\"serverPort\":1032831795,\"version\":\"gfmo\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{},\"groupIds\":[\"jeaahhvjhh\",\"akz\",\"bbjjidjksyxk\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"xevbl\",\"name\":\"jednlj\",\"type\":\"age\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"xuns\",\"privateLinkResourceId\":\"jbnkpp\",\"provisioningState\":\"Failed\",\"requestMessage\":\"nlsvxeiz\",\"status\":\"Disconnected\"},\"id\":\"lnsrmffe\",\"name\":\"cxcktpi\",\"type\":\"merteeammxqiek\"},{\"properties\":{\"groupId\":\"zddrt\",\"privateLinkResourceId\":\"g\",\"provisioningState\":\"Creating\",\"requestMessage\":\"mxvavrefdee\",\"status\":\"Pending\"},\"id\":\"uij\",\"name\":\"xtxsuwprtujw\",\"type\":\"awddjibab\"},{\"properties\":{\"groupId\":\"ititvtzeexavoxt\",\"privateLinkResourceId\":\"glecdmdqbwpypq\",\"provisioningState\":\"Creating\",\"requestMessage\":\"jacbslhhxudbxvod\",\"status\":\"Disconnected\"},\"id\":\"irudh\",\"name\":\"m\",\"type\":\"es\"},{\"properties\":{\"groupId\":\"dlpagzrcxfail\",\"privateLinkResourceId\":\"f\",\"provisioningState\":\"Succeeded\",\"requestMessage\":\"boxdfgsftufq\",\"status\":\"Rejected\"},\"id\":\"lnacgcc\",\"name\":\"knh\",\"type\":\"kizvytn\"}],\"tls\":{\"clientCertEnabled\":false},\"hostNamePrefix\":\"jraaeranokqguk\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"vbroylaxxu\",\"properties\":{\"jbjsvgjrwh\":\"isdos\",\"nwm\":\"yvycytdclxgcckn\",\"a\":\"tmvpdvjdhtt\",\"rjdqnsdfzp\":\"fedxihchrphkm\"}}],\"liveTraceConfiguration\":{\"enabled\":\"gkylkdghr\",\"categories\":[{\"name\":\"tl\",\"enabled\":\"ez\"},{\"name\":\"hokvbwnh\",\"enabled\":\"qlgehg\"},{\"name\":\"ipifhpfeoajvg\",\"enabled\":\"txjcsheafidlt\"},{\"name\":\"sr\",\"enabled\":\"mks\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"ftxfkf\",\"enabled\":\"gpr\"},{\"name\":\"tillucbiqtg\",\"enabled\":\"ohmcwsld\"},{\"name\":\"zetpwbra\",\"enabled\":\"libph\"},{\"name\":\"zmizakakan\",\"enabled\":\"p\"}]},\"cors\":{\"allowedOrigins\":[\"ha\",\"oylhjlmuoyxprimr\",\"opteecj\",\"eislstvasylwx\"]},\"serverless\":{\"connectionTimeoutInSeconds\":2139579132},\"upstream\":{\"templates\":[{\"hubPattern\":\"ohguuf\",\"eventPattern\":\"boyjathwt\",\"categoryPattern\":\"lbaemwmdxmeb\",\"urlTemplate\":\"jscjpahl\",\"auth\":{}},{\"hubPattern\":\"a\",\"eventPattern\":\"qxnmwmqt\",\"categoryPattern\":\"xyi\",\"urlTemplate\":\"ddtvqctt\",\"auth\":{}},{\"hubPattern\":\"jaeukmrsieekpn\",\"eventPattern\":\"aapm\",\"categoryPattern\":\"qmeqwigpibudqwyx\",\"urlTemplate\":\"beybpmzznrtffyaq\",\"auth\":{}},{\"hubPattern\":\"hheioqaqhvseuf\",\"eventPattern\":\"yrxpdlcgqls\",\"categoryPattern\":\"mjqfrddgamquhio\",\"urlTemplate\":\"rsjuivfcdisyir\",\"auth\":{}}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"ServerConnection\",\"Trace\",\"ServerConnection\"],\"deny\":[\"RESTAPI\",\"Trace\",\"ServerConnection\"]},\"privateEndpoints\":[{\"name\":\"qvwre\",\"allow\":[\"ClientConnection\"],\"deny\":[\"ServerConnection\",\"Trace\",\"ServerConnection\",\"Trace\"]},{\"name\":\"zlrpiqywncvj\",\"allow\":[\"ClientConnection\"],\"deny\":[\"RESTAPI\",\"ServerConnection\",\"ClientConnection\"]},{\"name\":\"htd\",\"allow\":[\"ClientConnection\",\"ClientConnection\",\"ServerConnection\"],\"deny\":[\"ServerConnection\",\"ServerConnection\",\"RESTAPI\",\"Trace\"]},{\"name\":\"murvzm\",\"allow\":[\"RESTAPI\",\"ServerConnection\",\"ServerConnection\"],\"deny\":[\"ServerConnection\",\"RESTAPI\",\"ClientConnection\",\"ServerConnection\"]}],\"ipRules\":[{\"value\":\"erbdk\",\"action\":\"Deny\"},{\"value\":\"di\",\"action\":\"Deny\"}]},\"publicNetworkAccess\":\"db\",\"disableLocalAuth\":false,\"disableAadAuth\":true,\"regionEndpointEnabled\":\"nfdgn\",\"resourceStopped\":\"cypuuwwlt\"},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"boldforobwj\":{\"principalId\":\"keifzzhmkdasv\",\"clientId\":\"yhbxcudchxgs\"}},\"principalId\":\"izbfhfovvacq\",\"tenantId\":\"tuodxeszabbelaw\"},\"location\":\"ua\",\"tags\":{\"cqucwyhahnom\":\"kwrrwo\",\"utlwexxwla\":\"rkywuhpsvfuu\",\"yb\":\"niexzsrzpgepq\"},\"id\":\"wwpgdakchzyvlixq\",\"name\":\"rkcxkj\",\"type\":\"bn\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.signalRs().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ua", response.iterator().next().location()); - Assertions.assertEquals("kwrrwo", response.iterator().next().tags().get("cqucwyhahnom")); - Assertions.assertEquals("mf", response.iterator().next().sku().name()); - Assertions.assertEquals(SignalRSkuTier.BASIC, response.iterator().next().sku().tier()); - Assertions.assertEquals(1460947945, response.iterator().next().sku().capacity()); - Assertions.assertEquals(ServiceKind.RAW_WEB_SOCKETS, response.iterator().next().kind()); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); - Assertions.assertEquals(false, response.iterator().next().tls().clientCertEnabled()); - Assertions - .assertEquals(FeatureFlags.ENABLE_MESSAGING_LOGS, response.iterator().next().features().get(0).flag()); - Assertions.assertEquals("vbroylaxxu", response.iterator().next().features().get(0).value()); - Assertions.assertEquals("isdos", response.iterator().next().features().get(0).properties().get("jbjsvgjrwh")); - Assertions.assertEquals("gkylkdghr", response.iterator().next().liveTraceConfiguration().enabled()); - Assertions.assertEquals("tl", response.iterator().next().liveTraceConfiguration().categories().get(0).name()); - Assertions - .assertEquals("ez", response.iterator().next().liveTraceConfiguration().categories().get(0).enabled()); - Assertions - .assertEquals("ftxfkf", response.iterator().next().resourceLogConfiguration().categories().get(0).name()); - Assertions - .assertEquals("gpr", response.iterator().next().resourceLogConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("ha", response.iterator().next().cors().allowedOrigins().get(0)); - Assertions.assertEquals(2139579132, response.iterator().next().serverless().connectionTimeoutInSeconds()); - Assertions.assertEquals("ohguuf", response.iterator().next().upstream().templates().get(0).hubPattern()); - Assertions.assertEquals("boyjathwt", response.iterator().next().upstream().templates().get(0).eventPattern()); - Assertions - .assertEquals("lbaemwmdxmeb", response.iterator().next().upstream().templates().get(0).categoryPattern()); - Assertions.assertEquals("jscjpahl", response.iterator().next().upstream().templates().get(0).urlTemplate()); - Assertions.assertEquals(AclAction.DENY, response.iterator().next().networkACLs().defaultAction()); - Assertions - .assertEquals( - SignalRRequestType.SERVER_CONNECTION, - response.iterator().next().networkACLs().publicNetwork().allow().get(0)); - Assertions - .assertEquals( - SignalRRequestType.RESTAPI, response.iterator().next().networkACLs().publicNetwork().deny().get(0)); - Assertions - .assertEquals( - SignalRRequestType.CLIENT_CONNECTION, - response.iterator().next().networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions - .assertEquals( - SignalRRequestType.SERVER_CONNECTION, - response.iterator().next().networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("qvwre", response.iterator().next().networkACLs().privateEndpoints().get(0).name()); - Assertions.assertEquals("erbdk", response.iterator().next().networkACLs().ipRules().get(0).value()); - Assertions.assertEquals(AclAction.DENY, response.iterator().next().networkACLs().ipRules().get(0).action()); - Assertions.assertEquals("db", response.iterator().next().publicNetworkAccess()); - Assertions.assertEquals(false, response.iterator().next().disableLocalAuth()); - Assertions.assertEquals(true, response.iterator().next().disableAadAuth()); - Assertions.assertEquals("nfdgn", response.iterator().next().regionEndpointEnabled()); - Assertions.assertEquals("cypuuwwlt", response.iterator().next().resourceStopped()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListReplicaSkusWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListReplicaSkusWithResponseMockTests.java deleted file mode 100644 index 63c2137fc6886..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListReplicaSkusWithResponseMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.SkuList; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRsListReplicaSkusWithResponseMockTests { - @Test - public void testListReplicaSkusWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"resourceType\":\"ohqfzizv\",\"sku\":{\"name\":\"mmkjsvthnwpztek\",\"tier\":\"Basic\",\"size\":\"ibiattg\",\"family\":\"ucfotangcf\",\"capacity\":821874250},\"capacity\":{\"minimum\":1077682035,\"maximum\":809427492,\"default\":1031306393,\"allowedValues\":[2124351290],\"scaleType\":\"None\"}},{\"resourceType\":\"qwm\",\"sku\":{\"name\":\"xnjmxm\",\"tier\":\"Standard\",\"size\":\"dtcvcl\",\"family\":\"npdkv\",\"capacity\":1186529927},\"capacity\":{\"minimum\":979398617,\"maximum\":269435268,\"default\":214346592,\"allowedValues\":[874901455,593163747,203185987],\"scaleType\":\"Manual\"}},{\"resourceType\":\"eiknpgo\",\"sku\":{\"name\":\"jiuqhibtozi\",\"tier\":\"Premium\",\"size\":\"edmurrxxge\",\"family\":\"ktvqylkmqpzoy\",\"capacity\":2005467515},\"capacity\":{\"minimum\":1241682628,\"maximum\":774397044,\"default\":125495169,\"allowedValues\":[325536454],\"scaleType\":\"None\"}},{\"resourceType\":\"injipnwjf\",\"sku\":{\"name\":\"qlafcbahhpzpofoi\",\"tier\":\"Free\",\"size\":\"filkmkkholv\",\"family\":\"dviauogp\",\"capacity\":1546671556},\"capacity\":{\"minimum\":1965289703,\"maximum\":887059851,\"default\":1904382549,\"allowedValues\":[2049992940,1475609054],\"scaleType\":\"None\"}}],\"nextLink\":\"n\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SkuList response = - manager - .signalRs() - .listReplicaSkusWithResponse( - "qcbfrmbodths", "qgvriibakcla", "jfrnxousxauzlwv", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListSkusWithResponseMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListSkusWithResponseMockTests.java deleted file mode 100644 index 7e6405ca4d0b1..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListSkusWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.SkuList; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SignalRsListSkusWithResponseMockTests { - @Test - public void testListSkusWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"resourceType\":\"fhxwrsne\",\"sku\":{\"name\":\"ozqvbubqmam\",\"tier\":\"Standard\",\"size\":\"xhxzgazttaboidvm\",\"family\":\"hppubowsepdfgkmt\",\"capacity\":2120323807},\"capacity\":{\"minimum\":343818307,\"maximum\":784188527,\"default\":151823445,\"allowedValues\":[812344780,1780706475,1263292916,155784561],\"scaleType\":\"None\"}},{\"resourceType\":\"kauxof\",\"sku\":{\"name\":\"fphwpnu\",\"tier\":\"Basic\",\"size\":\"wzejywhslw\",\"family\":\"jpllndnpdwrpq\",\"capacity\":822689438},\"capacity\":{\"minimum\":1169799061,\"maximum\":813335965,\"default\":1546371971,\"allowedValues\":[291808500,1701232505],\"scaleType\":\"Manual\"}},{\"resourceType\":\"pococtfjgt\",\"sku\":{\"name\":\"rjvzuyt\",\"tier\":\"Basic\",\"size\":\"muowolbauiro\",\"family\":\"ons\",\"capacity\":269423729},\"capacity\":{\"minimum\":1957887263,\"maximum\":2022776068,\"default\":1491253083,\"allowedValues\":[1937164138,1566256657,850455603,1627836178],\"scaleType\":\"Manual\"}}],\"nextLink\":\"mjfjmyccxlzhcox\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SkuList response = - manager - .signalRs() - .listSkusWithResponse("hmnxhkxjqi", "wrweoo", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuCapacityTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuCapacityTests.java deleted file mode 100644 index 593b6fd51192e..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuCapacityTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.SkuCapacity; - -public final class SkuCapacityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkuCapacity model = - BinaryData - .fromString( - "{\"minimum\":1064188609,\"maximum\":2040452335,\"default\":1034589560,\"allowedValues\":[1771791056],\"scaleType\":\"Manual\"}") - .toObject(SkuCapacity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuCapacity model = new SkuCapacity(); - model = BinaryData.fromObject(model).toObject(SkuCapacity.class); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuListInnerTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuListInnerTests.java deleted file mode 100644 index 1ab7c0c5746a1..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuListInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.fluent.models.SkuListInner; - -public final class SkuListInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkuListInner model = - BinaryData - .fromString( - "{\"value\":[{\"resourceType\":\"klxubyja\",\"sku\":{\"name\":\"mmfblcqcuubgqib\",\"tier\":\"Free\",\"size\":\"metttwgd\",\"family\":\"qxihhrmooi\",\"capacity\":1309261520},\"capacity\":{\"minimum\":1524776028,\"maximum\":783149271,\"default\":1964101220,\"allowedValues\":[814674558,1341869205,2081194366],\"scaleType\":\"Automatic\"}},{\"resourceType\":\"petogebjox\",\"sku\":{\"name\":\"hvnh\",\"tier\":\"Standard\",\"size\":\"q\",\"family\":\"kzjcjbtrgae\",\"capacity\":1032283606},\"capacity\":{\"minimum\":1534669686,\"maximum\":279366719,\"default\":105700990,\"allowedValues\":[1344524900,1668662925,480275151],\"scaleType\":\"Automatic\"}}],\"nextLink\":\"kxzt\"}") - .toObject(SkuListInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuListInner model = new SkuListInner(); - model = BinaryData.fromObject(model).toObject(SkuListInner.class); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuTests.java deleted file mode 100644 index ff0945034576e..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SkuTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.Sku; - -public final class SkuTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Sku model = - BinaryData - .fromString( - "{\"resourceType\":\"ob\",\"sku\":{\"name\":\"ft\",\"tier\":\"Premium\",\"size\":\"cwq\",\"family\":\"imaq\",\"capacity\":1167127831},\"capacity\":{\"minimum\":1484369172,\"maximum\":107725068,\"default\":1611708700,\"allowedValues\":[444207915,1128673192,84498484],\"scaleType\":\"Manual\"}}") - .toObject(Sku.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Sku model = new Sku(); - model = BinaryData.fromObject(model).toObject(Sku.class); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UpstreamAuthSettingsTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UpstreamAuthSettingsTests.java deleted file mode 100644 index ad3f9210d2b91..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UpstreamAuthSettingsTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ManagedIdentitySettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthType; -import org.junit.jupiter.api.Assertions; - -public final class UpstreamAuthSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpstreamAuthSettings model = - BinaryData - .fromString("{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"ojfmwnco\"}}") - .toObject(UpstreamAuthSettings.class); - Assertions.assertEquals(UpstreamAuthType.MANAGED_IDENTITY, model.type()); - Assertions.assertEquals("ojfmwnco", model.managedIdentity().resource()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpstreamAuthSettings model = - new UpstreamAuthSettings() - .withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity(new ManagedIdentitySettings().withResource("ojfmwnco")); - model = BinaryData.fromObject(model).toObject(UpstreamAuthSettings.class); - Assertions.assertEquals(UpstreamAuthType.MANAGED_IDENTITY, model.type()); - Assertions.assertEquals("ojfmwnco", model.managedIdentity().resource()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UpstreamTemplateTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UpstreamTemplateTests.java deleted file mode 100644 index 057399119f8bd..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UpstreamTemplateTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.ManagedIdentitySettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthSettings; -import com.azure.resourcemanager.signalr.models.UpstreamAuthType; -import com.azure.resourcemanager.signalr.models.UpstreamTemplate; -import org.junit.jupiter.api.Assertions; - -public final class UpstreamTemplateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpstreamTemplate model = - BinaryData - .fromString( - "{\"hubPattern\":\"vwxnbkfe\",\"eventPattern\":\"xscyhwzdgirujbz\",\"categoryPattern\":\"mvzzbtdcqvp\",\"urlTemplate\":\"iyujviylwdshfs\",\"auth\":{\"type\":\"None\",\"managedIdentity\":{\"resource\":\"efr\"}}}") - .toObject(UpstreamTemplate.class); - Assertions.assertEquals("vwxnbkfe", model.hubPattern()); - Assertions.assertEquals("xscyhwzdgirujbz", model.eventPattern()); - Assertions.assertEquals("mvzzbtdcqvp", model.categoryPattern()); - Assertions.assertEquals("iyujviylwdshfs", model.urlTemplate()); - Assertions.assertEquals(UpstreamAuthType.NONE, model.auth().type()); - Assertions.assertEquals("efr", model.auth().managedIdentity().resource()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpstreamTemplate model = - new UpstreamTemplate() - .withHubPattern("vwxnbkfe") - .withEventPattern("xscyhwzdgirujbz") - .withCategoryPattern("mvzzbtdcqvp") - .withUrlTemplate("iyujviylwdshfs") - .withAuth( - new UpstreamAuthSettings() - .withType(UpstreamAuthType.NONE) - .withManagedIdentity(new ManagedIdentitySettings().withResource("efr"))); - model = BinaryData.fromObject(model).toObject(UpstreamTemplate.class); - Assertions.assertEquals("vwxnbkfe", model.hubPattern()); - Assertions.assertEquals("xscyhwzdgirujbz", model.eventPattern()); - Assertions.assertEquals("mvzzbtdcqvp", model.categoryPattern()); - Assertions.assertEquals("iyujviylwdshfs", model.urlTemplate()); - Assertions.assertEquals(UpstreamAuthType.NONE, model.auth().type()); - Assertions.assertEquals("efr", model.auth().managedIdentity().resource()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UsagesListMockTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UsagesListMockTests.java deleted file mode 100644 index e623e240ca870..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UsagesListMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.SignalRUsage; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class UsagesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"id\":\"tgjcsgguxheml\",\"currentValue\":571555646638099029,\"limit\":5923731066969155308,\"name\":{\"value\":\"fbukklelssxblycs\",\"localizedValue\":\"ujksrlsmdesqplpv\"},\"unit\":\"cdoewbidyv\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SignalRManager manager = - SignalRManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.usages().list("tmhdroznnhdr", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("tgjcsgguxheml", response.iterator().next().id()); - Assertions.assertEquals(571555646638099029L, response.iterator().next().currentValue()); - Assertions.assertEquals(5923731066969155308L, response.iterator().next().limit()); - Assertions.assertEquals("fbukklelssxblycs", response.iterator().next().name().value()); - Assertions.assertEquals("ujksrlsmdesqplpv", response.iterator().next().name().localizedValue()); - Assertions.assertEquals("cdoewbidyv", response.iterator().next().unit()); - } -} diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UserAssignedIdentityPropertyTests.java b/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UserAssignedIdentityPropertyTests.java deleted file mode 100644 index 2a47b03d1bb5d..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/UserAssignedIdentityPropertyTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.signalr.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.signalr.models.UserAssignedIdentityProperty; - -public final class UserAssignedIdentityPropertyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentityProperty model = - BinaryData - .fromString("{\"principalId\":\"dvk\",\"clientId\":\"ejd\"}") - .toObject(UserAssignedIdentityProperty.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedIdentityProperty model = new UserAssignedIdentityProperty(); - model = BinaryData.fromObject(model).toObject(UserAssignedIdentityProperty.class); - } -}