From 2f55098270a77e6456139a5c9944b97be38316a8 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 24 Dec 2024 03:29:01 +0000 Subject: [PATCH 1/3] [Automation] External Change --- eng/versioning/version_client.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 4f23cc8b24d2b..e1c8e7ebff562 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -335,7 +335,7 @@ com.azure.resourcemanager:azure-resourcemanager-consumption;1.0.0-beta.4;1.0.0 com.azure.resourcemanager:azure-resourcemanager-commerce;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-billing;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-batchai;1.0.0-beta.1;1.0.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-signalr;1.0.0-beta.9;1.0.0-beta.10 +com.azure.resourcemanager:azure-resourcemanager-signalr;1.0.0-beta.9;1.0.0 com.azure.resourcemanager:azure-resourcemanager-cognitiveservices;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-customerinsights;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-databox;1.0.0;1.1.0-beta.1 From bdd982d69b76cc5b0a87b358c0ce97505cf395cf Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 24 Dec 2024 03:29:08 +0000 Subject: [PATCH 2/3] [Automation] Generate Fluent Lite from Swagger signalr#package-2023-02-01 --- .../CHANGELOG.md | 53 +- .../azure-resourcemanager-signalr/README.md | 4 +- .../azure-resourcemanager-signalr/SAMPLE.md | 324 +--- .../azure-resourcemanager-signalr/pom.xml | 5 +- .../signalr/SignalRManager.java | 22 +- .../SignalRCustomCertificatesClient.java | 30 +- .../fluent/SignalRCustomDomainsClient.java | 36 +- .../fluent/SignalRManagementClient.java | 10 +- ...gnalRPrivateEndpointConnectionsClient.java | 54 +- .../SignalRPrivateLinkResourcesClient.java | 6 +- .../signalr/fluent/SignalRReplicasClient.java | 293 ---- ...gnalRSharedPrivateLinkResourcesClient.java | 36 +- .../signalr/fluent/SignalRsClient.java | 114 +- .../fluent/models/CustomCertificateInner.java | 24 +- .../fluent/models/CustomDomainInner.java | 24 +- .../PrivateEndpointConnectionInner.java | 28 +- .../models/PrivateLinkResourceInner.java | 17 - .../signalr/fluent/models/ReplicaInner.java | 276 ---- .../fluent/models/ReplicaProperties.java | 150 -- .../SharedPrivateLinkResourceInner.java | 28 +- .../fluent/models/SignalRProperties.java | 71 - .../fluent/models/SignalRResourceInner.java | 66 +- .../PrivateLinkResourceImpl.java | 5 - .../signalr/implementation/ReplicaImpl.java | 198 --- .../SignalRCustomCertificatesClientImpl.java | 78 +- .../SignalRCustomDomainsClientImpl.java | 93 +- .../SignalRManagementClientBuilder.java | 6 +- .../SignalRManagementClientImpl.java | 27 +- ...RPrivateEndpointConnectionsClientImpl.java | 138 +- ...SignalRPrivateLinkResourcesClientImpl.java | 18 +- .../SignalRReplicasClientImpl.java | 1308 ----------------- .../implementation/SignalRReplicasImpl.java | 165 --- .../implementation/SignalRResourceImpl.java | 18 - ...RSharedPrivateLinkResourcesClientImpl.java | 93 +- .../implementation/SignalRsClientImpl.java | 354 ++--- .../signalr/implementation/SignalRsImpl.java | 21 - .../signalr/models/CustomCertificate.java | 5 +- .../signalr/models/CustomDomain.java | 5 +- .../signalr/models/IpRule.java | 121 -- .../models/NameAvailabilityParameters.java | 13 +- .../models/PrivateEndpointConnection.java | 2 +- .../signalr/models/PrivateLinkResource.java | 8 - .../signalr/models/Replica.java | 381 ----- .../signalr/models/ReplicaList.java | 130 -- .../signalr/models/ServiceKind.java | 2 +- .../models/SharedPrivateLinkResource.java | 5 +- .../models/SignalRCustomCertificates.java | 18 +- .../signalr/models/SignalRCustomDomains.java | 18 +- .../signalr/models/SignalRNetworkACLs.java | 32 - .../SignalRPrivateEndpointConnections.java | 42 +- .../models/SignalRPrivateLinkResources.java | 6 +- .../signalr/models/SignalRReplicas.java | 172 --- .../signalr/models/SignalRResource.java | 110 +- .../SignalRSharedPrivateLinkResources.java | 18 +- .../signalr/models/SignalRTlsSettings.java | 9 +- .../signalr/models/SignalRs.java | 70 +- .../proxy-config.json | 2 +- .../generated/OperationsListSamples.java | 3 +- .../SignalRCheckNameAvailabilitySamples.java | 3 +- .../SignalRCreateOrUpdateSamples.java | 4 +- ...stomCertificatesCreateOrUpdateSamples.java | 3 +- ...ignalRCustomCertificatesDeleteSamples.java | 3 +- .../SignalRCustomCertificatesGetSamples.java | 3 +- .../SignalRCustomCertificatesListSamples.java | 3 +- ...alRCustomDomainsCreateOrUpdateSamples.java | 3 +- .../SignalRCustomDomainsDeleteSamples.java | 3 +- .../SignalRCustomDomainsGetSamples.java | 3 +- .../SignalRCustomDomainsListSamples.java | 3 +- .../generated/SignalRDeleteSamples.java | 3 +- .../SignalRGetByResourceGroupSamples.java | 3 +- .../SignalRListByResourceGroupSamples.java | 3 +- .../generated/SignalRListKeysSamples.java | 3 +- .../SignalRListReplicaSkusSamples.java | 26 - .../signalr/generated/SignalRListSamples.java | 3 +- .../generated/SignalRListSkusSamples.java | 3 +- ...ivateEndpointConnectionsDeleteSamples.java | 3 +- ...RPrivateEndpointConnectionsGetSamples.java | 3 +- ...PrivateEndpointConnectionsListSamples.java | 3 +- ...ivateEndpointConnectionsUpdateSamples.java | 6 +- ...ignalRPrivateLinkResourcesListSamples.java | 3 +- .../SignalRRegenerateKeySamples.java | 4 +- .../SignalRReplicasCreateOrUpdateSamples.java | 48 - .../SignalRReplicasDeleteSamples.java | 26 - .../generated/SignalRReplicasGetSamples.java | 26 - .../generated/SignalRReplicasListSamples.java | 24 - .../SignalRReplicasRestartSamples.java | 26 - .../SignalRReplicasUpdateSamples.java | 50 - .../generated/SignalRRestartSamples.java | 3 +- ...ateLinkResourcesCreateOrUpdateSamples.java | 3 +- ...aredPrivateLinkResourcesDeleteSamples.java | 3 +- ...RSharedPrivateLinkResourcesGetSamples.java | 3 +- ...SharedPrivateLinkResourcesListSamples.java | 3 +- .../generated/SignalRUpdateSamples.java | 3 +- .../signalr/generated/UsagesListSamples.java | 3 +- .../generated/CustomDomainInnerTests.java | 14 +- .../generated/CustomDomainListTests.java | 23 +- .../CustomDomainPropertiesTests.java | 17 +- .../signalr/generated/IpRuleTests.java | 28 - .../generated/LiveTraceCategoryTests.java | 12 +- .../LiveTraceConfigurationTests.java | 23 +- .../ManagedIdentitySettingsTests.java | 8 +- .../generated/ManagedIdentityTests.java | 12 +- .../signalr/generated/NetworkAclTests.java | 20 +- .../generated/OperationsListMockTests.java | 34 +- .../generated/PrivateEndpointAclTests.java | 23 +- .../PrivateEndpointConnectionInnerTests.java | 26 +- .../PrivateEndpointConnectionListTests.java | 49 +- ...vateEndpointConnectionPropertiesTests.java | 26 +- .../generated/PrivateEndpointTests.java | 8 +- .../PrivateLinkResourceInnerTests.java | 60 +- .../PrivateLinkResourceListTests.java | 79 +- .../PrivateLinkResourcePropertiesTests.java | 50 +- ...rivateLinkServiceConnectionStateTests.java | 15 +- .../signalr/generated/ReplicaInnerTests.java | 59 - .../signalr/generated/ReplicaListTests.java | 72 - .../generated/ReplicaPropertiesTests.java | 29 - .../generated/ResourceLogCategoryTests.java | 14 +- .../ResourceLogConfigurationTests.java | 16 +- .../generated/ResourceReferenceTests.java | 8 +- .../generated/ServerlessSettingsTests.java | 8 +- .../ServerlessUpstreamSettingsTests.java | 64 +- ...blePrivateLinkResourcePropertiesTests.java | 20 +- ...ShareablePrivateLinkResourceTypeTests.java | 26 +- .../SharedPrivateLinkResourceInnerTests.java | 20 +- .../SharedPrivateLinkResourceListTests.java | 38 +- ...redPrivateLinkResourcePropertiesTests.java | 20 +- .../generated/SignalRCorsSettingsTests.java | 11 +- ...rtificatesDeleteWithResponseMockTests.java | 2 +- .../SignalRCustomDomainsDeleteMockTests.java | 3 +- ...CustomDomainsGetWithResponseMockTests.java | 8 +- .../SignalRCustomDomainsListMockTests.java | 8 +- .../generated/SignalRFeatureTests.java | 20 +- .../generated/SignalRNetworkACLsTests.java | 65 +- ...ateEndpointConnectionsDeleteMockTests.java | 2 +- ...ntConnectionsGetWithResponseMockTests.java | 12 +- ...ivateEndpointConnectionsListMockTests.java | 12 +- ...onnectionsUpdateWithResponseMockTests.java | 18 +- ...nalRPrivateLinkResourcesListMockTests.java | 21 +- .../generated/SignalRPropertiesTests.java | 192 ++- ...ignalRReplicasCreateOrUpdateMockTests.java | 68 - ...lRReplicasDeleteWithResponseMockTests.java | 33 - ...gnalRReplicasGetWithResponseMockTests.java | 46 - .../SignalRReplicasListMockTests.java | 46 - .../generated/SignalRResourceInnerTests.java | 77 +- .../generated/SignalRResourceListTests.java | 448 +++--- ...eLinkResourcesCreateOrUpdateMockTests.java | 18 +- ...edPrivateLinkResourcesDeleteMockTests.java | 2 +- ...LinkResourcesGetWithResponseMockTests.java | 10 +- ...aredPrivateLinkResourcesListMockTests.java | 10 +- ...NameAvailabilityWithResponseMockTests.java | 10 +- .../SignalRsCreateOrUpdateMockTests.java | 191 ++- .../generated/SignalRsDeleteMockTests.java | 2 +- ...tByResourceGroupWithResponseMockTests.java | 56 +- .../SignalRsListByResourceGroupMockTests.java | 60 +- .../generated/SignalRsListMockTests.java | 60 +- ...sListReplicaSkusWithResponseMockTests.java | 38 - ...SignalRsListSkusWithResponseMockTests.java | 4 +- .../signalr/generated/SkuCapacityTests.java | 2 +- .../signalr/generated/SkuListInnerTests.java | 2 +- .../signalr/generated/SkuTests.java | 2 +- .../generated/UpstreamAuthSettingsTests.java | 8 +- .../generated/UpstreamTemplateTests.java | 38 +- .../generated/UsagesListMockTests.java | 17 +- .../UserAssignedIdentityPropertyTests.java | 5 +- 164 files changed, 1883 insertions(+), 6348 deletions(-) delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicasClient.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaInner.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaProperties.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/ReplicaImpl.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasClientImpl.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasImpl.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/IpRule.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Replica.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ReplicaList.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicas.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListReplicaSkusSamples.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateSamples.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteSamples.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetSamples.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListSamples.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasRestartSamples.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasUpdateSamples.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/IpRuleTests.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaInnerTests.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaListTests.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaPropertiesTests.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateMockTests.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteWithResponseMockTests.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetWithResponseMockTests.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListMockTests.java delete mode 100644 sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListReplicaSkusWithResponseMockTests.java diff --git a/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md b/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md index 6f287955e2686..788a7370c7b2d 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md +++ b/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md @@ -1,14 +1,59 @@ # Release History -## 1.0.0-beta.10 (Unreleased) +## 1.0.0 (2024-12-24) -### Features Added +- 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-02-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.SignalRReplicas` was removed + +#### `models.Replica` was removed + +#### `models.IpRule` was removed + +#### `models.Replica$Update` was removed + +#### `models.ReplicaList` was removed + +#### `models.Replica$DefinitionStages` was removed + +#### `models.Replica$UpdateStages` was removed + +#### `models.Replica$Definition` was removed + +#### `models.SignalRs` was modified + +* `listReplicaSkus(java.lang.String,java.lang.String,java.lang.String)` was removed +* `listReplicaSkusWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed + +#### `models.PrivateLinkResource` was modified + +* `systemData()` was removed + +#### `models.SignalRNetworkACLs` was modified + +* `ipRules()` was removed +* `withIpRules(java.util.List)` was removed + +#### `models.SignalRResource$Definition` was modified + +* `withResourceStopped(java.lang.String)` was removed +* `withRegionEndpointEnabled(java.lang.String)` was removed + +#### `models.SignalRResource` was modified + +* `regionEndpointEnabled()` was removed +* `resourceStopped()` was removed + +#### `models.SignalRResource$Update` was modified + +* `withResourceStopped(java.lang.String)` was removed +* `withRegionEndpointEnabled(java.lang.String)` was removed + +#### `SignalRManager` was modified -### Other Changes +* `signalRReplicas()` was removed ## 1.0.0-beta.9 (2024-10-31) diff --git a/sdk/signalr/azure-resourcemanager-signalr/README.md b/sdk/signalr/azure-resourcemanager-signalr/README.md index cf9d1762fd428..cb0bb2247bcbd 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-2023-02-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.9 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md b/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md index 929f838dc47d8..b736199f2b045 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md +++ b/sdk/signalr/azure-resourcemanager-signalr/SAMPLE.md @@ -14,7 +14,6 @@ - [List](#signalr_list) - [ListByResourceGroup](#signalr_listbyresourcegroup) - [ListKeys](#signalr_listkeys) -- [ListReplicaSkus](#signalr_listreplicaskus) - [ListSkus](#signalr_listskus) - [RegenerateKey](#signalr_regeneratekey) - [Restart](#signalr_restart) @@ -45,15 +44,6 @@ - [List](#signalrprivatelinkresources_list) -## SignalRReplicas - -- [CreateOrUpdate](#signalrreplicas_createorupdate) -- [Delete](#signalrreplicas_delete) -- [Get](#signalrreplicas_get) -- [List](#signalrreplicas_list) -- [Restart](#signalrreplicas_restart) -- [Update](#signalrreplicas_update) - ## SignalRSharedPrivateLinkResources - [CreateOrUpdate](#signalrsharedprivatelinkresources_createorupdate) @@ -73,8 +63,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * Operations_List.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/Operations_List.json */ /** * Sample code: Operations_List. @@ -97,8 +86,7 @@ import com.azure.resourcemanager.signalr.models.NameAvailabilityParameters; */ public final class SignalRCheckNameAvailabilitySamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalR_CheckNameAvailability.json */ /** @@ -151,8 +139,8 @@ import java.util.Map; public final class SignalRCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_CreateOrUpdate.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_CreateOrUpdate + * .json */ /** * Sample code: SignalR_CreateOrUpdate. @@ -228,8 +216,7 @@ public final class SignalRCreateOrUpdateSamples { public final class SignalRDeleteSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_Delete.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_Delete.json */ /** * Sample code: SignalR_Delete. @@ -251,8 +238,7 @@ public final class SignalRDeleteSamples { public final class SignalRGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Get. - * json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_Get.json */ /** * Sample code: SignalR_Get. @@ -274,8 +260,7 @@ public final class SignalRGetByResourceGroupSamples { */ public final class SignalRListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalR_ListBySubscription.json */ /** @@ -297,8 +282,7 @@ public final class SignalRListSamples { */ public final class SignalRListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalR_ListByResourceGroup.json */ /** @@ -321,8 +305,7 @@ public final class SignalRListByResourceGroupSamples { public final class SignalRListKeysSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_ListKeys.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_ListKeys.json */ /** * Sample code: SignalR_ListKeys. @@ -336,31 +319,6 @@ public final class SignalRListKeysSamples { } ``` -### SignalR_ListReplicaSkus - -```java -/** - * 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 - */ - /** - * 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); - } -} -``` - ### SignalR_ListSkus ```java @@ -370,8 +328,7 @@ public final class SignalRListReplicaSkusSamples { public final class SignalRListSkusSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_ListSkus.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_ListSkus.json */ /** * Sample code: SignalR_ListSkus. @@ -397,8 +354,8 @@ import com.azure.resourcemanager.signalr.models.RegenerateKeyParameters; public final class SignalRRegenerateKeySamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_RegenerateKey.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_RegenerateKey. + * json */ /** * Sample code: SignalR_RegenerateKey. @@ -422,8 +379,7 @@ public final class SignalRRegenerateKeySamples { public final class SignalRRestartSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_Restart.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_Restart.json */ /** * Sample code: SignalR_Restart. @@ -471,8 +427,7 @@ import java.util.Map; public final class SignalRUpdateSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_Update.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_Update.json */ /** * Sample code: SignalR_Update. @@ -546,8 +501,7 @@ public final class SignalRUpdateSamples { */ public final class SignalRCustomCertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomCertificates_CreateOrUpdate.json */ /** @@ -576,8 +530,7 @@ public final class SignalRCustomCertificatesCreateOrUpdateSamples { */ public final class SignalRCustomCertificatesDeleteSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomCertificates_Delete.json */ /** @@ -600,8 +553,7 @@ public final class SignalRCustomCertificatesDeleteSamples { */ public final class SignalRCustomCertificatesGetSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomCertificates_Get.json */ /** @@ -624,8 +576,7 @@ public final class SignalRCustomCertificatesGetSamples { */ public final class SignalRCustomCertificatesListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomCertificates_List.json */ /** @@ -650,8 +601,7 @@ import com.azure.resourcemanager.signalr.models.ResourceReference; */ public final class SignalRCustomDomainsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomDomains_CreateOrUpdate.json */ /** @@ -679,8 +629,7 @@ public final class SignalRCustomDomainsCreateOrUpdateSamples { */ public final class SignalRCustomDomainsDeleteSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomDomains_Delete.json */ /** @@ -703,8 +652,7 @@ public final class SignalRCustomDomainsDeleteSamples { */ public final class SignalRCustomDomainsGetSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomDomains_Get.json */ /** @@ -727,8 +675,7 @@ public final class SignalRCustomDomainsGetSamples { */ public final class SignalRCustomDomainsListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomDomains_List.json */ /** @@ -750,8 +697,7 @@ public final class SignalRCustomDomainsListSamples { */ public final class SignalRPrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateEndpointConnections_Delete.json */ /** @@ -776,8 +722,7 @@ public final class SignalRPrivateEndpointConnectionsDeleteSamples { */ public final class SignalRPrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateEndpointConnections_Get.json */ /** @@ -801,8 +746,7 @@ public final class SignalRPrivateEndpointConnectionsGetSamples { */ public final class SignalRPrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateEndpointConnections_List.json */ /** @@ -830,8 +774,7 @@ import com.azure.resourcemanager.signalr.models.PrivateLinkServiceConnectionStat */ public final class SignalRPrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateEndpointConnections_Update.json */ /** @@ -844,7 +787,8 @@ public final class SignalRPrivateEndpointConnectionsUpdateSamples { manager.signalRPrivateEndpointConnections() .updateWithResponse("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", "myResourceGroup", "mySignalRService", - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint")) .withPrivateLinkServiceConnectionState( new PrivateLinkServiceConnectionState().withStatus(PrivateLinkServiceConnectionStatus.APPROVED) .withActionsRequired("None")), @@ -861,8 +805,7 @@ public final class SignalRPrivateEndpointConnectionsUpdateSamples { */ public final class SignalRPrivateLinkResourcesListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateLinkResources_List.json */ /** @@ -877,200 +820,6 @@ public final class SignalRPrivateLinkResourcesListSamples { } ``` -### SignalRReplicas_CreateOrUpdate - -```java -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.util.HashMap; -import java.util.Map; - -/** - * 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 - */ - /** - * Sample code: SignalRReplicas_CreateOrUpdate. - * - * @param manager Entry point to SignalRManager. - */ - public static void signalRReplicasCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager.signalRReplicas() - .define("mySignalRService-eastus") - .withRegion("eastus") - .withExistingSignalR("myResourceGroup", "mySignalRService") - .withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withSku(new ResourceSku().withName("Premium_P1").withTier(SignalRSkuTier.PREMIUM).withCapacity(1)) - .withResourceStopped("false") - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} -``` - -### SignalRReplicas_Delete - -```java -/** - * 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 - */ - /** - * 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); - } -} -``` - -### SignalRReplicas_Get - -```java -/** - * 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 - */ - /** - * 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); - } -} -``` - -### SignalRReplicas_List - -```java -/** - * 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 - */ - /** - * Sample code: SignalRReplicas_List. - * - * @param manager Entry point to SignalRManager. - */ - public static void signalRReplicasList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager.signalRReplicas().list("myResourceGroup", "mySignalRService", com.azure.core.util.Context.NONE); - } -} -``` - -### SignalRReplicas_Restart - -```java -/** - * 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 - */ - /** - * 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); - } -} -``` - -### SignalRReplicas_Update - -```java -import com.azure.resourcemanager.signalr.models.Replica; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.util.HashMap; -import java.util.Map; - -/** - * 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 - */ - /** - * 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() - .withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withSku(new ResourceSku().withName("Premium_P1").withTier(SignalRSkuTier.PREMIUM).withCapacity(1)) - .withResourceStopped("false") - .apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} -``` - ### SignalRSharedPrivateLinkResources_CreateOrUpdate ```java @@ -1079,8 +828,7 @@ public final class SignalRReplicasUpdateSamples { */ public final class SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRSharedPrivateLinkResources_CreateOrUpdate.json */ /** @@ -1110,8 +858,7 @@ public final class SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples { */ public final class SignalRSharedPrivateLinkResourcesDeleteSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRSharedPrivateLinkResources_Delete.json */ /** @@ -1135,8 +882,7 @@ public final class SignalRSharedPrivateLinkResourcesDeleteSamples { */ public final class SignalRSharedPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRSharedPrivateLinkResources_Get.json */ /** @@ -1159,8 +905,7 @@ public final class SignalRSharedPrivateLinkResourcesGetSamples { */ public final class SignalRSharedPrivateLinkResourcesListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRSharedPrivateLinkResources_List.json */ /** @@ -1184,8 +929,7 @@ public final class SignalRSharedPrivateLinkResourcesListSamples { public final class UsagesListSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List. - * json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/Usages_List.json */ /** * Sample code: Usages_List. diff --git a/sdk/signalr/azure-resourcemanager-signalr/pom.xml b/sdk/signalr/azure-resourcemanager-signalr/pom.xml index b9730fcb488d0..ef06a586e7c14 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/pom.xml +++ b/sdk/signalr/azure-resourcemanager-signalr/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-signalr - 1.0.0-beta.10 + 1.0.0 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-2023-02-01. https://github.com/Azure/azure-sdk-for-java @@ -45,7 +45,6 @@ UTF-8 0 0 - true false 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 ec0540cd4b90d..8a4692c220b84 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,6 +11,7 @@ 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.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; @@ -19,7 +20,6 @@ import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; @@ -30,7 +30,6 @@ 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.SignalRReplicasImpl; import com.azure.resourcemanager.signalr.implementation.SignalRSharedPrivateLinkResourcesImpl; import com.azure.resourcemanager.signalr.implementation.SignalRsImpl; import com.azure.resourcemanager.signalr.implementation.UsagesImpl; @@ -39,7 +38,6 @@ import com.azure.resourcemanager.signalr.models.SignalRCustomDomains; 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.SignalRs; import com.azure.resourcemanager.signalr.models.Usages; @@ -69,8 +67,6 @@ public final class SignalRManager { private SignalRPrivateLinkResources signalRPrivateLinkResources; - private SignalRReplicas signalRReplicas; - private SignalRSharedPrivateLinkResources signalRSharedPrivateLinkResources; private final SignalRManagementClient clientObject; @@ -237,7 +233,7 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof .append("-") .append("com.azure.resourcemanager.signalr") .append("/") - .append("1.0.0-beta.9"); + .append("1.0.0"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -270,7 +266,7 @@ public SignalRManager authenticate(TokenCredential credential, AzureProfile prof HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); - policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); + policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies.addAll(this.policies.stream() .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .collect(Collectors.toList())); @@ -370,18 +366,6 @@ public SignalRPrivateLinkResources signalRPrivateLinkResources() { return signalRPrivateLinkResources; } - /** - * Gets the resource collection API of SignalRReplicas. It manages Replica. - * - * @return Resource collection API of SignalRReplicas. - */ - public SignalRReplicas signalRReplicas() { - if (this.signalRReplicas == null) { - this.signalRReplicas = new SignalRReplicasImpl(clientObject.getSignalRReplicas(), this); - } - return signalRReplicas; - } - /** * Gets the resource collection API of SignalRSharedPrivateLinkResources. It manages SharedPrivateLinkResource. * 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 ae1ac11fcb5dc..ac01c594fa0c9 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 @@ -20,7 +20,8 @@ public interface SignalRCustomCertificatesClient { /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -33,7 +34,8 @@ public interface SignalRCustomCertificatesClient { /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,7 +49,8 @@ public interface SignalRCustomCertificatesClient { /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param context The context to associate with this operation. @@ -63,7 +66,8 @@ Response getWithResponse(String resourceGroupName, Strin /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +81,8 @@ Response getWithResponse(String resourceGroupName, Strin /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -93,7 +98,8 @@ SyncPoller, CustomCertificateInner> beginCrea /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -110,7 +116,8 @@ SyncPoller, CustomCertificateInner> beginCrea /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -126,7 +133,8 @@ CustomCertificateInner createOrUpdate(String resourceGroupName, String resourceN /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -143,7 +151,8 @@ CustomCertificateInner createOrUpdate(String resourceGroupName, String resourceN /** * Delete a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param context The context to associate with this operation. @@ -159,7 +168,8 @@ Response deleteWithResponse(String resourceGroupName, String resourceName, /** * Delete a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 2d8290e4986ef..6d475653bf08c 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 @@ -20,7 +20,8 @@ public interface SignalRCustomDomainsClient { /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -33,7 +34,8 @@ public interface SignalRCustomDomainsClient { /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,7 +49,8 @@ public interface SignalRCustomDomainsClient { /** * Get a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -63,7 +66,8 @@ Response getWithResponse(String resourceGroupName, String res /** * Get a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +81,8 @@ Response getWithResponse(String resourceGroupName, String res /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -93,7 +98,8 @@ SyncPoller, CustomDomainInner> beginCreateOrUpdate /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -110,7 +116,8 @@ SyncPoller, CustomDomainInner> beginCreateOrUpdate /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -126,7 +133,8 @@ CustomDomainInner createOrUpdate(String resourceGroupName, String resourceName, /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -143,7 +151,8 @@ CustomDomainInner createOrUpdate(String resourceGroupName, String resourceName, /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -157,7 +166,8 @@ CustomDomainInner createOrUpdate(String resourceGroupName, String resourceName, /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -173,7 +183,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -186,7 +197,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @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/SignalRManagementClient.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRManagementClient.java index 8a6c11749883b..041d2787b3d93 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 @@ -12,7 +12,8 @@ */ public interface SignalRManagementClient { /** - * Gets The ID of the target subscription. The value must be an UUID. + * Gets Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms + * part of the URI for every service call. * * @return the subscriptionId value. */ @@ -95,13 +96,6 @@ public interface SignalRManagementClient { */ SignalRPrivateLinkResourcesClient getSignalRPrivateLinkResources(); - /** - * Gets the SignalRReplicasClient object to access its operations. - * - * @return the SignalRReplicasClient object. - */ - SignalRReplicasClient getSignalRReplicas(); - /** * Gets the SignalRSharedPrivateLinkResourcesClient object to access its operations. * 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 dc0f9b29f50d1..a5c8a6a0f6a27 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 @@ -20,7 +20,8 @@ public interface SignalRPrivateEndpointConnectionsClient { /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -33,7 +34,8 @@ public interface SignalRPrivateEndpointConnectionsClient { /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,9 +49,9 @@ public interface SignalRPrivateEndpointConnectionsClient { /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -64,9 +66,9 @@ Response getWithResponse(String privateEndpointC /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -80,9 +82,9 @@ PrivateEndpointConnectionInner get(String privateEndpointConnectionName, String /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @param context The context to associate with this operation. @@ -98,9 +100,9 @@ Response updateWithResponse(String privateEndpoi /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -115,9 +117,9 @@ PrivateEndpointConnectionInner update(String privateEndpointConnectionName, Stri /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -131,9 +133,9 @@ SyncPoller, Void> beginDelete(String privateEndpointConnectionN /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -148,9 +150,9 @@ SyncPoller, Void> beginDelete(String privateEndpointConnectionN /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -162,9 +164,9 @@ SyncPoller, Void> beginDelete(String privateEndpointConnectionN /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 91e329a2b9aad..7778517baf5ca 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 @@ -17,7 +17,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -31,7 +32,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 deleted file mode 100644 index b50bb4ebb9988..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/SignalRReplicasClient.java +++ /dev/null @@ -1,293 +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.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.ReplicaInner; - -/** - * 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. - * @throws com.azure.core.management.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 paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String resourceName); - - /** - * 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. - * @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 paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String resourceName, 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. - * @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 replica and its properties along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @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 replica and its properties. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ReplicaInner get(String resourceGroupName, String resourceName, String replicaName); - - /** - * 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. - * @param parameters Parameters for the create or update 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 a class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - 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. - * @param parameters Parameters for the create or update operation. - * @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 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); - - /** - * 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. - * @param parameters Parameters for the create or update 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 class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @param parameters Parameters for the create or update operation. - * @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 class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String resourceName, String replicaName); - - /** - * 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. - * @param parameters Parameters for the update 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 a class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - 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. - * @param parameters Parameters for the update operation. - * @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 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); - - /** - * 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. - * @param parameters Parameters for the update 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 class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ReplicaInner update(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. - * @param parameters Parameters for the update operation. - * @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 class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRestart(String resourceGroupName, String resourceName, String replicaName); - - /** - * 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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void restart(String resourceGroupName, String resourceName, String replicaName); - - /** - * 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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void restart(String resourceGroupName, String resourceName, String replicaName, Context context); -} 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 56b4e49efbb15..e58c4b8bd5532 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 @@ -20,7 +20,8 @@ public interface SignalRSharedPrivateLinkResourcesClient { /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -33,7 +34,8 @@ public interface SignalRSharedPrivateLinkResourcesClient { /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -48,7 +50,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -64,7 +67,8 @@ Response getWithResponse(String sharedPrivateLin * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -79,7 +83,8 @@ SharedPrivateLinkResourceInner get(String sharedPrivateLinkResourceName, String * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -96,7 +101,8 @@ SyncPoller, SharedPrivateLinkResource * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @param context The context to associate with this operation. @@ -114,7 +120,8 @@ SyncPoller, SharedPrivateLinkResource * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -130,7 +137,8 @@ SharedPrivateLinkResourceInner createOrUpdate(String sharedPrivateLinkResourceNa * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @param context The context to associate with this operation. @@ -147,7 +155,8 @@ SharedPrivateLinkResourceInner createOrUpdate(String sharedPrivateLinkResourceNa * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -162,7 +171,8 @@ SyncPoller, Void> beginDelete(String sharedPrivateLinkResourceN * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -178,7 +188,8 @@ SyncPoller, Void> beginDelete(String sharedPrivateLinkResourceN * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -191,7 +202,8 @@ SyncPoller, Void> beginDelete(String sharedPrivateLinkResourceN * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 ead92a1b8c071..2f3ad72a2c724 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 @@ -77,7 +77,8 @@ Response checkNameAvailabilityWithResponse(String locatio /** * Handles requests to list all resources in a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -90,7 +91,8 @@ Response checkNameAvailabilityWithResponse(String locatio /** * Handles requests to list all resources in a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -104,7 +106,8 @@ Response checkNameAvailabilityWithResponse(String locatio /** * Get the resource and its properties. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -119,7 +122,8 @@ Response getByResourceGroupWithResponse(String resourceGro /** * Get the resource and its properties. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -132,7 +136,8 @@ Response getByResourceGroupWithResponse(String resourceGro /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -147,7 +152,8 @@ SyncPoller, SignalRResourceInner> beginCreateOr /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @param context The context to associate with this operation. @@ -163,7 +169,8 @@ SyncPoller, SignalRResourceInner> beginCreateOr /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -177,7 +184,8 @@ SyncPoller, SignalRResourceInner> beginCreateOr /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @param context The context to associate with this operation. @@ -193,7 +201,8 @@ SignalRResourceInner createOrUpdate(String resourceGroupName, String resourceNam /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -206,7 +215,8 @@ SignalRResourceInner createOrUpdate(String resourceGroupName, String resourceNam /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -220,7 +230,8 @@ SignalRResourceInner createOrUpdate(String resourceGroupName, String resourceNam /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -232,7 +243,8 @@ SignalRResourceInner createOrUpdate(String resourceGroupName, String resourceNam /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -245,7 +257,8 @@ SignalRResourceInner createOrUpdate(String resourceGroupName, String resourceNam /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -260,7 +273,8 @@ SyncPoller, SignalRResourceInner> beginUpdate(S /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @param context The context to associate with this operation. @@ -276,7 +290,8 @@ SyncPoller, SignalRResourceInner> beginUpdate(S /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -290,7 +305,8 @@ SyncPoller, SignalRResourceInner> beginUpdate(S /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @param context The context to associate with this operation. @@ -306,7 +322,8 @@ SignalRResourceInner update(String resourceGroupName, String resourceName, Signa /** * Get the access keys of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -320,7 +337,8 @@ SignalRResourceInner update(String resourceGroupName, String resourceName, Signa /** * Get the access keys of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -333,7 +351,8 @@ SignalRResourceInner update(String resourceGroupName, String resourceName, Signa /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -348,7 +367,8 @@ SyncPoller, SignalRKeysInner> beginRegenerateKey(St /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. @@ -364,7 +384,8 @@ SyncPoller, SignalRKeysInner> beginRegenerateKey(St /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -378,7 +399,8 @@ SyncPoller, SignalRKeysInner> beginRegenerateKey(St /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. @@ -391,40 +413,11 @@ SyncPoller, SignalRKeysInner> beginRegenerateKey(St 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. - * @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 list skus operation response along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @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 list skus operation response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - SkuListInner listReplicaSkus(String resourceGroupName, String resourceName, String replicaName); - /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -437,7 +430,8 @@ Response listReplicaSkusWithResponse(String resourceGroupName, Str /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -451,7 +445,8 @@ Response listReplicaSkusWithResponse(String resourceGroupName, Str /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -463,7 +458,8 @@ Response listReplicaSkusWithResponse(String resourceGroupName, Str /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -476,7 +472,8 @@ Response listReplicaSkusWithResponse(String resourceGroupName, Str /** * List all available skus of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -490,7 +487,8 @@ Response listReplicaSkusWithResponse(String resourceGroupName, Str /** * List all available skus of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. 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 934567f4df83e..e4779f3bfa638 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 @@ -20,14 +20,14 @@ @Fluent public final class CustomCertificateInner extends ProxyResource { /* - * Custom certificate properties. + * Metadata pertaining to creation and last modification of the resource. */ - private CustomCertificateProperties innerProperties = new CustomCertificateProperties(); + private SystemData systemData; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Custom certificate properties. */ - private SystemData systemData; + private CustomCertificateProperties innerProperties = new CustomCertificateProperties(); /* * The type of the resource. @@ -51,21 +51,21 @@ public CustomCertificateInner() { } /** - * Get the innerProperties property: Custom certificate properties. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the innerProperties value. + * @return the systemData value. */ - private CustomCertificateProperties innerProperties() { - return this.innerProperties; + public SystemData systemData() { + return this.systemData; } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Get the innerProperties property: Custom certificate properties. * - * @return the systemData value. + * @return the innerProperties value. */ - public SystemData systemData() { - return this.systemData; + private CustomCertificateProperties innerProperties() { + return this.innerProperties; } /** 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 04ed024318117..b915b710d4fb4 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 @@ -21,14 +21,14 @@ @Fluent public final class CustomDomainInner extends ProxyResource { /* - * Properties of a custom domain. + * Metadata pertaining to creation and last modification of the resource. */ - private CustomDomainProperties innerProperties = new CustomDomainProperties(); + private SystemData systemData; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Properties of a custom domain. */ - private SystemData systemData; + private CustomDomainProperties innerProperties = new CustomDomainProperties(); /* * The type of the resource. @@ -52,21 +52,21 @@ public CustomDomainInner() { } /** - * Get the innerProperties property: Properties of a custom domain. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the innerProperties value. + * @return the systemData value. */ - private CustomDomainProperties innerProperties() { - return this.innerProperties; + public SystemData systemData() { + return this.systemData; } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Get the innerProperties property: Properties of a custom domain. * - * @return the systemData value. + * @return the innerProperties value. */ - public SystemData systemData() { - return this.systemData; + private CustomDomainProperties innerProperties() { + return this.innerProperties; } /** 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 aafe4b7aa9704..610843f3b8f8d 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 @@ -22,14 +22,14 @@ @Fluent public final class PrivateEndpointConnectionInner extends ProxyResource { /* - * Private endpoint connection properties + * Metadata pertaining to creation and last modification of the resource. */ - private PrivateEndpointConnectionProperties innerProperties; + private SystemData systemData; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Private endpoint connection properties */ - private SystemData systemData; + private PrivateEndpointConnectionProperties innerProperties; /* * The type of the resource. @@ -53,21 +53,21 @@ public PrivateEndpointConnectionInner() { } /** - * Get the innerProperties property: Private endpoint connection properties. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the innerProperties value. + * @return the systemData value. */ - private PrivateEndpointConnectionProperties innerProperties() { - return this.innerProperties; + public SystemData systemData() { + return this.systemData; } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Get the innerProperties property: Private endpoint connection properties. * - * @return the systemData value. + * @return the innerProperties value. */ - public SystemData systemData() { - return this.systemData; + private PrivateEndpointConnectionProperties innerProperties() { + return this.innerProperties; } /** @@ -209,11 +209,11 @@ public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) thr deserializedPrivateEndpointConnectionInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedPrivateEndpointConnectionInner.type = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedPrivateEndpointConnectionInner.systemData = SystemData.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedPrivateEndpointConnectionInner.innerProperties = PrivateEndpointConnectionProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedPrivateEndpointConnectionInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } 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 2d28e86a4855f..9fb400fb93fd0 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 @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -24,11 +23,6 @@ public final class PrivateLinkResourceInner extends ProxyResource { */ private PrivateLinkResourceProperties innerProperties; - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - /* * The type of the resource. */ @@ -59,15 +53,6 @@ private PrivateLinkResourceProperties innerProperties() { return this.innerProperties; } - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - /** * Get the type property: The type of the resource. * @@ -239,8 +224,6 @@ public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IO } else if ("properties".equals(fieldName)) { deserializedPrivateLinkResourceInner.innerProperties = PrivateLinkResourceProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedPrivateLinkResourceInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } 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 deleted file mode 100644 index 6a7a739b65e19..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaInner.java +++ /dev/null @@ -1,276 +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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.signalr.models.ProvisioningState; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import java.io.IOException; -import java.util.Map; - -/** - * A class represent a replica resource. - */ -@Fluent -public final class ReplicaInner extends Resource { - /* - * The billing information of the resource. - */ - private ResourceSku sku; - - /* - * The properties property. - */ - private ReplicaProperties innerProperties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ReplicaInner class. - */ - public ReplicaInner() { - } - - /** - * Get the sku property: The billing information of the resource. - * - * @return the sku value. - */ - public ResourceSku sku() { - return this.sku; - } - - /** - * Set the sku property: The billing information of the resource. - * - * @param sku the sku value to set. - * @return the ReplicaInner object itself. - */ - public ReplicaInner withSku(ResourceSku sku) { - this.sku = sku; - return this; - } - - /** - * Get the innerProperties property: The properties property. - * - * @return the innerProperties value. - */ - private ReplicaProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ReplicaInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ReplicaInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().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. - * - * @return the regionEndpointEnabled value. - */ - public String regionEndpointEnabled() { - return this.innerProperties() == null ? null : this.innerProperties().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. - * - * @param regionEndpointEnabled the regionEndpointEnabled value to set. - * @return the ReplicaInner object itself. - */ - public ReplicaInner withRegionEndpointEnabled(String regionEndpointEnabled) { - if (this.innerProperties() == null) { - this.innerProperties = new ReplicaProperties(); - } - this.innerProperties().withRegionEndpointEnabled(regionEndpointEnabled); - return this; - } - - /** - * 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() { - return this.innerProperties() == null ? null : this.innerProperties().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. - * - * @param resourceStopped the resourceStopped value to set. - * @return the ReplicaInner object itself. - */ - public ReplicaInner withResourceStopped(String resourceStopped) { - if (this.innerProperties() == null) { - this.innerProperties = new ReplicaProperties(); - } - this.innerProperties().withResourceStopped(resourceStopped); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (sku() != null) { - sku().validate(); - } - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("sku", this.sku); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ReplicaInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ReplicaInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the ReplicaInner. - */ - public static ReplicaInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ReplicaInner deserializedReplicaInner = new ReplicaInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedReplicaInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedReplicaInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedReplicaInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedReplicaInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedReplicaInner.withTags(tags); - } else if ("sku".equals(fieldName)) { - deserializedReplicaInner.sku = ResourceSku.fromJson(reader); - } else if ("properties".equals(fieldName)) { - deserializedReplicaInner.innerProperties = ReplicaProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedReplicaInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedReplicaInner; - }); - } -} 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 deleted file mode 100644 index b287ba15ca2e2..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/fluent/models/ReplicaProperties.java +++ /dev/null @@ -1,150 +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.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.signalr.models.ProvisioningState; -import java.io.IOException; - -/** - * The ReplicaProperties model. - */ -@Fluent -public final class ReplicaProperties implements JsonSerializable { - /* - * Provisioning state of the resource. - */ - private ProvisioningState provisioningState; - - /* - * 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. - */ - private String regionEndpointEnabled; - - /* - * 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. - */ - private String resourceStopped; - - /** - * Creates an instance of ReplicaProperties class. - */ - public ReplicaProperties() { - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.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. - * - * @return the regionEndpointEnabled value. - */ - public String regionEndpointEnabled() { - return this.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. - * - * @param regionEndpointEnabled the regionEndpointEnabled value to set. - * @return the ReplicaProperties object itself. - */ - public ReplicaProperties withRegionEndpointEnabled(String regionEndpointEnabled) { - this.regionEndpointEnabled = regionEndpointEnabled; - return this; - } - - /** - * 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() { - return this.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. - * - * @param resourceStopped the resourceStopped value to set. - * @return the ReplicaProperties object itself. - */ - public ReplicaProperties withResourceStopped(String resourceStopped) { - this.resourceStopped = resourceStopped; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("regionEndpointEnabled", this.regionEndpointEnabled); - jsonWriter.writeStringField("resourceStopped", this.resourceStopped); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ReplicaProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ReplicaProperties if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the ReplicaProperties. - */ - public static ReplicaProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ReplicaProperties deserializedReplicaProperties = new ReplicaProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedReplicaProperties.provisioningState = ProvisioningState.fromString(reader.getString()); - } else if ("regionEndpointEnabled".equals(fieldName)) { - deserializedReplicaProperties.regionEndpointEnabled = reader.getString(); - } else if ("resourceStopped".equals(fieldName)) { - deserializedReplicaProperties.resourceStopped = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedReplicaProperties; - }); - } -} 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 bc3ba8964dca3..67f911e9c5b69 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 @@ -20,14 +20,14 @@ @Fluent public final class SharedPrivateLinkResourceInner extends ProxyResource { /* - * Describes the properties of an existing Shared Private Link Resource + * Metadata pertaining to creation and last modification of the resource. */ - private SharedPrivateLinkResourceProperties innerProperties; + private SystemData systemData; /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Describes the properties of an existing Shared Private Link Resource */ - private SystemData systemData; + private SharedPrivateLinkResourceProperties innerProperties; /* * The type of the resource. @@ -51,21 +51,21 @@ public SharedPrivateLinkResourceInner() { } /** - * Get the innerProperties property: Describes the properties of an existing Shared Private Link Resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the innerProperties value. + * @return the systemData value. */ - private SharedPrivateLinkResourceProperties innerProperties() { - return this.innerProperties; + public SystemData systemData() { + return this.systemData; } /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Get the innerProperties property: Describes the properties of an existing Shared Private Link Resource. * - * @return the systemData value. + * @return the innerProperties value. */ - public SystemData systemData() { - return this.systemData; + private SharedPrivateLinkResourceProperties innerProperties() { + return this.innerProperties; } /** @@ -229,11 +229,11 @@ public static SharedPrivateLinkResourceInner fromJson(JsonReader jsonReader) thr deserializedSharedPrivateLinkResourceInner.name = reader.getString(); } else if ("type".equals(fieldName)) { deserializedSharedPrivateLinkResourceInner.type = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedSharedPrivateLinkResourceInner.systemData = SystemData.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedSharedPrivateLinkResourceInner.innerProperties = SharedPrivateLinkResourceProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedSharedPrivateLinkResourceInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } 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 283ac614290bd..0d2e04aba81be 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 @@ -137,21 +137,6 @@ public final class SignalRProperties implements JsonSerializable tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ResourceSku sku() { - return this.innerModel().sku(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public ProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public String regionEndpointEnabled() { - return this.innerModel().regionEndpointEnabled(); - } - - public String resourceStopped() { - return this.innerModel().resourceStopped(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ReplicaInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.signalr.SignalRManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String resourceName; - - private String replicaName; - - public ReplicaImpl withExistingSignalR(String resourceGroupName, String resourceName) { - this.resourceGroupName = resourceGroupName; - this.resourceName = resourceName; - return this; - } - - public Replica create() { - 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); - return this; - } - - ReplicaImpl(String name, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { - this.innerObject = new ReplicaInner(); - this.serviceManager = serviceManager; - this.replicaName = name; - } - - public ReplicaImpl update() { - return this; - } - - public Replica apply() { - 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); - return this; - } - - ReplicaImpl(ReplicaInner innerObject, com.azure.resourcemanager.signalr.SignalRManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - 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(); - return this; - } - - public Replica refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getSignalRReplicas() - .getWithResponse(resourceGroupName, resourceName, replicaName, context) - .getValue(); - return this; - } - - public void restart() { - serviceManager.signalRReplicas().restart(resourceGroupName, resourceName, replicaName); - } - - public void restart(Context context) { - serviceManager.signalRReplicas().restart(resourceGroupName, resourceName, replicaName, context); - } - - public ReplicaImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ReplicaImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ReplicaImpl withTags(Map tags) { - this.innerModel().withTags(tags); - return this; - } - - public ReplicaImpl withSku(ResourceSku sku) { - this.innerModel().withSku(sku); - return this; - } - - public ReplicaImpl withRegionEndpointEnabled(String regionEndpointEnabled) { - this.innerModel().withRegionEndpointEnabled(regionEndpointEnabled); - return this; - } - - public ReplicaImpl withResourceStopped(String resourceStopped) { - this.innerModel().withResourceStopped(resourceStopped); - 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 f8db41f8b1ff2..868419f3d0b8a 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 @@ -121,7 +121,8 @@ Mono> listNext(@PathParam(value = "nextLink", en /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -158,7 +159,8 @@ private Mono> listSinglePageAsync(String r /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -196,7 +198,8 @@ private Mono> listSinglePageAsync(String r /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -212,7 +215,8 @@ private PagedFlux listAsync(String resourceGroupName, St /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -230,7 +234,8 @@ private PagedFlux listAsync(String resourceGroupName, St /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -245,7 +250,8 @@ public PagedIterable list(String resourceGroupName, Stri /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -261,7 +267,8 @@ public PagedIterable list(String resourceGroupName, Stri /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,7 +308,8 @@ private Mono> getWithResponseAsync(String resou /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param context The context to associate with this operation. @@ -341,7 +349,8 @@ private Mono> getWithResponseAsync(String resou /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -359,7 +368,8 @@ private Mono getAsync(String resourceGroupName, String r /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param context The context to associate with this operation. @@ -377,7 +387,8 @@ public Response getWithResponse(String resourceGroupName /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -393,7 +404,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -440,7 +452,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -486,7 +499,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -508,7 +522,8 @@ private PollerFlux, CustomCertificateInner> b /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -532,7 +547,8 @@ private PollerFlux, CustomCertificateInner> b /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -551,7 +567,8 @@ public SyncPoller, CustomCertificateInner> be /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -572,7 +589,8 @@ public SyncPoller, CustomCertificateInner> be /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -591,7 +609,8 @@ private Mono createOrUpdateAsync(String resourceGroupNam /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -611,7 +630,8 @@ private Mono createOrUpdateAsync(String resourceGroupNam /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -629,7 +649,8 @@ public CustomCertificateInner createOrUpdate(String resourceGroupName, String re /** * Create or update a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param parameters The parameters parameter. @@ -648,7 +669,8 @@ public CustomCertificateInner createOrUpdate(String resourceGroupName, String re /** * Delete a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -688,7 +710,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S /** * Delete a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param context The context to associate with this operation. @@ -728,7 +751,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S /** * Delete a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -745,7 +769,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param context The context to associate with this operation. @@ -763,7 +788,8 @@ public Response deleteWithResponse(String resourceGroupName, String resour /** * Delete a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 e8562ab833e3f..568ee8f838f24 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 @@ -121,7 +121,8 @@ Mono> listNext(@PathParam(value = "nextLink", encoded /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -157,7 +158,8 @@ private Mono> listSinglePageAsync(String resour /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +197,8 @@ private Mono> listSinglePageAsync(String resour /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -211,7 +214,8 @@ private PagedFlux listAsync(String resourceGroupName, String /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -228,7 +232,8 @@ private PagedFlux listAsync(String resourceGroupName, String /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -243,7 +248,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,7 +265,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -298,7 +305,8 @@ private Mono> getWithResponseAsync(String resourceGr /** * Get a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -337,7 +345,8 @@ private Mono> getWithResponseAsync(String resourceGr /** * Get a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -354,7 +363,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -372,7 +382,8 @@ public Response getWithResponse(String resourceGroupName, Str /** * Get a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -388,7 +399,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -433,7 +445,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -478,7 +491,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -499,7 +513,8 @@ private PollerFlux, CustomDomainInner> beginCreate /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -522,7 +537,8 @@ private PollerFlux, CustomDomainInner> beginCreate /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -540,7 +556,8 @@ public SyncPoller, CustomDomainInner> beginCreateO /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -560,7 +577,8 @@ public SyncPoller, CustomDomainInner> beginCreateO /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -579,7 +597,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, St /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -599,7 +618,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, St /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -617,7 +637,8 @@ public CustomDomainInner createOrUpdate(String resourceGroupName, String resourc /** * Create or update a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param parameters The parameters parameter. @@ -636,7 +657,8 @@ public CustomDomainInner createOrUpdate(String resourceGroupName, String resourc /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -675,7 +697,8 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -714,7 +737,8 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -733,7 +757,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -754,7 +779,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -770,7 +796,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -788,7 +815,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -805,7 +833,8 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -823,7 +852,8 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -838,7 +868,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. 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 87dcd6a5c8469..31f23fda13900 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 @@ -20,12 +20,14 @@ @ServiceClientBuilder(serviceClients = { SignalRManagementClientImpl.class }) public final class SignalRManagementClientBuilder { /* - * The ID of the target subscription. The value must be an UUID. + * Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of + * the URI for every service call. */ private String subscriptionId; /** - * Sets The ID of the target subscription. The value must be an UUID. + * Sets Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms + * part of the URI for every service call. * * @param subscriptionId the subscriptionId value. * @return the SignalRManagementClientBuilder. 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 f6fdc9ff56135..134f238797276 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 @@ -29,7 +29,6 @@ import com.azure.resourcemanager.signalr.fluent.SignalRManagementClient; 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.SignalRsClient; import com.azure.resourcemanager.signalr.fluent.UsagesClient; @@ -48,12 +47,14 @@ @ServiceClient(builder = SignalRManagementClientBuilder.class) public final class SignalRManagementClientImpl implements SignalRManagementClient { /** - * The ID of the target subscription. The value must be an UUID. + * Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of + * the URI for every service call. */ private final String subscriptionId; /** - * Gets The ID of the target subscription. The value must be an UUID. + * Gets Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms + * part of the URI for every service call. * * @return the subscriptionId value. */ @@ -229,20 +230,6 @@ public SignalRPrivateLinkResourcesClient getSignalRPrivateLinkResources() { return this.signalRPrivateLinkResources; } - /** - * 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. */ @@ -264,7 +251,8 @@ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResour * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId The ID of the target subscription. The value must be an UUID. + * @param subscriptionId Gets subscription Id which uniquely identify the Microsoft Azure subscription. The + * subscription ID forms part of the URI for every service call. * @param endpoint server parameter. */ SignalRManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, @@ -274,7 +262,7 @@ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResour this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-08-01-preview"; + this.apiVersion = "2023-02-01"; this.operations = new OperationsClientImpl(this); this.signalRs = new SignalRsClientImpl(this); this.usages = new UsagesClientImpl(this); @@ -282,7 +270,6 @@ public SignalRSharedPrivateLinkResourcesClient getSignalRSharedPrivateLinkResour this.signalRCustomDomains = new SignalRCustomDomainsClientImpl(this); this.signalRPrivateEndpointConnections = new SignalRPrivateEndpointConnectionsClientImpl(this); this.signalRPrivateLinkResources = new SignalRPrivateLinkResourcesClientImpl(this); - this.signalRReplicas = new SignalRReplicasClientImpl(this); this.signalRSharedPrivateLinkResources = new SignalRSharedPrivateLinkResourcesClientImpl(this); } 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 0f2d19a946998..367da3ccdbe36 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 @@ -122,7 +122,8 @@ Mono> listNext( /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -160,7 +161,8 @@ private Mono> listSinglePageAsync( /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -199,7 +201,8 @@ private Mono> listSinglePageAsync( /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -215,7 +218,8 @@ private PagedFlux listAsync(String resourceGroup /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -233,7 +237,8 @@ private PagedFlux listAsync(String resourceGroup /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -248,7 +253,8 @@ public PagedIterable list(String resourceGroupNa /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -265,9 +271,9 @@ public PagedIterable list(String resourceGroupNa /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -308,9 +314,9 @@ private Mono> getWithResponseAsync(Stri /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -350,9 +356,9 @@ private Mono> getWithResponseAsync(Stri /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -369,9 +375,9 @@ private Mono getAsync(String privateEndpointConn /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -388,9 +394,9 @@ public Response getWithResponse(String privateEn /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -406,9 +412,9 @@ public PrivateEndpointConnectionInner get(String privateEndpointConnectionName, /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -455,9 +461,9 @@ private Mono> updateWithResponseAsync(S /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @param context The context to associate with this operation. @@ -503,9 +509,9 @@ private Mono> updateWithResponseAsync(S /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -523,9 +529,9 @@ private Mono updateAsync(String privateEndpointC /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @param context The context to associate with this operation. @@ -544,9 +550,9 @@ public Response updateWithResponse(String privat /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -564,9 +570,9 @@ public PrivateEndpointConnectionInner update(String privateEndpointConnectionNam /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -606,9 +612,9 @@ private Mono>> deleteWithResponseAsync(String privateE /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -647,9 +653,9 @@ private Mono>> deleteWithResponseAsync(String privateE /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -668,9 +674,9 @@ private PollerFlux, Void> beginDeleteAsync(String privateEndpoi /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -691,9 +697,9 @@ private PollerFlux, Void> beginDeleteAsync(String privateEndpoi /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -709,9 +715,9 @@ public SyncPoller, Void> beginDelete(String privateEndpointConn /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -729,9 +735,9 @@ public SyncPoller, Void> beginDelete(String privateEndpointConn /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -748,9 +754,9 @@ private Mono deleteAsync(String privateEndpointConnectionName, String reso /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -768,9 +774,9 @@ private Mono deleteAsync(String privateEndpointConnectionName, String reso /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -784,9 +790,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. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 12b4c88b277c7..05e7413a68080 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 @@ -82,7 +82,8 @@ Mono> listNext(@PathParam(value = "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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -120,7 +121,8 @@ private Mono> listSinglePageAsync(String /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,7 +161,8 @@ private Mono> listSinglePageAsync(String /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -176,7 +179,8 @@ private PagedFlux listAsync(String resourceGroupName, /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +199,8 @@ private PagedFlux listAsync(String resourceGroupName, /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -211,7 +216,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 deleted file mode 100644 index 55241089ea503..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasClientImpl.java +++ /dev/null @@ -1,1308 +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.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -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.SignalRReplicasClient; -import com.azure.resourcemanager.signalr.fluent.models.ReplicaInner; -import com.azure.resourcemanager.signalr.models.ReplicaList; -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 SignalRReplicasClient. - */ -public final class SignalRReplicasClientImpl implements SignalRReplicasClient { - /** - * The proxy service used to perform REST calls. - */ - private final SignalRReplicasService service; - - /** - * 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.client = client; - } - - /** - * The interface defining all the services for SignalRManagementClientSignalRReplicas to be used by the proxy - * service to perform REST calls. - */ - @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 }) - @UnexpectedResponseExceptionType(ManagementException.class) - 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); - - @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, - @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" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}") - @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, @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 }) - @UnexpectedResponseExceptionType(ManagementException.class) - 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); - - @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, - @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, - Context context); - - @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, - @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("{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 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. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @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.")); - } - 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.")); - } - 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)) - .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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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.")); - } - 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.")); - } - 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 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. - * @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 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)); - } - - /** - * 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. - * @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 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), - 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. - * @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 paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String resourceName) { - return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); - } - - /** - * 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. - * @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 paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String resourceName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, resourceName, 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. - * @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 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) { - 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.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. - * @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 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) { - 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.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. - * @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 replica and its properties on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String resourceName, String replicaName) { - return getWithResponseAsync(resourceGroupName, resourceName, replicaName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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. - * @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 replica and its properties along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @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 replica and its properties. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicaInner get(String resourceGroupName, String resourceName, String replicaName) { - return getWithResponse(resourceGroupName, resourceName, replicaName, Context.NONE).getValue(); - } - - /** - * 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. - * @param parameters Parameters for the create or update 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 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) { - 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 (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, 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. - * @param parameters Parameters for the create or update operation. - * @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 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) { - 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 (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, 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. - * @param parameters Parameters for the create or update 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 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()); - } - - /** - * 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. - * @param parameters Parameters for the create or update operation. - * @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 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) { - 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); - } - - /** - * 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. - * @param parameters Parameters for the create or update 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 a class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - 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. - * @param parameters Parameters for the create or update operation. - * @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 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) - .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. - * @param parameters Parameters for the create or update 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 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() - .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. - * @param parameters Parameters for the create or update operation. - * @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 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() - .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. - * @param parameters Parameters for the create or update 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 class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @param parameters Parameters for the create or update operation. - * @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 class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String 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.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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String 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.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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String resourceName, String replicaName) { - return deleteWithResponseAsync(resourceGroupName, resourceName, replicaName).flatMap(ignored -> Mono.empty()); - } - - /** - * 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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String resourceName, String replicaName) { - deleteWithResponse(resourceGroupName, resourceName, replicaName, Context.NONE); - } - - /** - * 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. - * @param parameters Parameters for the update 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 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) { - 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 (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.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. - * @param parameters Parameters for the update operation. - * @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 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) { - 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 (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.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. - * @param parameters Parameters for the update 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 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()); - } - - /** - * 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. - * @param parameters Parameters for the update operation. - * @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 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) { - 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); - } - - /** - * 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. - * @param parameters Parameters for the update 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 a class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - 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. - * @param parameters Parameters for the update operation. - * @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 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) { - 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. - * @param parameters Parameters for the update 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 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() - .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. - * @param parameters Parameters for the update operation. - * @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 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() - .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. - * @param parameters Parameters for the update 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 class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @param parameters Parameters for the update operation. - * @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 class represent a replica resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> 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.")); - } - 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.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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> 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.")); - } - 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.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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - 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()); - } - - /** - * 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. - * @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 long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - 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); - } - - /** - * 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - 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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono restartAsync(String resourceGroupName, String resourceName, String replicaName) { - 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. - * @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 {@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() - .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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void restart(String resourceGroupName, String resourceName, String replicaName) { - restartAsync(resourceGroupName, resourceName, replicaName).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. - * @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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void restart(String resourceGroupName, String resourceName, String replicaName, Context context) { - restartAsync(resourceGroupName, resourceName, replicaName, context).block(); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body 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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link 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/SignalRReplicasImpl.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasImpl.java deleted file mode 100644 index 94009cbd6660f..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/implementation/SignalRReplicasImpl.java +++ /dev/null @@ -1,165 +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.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.SignalRReplicasClient; -import com.azure.resourcemanager.signalr.fluent.models.ReplicaInner; -import com.azure.resourcemanager.signalr.models.Replica; -import com.azure.resourcemanager.signalr.models.SignalRReplicas; - -public final class SignalRReplicasImpl implements SignalRReplicas { - private static final ClientLogger LOGGER = new ClientLogger(SignalRReplicasImpl.class); - - private final SignalRReplicasClient innerClient; - - private final 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 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 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); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ReplicaImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public Replica get(String resourceGroupName, String resourceName, String replicaName) { - ReplicaInner inner = this.serviceClient().get(resourceGroupName, resourceName, replicaName); - if (inner != null) { - return new ReplicaImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response deleteWithResponse(String resourceGroupName, String resourceName, String replicaName, - Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, resourceName, replicaName, context); - } - - public void delete(String resourceGroupName, String resourceName, String replicaName) { - this.serviceClient().delete(resourceGroupName, resourceName, replicaName); - } - - public void restart(String resourceGroupName, String resourceName, String replicaName) { - this.serviceClient().restart(resourceGroupName, resourceName, replicaName); - } - - public void restart(String resourceGroupName, String resourceName, String replicaName, Context context) { - this.serviceClient().restart(resourceGroupName, resourceName, replicaName, context); - } - - public Replica 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))); - } - return this.getWithResponse(resourceGroupName, resourceName, replicaName, 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))); - } - return this.getWithResponse(resourceGroupName, resourceName, replicaName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String 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))); - } - this.deleteWithResponse(resourceGroupName, resourceName, replicaName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String 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))); - } - return this.deleteWithResponse(resourceGroupName, resourceName, replicaName, context); - } - - private SignalRReplicasClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.signalr.SignalRManager manager() { - return this.serviceManager; - } - - public ReplicaImpl define(String name) { - return new ReplicaImpl(name, this.manager()); - } -} 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 c702776b383ea..81dfefd29d253 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 @@ -178,14 +178,6 @@ public Boolean disableAadAuth() { return this.innerModel().disableAadAuth(); } - public String regionEndpointEnabled() { - return this.innerModel().regionEndpointEnabled(); - } - - public String resourceStopped() { - return this.innerModel().resourceStopped(); - } - public Region region() { return Region.fromName(this.regionName()); } @@ -385,14 +377,4 @@ public SignalRResourceImpl withDisableAadAuth(Boolean disableAadAuth) { this.innerModel().withDisableAadAuth(disableAadAuth); return this; } - - public SignalRResourceImpl withRegionEndpointEnabled(String regionEndpointEnabled) { - this.innerModel().withRegionEndpointEnabled(regionEndpointEnabled); - return this; - } - - public SignalRResourceImpl withResourceStopped(String resourceStopped) { - this.innerModel().withResourceStopped(resourceStopped); - 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 432005c52abf1..b468a7f04a46b 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 @@ -122,7 +122,8 @@ Mono> listNext( /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -160,7 +161,8 @@ private Mono> listSinglePageAsync( /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -199,7 +201,8 @@ private Mono> listSinglePageAsync( /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -215,7 +218,8 @@ private PagedFlux listAsync(String resourceGroup /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -233,7 +237,8 @@ private PagedFlux listAsync(String resourceGroup /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -248,7 +253,8 @@ public PagedIterable list(String resourceGroupNa /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -266,7 +272,8 @@ public PagedIterable list(String resourceGroupNa * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -308,7 +315,8 @@ private Mono> getWithResponseAsync(Stri * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -349,7 +357,8 @@ private Mono> getWithResponseAsync(Stri * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -367,7 +376,8 @@ private Mono getAsync(String sharedPrivateLinkRe * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -385,7 +395,8 @@ public Response getWithResponse(String sharedPri * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -402,7 +413,8 @@ public SharedPrivateLinkResourceInner get(String sharedPrivateLinkResourceName, * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -450,7 +462,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @param context The context to associate with this operation. @@ -498,7 +511,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -521,7 +535,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @param context The context to associate with this operation. @@ -546,7 +561,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -566,7 +582,8 @@ public SyncPoller, SharedPrivateLinkR * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @param context The context to associate with this operation. @@ -589,7 +606,8 @@ public SyncPoller, SharedPrivateLinkR * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -609,7 +627,8 @@ private Mono createOrUpdateAsync(String sharedPr * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @param context The context to associate with this operation. @@ -629,7 +648,8 @@ private Mono createOrUpdateAsync(String sharedPr * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -647,7 +667,8 @@ public SharedPrivateLinkResourceInner createOrUpdate(String sharedPrivateLinkRes * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The shared private link resource. * @param context The context to associate with this operation. @@ -667,7 +688,8 @@ public SharedPrivateLinkResourceInner createOrUpdate(String sharedPrivateLinkRes * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -708,7 +730,8 @@ private Mono>> deleteWithResponseAsync(String sharedPr * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -748,7 +771,8 @@ private Mono>> deleteWithResponseAsync(String sharedPr * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -768,7 +792,8 @@ private PollerFlux, Void> beginDeleteAsync(String sharedPrivate * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -790,7 +815,8 @@ private PollerFlux, Void> beginDeleteAsync(String sharedPrivate * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -807,7 +833,8 @@ public SyncPoller, Void> beginDelete(String sharedPrivateLinkRe * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -826,7 +853,8 @@ public SyncPoller, Void> beginDelete(String sharedPrivateLinkRe * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -844,7 +872,8 @@ private Mono deleteAsync(String sharedPrivateLinkResourceName, String reso * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -863,7 +892,8 @@ private Mono deleteAsync(String sharedPrivateLinkResourceName, String reso * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -878,7 +908,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 10bfd1d2353bb..697bc434db624 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 @@ -152,7 +152,7 @@ Mono> listKeys(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey") - @ExpectedResponses({ 200, 202 }) + @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> regenerateKey(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -160,16 +160,6 @@ Mono>> regenerateKey(@HostParam("$host") String endpoi @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 }) - @UnexpectedResponseExceptionType(ManagementException.class) - 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); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart") @ExpectedResponses({ 202, 204 }) @@ -445,7 +435,8 @@ 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. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -478,7 +469,8 @@ private Mono> listByResourceGroupSinglePageA /** * Handles requests to list all resources in a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -513,7 +505,8 @@ private Mono> listByResourceGroupSinglePageA /** * Handles requests to list all resources in a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -529,7 +522,8 @@ private PagedFlux listByResourceGroupAsync(String resource /** * Handles requests to list all resources in a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -546,7 +540,8 @@ private PagedFlux listByResourceGroupAsync(String resource /** * Handles requests to list all resources in a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -561,7 +556,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -577,7 +573,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -612,7 +609,8 @@ private Mono> getByResourceGroupWithResponseAsync /** * Get the resource and its properties. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -647,7 +645,8 @@ private Mono> getByResourceGroupWithResponseAsync /** * Get the resource and its properties. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -663,7 +662,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -680,7 +680,8 @@ public Response getByResourceGroupWithResponse(String reso /** * Get the resource and its properties. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -695,7 +696,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -736,7 +738,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @param context The context to associate with this operation. @@ -777,7 +780,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -797,7 +801,8 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @param context The context to associate with this operation. @@ -819,7 +824,8 @@ private PollerFlux, SignalRResourceInner> begin /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -836,7 +842,8 @@ private PollerFlux, SignalRResourceInner> begin /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @param context The context to associate with this operation. @@ -854,7 +861,8 @@ public SyncPoller, SignalRResourceInner> beginC /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -872,7 +880,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @param context The context to associate with this operation. @@ -891,7 +900,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -908,7 +918,8 @@ public SignalRResourceInner createOrUpdate(String resourceGroupName, String reso /** * Create or update a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the create or update operation. * @param context The context to associate with this operation. @@ -926,7 +937,8 @@ public SignalRResourceInner createOrUpdate(String resourceGroupName, String reso /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -960,7 +972,8 @@ private Mono>> deleteWithResponseAsync(String resource /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -995,7 +1008,8 @@ private Mono>> deleteWithResponseAsync(String resource /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1012,7 +1026,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1032,7 +1047,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1047,7 +1063,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1064,7 +1081,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1079,7 +1097,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1096,7 +1115,8 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, Co /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1110,7 +1130,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1125,7 +1146,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1166,7 +1188,8 @@ private Mono>> updateWithResponseAsync(String resource /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @param context The context to associate with this operation. @@ -1207,7 +1230,8 @@ private Mono>> updateWithResponseAsync(String resource /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1226,7 +1250,8 @@ private Mono>> updateWithResponseAsync(String resource /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @param context The context to associate with this operation. @@ -1248,7 +1273,8 @@ private PollerFlux, SignalRResourceInner> begin /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1265,7 +1291,8 @@ public SyncPoller, SignalRResourceInner> beginU /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @param context The context to associate with this operation. @@ -1283,7 +1310,8 @@ public SyncPoller, SignalRResourceInner> beginU /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1301,7 +1329,8 @@ private Mono updateAsync(String resourceGroupName, String /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @param context The context to associate with this operation. @@ -1320,7 +1349,8 @@ private Mono updateAsync(String resourceGroupName, String /** * Operation to update an exiting resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1336,7 +1366,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameters for the update operation. * @param context The context to associate with this operation. @@ -1354,7 +1385,8 @@ public SignalRResourceInner update(String resourceGroupName, String resourceName /** * Get the access keys of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1388,7 +1420,8 @@ private Mono> listKeysWithResponseAsync(String resour /** * Get the access keys of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1423,7 +1456,8 @@ private Mono> listKeysWithResponseAsync(String resour /** * Get the access keys of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1439,7 +1473,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1456,7 +1491,8 @@ public Response listKeysWithResponse(String resourceGroupName, /** * Get the access keys of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1471,7 +1507,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1513,7 +1550,8 @@ private Mono>> regenerateKeyWithResponseAsync(String r /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. @@ -1555,7 +1593,8 @@ private Mono>> regenerateKeyWithResponseAsync(String r /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1575,7 +1614,8 @@ private PollerFlux, SignalRKeysInner> beginRegenera /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. @@ -1597,7 +1637,8 @@ private PollerFlux, SignalRKeysInner> beginRegenera /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1614,7 +1655,8 @@ public SyncPoller, SignalRKeysInner> beginRegenerat /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. @@ -1632,7 +1674,8 @@ public SyncPoller, SignalRKeysInner> beginRegenerat /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1650,7 +1693,8 @@ private Mono regenerateKeyAsync(String resourceGroupName, Stri /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. @@ -1669,7 +1713,8 @@ private Mono regenerateKeyAsync(String resourceGroupName, Stri /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1686,7 +1731,8 @@ public SignalRKeysInner regenerateKey(String resourceGroupName, String resourceN /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. @@ -1701,139 +1747,11 @@ public SignalRKeysInner regenerateKey(String resourceGroupName, String resourceN 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. - * @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 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) { - 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.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. - * @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 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) { - 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.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. - * @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 list skus operation response on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listReplicaSkusAsync(String resourceGroupName, String resourceName, String replicaName) { - return listReplicaSkusWithResponseAsync(resourceGroupName, resourceName, replicaName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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. - * @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 list skus operation response along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - 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. - * @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 list skus operation response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SkuListInner listReplicaSkus(String resourceGroupName, String resourceName, String replicaName) { - return listReplicaSkusWithResponse(resourceGroupName, resourceName, replicaName, Context.NONE).getValue(); - } - /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1867,7 +1785,8 @@ private Mono>> restartWithResponseAsync(String resourc /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1902,7 +1821,8 @@ private Mono>> restartWithResponseAsync(String resourc /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1919,7 +1839,8 @@ private PollerFlux, Void> beginRestartAsync(String resourceGrou /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1939,7 +1860,8 @@ private PollerFlux, Void> beginRestartAsync(String resourceGrou /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1954,7 +1876,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1971,7 +1894,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -1986,7 +1910,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2003,7 +1928,8 @@ private Mono restartAsync(String resourceGroupName, String resourceName, C /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -2017,7 +1943,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2032,7 +1959,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -2066,7 +1994,8 @@ private Mono> listSkusWithResponseAsync(String resourceGr /** * List all available skus of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2101,7 +2030,8 @@ private Mono> listSkusWithResponseAsync(String resourceGr /** * List all available skus of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -2117,7 +2047,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2133,7 +2064,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. 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 48f0f585e400d..7c52aaa797f8a 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 @@ -146,27 +146,6 @@ public SignalRKeys regenerateKey(String resourceGroupName, String resourceName, } } - 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(), - new SkuListImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public SkuList listReplicaSkus(String resourceGroupName, String resourceName, String replicaName) { - SkuListInner inner = this.serviceClient().listReplicaSkus(resourceGroupName, resourceName, replicaName); - if (inner != null) { - return new SkuListImpl(inner, this.manager()); - } else { - return null; - } - } - public void restart(String resourceGroupName, String resourceName) { this.serviceClient().restart(resourceGroupName, resourceName); } 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 d216f2a703ce8..6d87a86da1e4d 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 @@ -34,7 +34,7 @@ public interface CustomCertificate { String type(); /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. * * @return the systemData value. */ @@ -106,7 +106,8 @@ interface WithParentResource { /** * Specifies resourceGroupName, resourceName. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this + * value from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @return the next definition stage. */ 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 eb66da819235a..45cd0804667e7 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 @@ -34,7 +34,7 @@ public interface CustomDomain { String type(); /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. * * @return the systemData value. */ @@ -99,7 +99,8 @@ interface WithParentResource { /** * Specifies resourceGroupName, resourceName. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this + * value from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @return the next definition stage. */ 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 deleted file mode 100644 index 3fc17f4c8b272..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/IpRule.java +++ /dev/null @@ -1,121 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * An IP rule. - */ -@Fluent -public final class IpRule implements JsonSerializable { - /* - * An IP or CIDR or ServiceTag - */ - private String value; - - /* - * Azure Networking ACL Action. - */ - private AclAction action; - - /** - * 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() { - return this.value; - } - - /** - * Set the value property: An IP or CIDR or ServiceTag. - * - * @param value the value value to set. - * @return the IpRule object itself. - */ - public IpRule withValue(String value) { - this.value = value; - return this; - } - - /** - * Get the action property: Azure Networking ACL Action. - * - * @return the action value. - */ - public AclAction action() { - return this.action; - } - - /** - * Set the action property: Azure Networking ACL Action. - * - * @param action the action value to set. - * @return the IpRule object itself. - */ - public IpRule withAction(AclAction action) { - this.action = action; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("value", this.value); - jsonWriter.writeStringField("action", this.action == null ? null : this.action.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of IpRule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of IpRule if the JsonReader was pointing to an instance of it, or null if it was pointing to - * JSON null. - * @throws IOException If an error occurs while reading the IpRule. - */ - public static IpRule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - IpRule deserializedIpRule = new IpRule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - deserializedIpRule.value = reader.getString(); - } else if ("action".equals(fieldName)) { - deserializedIpRule.action = AclAction.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedIpRule; - }); - } -} 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 a7b2fe517eb6b..55e7b254bae7a 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 @@ -18,8 +18,7 @@ @Fluent public final class NameAvailabilityParameters implements JsonSerializable { /* - * 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" or "Microsoft.SignalRService/webPubSub" */ private String type; @@ -35,9 +34,8 @@ 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". + * Get the type property: The resource type. Can be "Microsoft.SignalRService/SignalR" or + * "Microsoft.SignalRService/webPubSub". * * @return the type value. */ @@ -46,9 +44,8 @@ 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". + * Set the type property: The resource type. Can be "Microsoft.SignalRService/SignalR" or + * "Microsoft.SignalRService/webPubSub". * * @param type the type value to set. * @return the NameAvailabilityParameters object itself. 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 cb9113f8cb78c..8f87d9d042ae2 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 @@ -34,7 +34,7 @@ public interface PrivateEndpointConnection { String type(); /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. * * @return the systemData value. */ diff --git a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkResource.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkResource.java index 94fd8d7a2ccfa..c2b538f463859 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkResource.java +++ b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/PrivateLinkResource.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.signalr.models; -import com.azure.core.management.SystemData; import com.azure.resourcemanager.signalr.fluent.models.PrivateLinkResourceInner; import java.util.List; @@ -33,13 +32,6 @@ public interface PrivateLinkResource { */ 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: Group Id of the private link resource. * 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 deleted file mode 100644 index a697207f36516..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/Replica.java +++ /dev/null @@ -1,381 +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.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.signalr.fluent.models.ReplicaInner; -import java.util.Map; - -/** - * 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. - * - * @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. - * - * @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 Replica definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the Replica definition. - */ - interface Blank extends WithLocation { - } - - /** - * 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. - */ - WithParentResource withRegion(Region location); - - /** - * 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. - */ - 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. - */ - WithCreate withExistingSignalR(String resourceGroupName, String resourceName); - } - - /** - * 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 { - /** - * 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. - */ - 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. - */ - 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. - */ - 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. - * @return the next definition stage. - */ - WithCreate withRegionEndpointEnabled(String regionEndpointEnabled); - } - - /** - * 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. - * @return the next definition stage. - */ - WithCreate withResourceStopped(String resourceStopped); - } - } - - /** - * 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 { - /** - * 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. - */ - interface UpdateStages { - /** - * 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. - */ - 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. - */ - 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. - * @return the next definition stage. - */ - Update withRegionEndpointEnabled(String regionEndpointEnabled); - } - - /** - * 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. - * @return the next definition stage. - */ - Update withResourceStopped(String resourceStopped); - } - } - - /** - * 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. - */ - Replica refresh(Context context); - - /** - * 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. - */ - void restart(); - - /** - * 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void restart(Context context); -} 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 deleted file mode 100644 index 3b869408b79e2..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/ReplicaList.java +++ /dev/null @@ -1,130 +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.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.signalr.fluent.models.ReplicaInner; -import java.io.IOException; -import java.util.List; - -/** - * The ReplicaList model. - */ -@Fluent -public final class ReplicaList implements JsonSerializable { - /* - * List of the replica - */ - private List value; - - /* - * The URL the client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - private String nextLink; - - /** - * Creates an instance of ReplicaList class. - */ - public ReplicaList() { - } - - /** - * Get the value property: List of the replica. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of the replica. - * - * @param value the value value to set. - * @return the ReplicaList object itself. - */ - public ReplicaList withValue(List value) { - this.value = value; - return this; - } - - /** - * 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() { - return this.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. - * - * @param nextLink the nextLink value to set. - * @return the ReplicaList object itself. - */ - public ReplicaList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ReplicaList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ReplicaList if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. - * @throws IOException If an error occurs while reading the ReplicaList. - */ - public static ReplicaList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ReplicaList deserializedReplicaList = new ReplicaList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> ReplicaInner.fromJson(reader1)); - deserializedReplicaList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedReplicaList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedReplicaList; - }); - } -} 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 2a5e290dfd359..2a31bac3d833c 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,7 +8,7 @@ import java.util.Collection; /** - * The kind of the service. + * The kind of the service, it can be SignalR or RawWebSockets. */ public final class ServiceKind extends ExpandableStringEnum { /** 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 958a9a883aeb1..660526317c70a 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 @@ -34,7 +34,7 @@ public interface SharedPrivateLinkResource { String type(); /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. * * @return the systemData value. */ @@ -114,7 +114,8 @@ interface WithParentResource { /** * Specifies resourceGroupName, resourceName. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this + * value from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @return the next definition stage. */ 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 4014df74996a3..486b38692960b 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 @@ -15,7 +15,8 @@ public interface SignalRCustomCertificates { /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -27,7 +28,8 @@ public interface SignalRCustomCertificates { /** * List all custom certificates. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -40,7 +42,8 @@ public interface SignalRCustomCertificates { /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param context The context to associate with this operation. @@ -55,7 +58,8 @@ Response getWithResponse(String resourceGroupName, String res /** * Get a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -68,7 +72,8 @@ Response getWithResponse(String resourceGroupName, String res /** * Delete a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @param context The context to associate with this operation. @@ -83,7 +88,8 @@ Response deleteWithResponse(String resourceGroupName, String resourceName, /** * Delete a custom certificate. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param certificateName Custom certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 6da9815ec6506..6042977cdcc83 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 @@ -15,7 +15,8 @@ public interface SignalRCustomDomains { /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -27,7 +28,8 @@ public interface SignalRCustomDomains { /** * List all custom domains. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -40,7 +42,8 @@ public interface SignalRCustomDomains { /** * Get a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @param context The context to associate with this operation. @@ -54,7 +57,8 @@ public interface SignalRCustomDomains { /** * Get a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -67,7 +71,8 @@ public interface SignalRCustomDomains { /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -79,7 +84,8 @@ public interface SignalRCustomDomains { /** * Delete a custom domain. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param name Custom domain name. * @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/SignalRNetworkACLs.java b/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRNetworkACLs.java index d1b209e2e387a..76c8c37a9c53c 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 @@ -32,11 +32,6 @@ public final class SignalRNetworkACLs implements JsonSerializable privateEndpoints; - /* - * IP rules for filtering public traffic - */ - private List ipRules; - /** * Creates an instance of SignalRNetworkACLs class. */ @@ -103,26 +98,6 @@ public SignalRNetworkACLs withPrivateEndpoints(List privateE return this; } - /** - * Get the ipRules property: IP rules for filtering public traffic. - * - * @return the ipRules value. - */ - public List ipRules() { - return this.ipRules; - } - - /** - * Set the ipRules property: IP rules for filtering public traffic. - * - * @param ipRules the ipRules value to set. - * @return the SignalRNetworkACLs object itself. - */ - public SignalRNetworkACLs withIpRules(List ipRules) { - this.ipRules = ipRules; - return this; - } - /** * Validates the instance. * @@ -135,9 +110,6 @@ public void validate() { if (privateEndpoints() != null) { privateEndpoints().forEach(e -> e.validate()); } - if (ipRules() != null) { - ipRules().forEach(e -> e.validate()); - } } /** @@ -150,7 +122,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("publicNetwork", this.publicNetwork); jsonWriter.writeArrayField("privateEndpoints", this.privateEndpoints, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeArrayField("ipRules", this.ipRules, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -177,9 +148,6 @@ public static SignalRNetworkACLs fromJson(JsonReader jsonReader) throws IOExcept List privateEndpoints = reader.readArray(reader1 -> PrivateEndpointAcl.fromJson(reader1)); deserializedSignalRNetworkACLs.privateEndpoints = privateEndpoints; - } else if ("ipRules".equals(fieldName)) { - List ipRules = reader.readArray(reader1 -> IpRule.fromJson(reader1)); - deserializedSignalRNetworkACLs.ipRules = ipRules; } else { reader.skipChildren(); } 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 1b06a43a0b9c8..8b1f3691c3d4b 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 @@ -16,7 +16,8 @@ public interface SignalRPrivateEndpointConnections { /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -28,7 +29,8 @@ public interface SignalRPrivateEndpointConnections { /** * List private endpoint connections. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,9 +43,9 @@ public interface SignalRPrivateEndpointConnections { /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -57,9 +59,9 @@ Response getWithResponse(String privateEndpointConnec /** * Get the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -71,9 +73,9 @@ Response getWithResponse(String privateEndpointConnec /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @param context The context to associate with this operation. @@ -88,9 +90,9 @@ Response updateWithResponse(String privateEndpointCon /** * Update the state of specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters The resource of private endpoint and its properties. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -104,9 +106,9 @@ PrivateEndpointConnection update(String privateEndpointConnectionName, String re /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -117,9 +119,9 @@ PrivateEndpointConnection update(String privateEndpointConnectionName, String re /** * Delete the specified private endpoint connection. * - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 6b2490508fb0f..18102b2db1dd0 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 @@ -14,7 +14,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -27,7 +28,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 deleted file mode 100644 index cbec22f2104df..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/main/java/com/azure/resourcemanager/signalr/models/SignalRReplicas.java +++ /dev/null @@ -1,172 +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.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 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. - * @throws com.azure.core.management.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 paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String resourceName); - - /** - * 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. - * @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 paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String resourceName, 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. - * @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 replica and its properties along with {@link Response}. - */ - 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. - * @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 replica and its properties. - */ - Replica get(String resourceGroupName, String resourceName, String replicaName); - - /** - * 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. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response 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. - * @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 delete(String resourceGroupName, String resourceName, String replicaName); - - /** - * 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. - * @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 restart(String resourceGroupName, String resourceName, String replicaName); - - /** - * 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. - * @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 restart(String resourceGroupName, String resourceName, String replicaName, Context context); - - /** - * 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the replica and its properties along with {@link Response}. - */ - Replica getById(String id); - - /** - * 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. - * @throws com.azure.core.management.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 replica and its properties along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * 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. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * 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. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new Replica resource. - * - * @param name resource name. - * @return the first stage of the new Replica definition. - */ - Replica.DefinitionStages.Blank define(String name); -} 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 144dfd2c40f91..ab174ea2f9500 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 @@ -59,7 +59,7 @@ public interface SignalRResource { ResourceSku sku(); /** - * Gets the kind property: The kind of the service. + * Gets the kind property: The kind of the service, it can be SignalR or RawWebSockets. * * @return the kind value. */ @@ -73,7 +73,7 @@ public interface SignalRResource { ManagedIdentity identity(); /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. * * @return the systemData value. */ @@ -232,25 +232,6 @@ public interface SignalRResource { */ 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. - * 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. - * - * @return the resourceStopped value. - */ - String resourceStopped(); - /** * Gets the region of the resource. * @@ -324,7 +305,8 @@ interface WithResourceGroup { /** * Specifies resourceGroupName. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this + * value from the Azure Resource Manager API or the portal. * @return the next definition stage. */ WithCreate withExistingResourceGroup(String resourceGroupName); @@ -339,8 +321,7 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithSku DefinitionStages.WithLiveTraceConfiguration, DefinitionStages.WithResourceLogConfiguration, DefinitionStages.WithCors, DefinitionStages.WithServerless, DefinitionStages.WithUpstream, DefinitionStages.WithNetworkACLs, DefinitionStages.WithPublicNetworkAccess, - DefinitionStages.WithDisableLocalAuth, DefinitionStages.WithDisableAadAuth, - DefinitionStages.WithRegionEndpointEnabled, DefinitionStages.WithResourceStopped { + DefinitionStages.WithDisableLocalAuth, DefinitionStages.WithDisableAadAuth { /** * Executes the create request. * @@ -388,9 +369,9 @@ interface WithSku { */ interface WithKind { /** - * Specifies the kind property: The kind of the service. + * Specifies the kind property: The kind of the service, it can be SignalR or RawWebSockets. * - * @param kind The kind of the service. + * @param kind The kind of the service, it can be SignalR or RawWebSockets. * @return the next definition stage. */ WithCreate withKind(ServiceKind kind); @@ -576,43 +557,6 @@ interface WithDisableAadAuth { */ WithCreate withDisableAadAuth(Boolean disableAadAuth); } - - /** - * 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. - * @return the next definition stage. - */ - WithCreate withRegionEndpointEnabled(String regionEndpointEnabled); - } - - /** - * 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. - * @return the next definition stage. - */ - WithCreate withResourceStopped(String resourceStopped); - } } /** @@ -629,8 +573,7 @@ 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 { + UpdateStages.WithPublicNetworkAccess, UpdateStages.WithDisableLocalAuth, UpdateStages.WithDisableAadAuth { /** * Executes the update request. * @@ -857,43 +800,6 @@ interface WithDisableAadAuth { */ Update withDisableAadAuth(Boolean disableAadAuth); } - - /** - * 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. - * @return the next definition stage. - */ - Update withRegionEndpointEnabled(String regionEndpointEnabled); - } - - /** - * 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. - * @return the next definition stage. - */ - Update withResourceStopped(String resourceStopped); - } } /** 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 dea7b6b3434ab..f0241db58ca8e 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 @@ -15,7 +15,8 @@ public interface SignalRSharedPrivateLinkResources { /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -27,7 +28,8 @@ public interface SignalRSharedPrivateLinkResources { /** * List shared private link resources. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -41,7 +43,8 @@ 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -56,7 +59,8 @@ Response getWithResponse(String sharedPrivateLinkReso * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -69,7 +73,8 @@ Response getWithResponse(String sharedPrivateLinkReso * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -81,7 +86,8 @@ Response getWithResponse(String sharedPrivateLinkReso * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. 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 b9c063e4a5bce..25166f2871b1f 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 @@ -17,8 +17,7 @@ @Fluent public final class SignalRTlsSettings implements JsonSerializable { /* - * 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 */ private Boolean clientCertEnabled; @@ -29,8 +28,7 @@ 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. + * Get the clientCertEnabled property: Request client certificate during TLS handshake if enabled. * * @return the clientCertEnabled value. */ @@ -39,8 +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. + * Set the clientCertEnabled property: Request client certificate during TLS handshake if enabled. * * @param clientCertEnabled the clientCertEnabled value to set. * @return the SignalRTlsSettings object itself. 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 99974ecf895da..cbfd80d2ae007 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 @@ -63,7 +63,8 @@ Response checkNameAvailabilityWithResponse(String location, Na /** * Handles requests to list all resources in a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -75,7 +76,8 @@ Response checkNameAvailabilityWithResponse(String location, Na /** * Handles requests to list all resources in a resource group. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -88,7 +90,8 @@ Response checkNameAvailabilityWithResponse(String location, Na /** * Get the resource and its properties. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -102,7 +105,8 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Get the resource and its properties. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -114,7 +118,8 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -125,7 +130,8 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Operation to delete a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +143,8 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Get the access keys of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -150,7 +157,8 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * Get the access keys of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -162,7 +170,8 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -175,7 +184,8 @@ Response getByResourceGroupWithResponse(String resourceGroupNam /** * 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 resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param parameters Parameter that describes the Regenerate Key Operation. * @param context The context to associate with this operation. @@ -187,38 +197,11 @@ Response getByResourceGroupWithResponse(String resourceGroupNam 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. - * @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 list skus operation response along with {@link Response}. - */ - 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. - * @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 list skus operation response. - */ - SkuList listReplicaSkus(String resourceGroupName, String resourceName, String replicaName); - /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. @@ -229,7 +212,8 @@ Response listReplicaSkusWithResponse(String resourceGroupName, String r /** * Operation to restart a resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -241,7 +225,8 @@ Response listReplicaSkusWithResponse(String resourceGroupName, String r /** * List all available skus of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @param resourceName The name of the resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -254,7 +239,8 @@ Response listReplicaSkusWithResponse(String resourceGroupName, String r /** * List all available skus of the resource. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value + * from the Azure Resource Manager API or the portal. * @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. 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 a8bbe0af8dea9..c90074387391b 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.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"],["com.azure.resourcemanager.signalr.implementation.SignalRsClientImpl$SignalRsService"],["com.azure.resourcemanager.signalr.implementation.UsagesClientImpl$UsagesService"]] \ No newline at end of file +[["com.azure.resourcemanager.signalr.implementation.OperationsClientImpl$OperationsService"],["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.SignalRSharedPrivateLinkResourcesClientImpl$SignalRSharedPrivateLinkResourcesService"],["com.azure.resourcemanager.signalr.implementation.SignalRsClientImpl$SignalRsService"],["com.azure.resourcemanager.signalr.implementation.UsagesClientImpl$UsagesService"]] \ No newline at end of file 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 6c5e68df4d633..13eb7adc32fa6 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 @@ -10,8 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * Operations_List.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/Operations_List.json */ /** * Sample code: Operations_List. 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 e494ad5967b56..e15ffbd38cbf7 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 @@ -11,8 +11,7 @@ */ public final class SignalRCheckNameAvailabilitySamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalR_CheckNameAvailability.json */ /** 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 978731e319d35..8c70b6452426b 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 @@ -36,8 +36,8 @@ public final class SignalRCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_CreateOrUpdate.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_CreateOrUpdate + * .json */ /** * Sample code: SignalR_CreateOrUpdate. 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 ccb55449b94f8..2eea814e81e0b 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 @@ -9,8 +9,7 @@ */ public final class SignalRCustomCertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomCertificates_CreateOrUpdate.json */ /** 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 d543717021643..bb9d4f8f612f7 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 @@ -9,8 +9,7 @@ */ public final class SignalRCustomCertificatesDeleteSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomCertificates_Delete.json */ /** 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 267864404a804..e8e6fdbd4e077 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 @@ -9,8 +9,7 @@ */ public final class SignalRCustomCertificatesGetSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomCertificates_Get.json */ /** 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 459fdede765ec..795cee3f2351b 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 @@ -9,8 +9,7 @@ */ public final class SignalRCustomCertificatesListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomCertificates_List.json */ /** 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 49ca54ab94eeb..e08ced0441bd0 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 @@ -11,8 +11,7 @@ */ public final class SignalRCustomDomainsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomDomains_CreateOrUpdate.json */ /** 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 c5206a52ca679..a4c05d788b16a 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 @@ -9,8 +9,7 @@ */ public final class SignalRCustomDomainsDeleteSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomDomains_Delete.json */ /** 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 22c33d9300b3a..74f6f71973627 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 @@ -9,8 +9,7 @@ */ public final class SignalRCustomDomainsGetSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomDomains_Get.json */ /** 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 36ca67233bda7..990cb2555c7e4 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 @@ -9,8 +9,7 @@ */ public final class SignalRCustomDomainsListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRCustomDomains_List.json */ /** 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 122bd5ad6e5b6..5ee9ee5f738de 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 @@ -10,8 +10,7 @@ public final class SignalRDeleteSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_Delete.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_Delete.json */ /** * Sample code: SignalR_Delete. 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 69e3c7ba3247e..5cbab30d06097 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 @@ -10,8 +10,7 @@ public final class SignalRGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/SignalR_Get. - * json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_Get.json */ /** * Sample code: SignalR_Get. 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 5dbee29be8218..ae7a73d8ec48d 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 @@ -9,8 +9,7 @@ */ public final class SignalRListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalR_ListByResourceGroup.json */ /** 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 d65092e5aeda8..a0572ae9f92b4 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 @@ -10,8 +10,7 @@ public final class SignalRListKeysSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_ListKeys.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_ListKeys.json */ /** * Sample code: SignalR_ListKeys. 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 deleted file mode 100644 index 4855ed311910b..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRListReplicaSkusSamples.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; - -/** - * 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 - */ - /** - * 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); - } -} 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 498782bc3078c..f9f926ce6229e 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 @@ -9,8 +9,7 @@ */ public final class SignalRListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalR_ListBySubscription.json */ /** 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 b375c810e9be9..c764f1727bf8c 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 @@ -10,8 +10,7 @@ public final class SignalRListSkusSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_ListSkus.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_ListSkus.json */ /** * Sample code: SignalR_ListSkus. 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 a310542e00ccb..b9b3d0df2c396 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 @@ -9,8 +9,7 @@ */ public final class SignalRPrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateEndpointConnections_Delete.json */ /** 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 709e89ba765ca..b386a0a74d51b 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 @@ -9,8 +9,7 @@ */ public final class SignalRPrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateEndpointConnections_Get.json */ /** 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 5815fd3866a5f..d52a23671cdb0 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 @@ -9,8 +9,7 @@ */ public final class SignalRPrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateEndpointConnections_List.json */ /** 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 fbc6caaa2118a..d20177d0cbd25 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 @@ -14,8 +14,7 @@ */ public final class SignalRPrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateEndpointConnections_Update.json */ /** @@ -28,7 +27,8 @@ public final class SignalRPrivateEndpointConnectionsUpdateSamples { manager.signalRPrivateEndpointConnections() .updateWithResponse("mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e", "myResourceGroup", "mySignalRService", - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint")) .withPrivateLinkServiceConnectionState( new PrivateLinkServiceConnectionState().withStatus(PrivateLinkServiceConnectionStatus.APPROVED) .withActionsRequired("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 834fa0bde301c..00b949d85302c 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 @@ -9,8 +9,7 @@ */ public final class SignalRPrivateLinkResourcesListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRPrivateLinkResources_List.json */ /** 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 9beadebe03eab..e4a1f4b871914 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 @@ -13,8 +13,8 @@ public final class SignalRRegenerateKeySamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_RegenerateKey.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_RegenerateKey. + * json */ /** * Sample code: SignalR_RegenerateKey. 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 deleted file mode 100644 index 274f91c71b859..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateSamples.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.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.util.HashMap; -import java.util.Map; - -/** - * 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 - */ - /** - * Sample code: SignalRReplicas_CreateOrUpdate. - * - * @param manager Entry point to SignalRManager. - */ - public static void signalRReplicasCreateOrUpdate(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager.signalRReplicas() - .define("mySignalRService-eastus") - .withRegion("eastus") - .withExistingSignalR("myResourceGroup", "mySignalRService") - .withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withSku(new ResourceSku().withName("Premium_P1").withTier(SignalRSkuTier.PREMIUM).withCapacity(1)) - .withResourceStopped("false") - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/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 deleted file mode 100644 index 4aa8ba232476a..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteSamples.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; - -/** - * 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 - */ - /** - * 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); - } -} 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 deleted file mode 100644 index 5048a4d5be056..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetSamples.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; - -/** - * 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 - */ - /** - * 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); - } -} 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 deleted file mode 100644 index 4ddd6e0ade148..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListSamples.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; - -/** - * 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 - */ - /** - * Sample code: SignalRReplicas_List. - * - * @param manager Entry point to SignalRManager. - */ - public static void signalRReplicasList(com.azure.resourcemanager.signalr.SignalRManager manager) { - manager.signalRReplicas().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/SignalRReplicasRestartSamples.java b/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasRestartSamples.java deleted file mode 100644 index 39336551693f2..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasRestartSamples.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; - -/** - * 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 - */ - /** - * 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); - } -} 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 deleted file mode 100644 index bdf3d51f42bbf..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/samples/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasUpdateSamples.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.resourcemanager.signalr.models.Replica; -import com.azure.resourcemanager.signalr.models.ResourceSku; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.util.HashMap; -import java.util.Map; - -/** - * 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 - */ - /** - * 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() - .withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withSku(new ResourceSku().withName("Premium_P1").withTier(SignalRSkuTier.PREMIUM).withCapacity(1)) - .withResourceStopped("false") - .apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/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 1d30028719273..77823766ce28c 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 @@ -10,8 +10,7 @@ public final class SignalRRestartSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_Restart.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_Restart.json */ /** * Sample code: SignalR_Restart. 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 05dc045e17c81..2544588a2a0c8 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 @@ -9,8 +9,7 @@ */ public final class SignalRSharedPrivateLinkResourcesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRSharedPrivateLinkResources_CreateOrUpdate.json */ /** 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 7aeb102070a9a..89b00cb27ba38 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 @@ -9,8 +9,7 @@ */ public final class SignalRSharedPrivateLinkResourcesDeleteSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRSharedPrivateLinkResources_Delete.json */ /** 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 ac5e6702ba428..6f563a35d8f1f 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 @@ -9,8 +9,7 @@ */ public final class SignalRSharedPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRSharedPrivateLinkResources_Get.json */ /** 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 9309af310767c..9ae97b1664d7c 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 @@ -9,8 +9,7 @@ */ public final class SignalRSharedPrivateLinkResourcesListSamples { /* - * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ + * x-ms-original-file: specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/ * SignalRSharedPrivateLinkResources_List.json */ /** 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 99032758efa8b..aad5603fff8a4 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 @@ -36,8 +36,7 @@ public final class SignalRUpdateSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/ - * SignalR_Update.json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/SignalR_Update.json */ /** * Sample code: SignalR_Update. 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 5634773f01234..801571bce74f5 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 @@ -10,8 +10,7 @@ public final class UsagesListSamples { /* * x-ms-original-file: - * specification/signalr/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List. - * json + * specification/signalr/resource-manager/Microsoft.SignalRService/stable/2023-02-01/examples/Usages_List.json */ /** * Sample code: Usages_List. 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 index f8c6aa7eac96c..80da228c53573 100644 --- 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 @@ -13,18 +13,18 @@ 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\"}") + "{\"properties\":{\"provisioningState\":\"Succeeded\",\"domainName\":\"rn\",\"customCertificate\":{\"id\":\"x\"}},\"id\":\"huwrykqgaifm\",\"name\":\"iklbydvkhb\",\"type\":\"jdz\"}") .toObject(CustomDomainInner.class); - Assertions.assertEquals("aehvbbxuri", model.domainName()); - Assertions.assertEquals("tfnhtbaxkgxywr", model.customCertificate().id()); + Assertions.assertEquals("rn", model.domainName()); + Assertions.assertEquals("x", model.customCertificate().id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CustomDomainInner model = new CustomDomainInner().withDomainName("aehvbbxuri") - .withCustomCertificate(new ResourceReference().withId("tfnhtbaxkgxywr")); + CustomDomainInner model + = new CustomDomainInner().withDomainName("rn").withCustomCertificate(new ResourceReference().withId("x")); model = BinaryData.fromObject(model).toObject(CustomDomainInner.class); - Assertions.assertEquals("aehvbbxuri", model.domainName()); - Assertions.assertEquals("tfnhtbaxkgxywr", model.customCertificate().id()); + Assertions.assertEquals("rn", model.domainName()); + Assertions.assertEquals("x", 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 index 1cd7b49b80316..0853fcc4e9d97 100644 --- 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 @@ -15,21 +15,24 @@ 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\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"domainName\":\"ublwpcesutrg\",\"customCertificate\":{\"id\":\"pauutpw\"}},\"id\":\"qhih\",\"name\":\"jqgwzp\",\"type\":\"fqntcyp\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"domainName\":\"foimwkslircizjxv\",\"customCertificate\":{\"id\":\"fceacvlhvygd\"}},\"id\":\"ftumrtwnawjslbiw\",\"name\":\"ojgcyzt\",\"type\":\"fmznba\"}],\"nextLink\":\"ph\"}") .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()); + Assertions.assertEquals("ublwpcesutrg", model.value().get(0).domainName()); + Assertions.assertEquals("pauutpw", model.value().get(0).customCertificate().id()); + Assertions.assertEquals("ph", 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"); + CustomDomainList model = new CustomDomainList().withValue(Arrays.asList( + new CustomDomainInner().withDomainName("ublwpcesutrg") + .withCustomCertificate(new ResourceReference().withId("pauutpw")), + new CustomDomainInner().withDomainName("foimwkslircizjxv") + .withCustomCertificate(new ResourceReference().withId("fceacvlhvygd")))) + .withNextLink("ph"); 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()); + Assertions.assertEquals("ublwpcesutrg", model.value().get(0).domainName()); + Assertions.assertEquals("pauutpw", model.value().get(0).customCertificate().id()); + Assertions.assertEquals("ph", 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 index e01b52de174a4..ea9f262a3be1c 100644 --- 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 @@ -12,19 +12,20 @@ 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\"}}") + CustomDomainProperties model = BinaryData + .fromString( + "{\"provisioningState\":\"Running\",\"domainName\":\"vdsrhnjiv\",\"customCertificate\":{\"id\":\"v\"}}") .toObject(CustomDomainProperties.class); - Assertions.assertEquals("zlhp", model.domainName()); - Assertions.assertEquals("dqkdlwwqfbu", model.customCertificate().id()); + Assertions.assertEquals("vdsrhnjiv", model.domainName()); + Assertions.assertEquals("v", model.customCertificate().id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CustomDomainProperties model = new CustomDomainProperties().withDomainName("zlhp") - .withCustomCertificate(new ResourceReference().withId("dqkdlwwqfbu")); + CustomDomainProperties model = new CustomDomainProperties().withDomainName("vdsrhnjiv") + .withCustomCertificate(new ResourceReference().withId("v")); model = BinaryData.fromObject(model).toObject(CustomDomainProperties.class); - Assertions.assertEquals("zlhp", model.domainName()); - Assertions.assertEquals("dqkdlwwqfbu", model.customCertificate().id()); + Assertions.assertEquals("vdsrhnjiv", model.domainName()); + Assertions.assertEquals("v", model.customCertificate().id()); } } 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 a1ba755f25e85..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 index 46a7c8a4f52df..67a59e605d69f 100644 --- 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 @@ -11,17 +11,17 @@ public final class LiveTraceCategoryTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - LiveTraceCategory model = BinaryData.fromString("{\"name\":\"ool\",\"enabled\":\"tpkiwkkbnujry\"}") + LiveTraceCategory model = BinaryData.fromString("{\"name\":\"ejjoqkagfhsxtta\",\"enabled\":\"zxnfaaz\"}") .toObject(LiveTraceCategory.class); - Assertions.assertEquals("ool", model.name()); - Assertions.assertEquals("tpkiwkkbnujry", model.enabled()); + Assertions.assertEquals("ejjoqkagfhsxtta", model.name()); + Assertions.assertEquals("zxnfaaz", model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LiveTraceCategory model = new LiveTraceCategory().withName("ool").withEnabled("tpkiwkkbnujry"); + LiveTraceCategory model = new LiveTraceCategory().withName("ejjoqkagfhsxtta").withEnabled("zxnfaaz"); model = BinaryData.fromObject(model).toObject(LiveTraceCategory.class); - Assertions.assertEquals("ool", model.name()); - Assertions.assertEquals("tpkiwkkbnujry", model.enabled()); + Assertions.assertEquals("ejjoqkagfhsxtta", model.name()); + Assertions.assertEquals("zxnfaaz", 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 index 26316760b2baf..46cc04cf90a81 100644 --- 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 @@ -14,23 +14,22 @@ 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\"}]}") + "{\"enabled\":\"krrjrea\",\"categories\":[{\"name\":\"gumhjglikkxws\",\"enabled\":\"lbqpvuzlmvfelf\"},{\"name\":\"gplcrpwjxeznoigb\",\"enabled\":\"jwmwkpnbs\"}]}") .toObject(LiveTraceConfiguration.class); - Assertions.assertEquals("tezlwff", model.enabled()); - Assertions.assertEquals("pjpqqmtedltmmji", model.categories().get(0).name()); - Assertions.assertEquals("eozphv", model.categories().get(0).enabled()); + Assertions.assertEquals("krrjrea", model.enabled()); + Assertions.assertEquals("gumhjglikkxws", model.categories().get(0).name()); + Assertions.assertEquals("lbqpvuzlmvfelf", 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"))); + LiveTraceConfiguration model = new LiveTraceConfiguration().withEnabled("krrjrea") + .withCategories( + Arrays.asList(new LiveTraceCategory().withName("gumhjglikkxws").withEnabled("lbqpvuzlmvfelf"), + new LiveTraceCategory().withName("gplcrpwjxeznoigb").withEnabled("jwmwkpnbs"))); 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()); + Assertions.assertEquals("krrjrea", model.enabled()); + Assertions.assertEquals("gumhjglikkxws", model.categories().get(0).name()); + Assertions.assertEquals("lbqpvuzlmvfelf", model.categories().get(0).enabled()); } } 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 index 78e0d6f86c46c..8eced5cbcf929 100644 --- 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 @@ -12,14 +12,14 @@ 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()); + = BinaryData.fromString("{\"resource\":\"bycnunvjsrtkf\"}").toObject(ManagedIdentitySettings.class); + Assertions.assertEquals("bycnunvjsrtkf", model.resource()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedIdentitySettings model = new ManagedIdentitySettings().withResource("rfh"); + ManagedIdentitySettings model = new ManagedIdentitySettings().withResource("bycnunvjsrtkf"); model = BinaryData.fromObject(model).toObject(ManagedIdentitySettings.class); - Assertions.assertEquals("rfh", model.resource()); + Assertions.assertEquals("bycnunvjsrtkf", 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 index d3997f8fb4240..c5205e39dec03 100644 --- 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 @@ -16,19 +16,17 @@ 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\"}") + "{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ymsgaojfmwnc\":{\"principalId\":\"pniyujviyl\",\"clientId\":\"shfssnrbgyef\"}},\"principalId\":\"mrfhirctymox\",\"tenantId\":\"tpipiwyczuhx\"}") .toObject(ManagedIdentity.class); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_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())); + ManagedIdentity model = new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("ymsgaojfmwnc", new UserAssignedIdentityProperty())); model = BinaryData.fromObject(model).toObject(ManagedIdentity.class); - Assertions.assertEquals(ManagedIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, model.type()); } // Use "Map.of" if available 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 index 13bb34dae653b..6cdf184e1d3e1 100644 --- 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 @@ -13,20 +13,22 @@ 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\"]}") + NetworkAcl model = BinaryData + .fromString( + "{\"allow\":[\"ClientConnection\",\"Trace\"],\"deny\":[\"RESTAPI\",\"Trace\",\"Trace\",\"Trace\"]}") .toObject(NetworkAcl.class); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, model.allow().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.deny().get(0)); + Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.allow().get(0)); + Assertions.assertEquals(SignalRRequestType.RESTAPI, 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)); + NetworkAcl model + = new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.TRACE)) + .withDeny(Arrays.asList(SignalRRequestType.RESTAPI, SignalRRequestType.TRACE, SignalRRequestType.TRACE, + SignalRRequestType.TRACE)); 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)); + Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, model.allow().get(0)); + Assertions.assertEquals(SignalRRequestType.RESTAPI, model.deny().get(0)); } } 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 index be747438be519..9f9bef7b08d07 100644 --- 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 @@ -22,7 +22,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { 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\"}]}}}]}"; + = "{\"value\":[{\"name\":\"rr\",\"isDataAction\":false,\"display\":{\"provider\":\"ydzgkrvqeevtoe\",\"resource\":\"yutnwytpzdmov\",\"operation\":\"fvaawzqa\",\"description\":\"lgzurig\"},\"origin\":\"ecxn\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"pvz\",\"displayName\":\"qtmldgxo\",\"displayDescription\":\"irclnpk\",\"unit\":\"ayzri\",\"aggregationType\":\"hya\",\"fillGapWithZero\":\"vjlboxqvk\",\"category\":\"mxho\",\"dimensions\":[{},{},{}]},{\"name\":\"hdwdi\",\"displayName\":\"mbnraauzzp\",\"displayDescription\":\"a\",\"unit\":\"sdzhezww\",\"aggregationType\":\"iqyuvvfo\",\"fillGapWithZero\":\"p\",\"category\":\"qyikvy\",\"dimensions\":[{}]}],\"logSpecifications\":[{\"name\":\"luwmncst\",\"displayName\":\"jfybvpoekrsgsgb\"},{\"name\":\"uzqgnjdgkynsc\",\"displayName\":\"qhzvhxnkomt\"},{\"name\":\"bo\",\"displayName\":\"pnvdxz\"}]}}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,18 @@ public void testList() throws Exception { 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", + Assertions.assertEquals("rr", response.iterator().next().name()); + Assertions.assertEquals(false, response.iterator().next().isDataAction()); + Assertions.assertEquals("ydzgkrvqeevtoe", response.iterator().next().display().provider()); + Assertions.assertEquals("yutnwytpzdmov", response.iterator().next().display().resource()); + Assertions.assertEquals("fvaawzqa", response.iterator().next().display().operation()); + Assertions.assertEquals("lgzurig", response.iterator().next().display().description()); + Assertions.assertEquals("ecxn", response.iterator().next().origin()); + Assertions.assertEquals("pvz", response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("obrltt", + Assertions.assertEquals("qtmldgxo", response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("sjnygqdnfwqzdzgt", + Assertions.assertEquals("irclnpk", response.iterator() .next() .properties() @@ -52,9 +52,9 @@ public void testList() throws Exception { .metricSpecifications() .get(0) .displayDescription()); - Assertions.assertEquals("axhnfh", + Assertions.assertEquals("ayzri", response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("yvi", + Assertions.assertEquals("hya", response.iterator() .next() .properties() @@ -62,7 +62,7 @@ public void testList() throws Exception { .metricSpecifications() .get(0) .aggregationType()); - Assertions.assertEquals("uwivkxoy", + Assertions.assertEquals("vjlboxqvk", response.iterator() .next() .properties() @@ -70,11 +70,11 @@ public void testList() throws Exception { .metricSpecifications() .get(0) .fillGapWithZero()); - Assertions.assertEquals("nbixxrti", + Assertions.assertEquals("mxho", response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("gclrci", + Assertions.assertEquals("luwmncst", response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("soxfrken", + Assertions.assertEquals("jfybvpoekrsgsgb", 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 index 4d8b2bcc15f5a..69cb7a6fd7f97 100644 --- 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 @@ -14,22 +14,23 @@ public final class PrivateEndpointAclTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointAcl model = BinaryData - .fromString("{\"name\":\"uzvx\",\"allow\":[\"ServerConnection\"],\"deny\":[\"ClientConnection\"]}") + .fromString( + "{\"name\":\"zxscyhwzdgirujb\",\"allow\":[\"RESTAPI\",\"ServerConnection\"],\"deny\":[\"Trace\"]}") .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()); + Assertions.assertEquals(SignalRRequestType.RESTAPI, model.allow().get(0)); + Assertions.assertEquals(SignalRRequestType.TRACE, model.deny().get(0)); + Assertions.assertEquals("zxscyhwzdgirujb", 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"); + PrivateEndpointAcl model = new PrivateEndpointAcl() + .withAllow(Arrays.asList(SignalRRequestType.RESTAPI, SignalRRequestType.SERVER_CONNECTION)) + .withDeny(Arrays.asList(SignalRRequestType.TRACE)) + .withName("zxscyhwzdgirujb"); 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()); + Assertions.assertEquals(SignalRRequestType.RESTAPI, model.allow().get(0)); + Assertions.assertEquals(SignalRRequestType.TRACE, model.deny().get(0)); + Assertions.assertEquals("zxscyhwzdgirujb", 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 index bdfd203270f17..825b17fac7e46 100644 --- 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 @@ -15,28 +15,28 @@ 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\"}") + "{\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{\"id\":\"apfcqdpsq\"},\"groupIds\":[\"psvuoymgc\",\"elvezrypq\",\"mfe\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"wkyhkobopgxe\",\"actionsRequired\":\"owepbqpcrfkb\"}},\"id\":\"ccsnjvcdwxlpq\",\"name\":\"kftnkhtjsyin\",\"type\":\"wfqatmtd\"}") .toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("k", model.privateEndpoint().id()); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.PENDING, + Assertions.assertEquals("apfcqdpsq", model.privateEndpoint().id()); + Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("fbn", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("mctlpdngitv", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("wkyhkobopgxe", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("owepbqpcrfkb", model.privateLinkServiceConnectionState().actionsRequired()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnectionInner model - = new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("k")) + = new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("apfcqdpsq")) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateLinkServiceConnectionStatus.PENDING) - .withDescription("fbn") - .withActionsRequired("mctlpdngitv")); + new PrivateLinkServiceConnectionState().withStatus(PrivateLinkServiceConnectionStatus.APPROVED) + .withDescription("wkyhkobopgxe") + .withActionsRequired("owepbqpcrfkb")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("k", model.privateEndpoint().id()); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.PENDING, + Assertions.assertEquals("apfcqdpsq", model.privateEndpoint().id()); + Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("fbn", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("mctlpdngitv", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("wkyhkobopgxe", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("owepbqpcrfkb", 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 index 61bc974af8bef..a30b01dce2568 100644 --- 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 @@ -17,15 +17,14 @@ 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\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"ejwcwwqiok\"},\"groupIds\":[\"xmojmsvpkjp\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"fz\",\"actionsRequired\":\"jyxgtczh\"}},\"id\":\"ydbsd\",\"name\":\"hmkxmaehvbb\",\"type\":\"uripltfnhtba\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"ckpyklyhplu\"},\"groupIds\":[\"vruu\",\"lgzi\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"tgk\",\"actionsRequired\":\"tvdxeclzedqb\"}},\"id\":\"vh\",\"name\":\"lhpl\",\"type\":\"dqkdlwwqfbu\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"jfsmlmbtxhwgfwsr\"},\"groupIds\":[\"coezbrhubskh\",\"dyg\",\"ookk\"],\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"vleo\",\"actionsRequired\":\"ml\"}},\"id\":\"iqtqzfavyvnq\",\"name\":\"ybar\",\"type\":\"euayjkqabqgzsles\"},{\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{\"id\":\"ntiew\"},\"groupIds\":[\"vbquwr\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"gohbuffkmrq\",\"actionsRequired\":\"vvhmxtdrj\"}},\"id\":\"utacoe\",\"name\":\"jvewzcjznmwcp\",\"type\":\"guaadraufactkahz\"}],\"nextLink\":\"ajjziuxxpshne\"}") .toObject(PrivateEndpointConnectionList.class); - Assertions.assertEquals("ubskhudygoookkq", model.value().get(0).privateEndpoint().id()); + Assertions.assertEquals("ejwcwwqiok", 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()); + Assertions.assertEquals("fz", model.value().get(0).privateLinkServiceConnectionState().description()); + Assertions.assertEquals("jyxgtczh", model.value().get(0).privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("ajjziuxxpshne", model.nextLink()); } @org.junit.jupiter.api.Test @@ -33,31 +32,35 @@ public void testSerialize() throws Exception { PrivateEndpointConnectionList model = new PrivateEndpointConnectionList() .withValue(Arrays.asList( - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint().withId("ubskhudygoookkq")) + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("ejwcwwqiok")) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() .withStatus(PrivateLinkServiceConnectionStatus.REJECTED) - .withDescription("qqybarye") - .withActionsRequired("yjkqabqgzslesjcb")), - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("xtdr")) + .withDescription("fz") + .withActionsRequired("jyxgtczh")), + new PrivateEndpointConnectionInner() + .withPrivateEndpoint(new PrivateEndpoint().withId("ckpyklyhplu")) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateLinkServiceConnectionStatus.DISCONNECTED) - .withDescription("guaadraufactkahz") - .withActionsRequired("ajjziuxxpshne")), + .withStatus(PrivateLinkServiceConnectionStatus.APPROVED) + .withDescription("tgk") + .withActionsRequired("tvdxeclzedqb")), new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint().withId("uvwpklvxwmyg")) + .withPrivateEndpoint(new PrivateEndpoint().withId("jfsmlmbtxhwgfwsr")) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() .withStatus(PrivateLinkServiceConnectionStatus.PENDING) - .withDescription("fozauorsuk") - .withActionsRequired("wbqpl")))) - .withNextLink("i"); + .withDescription("vleo") + .withActionsRequired("ml")), + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("ntiew")) + .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() + .withStatus(PrivateLinkServiceConnectionStatus.REJECTED) + .withDescription("gohbuffkmrq") + .withActionsRequired("vvhmxtdrj")))) + .withNextLink("ajjziuxxpshne"); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionList.class); - Assertions.assertEquals("ubskhudygoookkq", model.value().get(0).privateEndpoint().id()); + Assertions.assertEquals("ejwcwwqiok", 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()); + Assertions.assertEquals("fz", model.value().get(0).privateLinkServiceConnectionState().description()); + Assertions.assertEquals("jyxgtczh", model.value().get(0).privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("ajjziuxxpshne", 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 index 608259bef10a4..606ca7fa51baf 100644 --- 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 @@ -15,28 +15,28 @@ 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\"}}") + "{\"provisioningState\":\"Moving\",\"privateEndpoint\":{\"id\":\"ypgik\"},\"groupIds\":[\"zywkb\",\"rryuzhlhkjo\",\"rvqqaatj\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"oupmfii\",\"actionsRequired\":\"ggjioolvr\"}}") .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("cbdreaxhcexd", model.privateEndpoint().id()); + Assertions.assertEquals("ypgik", model.privateEndpoint().id()); Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("wvrvmtg", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ppyostronzmyhgf", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("oupmfii", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("ggjioolvr", 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")); + PrivateEndpointConnectionProperties model + = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint().withId("ypgik")) + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(PrivateLinkServiceConnectionStatus.APPROVED) + .withDescription("oupmfii") + .withActionsRequired("ggjioolvr")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("cbdreaxhcexd", model.privateEndpoint().id()); + Assertions.assertEquals("ypgik", model.privateEndpoint().id()); Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("wvrvmtg", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ppyostronzmyhgf", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("oupmfii", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("ggjioolvr", 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 index 1b6e6143752a9..26d5e7e845d9f 100644 --- 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 @@ -11,14 +11,14 @@ 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()); + PrivateEndpoint model = BinaryData.fromString("{\"id\":\"kvtkkg\"}").toObject(PrivateEndpoint.class); + Assertions.assertEquals("kvtkkg", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint().withId("nsxkmcwaekrrjr"); + PrivateEndpoint model = new PrivateEndpoint().withId("kvtkkg"); model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - Assertions.assertEquals("nsxkmcwaekrrjr", model.id()); + Assertions.assertEquals("kvtkkg", 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 index afbc3c1c4acc1..0b8f3388707dd 100644 --- 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 @@ -15,50 +15,42 @@ 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\"}") + "{\"properties\":{\"groupId\":\"fgmblrrilbywdxsm\",\"requiredMembers\":[\"wrwfscjfnyns\",\"qujizdvo\"],\"requiredZoneNames\":[\"ibyowbblgyavutp\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"xoi\",\"properties\":{\"description\":\"ksbpimlqoljx\",\"groupId\":\"gxxlxsffgcvizq\",\"type\":\"wlvwlyoupf\"}},{\"name\":\"bkjubdyhgkfmins\",\"properties\":{\"description\":\"zfttsttktlahb\",\"groupId\":\"ctxtgzukxi\",\"type\":\"m\"}}]},\"id\":\"tg\",\"name\":\"qqxhrnxrxcpj\",\"type\":\"isavok\"}") .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", + Assertions.assertEquals("fgmblrrilbywdxsm", model.groupId()); + Assertions.assertEquals("wrwfscjfnyns", model.requiredMembers().get(0)); + Assertions.assertEquals("ibyowbblgyavutp", model.requiredZoneNames().get(0)); + Assertions.assertEquals("xoi", model.shareablePrivateLinkResourceTypes().get(0).name()); + Assertions.assertEquals("ksbpimlqoljx", model.shareablePrivateLinkResourceTypes().get(0).properties().description()); - Assertions.assertEquals("idfcxsspuunnoxyh", + Assertions.assertEquals("gxxlxsffgcvizq", model.shareablePrivateLinkResourceTypes().get(0).properties().groupId()); - Assertions.assertEquals("g", model.shareablePrivateLinkResourceTypes().get(0).properties().type()); + Assertions.assertEquals("wlvwlyoupf", 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")) + PrivateLinkResourceInner model = new PrivateLinkResourceInner().withGroupId("fgmblrrilbywdxsm") + .withRequiredMembers(Arrays.asList("wrwfscjfnyns", "qujizdvo")) + .withRequiredZoneNames(Arrays.asList("ibyowbblgyavutp")) .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")))); + new ShareablePrivateLinkResourceType().withName("xoi") + .withProperties(new ShareablePrivateLinkResourceProperties().withDescription("ksbpimlqoljx") + .withGroupId("gxxlxsffgcvizq") + .withType("wlvwlyoupf")), + new ShareablePrivateLinkResourceType().withName("bkjubdyhgkfmins") + .withProperties(new ShareablePrivateLinkResourceProperties().withDescription("zfttsttktlahb") + .withGroupId("ctxtgzukxi") + .withType("m")))); 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", + Assertions.assertEquals("fgmblrrilbywdxsm", model.groupId()); + Assertions.assertEquals("wrwfscjfnyns", model.requiredMembers().get(0)); + Assertions.assertEquals("ibyowbblgyavutp", model.requiredZoneNames().get(0)); + Assertions.assertEquals("xoi", model.shareablePrivateLinkResourceTypes().get(0).name()); + Assertions.assertEquals("ksbpimlqoljx", model.shareablePrivateLinkResourceTypes().get(0).properties().description()); - Assertions.assertEquals("idfcxsspuunnoxyh", + Assertions.assertEquals("gxxlxsffgcvizq", model.shareablePrivateLinkResourceTypes().get(0).properties().groupId()); - Assertions.assertEquals("g", model.shareablePrivateLinkResourceTypes().get(0).properties().type()); + Assertions.assertEquals("wlvwlyoupf", 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 index 16bd4143b27ee..38574b7c7e689 100644 --- 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 @@ -16,62 +16,39 @@ 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\"}") + "{\"value\":[{\"properties\":{\"groupId\":\"gs\",\"requiredMembers\":[\"bkwdlenrds\",\"tujbazpju\"],\"requiredZoneNames\":[\"inyflnorwmduvwp\",\"lvxwmyg\",\"xpgpq\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"zepn\",\"properties\":{}}]},\"id\":\"jcrxgibbdaxcon\",\"name\":\"ozauorsukokwb\",\"type\":\"plhlvnuuepzlrp\"},{\"properties\":{\"groupId\":\"soldweyuqdunv\",\"requiredMembers\":[\"rwrbi\",\"rk\",\"alywjhhgdn\"],\"requiredZoneNames\":[\"sivfomilo\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"ufiqndieuzaof\",\"properties\":{}},{\"name\":\"vcyy\",\"properties\":{}}]},\"id\":\"fgdo\",\"name\":\"cubiipuipw\",\"type\":\"qonmacj\"}],\"nextLink\":\"nizshqvcim\"}") .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()); + Assertions.assertEquals("gs", model.value().get(0).groupId()); + Assertions.assertEquals("bkwdlenrds", model.value().get(0).requiredMembers().get(0)); + Assertions.assertEquals("inyflnorwmduvwp", model.value().get(0).requiredZoneNames().get(0)); + Assertions.assertEquals("zepn", model.value().get(0).shareablePrivateLinkResourceTypes().get(0).name()); + Assertions.assertEquals("nizshqvcim", 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"); + PrivateLinkResourceList model = new PrivateLinkResourceList() + .withValue(Arrays.asList( + new PrivateLinkResourceInner().withGroupId("gs") + .withRequiredMembers(Arrays.asList("bkwdlenrds", "tujbazpju")) + .withRequiredZoneNames(Arrays.asList("inyflnorwmduvwp", "lvxwmyg", "xpgpq")) + .withShareablePrivateLinkResourceTypes( + Arrays.asList(new ShareablePrivateLinkResourceType().withName("zepn") + .withProperties(new ShareablePrivateLinkResourceProperties()))), + new PrivateLinkResourceInner().withGroupId("soldweyuqdunv") + .withRequiredMembers(Arrays.asList("rwrbi", "rk", "alywjhhgdn")) + .withRequiredZoneNames(Arrays.asList("sivfomilo")) + .withShareablePrivateLinkResourceTypes(Arrays.asList( + new ShareablePrivateLinkResourceType().withName("ufiqndieuzaof") + .withProperties(new ShareablePrivateLinkResourceProperties()), + new ShareablePrivateLinkResourceType().withName("vcyy") + .withProperties(new ShareablePrivateLinkResourceProperties()))))) + .withNextLink("nizshqvcim"); 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()); + Assertions.assertEquals("gs", model.value().get(0).groupId()); + Assertions.assertEquals("bkwdlenrds", model.value().get(0).requiredMembers().get(0)); + Assertions.assertEquals("inyflnorwmduvwp", model.value().get(0).requiredZoneNames().get(0)); + Assertions.assertEquals("zepn", model.value().get(0).shareablePrivateLinkResourceTypes().get(0).name()); + Assertions.assertEquals("nizshqvcim", 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 index 630c155655f7d..82873af79488e 100644 --- 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 @@ -15,38 +15,34 @@ 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\"}}]}") + "{\"groupId\":\"zfvazi\",\"requiredMembers\":[\"frqttbajlkatnw\"],\"requiredZoneNames\":[\"opidkqqfkuv\",\"cxkdmligovi\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"pmloazuruoc\",\"properties\":{\"description\":\"orbteoy\",\"groupId\":\"hjxa\",\"type\":\"vjgsl\"}}]}") .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()); + Assertions.assertEquals("zfvazi", model.groupId()); + Assertions.assertEquals("frqttbajlkatnw", model.requiredMembers().get(0)); + Assertions.assertEquals("opidkqqfkuv", model.requiredZoneNames().get(0)); + Assertions.assertEquals("pmloazuruoc", model.shareablePrivateLinkResourceTypes().get(0).name()); + Assertions.assertEquals("orbteoy", model.shareablePrivateLinkResourceTypes().get(0).properties().description()); + Assertions.assertEquals("hjxa", model.shareablePrivateLinkResourceTypes().get(0).properties().groupId()); + Assertions.assertEquals("vjgsl", 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")))); + PrivateLinkResourceProperties model = new PrivateLinkResourceProperties().withGroupId("zfvazi") + .withRequiredMembers(Arrays.asList("frqttbajlkatnw")) + .withRequiredZoneNames(Arrays.asList("opidkqqfkuv", "cxkdmligovi")) + .withShareablePrivateLinkResourceTypes( + Arrays.asList(new ShareablePrivateLinkResourceType().withName("pmloazuruoc") + .withProperties(new ShareablePrivateLinkResourceProperties().withDescription("orbteoy") + .withGroupId("hjxa") + .withType("vjgsl")))); 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()); + Assertions.assertEquals("zfvazi", model.groupId()); + Assertions.assertEquals("frqttbajlkatnw", model.requiredMembers().get(0)); + Assertions.assertEquals("opidkqqfkuv", model.requiredZoneNames().get(0)); + Assertions.assertEquals("pmloazuruoc", model.shareablePrivateLinkResourceTypes().get(0).name()); + Assertions.assertEquals("orbteoy", model.shareablePrivateLinkResourceTypes().get(0).properties().description()); + Assertions.assertEquals("hjxa", model.shareablePrivateLinkResourceTypes().get(0).properties().groupId()); + Assertions.assertEquals("vjgsl", 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 index cf6c5e103c4e0..783d918baaa98 100644 --- 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 @@ -13,22 +13,23 @@ public final class PrivateLinkServiceConnectionStateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkServiceConnectionState model = BinaryData - .fromString("{\"status\":\"Approved\",\"description\":\"tsgumhj\",\"actionsRequired\":\"ikkx\"}") + .fromString( + "{\"status\":\"Approved\",\"description\":\"jygvjayvbl\",\"actionsRequired\":\"vkzuhbxvvyhgso\"}") .toObject(PrivateLinkServiceConnectionState.class); Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, model.status()); - Assertions.assertEquals("tsgumhj", model.description()); - Assertions.assertEquals("ikkx", model.actionsRequired()); + Assertions.assertEquals("jygvjayvbl", model.description()); + Assertions.assertEquals("vkzuhbxvvyhgso", model.actionsRequired()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateLinkServiceConnectionState model = new PrivateLinkServiceConnectionState().withStatus(PrivateLinkServiceConnectionStatus.APPROVED) - .withDescription("tsgumhj") - .withActionsRequired("ikkx"); + .withDescription("jygvjayvbl") + .withActionsRequired("vkzuhbxvvyhgso"); model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); Assertions.assertEquals(PrivateLinkServiceConnectionStatus.APPROVED, model.status()); - Assertions.assertEquals("tsgumhj", model.description()); - Assertions.assertEquals("ikkx", model.actionsRequired()); + Assertions.assertEquals("jygvjayvbl", model.description()); + Assertions.assertEquals("vkzuhbxvvyhgso", 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 953e534848ce6..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaInnerTests.java +++ /dev/null @@ -1,59 +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 d5372e9273dbe..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaListTests.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.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 ca441f9549021..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/ReplicaPropertiesTests.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.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 index a8f2258eeaa20..7ed4611252203 100644 --- 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 @@ -11,17 +11,17 @@ 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()); + ResourceLogCategory model + = BinaryData.fromString("{\"name\":\"xqtnq\",\"enabled\":\"ezl\"}").toObject(ResourceLogCategory.class); + Assertions.assertEquals("xqtnq", model.name()); + Assertions.assertEquals("ezl", model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceLogCategory model = new ResourceLogCategory().withName("qknp").withEnabled("gnepttwqmsni"); + ResourceLogCategory model = new ResourceLogCategory().withName("xqtnq").withEnabled("ezl"); model = BinaryData.fromObject(model).toObject(ResourceLogCategory.class); - Assertions.assertEquals("qknp", model.name()); - Assertions.assertEquals("gnepttwqmsni", model.enabled()); + Assertions.assertEquals("xqtnq", model.name()); + Assertions.assertEquals("ezl", 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 index d90ab2b78b230..d1e1cc78838c6 100644 --- 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 @@ -14,21 +14,19 @@ 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\"}]}") + "{\"categories\":[{\"name\":\"n\",\"enabled\":\"mkqjj\"},{\"name\":\"uenvrkp\",\"enabled\":\"uaibrebqaaysj\"}]}") .toObject(ResourceLogConfiguration.class); - Assertions.assertEquals("lbfpncurd", model.categories().get(0).name()); - Assertions.assertEquals("wiithtywub", model.categories().get(0).enabled()); + Assertions.assertEquals("n", model.categories().get(0).name()); + Assertions.assertEquals("mkqjj", 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"))); + .withCategories(Arrays.asList(new ResourceLogCategory().withName("n").withEnabled("mkqjj"), + new ResourceLogCategory().withName("uenvrkp").withEnabled("uaibrebqaaysj"))); model = BinaryData.fromObject(model).toObject(ResourceLogConfiguration.class); - Assertions.assertEquals("lbfpncurd", model.categories().get(0).name()); - Assertions.assertEquals("wiithtywub", model.categories().get(0).enabled()); + Assertions.assertEquals("n", model.categories().get(0).name()); + Assertions.assertEquals("mkqjj", 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 index 1ca4c3943b59e..b76344bed8803 100644 --- 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 @@ -11,14 +11,14 @@ 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()); + ResourceReference model = BinaryData.fromString("{\"id\":\"ovqfzge\"}").toObject(ResourceReference.class); + Assertions.assertEquals("ovqfzge", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceReference model = new ResourceReference().withId("kxtrq"); + ResourceReference model = new ResourceReference().withId("ovqfzge"); model = BinaryData.fromObject(model).toObject(ResourceReference.class); - Assertions.assertEquals("kxtrq", model.id()); + Assertions.assertEquals("ovqfzge", model.id()); } } 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 index 9152580668c32..c432d2bdf7e42 100644 --- 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 @@ -12,14 +12,14 @@ 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()); + = BinaryData.fromString("{\"connectionTimeoutInSeconds\":689960691}").toObject(ServerlessSettings.class); + Assertions.assertEquals(689960691, model.connectionTimeoutInSeconds()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServerlessSettings model = new ServerlessSettings().withConnectionTimeoutInSeconds(2062903356); + ServerlessSettings model = new ServerlessSettings().withConnectionTimeoutInSeconds(689960691); model = BinaryData.fromObject(model).toObject(ServerlessSettings.class); - Assertions.assertEquals(2062903356, model.connectionTimeoutInSeconds()); + Assertions.assertEquals(689960691, 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 index 43cac590c7870..e61a21d0b56cb 100644 --- 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 @@ -17,43 +17,49 @@ 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\"}}}]}") + "{\"templates\":[{\"hubPattern\":\"qncygupkvi\",\"eventPattern\":\"dscwxqupevzhf\",\"categoryPattern\":\"otxhojujby\",\"urlTemplate\":\"elmcuvhixbjxyfw\",\"auth\":{\"type\":\"None\",\"managedIdentity\":{\"resource\":\"o\"}}},{\"hubPattern\":\"ttpkiwkkbnujrywv\",\"eventPattern\":\"lbfpncurd\",\"categoryPattern\":\"wiithtywub\",\"urlTemplate\":\"cbihwqk\",\"auth\":{\"type\":\"None\",\"managedIdentity\":{\"resource\":\"jchrdgoihxumw\"}}},{\"hubPattern\":\"ond\",\"eventPattern\":\"luudfdlwggytsb\",\"categoryPattern\":\"ovvtgseinqfiu\",\"urlTemplate\":\"x\",\"auth\":{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"gnepttwqmsni\"}}},{\"hubPattern\":\"cdm\",\"eventPattern\":\"r\",\"categoryPattern\":\"lpijnkrxfrd\",\"urlTemplate\":\"hcrat\",\"auth\":{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"asxifto\"}}}]}") .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()); + Assertions.assertEquals("qncygupkvi", model.templates().get(0).hubPattern()); + Assertions.assertEquals("dscwxqupevzhf", model.templates().get(0).eventPattern()); + Assertions.assertEquals("otxhojujby", model.templates().get(0).categoryPattern()); + Assertions.assertEquals("elmcuvhixbjxyfw", model.templates().get(0).urlTemplate()); + Assertions.assertEquals(UpstreamAuthType.NONE, model.templates().get(0).auth().type()); + Assertions.assertEquals("o", 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") + new UpstreamTemplate().withHubPattern("qncygupkvi") + .withEventPattern("dscwxqupevzhf") + .withCategoryPattern("otxhojujby") + .withUrlTemplate("elmcuvhixbjxyfw") + .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.NONE) + .withManagedIdentity(new ManagedIdentitySettings().withResource("o"))), + new UpstreamTemplate().withHubPattern("ttpkiwkkbnujrywv") + .withEventPattern("lbfpncurd") + .withCategoryPattern("wiithtywub") + .withUrlTemplate("cbihwqk") + .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.NONE) + .withManagedIdentity(new ManagedIdentitySettings().withResource("jchrdgoihxumw"))), + new UpstreamTemplate().withHubPattern("ond") + .withEventPattern("luudfdlwggytsb") + .withCategoryPattern("ovvtgseinqfiu") + .withUrlTemplate("x") .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.MANAGED_IDENTITY) - .withManagedIdentity(new ManagedIdentitySettings().withResource("mossxkkgthrrghxj"))), - new UpstreamTemplate().withHubPattern("hqxvcxgfrpdsofbs") - .withEventPattern("nsvbuswdv") - .withCategoryPattern("ybycnunvj") - .withUrlTemplate("rtkfawnopq") + .withManagedIdentity(new ManagedIdentitySettings().withResource("gnepttwqmsni"))), + new UpstreamTemplate().withHubPattern("cdm") + .withEventPattern("r") + .withCategoryPattern("lpijnkrxfrd") + .withUrlTemplate("hcrat") .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"))))); + .withManagedIdentity(new ManagedIdentitySettings().withResource("asxifto"))))); 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()); + Assertions.assertEquals("qncygupkvi", model.templates().get(0).hubPattern()); + Assertions.assertEquals("dscwxqupevzhf", model.templates().get(0).eventPattern()); + Assertions.assertEquals("otxhojujby", model.templates().get(0).categoryPattern()); + Assertions.assertEquals("elmcuvhixbjxyfw", model.templates().get(0).urlTemplate()); + Assertions.assertEquals(UpstreamAuthType.NONE, model.templates().get(0).auth().type()); + Assertions.assertEquals("o", model.templates().get(0).auth().managedIdentity().resource()); } } 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 index 1a2b9e16c597d..2390ccd6b297a 100644 --- 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 @@ -12,22 +12,22 @@ public final class ShareablePrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ShareablePrivateLinkResourceProperties model - = BinaryData.fromString("{\"description\":\"mxho\",\"groupId\":\"ynhdwdigum\",\"type\":\"raauzzpt\"}") + = BinaryData.fromString("{\"description\":\"xuuwhcj\",\"groupId\":\"ccybvp\",\"type\":\"akkud\"}") .toObject(ShareablePrivateLinkResourceProperties.class); - Assertions.assertEquals("mxho", model.description()); - Assertions.assertEquals("ynhdwdigum", model.groupId()); - Assertions.assertEquals("raauzzpt", model.type()); + Assertions.assertEquals("xuuwhcj", model.description()); + Assertions.assertEquals("ccybvp", model.groupId()); + Assertions.assertEquals("akkud", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ShareablePrivateLinkResourceProperties model - = new ShareablePrivateLinkResourceProperties().withDescription("mxho") - .withGroupId("ynhdwdigum") - .withType("raauzzpt"); + = new ShareablePrivateLinkResourceProperties().withDescription("xuuwhcj") + .withGroupId("ccybvp") + .withType("akkud"); model = BinaryData.fromObject(model).toObject(ShareablePrivateLinkResourceProperties.class); - Assertions.assertEquals("mxho", model.description()); - Assertions.assertEquals("ynhdwdigum", model.groupId()); - Assertions.assertEquals("raauzzpt", model.type()); + Assertions.assertEquals("xuuwhcj", model.description()); + Assertions.assertEquals("ccybvp", model.groupId()); + Assertions.assertEquals("akkud", 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 index 08d53363a6231..b89d799a94272 100644 --- 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 @@ -13,24 +13,24 @@ 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\"}}") + "{\"name\":\"dilmyww\",\"properties\":{\"description\":\"kxn\",\"groupId\":\"dabg\",\"type\":\"udtjuewbc\"}}") .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()); + Assertions.assertEquals("dilmyww", model.name()); + Assertions.assertEquals("kxn", model.properties().description()); + Assertions.assertEquals("dabg", model.properties().groupId()); + Assertions.assertEquals("udtjuewbc", 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")); + ShareablePrivateLinkResourceType model = new ShareablePrivateLinkResourceType().withName("dilmyww") + .withProperties(new ShareablePrivateLinkResourceProperties().withDescription("kxn") + .withGroupId("dabg") + .withType("udtjuewbc")); 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()); + Assertions.assertEquals("dilmyww", model.name()); + Assertions.assertEquals("kxn", model.properties().description()); + Assertions.assertEquals("dabg", model.properties().groupId()); + Assertions.assertEquals("udtjuewbc", 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 index dda6da225ea02..b272b3aba7d85 100644 --- 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 @@ -12,21 +12,21 @@ 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\"}") + "{\"properties\":{\"groupId\":\"rqufegxuvwz\",\"privateLinkResourceId\":\"bnhlmc\",\"provisioningState\":\"Running\",\"requestMessage\":\"ngitvgbmhrixkwm\",\"status\":\"Rejected\"},\"id\":\"ejvegrhbpnaixex\",\"name\":\"cbdreaxhcexd\",\"type\":\"rvqahqkghtpwi\"}") .toObject(SharedPrivateLinkResourceInner.class); - Assertions.assertEquals("lo", model.groupId()); - Assertions.assertEquals("bq", model.privateLinkResourceId()); - Assertions.assertEquals("lmv", model.requestMessage()); + Assertions.assertEquals("rqufegxuvwz", model.groupId()); + Assertions.assertEquals("bnhlmc", model.privateLinkResourceId()); + Assertions.assertEquals("ngitvgbmhrixkwm", model.requestMessage()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SharedPrivateLinkResourceInner model = new SharedPrivateLinkResourceInner().withGroupId("lo") - .withPrivateLinkResourceId("bq") - .withRequestMessage("lmv"); + SharedPrivateLinkResourceInner model = new SharedPrivateLinkResourceInner().withGroupId("rqufegxuvwz") + .withPrivateLinkResourceId("bnhlmc") + .withRequestMessage("ngitvgbmhrixkwm"); model = BinaryData.fromObject(model).toObject(SharedPrivateLinkResourceInner.class); - Assertions.assertEquals("lo", model.groupId()); - Assertions.assertEquals("bq", model.privateLinkResourceId()); - Assertions.assertEquals("lmv", model.requestMessage()); + Assertions.assertEquals("rqufegxuvwz", model.groupId()); + Assertions.assertEquals("bnhlmc", model.privateLinkResourceId()); + Assertions.assertEquals("ngitvgbmhrixkwm", 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 index e9ce0868d1008..47953651f41ae 100644 --- 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 @@ -14,34 +14,28 @@ 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\"}") + "{\"value\":[{\"properties\":{\"groupId\":\"lma\",\"privateLinkResourceId\":\"stcyohpfkyrkdbd\",\"provisioningState\":\"Succeeded\",\"requestMessage\":\"sjkmnwqj\",\"status\":\"Pending\"},\"id\":\"aiy\",\"name\":\"ddviacegfnmntfpm\",\"type\":\"memfnczdwvvbalxl\"},{\"properties\":{\"groupId\":\"hpodbzev\",\"privateLinkResourceId\":\"rdnhfuku\",\"provisioningState\":\"Deleting\",\"requestMessage\":\"swsmys\",\"status\":\"Rejected\"},\"id\":\"uqypfcvle\",\"name\":\"chpqbmfpjba\",\"type\":\"widf\"}],\"nextLink\":\"sspuunnoxyhkx\"}") .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()); + Assertions.assertEquals("lma", model.value().get(0).groupId()); + Assertions.assertEquals("stcyohpfkyrkdbd", model.value().get(0).privateLinkResourceId()); + Assertions.assertEquals("sjkmnwqj", model.value().get(0).requestMessage()); + Assertions.assertEquals("sspuunnoxyhkx", 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"); + new SharedPrivateLinkResourceInner().withGroupId("lma") + .withPrivateLinkResourceId("stcyohpfkyrkdbd") + .withRequestMessage("sjkmnwqj"), + new SharedPrivateLinkResourceInner().withGroupId("hpodbzev") + .withPrivateLinkResourceId("rdnhfuku") + .withRequestMessage("swsmys"))) + .withNextLink("sspuunnoxyhkx"); 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()); + Assertions.assertEquals("lma", model.value().get(0).groupId()); + Assertions.assertEquals("stcyohpfkyrkdbd", model.value().get(0).privateLinkResourceId()); + Assertions.assertEquals("sjkmnwqj", model.value().get(0).requestMessage()); + Assertions.assertEquals("sspuunnoxyhkx", 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 index cd3bf1bdb823d..711f755af5a7d 100644 --- 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 @@ -12,21 +12,21 @@ 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\"}") + "{\"groupId\":\"nhyjsv\",\"privateLinkResourceId\":\"ycxzbfvoo\",\"provisioningState\":\"Failed\",\"requestMessage\":\"mtg\",\"status\":\"Approved\"}") .toObject(SharedPrivateLinkResourceProperties.class); - Assertions.assertEquals("zejjoqk", model.groupId()); - Assertions.assertEquals("gfhsxttaugzxn", model.privateLinkResourceId()); - Assertions.assertEquals("pxdtnkdmkq", model.requestMessage()); + Assertions.assertEquals("nhyjsv", model.groupId()); + Assertions.assertEquals("ycxzbfvoo", model.privateLinkResourceId()); + Assertions.assertEquals("mtg", model.requestMessage()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SharedPrivateLinkResourceProperties model = new SharedPrivateLinkResourceProperties().withGroupId("zejjoqk") - .withPrivateLinkResourceId("gfhsxttaugzxn") - .withRequestMessage("pxdtnkdmkq"); + SharedPrivateLinkResourceProperties model = new SharedPrivateLinkResourceProperties().withGroupId("nhyjsv") + .withPrivateLinkResourceId("ycxzbfvoo") + .withRequestMessage("mtg"); model = BinaryData.fromObject(model).toObject(SharedPrivateLinkResourceProperties.class); - Assertions.assertEquals("zejjoqk", model.groupId()); - Assertions.assertEquals("gfhsxttaugzxn", model.privateLinkResourceId()); - Assertions.assertEquals("pxdtnkdmkq", model.requestMessage()); + Assertions.assertEquals("nhyjsv", model.groupId()); + Assertions.assertEquals("ycxzbfvoo", model.privateLinkResourceId()); + Assertions.assertEquals("mtg", 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 index e8068d2524591..38b82680bb74f 100644 --- 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 @@ -12,15 +12,16 @@ 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)); + SignalRCorsSettings model = BinaryData.fromString("{\"allowedOrigins\":[\"fiakpjpqqm\",\"edltmmjihyeozp\"]}") + .toObject(SignalRCorsSettings.class); + Assertions.assertEquals("fiakpjpqqm", model.allowedOrigins().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SignalRCorsSettings model = new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("dmqnrojlpij")); + SignalRCorsSettings model + = new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("fiakpjpqqm", "edltmmjihyeozp")); model = BinaryData.fromObject(model).toObject(SignalRCorsSettings.class); - Assertions.assertEquals("dmqnrojlpij", model.allowedOrigins().get(0)); + Assertions.assertEquals("fiakpjpqqm", 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 index 6435ab3e14d14..a080e99bb8fb5 100644 --- 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 @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.signalRCustomCertificates() - .deleteWithResponse("guihywar", "spphk", "xkykxdssjp", com.azure.core.util.Context.NONE); + .deleteWithResponse("z", "iblkujr", "lfojuidjp", 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 index c1470b63727be..bfc89e8edd5fb 100644 --- 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 @@ -27,8 +27,7 @@ public void testDelete() throws Exception { .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); + manager.signalRCustomDomains().delete("n", "pxy", "afiqgeaarbgjekg", 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 index b003b024bd403..b3be79830effa 100644 --- 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 @@ -21,7 +21,7 @@ public final class SignalRCustomDomainsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Running\",\"domainName\":\"ovpbbttefjoknssq\",\"customCertificate\":{\"id\":\"qedikdfrd\"}},\"id\":\"qmrjg\",\"name\":\"ihfqlggwfiwzc\",\"type\":\"mjpb\"}"; + = "{\"properties\":{\"provisioningState\":\"Deleting\",\"domainName\":\"csrlzknmzl\",\"customCertificate\":{\"id\":\"rupdwvnphcnzq\"}},\"id\":\"pjhmqrhvthl\",\"name\":\"iwdcxsmlzzhzd\",\"type\":\"xetlgydlhqv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CustomDomain response = manager.signalRCustomDomains() - .getWithResponse("pivlsbbjpm", "ubkmifo", "xkubvphavpmhbrbq", com.azure.core.util.Context.NONE) + .getWithResponse("rag", "gdphtvdula", "vl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ovpbbttefjoknssq", response.domainName()); - Assertions.assertEquals("qedikdfrd", response.customCertificate().id()); + Assertions.assertEquals("csrlzknmzl", response.domainName()); + Assertions.assertEquals("rupdwvnphcnzq", 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 index 09a6baccb398f..49ae79f2357b6 100644 --- 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 @@ -22,7 +22,7 @@ public final class SignalRCustomDomainsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Moving\",\"domainName\":\"totiowlxteqdptjg\",\"customCertificate\":{\"id\":\"tgukranblwphql\"}},\"id\":\"c\",\"name\":\"zgygqwahoiulwgni\",\"type\":\"prglvawuwzduf\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Moving\",\"domainName\":\"mwrokcdxfzzzwyja\",\"customCertificate\":{\"id\":\"tlhguynuchl\"}},\"id\":\"mltx\",\"name\":\"whmozusgzvlnsnnj\",\"type\":\"fpafolpymwamxq\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.signalRCustomDomains().list("v", "qcgxuug", com.azure.core.util.Context.NONE); + = manager.signalRCustomDomains().list("rhtgvgzpcrrkol", "w", com.azure.core.util.Context.NONE); - Assertions.assertEquals("totiowlxteqdptjg", response.iterator().next().domainName()); - Assertions.assertEquals("tgukranblwphql", response.iterator().next().customCertificate().id()); + Assertions.assertEquals("mwrokcdxfzzzwyja", response.iterator().next().domainName()); + Assertions.assertEquals("tlhguynuchl", 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 index 8f7c94aa1eb05..9bffdc6f06950 100644 --- 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 @@ -16,22 +16,22 @@ public final class SignalRFeatureTests { public void testDeserialize() throws Exception { SignalRFeature model = BinaryData .fromString( - "{\"flag\":\"EnableLiveTrace\",\"value\":\"nvrk\",\"properties\":{\"ixqtn\":\"uaibrebqaaysj\"}}") + "{\"flag\":\"EnableConnectivityLogs\",\"value\":\"s\",\"properties\":{\"hgfipnsxkmcw\":\"nzm\"}}") .toObject(SignalRFeature.class); - Assertions.assertEquals(FeatureFlags.ENABLE_LIVE_TRACE, model.flag()); - Assertions.assertEquals("nvrk", model.value()); - Assertions.assertEquals("uaibrebqaaysj", model.properties().get("ixqtn")); + Assertions.assertEquals(FeatureFlags.ENABLE_CONNECTIVITY_LOGS, model.flag()); + Assertions.assertEquals("s", model.value()); + Assertions.assertEquals("nzm", model.properties().get("hgfipnsxkmcw")); } @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")); + SignalRFeature model = new SignalRFeature().withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) + .withValue("s") + .withProperties(mapOf("hgfipnsxkmcw", "nzm")); 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")); + Assertions.assertEquals(FeatureFlags.ENABLE_CONNECTIVITY_LOGS, model.flag()); + Assertions.assertEquals("s", model.value()); + Assertions.assertEquals("nzm", model.properties().get("hgfipnsxkmcw")); } // Use "Map.of" if available 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 index 14ca7bc43095e..1cc821647d50c 100644 --- 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 @@ -6,7 +6,6 @@ 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; @@ -18,48 +17,48 @@ 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\"}]}") + "{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"RESTAPI\"],\"deny\":[\"Trace\",\"Trace\",\"ClientConnection\"]},\"privateEndpoints\":[{\"name\":\"xdyuxzejnt\",\"allow\":[\"RESTAPI\",\"ServerConnection\",\"Trace\",\"ClientConnection\"],\"deny\":[\"ServerConnection\"]},{\"name\":\"ukry\",\"allow\":[\"ClientConnection\",\"RESTAPI\"],\"deny\":[\"ClientConnection\",\"ServerConnection\",\"ServerConnection\",\"ServerConnection\"]},{\"name\":\"ggufhyaomtb\",\"allow\":[\"RESTAPI\",\"ServerConnection\"],\"deny\":[\"RESTAPI\"]},{\"name\":\"kffovjzhpjbibgjm\",\"allow\":[\"ClientConnection\",\"Trace\"],\"deny\":[\"Trace\",\"ServerConnection\",\"ClientConnection\"]}]}") .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.RESTAPI, model.publicNetwork().allow().get(0)); + Assertions.assertEquals(SignalRRequestType.TRACE, model.publicNetwork().deny().get(0)); + Assertions.assertEquals(SignalRRequestType.RESTAPI, 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()); + Assertions.assertEquals("xdyuxzejnt", model.privateEndpoints().get(0).name()); } @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() + SignalRNetworkACLs model = new SignalRNetworkACLs().withDefaultAction(AclAction.DENY) + .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.RESTAPI)) + .withDeny(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.TRACE, + SignalRRequestType.CLIENT_CONNECTION))) + .withPrivateEndpoints(Arrays.asList( + new PrivateEndpointAcl() + .withAllow(Arrays.asList(SignalRRequestType.RESTAPI, SignalRRequestType.SERVER_CONNECTION, + SignalRRequestType.TRACE, SignalRRequestType.CLIENT_CONNECTION)) + .withDeny(Arrays.asList(SignalRRequestType.SERVER_CONNECTION)) + .withName("xdyuxzejnt"), + 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))); + .withDeny(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.SERVER_CONNECTION, + SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.SERVER_CONNECTION)) + .withName("ukry"), + new PrivateEndpointAcl() + .withAllow(Arrays.asList(SignalRRequestType.RESTAPI, SignalRRequestType.SERVER_CONNECTION)) + .withDeny(Arrays.asList(SignalRRequestType.RESTAPI)) + .withName("ggufhyaomtb"), + new PrivateEndpointAcl() + .withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.TRACE)) + .withDeny(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.SERVER_CONNECTION, + SignalRRequestType.CLIENT_CONNECTION)) + .withName("kffovjzhpjbibgjm"))); 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.RESTAPI, model.publicNetwork().allow().get(0)); + Assertions.assertEquals(SignalRRequestType.TRACE, model.publicNetwork().deny().get(0)); + Assertions.assertEquals(SignalRRequestType.RESTAPI, 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()); + Assertions.assertEquals("xdyuxzejnt", model.privateEndpoints().get(0).name()); } } 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 index 8fefd5f963d42..7c1cc4041ea05 100644 --- 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 @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.signalRPrivateEndpointConnections() - .delete("afcbqw", "e", "jelaqacigele", com.azure.core.util.Context.NONE); + .delete("pvmjcdoewbid", "vteo", "xvgpiude", 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 index da0634a52f951..657ae7011de32 100644 --- 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 @@ -22,7 +22,7 @@ public final class SignalRPrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { 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\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"lvykfrex\"},\"groupIds\":[\"eqwjksgh\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"xog\",\"actionsRequired\":\"gsv\"}},\"id\":\"u\",\"name\":\"kxibdafh\",\"type\":\"kmdyomkxfbvfbh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnection response = manager.signalRPrivateEndpointConnections() - .getWithResponse("nxkympqanxrjk", "xtwbta", "ypnyghshxc", com.azure.core.util.Context.NONE) + .getWithResponse("esi", "uqtljqobbpih", "hcecybmrqbr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nsghp", response.privateEndpoint().id()); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.PENDING, + Assertions.assertEquals("lvykfrex", response.privateEndpoint().id()); + Assertions.assertEquals(PrivateLinkServiceConnectionStatus.REJECTED, response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("sqcssffx", response.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("fmcsypobkd", response.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("xog", response.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("gsv", 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 index 4ccaa21b2ec51..37026458cdbe8 100644 --- 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 @@ -23,7 +23,7 @@ public final class SignalRPrivateEndpointConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{\"id\":\"sizmoae\"},\"groupIds\":[\"jwuive\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"eewxeiqbpsmg\",\"actionsRequired\":\"guamlj\"}},\"id\":\"rgmsplzga\",\"name\":\"fcshh\",\"type\":\"new\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"dnqzbrfkspzhzmt\"},\"groupIds\":[\"cit\",\"igsxcdgljplk\",\"ua\",\"htomflrytswfp\"],\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"cxnmskwhqjjyslu\",\"actionsRequired\":\"pshhkvpedwqslsr\"}},\"id\":\"mpqvwwsk\",\"name\":\"ndcbrwi\",\"type\":\"uvqejosovyrrle\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.signalRPrivateEndpointConnections() - .list("yaswlpaugmr", "fjlrxwtoauk", com.azure.core.util.Context.NONE); + .list("klbyulidwcw", "mzegjon", com.azure.core.util.Context.NONE); - Assertions.assertEquals("sizmoae", response.iterator().next().privateEndpoint().id()); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.REJECTED, + Assertions.assertEquals("dnqzbrfkspzhzmt", response.iterator().next().privateEndpoint().id()); + Assertions.assertEquals(PrivateLinkServiceConnectionStatus.DISCONNECTED, response.iterator().next().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("eewxeiqbpsmg", + Assertions.assertEquals("cxnmskwhqjjyslu", response.iterator().next().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("guamlj", + Assertions.assertEquals("pshhkvpedwqslsr", 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 index f0bf9aa018830..177e52f3d0aa9 100644 --- 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 @@ -25,7 +25,7 @@ public final class SignalRPrivateEndpointConnectionsUpdateWithResponseMockTests @Test public void testUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Moving\",\"privateEndpoint\":{\"id\":\"czezkhhlt\"},\"groupIds\":[\"dhqoawj\",\"oyueayfbpcmsp\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"ueq\",\"actionsRequired\":\"wmgn\"}},\"id\":\"scbbxig\",\"name\":\"hxiidlopedb\",\"type\":\"dpyqyybxubmd\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"znnhd\"},\"groupIds\":[\"tgjcsgguxheml\"],\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"eczgfb\",\"actionsRequired\":\"klelssxb\"}},\"id\":\"ycsxzu\",\"name\":\"ksrl\",\"type\":\"mdesqp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,19 +35,19 @@ public void testUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnection response = manager.signalRPrivateEndpointConnections() - .updateWithResponse("fx", "dcoxnbk", "ja", - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("bnqbpizxqltgrd")) + .updateWithResponse("y", "rhpw", "gddeimaw", + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("muikjcjcaztbws")) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() .withStatus(PrivateLinkServiceConnectionStatus.DISCONNECTED) - .withDescription("li") - .withActionsRequired("xihspnxwq")), + .withDescription("lvhbwrnf") + .withActionsRequired("gddpq")), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("czezkhhlt", response.privateEndpoint().id()); - Assertions.assertEquals(PrivateLinkServiceConnectionStatus.REJECTED, + Assertions.assertEquals("znnhd", response.privateEndpoint().id()); + Assertions.assertEquals(PrivateLinkServiceConnectionStatus.PENDING, response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ueq", response.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("wmgn", response.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("eczgfb", response.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("klelssxb", 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 index 51acf2a7d090c..53dae4e48b833 100644 --- 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 @@ -22,7 +22,7 @@ public final class SignalRPrivateLinkResourcesListMockTests { @Test public void testList() throws Exception { 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\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"khvuhxepmrutz\",\"requiredMembers\":[\"aobn\",\"lujdjltymkmv\"],\"requiredZoneNames\":[\"hywartspph\",\"ixkykxd\",\"sj\"],\"shareablePrivateLinkResourceTypes\":[{\"name\":\"ucfx\",\"properties\":{\"description\":\"kflrmymy\",\"groupId\":\"cqlh\",\"type\":\"s\"}}]},\"id\":\"sl\",\"name\":\"iiiovgqcgxuugq\",\"type\":\"ctotiowlx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,19 +31,18 @@ public void testList() throws Exception { .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); + PagedIterable response + = manager.signalRPrivateLinkResources().list("gfsxzec", "axwk", 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", + Assertions.assertEquals("khvuhxepmrutz", response.iterator().next().groupId()); + Assertions.assertEquals("aobn", response.iterator().next().requiredMembers().get(0)); + Assertions.assertEquals("hywartspph", response.iterator().next().requiredZoneNames().get(0)); + Assertions.assertEquals("ucfx", response.iterator().next().shareablePrivateLinkResourceTypes().get(0).name()); + Assertions.assertEquals("kflrmymy", response.iterator().next().shareablePrivateLinkResourceTypes().get(0).properties().description()); - Assertions.assertEquals("qvapcohhoucq", + Assertions.assertEquals("cqlh", response.iterator().next().shareablePrivateLinkResourceTypes().get(0).properties().groupId()); - Assertions.assertEquals("oj", + Assertions.assertEquals("s", 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 index 2320f835609c4..063584988058a 100644 --- 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 @@ -8,7 +8,6 @@ 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; @@ -35,129 +34,122 @@ 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\"}") + "{\"provisioningState\":\"Failed\",\"externalIP\":\"twaenuuzko\",\"hostName\":\"minrfdw\",\"publicPort\":1704063633,\"serverPort\":1542145375,\"version\":\"iuiefozbhdmsm\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"maequiahxicslfa\"},\"groupIds\":[\"piyylhalnswhccsp\"],\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"witqscywuggwoluh\",\"actionsRequired\":\"bwemhairs\"}},\"id\":\"rgzdwmsweyp\",\"name\":\"w\",\"type\":\"xggicccnxqhuexmk\"},{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"zywemhzrncsdtclu\"},\"groupIds\":[\"pbsfgytgu\",\"lfeadcygq\",\"kyhejhzisxgf\",\"elolppvksrpqvuj\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"twdw\",\"actionsRequired\":\"tswiby\"}},\"id\":\"cdl\",\"name\":\"h\",\"type\":\"hfwpracstwit\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"xccedcpnmdyodn\",\"privateLinkResourceId\":\"zxltjcvn\",\"provisioningState\":\"Canceled\",\"requestMessage\":\"ugcxnavvwxq\",\"status\":\"Rejected\"},\"id\":\"qunyowxwlmdjr\",\"name\":\"vfgbvfvpdboda\",\"type\":\"izsjqlhkrr\"},{\"properties\":{\"groupId\":\"eibq\",\"privateLinkResourceId\":\"p\",\"provisioningState\":\"Updating\",\"requestMessage\":\"vxndz\",\"status\":\"Approved\"},\"id\":\"refajpjorwkqnyh\",\"name\":\"b\",\"type\":\"j\"}],\"tls\":{\"clientCertEnabled\":false},\"hostNamePrefix\":\"xzsjabib\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"awfsdjpvkvpbjxbk\",\"properties\":{\"ncj\":\"kd\",\"zhjjklffhmouwq\":\"budurgkakmo\"}},{\"flag\":\"ServiceMode\",\"value\":\"zrfze\",\"properties\":{\"bjbsybb\":\"bizikayuhq\",\"ldgmfpgvmpip\":\"wrv\",\"x\":\"slthaq\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"mwutwbdsre\",\"properties\":{\"d\":\"rhneuyowq\",\"gpikpzimejza\":\"ytisibir\",\"rjqc\":\"lfzxiavrmbzonoki\"}}],\"liveTraceConfiguration\":{\"enabled\":\"zpfrla\",\"categories\":[{\"name\":\"nwoiind\",\"enabled\":\"wp\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"tlhflsjcdhszf\",\"enabled\":\"fbgofeljagrqmqh\"},{\"name\":\"vriiio\",\"enabled\":\"al\"},{\"name\":\"fk\",\"enabled\":\"vsexsowuelu\"}]},\"cors\":{\"allowedOrigins\":[\"hhxvrhmzkwpj\",\"wws\"]},\"serverless\":{\"connectionTimeoutInSeconds\":1806327837},\"upstream\":{\"templates\":[{\"hubPattern\":\"xhqxujxukndxdigr\",\"eventPattern\":\"uufzdmsyqtfihw\",\"categoryPattern\":\"otzi\",\"urlTemplate\":\"gamv\",\"auth\":{\"type\":\"None\",\"managedIdentity\":{\"resource\":\"qzudphq\"}}}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"ServerConnection\",\"Trace\",\"Trace\",\"ServerConnection\"],\"deny\":[\"ServerConnection\",\"ClientConnection\",\"ClientConnection\",\"Trace\"]},\"privateEndpoints\":[{\"name\":\"mtnvyq\",\"allow\":[\"ServerConnection\",\"Trace\",\"ClientConnection\"],\"deny\":[\"RESTAPI\",\"ClientConnection\",\"Trace\",\"Trace\"]},{\"name\":\"cjaesgvvs\",\"allow\":[\"ServerConnection\",\"ClientConnection\",\"ClientConnection\",\"ClientConnection\"],\"deny\":[\"ClientConnection\",\"Trace\",\"ClientConnection\",\"RESTAPI\"]}]},\"publicNetworkAccess\":\"lvdnkfx\",\"disableLocalAuth\":true,\"disableAadAuth\":false}") .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(false, model.tls().clientCertEnabled()); + Assertions.assertEquals(FeatureFlags.ENABLE_MESSAGING_LOGS, model.features().get(0).flag()); + Assertions.assertEquals("awfsdjpvkvpbjxbk", model.features().get(0).value()); + Assertions.assertEquals("kd", model.features().get(0).properties().get("ncj")); + Assertions.assertEquals("zpfrla", model.liveTraceConfiguration().enabled()); + Assertions.assertEquals("nwoiind", model.liveTraceConfiguration().categories().get(0).name()); + Assertions.assertEquals("wp", model.liveTraceConfiguration().categories().get(0).enabled()); + Assertions.assertEquals("tlhflsjcdhszf", model.resourceLogConfiguration().categories().get(0).name()); + Assertions.assertEquals("fbgofeljagrqmqh", model.resourceLogConfiguration().categories().get(0).enabled()); + Assertions.assertEquals("hhxvrhmzkwpj", model.cors().allowedOrigins().get(0)); + Assertions.assertEquals(1806327837, model.serverless().connectionTimeoutInSeconds()); + Assertions.assertEquals("xhqxujxukndxdigr", model.upstream().templates().get(0).hubPattern()); + Assertions.assertEquals("uufzdmsyqtfihw", model.upstream().templates().get(0).eventPattern()); + Assertions.assertEquals("otzi", model.upstream().templates().get(0).categoryPattern()); + Assertions.assertEquals("gamv", 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("qzudphq", model.upstream().templates().get(0).auth().managedIdentity().resource()); + Assertions.assertEquals(AclAction.ALLOW, model.networkACLs().defaultAction()); + Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, + model.networkACLs().publicNetwork().allow().get(0)); + Assertions.assertEquals(SignalRRequestType.SERVER_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("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(SignalRRequestType.RESTAPI, + model.networkACLs().privateEndpoints().get(0).deny().get(0)); + Assertions.assertEquals("mtnvyq", model.networkACLs().privateEndpoints().get(0).name()); + Assertions.assertEquals("lvdnkfx", 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")), + SignalRProperties model = new SignalRProperties().withTls(new SignalRTlsSettings().withClientCertEnabled(false)) + .withFeatures(Arrays.asList( new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("jorwkqnyhgbij") - .withProperties(mapOf("bsystawfsdjpvk", "vfxzsjab", "jxbkzbzkdvn", "p", "zhjjklffhmouwq", - "jabudurgkakmo", "eeyebi", "gzrf")), + .withValue("awfsdjpvkvpbjxbk") + .withProperties(mapOf("ncj", "kd", "zhjjklffhmouwq", "budurgkakmo")), + new SignalRFeature().withFlag(FeatureFlags.SERVICE_MODE) + .withValue("zrfze") + .withProperties(mapOf("bjbsybb", "bizikayuhq", "ldgmfpgvmpip", "wrv", "x", "slthaq")), 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")))) + .withValue("mwutwbdsre") + .withProperties(mapOf("d", "rhneuyowq", "gpikpzimejza", "ytisibir", "rjqc", "lfzxiavrmbzonoki")))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("zpfrla") + .withCategories(Arrays.asList(new LiveTraceCategory().withName("nwoiind").withEnabled("wp")))) .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)) + Arrays.asList(new ResourceLogCategory().withName("tlhflsjcdhszf").withEnabled("fbgofeljagrqmqh"), + new ResourceLogCategory().withName("vriiio").withEnabled("al"), + new ResourceLogCategory().withName("fk").withEnabled("vsexsowuelu")))) + .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("hhxvrhmzkwpj", "wws"))) + .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(1806327837)) .withUpstream(new ServerlessUpstreamSettings() - .withTemplates(Arrays.asList(new UpstreamTemplate().withHubPattern("ygz") - .withEventPattern("dnkfx") - .withCategoryPattern("emdwzrmuhapfc") - .withUrlTemplate("dpsqx") + .withTemplates(Arrays.asList(new UpstreamTemplate().withHubPattern("xhqxujxukndxdigr") + .withEventPattern("uufzdmsyqtfihw") + .withCategoryPattern("otzi") + .withUrlTemplate("gamv") .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.NONE) - .withManagedIdentity(new ManagedIdentitySettings().withResource("oymgccelvezr")))))) - .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.DENY) + .withManagedIdentity(new ManagedIdentitySettings().withResource("qzudphq")))))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.ALLOW) .withPublicNetwork(new NetworkAcl() - .withAllow(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.SERVER_CONNECTION, + .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.TRACE, 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") + .withDeny(Arrays.asList(SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.CLIENT_CONNECTION, + SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.TRACE))) + .withPrivateEndpoints(Arrays.asList( + new PrivateEndpointAcl() + .withAllow(Arrays.asList(SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.TRACE, + SignalRRequestType.CLIENT_CONNECTION)) + .withDeny(Arrays.asList(SignalRRequestType.RESTAPI, SignalRRequestType.CLIENT_CONNECTION, + SignalRRequestType.TRACE, SignalRRequestType.TRACE)) + .withName("mtnvyq"), + new PrivateEndpointAcl() + .withAllow( + Arrays.asList(SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.CLIENT_CONNECTION, + SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.CLIENT_CONNECTION)) + .withDeny(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.TRACE, + SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.RESTAPI)) + .withName("cjaesgvvs")))) + .withPublicNetworkAccess("lvdnkfx") .withDisableLocalAuth(true) - .withDisableAadAuth(false) - .withRegionEndpointEnabled("qqaatjinrvgou") - .withResourceStopped("fiibfggjioolvr"); + .withDisableAadAuth(false); 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(false, model.tls().clientCertEnabled()); + Assertions.assertEquals(FeatureFlags.ENABLE_MESSAGING_LOGS, model.features().get(0).flag()); + Assertions.assertEquals("awfsdjpvkvpbjxbk", model.features().get(0).value()); + Assertions.assertEquals("kd", model.features().get(0).properties().get("ncj")); + Assertions.assertEquals("zpfrla", model.liveTraceConfiguration().enabled()); + Assertions.assertEquals("nwoiind", model.liveTraceConfiguration().categories().get(0).name()); + Assertions.assertEquals("wp", model.liveTraceConfiguration().categories().get(0).enabled()); + Assertions.assertEquals("tlhflsjcdhszf", model.resourceLogConfiguration().categories().get(0).name()); + Assertions.assertEquals("fbgofeljagrqmqh", model.resourceLogConfiguration().categories().get(0).enabled()); + Assertions.assertEquals("hhxvrhmzkwpj", model.cors().allowedOrigins().get(0)); + Assertions.assertEquals(1806327837, model.serverless().connectionTimeoutInSeconds()); + Assertions.assertEquals("xhqxujxukndxdigr", model.upstream().templates().get(0).hubPattern()); + Assertions.assertEquals("uufzdmsyqtfihw", model.upstream().templates().get(0).eventPattern()); + Assertions.assertEquals("otzi", model.upstream().templates().get(0).categoryPattern()); + Assertions.assertEquals("gamv", 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("qzudphq", model.upstream().templates().get(0).auth().managedIdentity().resource()); + Assertions.assertEquals(AclAction.ALLOW, model.networkACLs().defaultAction()); + Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, + model.networkACLs().publicNetwork().allow().get(0)); + Assertions.assertEquals(SignalRRequestType.SERVER_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("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(SignalRRequestType.RESTAPI, + model.networkACLs().privateEndpoints().get(0).deny().get(0)); + Assertions.assertEquals("mtnvyq", model.networkACLs().privateEndpoints().get(0).name()); + Assertions.assertEquals("lvdnkfx", 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 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 8dd7e657f8e1e..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasCreateOrUpdateMockTests.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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -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.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 reactor.core.publisher.Mono; - -public final class SignalRReplicasCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - 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\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - 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 cab32699ca71c..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasDeleteWithResponseMockTests.java +++ /dev/null @@ -1,33 +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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.signalr.SignalRManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SignalRReplicasDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - 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 5d221c16761bf..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasGetWithResponseMockTests.java +++ /dev/null @@ -1,46 +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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.Replica; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SignalRReplicasGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - 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\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - 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 88d0f035e97eb..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRReplicasListMockTests.java +++ /dev/null @@ -1,46 +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.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.Replica; -import com.azure.resourcemanager.signalr.models.SignalRSkuTier; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SignalRReplicasListMockTests { - @Test - public void testList() throws Exception { - 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\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - 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 index 9b347255a1a3c..9d1729a377405 100644 --- 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 @@ -8,7 +8,6 @@ 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; @@ -41,19 +40,19 @@ 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\"}") + "{\"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\":\"Deleting\",\"privateEndpoint\":{\"id\":\"zyh\"},\"groupIds\":[\"smypyynpc\",\"pumnz\",\"mwzn\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"nsorgjhxbldt\",\"actionsRequired\":\"wrlkdmtn\"}},\"id\":\"vokotllxdyh\",\"name\":\"syocogjltdtbnnha\",\"type\":\"oocrkvcikhnv\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{\"id\":\"queziky\"},\"groupIds\":[\"xkalla\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"uipiccjzk\",\"actionsRequired\":\"v\"}},\"id\":\"vvcnayr\",\"name\":\"yrnxxmueedn\",\"type\":\"rdvstkwqqtch\"},{\"properties\":{\"provisioningState\":\"Moving\",\"privateEndpoint\":{\"id\":\"d\"},\"groupIds\":[\"gdv\",\"vgpiohgwxrt\"],\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"pxgy\",\"actionsRequired\":\"gvr\"}},\"id\":\"mnpkukghimdblxg\",\"name\":\"imfnjhfjx\",\"type\":\"mszkkfo\"},{\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{\"id\":\"ikf\"},\"groupIds\":[\"n\",\"a\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"zel\",\"actionsRequired\":\"irels\"}},\"id\":\"eae\",\"name\":\"wabfatkl\",\"type\":\"dxbjhwuaanozj\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"oulpjrv\",\"privateLinkResourceId\":\"ag\",\"provisioningState\":\"Unknown\",\"requestMessage\":\"mjwosytx\",\"status\":\"Timeout\"},\"id\":\"skfc\",\"name\":\"tq\",\"type\":\"miekkezzikhlyfjh\"}],\"tls\":{\"clientCertEnabled\":false},\"hostNamePrefix\":\"ebdunyg\",\"features\":[{\"flag\":\"ServiceMode\",\"value\":\"db\",\"properties\":{\"xllrxcyjm\":\"t\",\"su\":\"a\"}},{\"flag\":\"ServiceMode\",\"value\":\"r\",\"properties\":{\"hhyxxrw\":\"dmjsjqb\",\"duhpk\":\"yc\",\"hky\":\"kgymareqnajxqug\",\"sofwqmzqalkrmnji\":\"ubeddg\"}},{\"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\"]}]},\"publicNetworkAccess\":\"mqoefkifrvtpuqu\",\"disableLocalAuth\":false,\"disableAadAuth\":true},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"c\":{\"principalId\":\"ongbjcnt\",\"clientId\":\"i\"},\"pzfoqoui\":{\"principalId\":\"df\",\"clientId\":\"waezkojvd\"}},\"principalId\":\"bxarzgszufoxci\",\"tenantId\":\"p\"},\"location\":\"oamciodh\",\"tags\":{\"gokdwbwhks\":\"zxkhnzbonlwnto\",\"qgsfraoyzkoow\":\"zcmrvexztvb\",\"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("oamciodh", model.location()); + Assertions.assertEquals("zxkhnzbonlwnto", model.tags().get("gokdwbwhks")); 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(false, model.tls().clientCertEnabled()); + Assertions.assertEquals(FeatureFlags.SERVICE_MODE, model.features().get(0).flag()); + Assertions.assertEquals("db", model.features().get(0).value()); + Assertions.assertEquals("t", model.features().get(0).properties().get("xllrxcyjm")); Assertions.assertEquals("tramxjez", model.liveTraceConfiguration().enabled()); Assertions.assertEquals("wxuqlcvydypatdoo", model.liveTraceConfiguration().categories().get(0).name()); Assertions.assertEquals("jkniodko", model.liveTraceConfiguration().categories().get(0).enabled()); @@ -75,29 +74,31 @@ public void testDeserialize() throws Exception { 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("mqoefkifrvtpuqu", model.publicNetworkAccess()); + Assertions.assertEquals(false, 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")) + SignalRResourceInner model = new SignalRResourceInner().withLocation("oamciodh") + .withTags(mapOf("gokdwbwhks", "zxkhnzbonlwnto", "qgsfraoyzkoow", "zcmrvexztvb", "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)) + .withUserAssignedIdentities( + mapOf("c", new UserAssignedIdentityProperty(), "pzfoqoui", new UserAssignedIdentityProperty()))) + .withTls(new SignalRTlsSettings().withClientCertEnabled(false)) .withFeatures(Arrays.asList( - new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) - .withValue("ubeddg") - .withProperties(mapOf("i", "fwqmzqalkrmn")), + new SignalRFeature().withFlag(FeatureFlags.SERVICE_MODE) + .withValue("db") + .withProperties(mapOf("xllrxcyjm", "t", "su", "a")), + new SignalRFeature().withFlag(FeatureFlags.SERVICE_MODE) + .withValue("r") + .withProperties(mapOf("hhyxxrw", "dmjsjqb", "duhpk", "yc", "hky", "kgymareqnajxqug", + "sofwqmzqalkrmnji", "ubeddg")), new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) .withValue("xacqqudfnbyx") .withProperties( @@ -155,28 +156,22 @@ public void testSerialize() throws Exception { 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"); + .withName("aeburuvdmo")))) + .withPublicNetworkAccess("mqoefkifrvtpuqu") + .withDisableLocalAuth(false) + .withDisableAadAuth(true); model = BinaryData.fromObject(model).toObject(SignalRResourceInner.class); - Assertions.assertEquals("mrv", model.location()); - Assertions.assertEquals("tvb", model.tags().get("qgsfraoyzkoow")); + Assertions.assertEquals("oamciodh", model.location()); + Assertions.assertEquals("zxkhnzbonlwnto", model.tags().get("gokdwbwhks")); 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(false, model.tls().clientCertEnabled()); + Assertions.assertEquals(FeatureFlags.SERVICE_MODE, model.features().get(0).flag()); + Assertions.assertEquals("db", model.features().get(0).value()); + Assertions.assertEquals("t", model.features().get(0).properties().get("xllrxcyjm")); Assertions.assertEquals("tramxjez", model.liveTraceConfiguration().enabled()); Assertions.assertEquals("wxuqlcvydypatdoo", model.liveTraceConfiguration().categories().get(0).name()); Assertions.assertEquals("jkniodko", model.liveTraceConfiguration().categories().get(0).enabled()); @@ -198,13 +193,9 @@ public void testSerialize() throws Exception { 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("mqoefkifrvtpuqu", model.publicNetworkAccess()); + Assertions.assertEquals(false, model.disableLocalAuth()); Assertions.assertEquals(true, model.disableAadAuth()); - Assertions.assertEquals("kojvd", model.regionEndpointEnabled()); - Assertions.assertEquals("zfoqouicybxar", model.resourceStopped()); } // Use "Map.of" if available 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 index 7ebf8c569a5e9..aa7e4ea925a8e 100644 --- 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 @@ -8,7 +8,6 @@ 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; @@ -39,34 +38,33 @@ 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\"}") + "{\"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\":\"uwiqzb\",\"privateLinkResourceId\":\"j\"},\"id\":\"sovmyokacspkwl\",\"name\":\"zdobpxjmflbvvnch\",\"type\":\"kcciwwzjuqkhr\"},{\"properties\":{\"groupId\":\"iwkuofos\",\"privateLinkResourceId\":\"ghsauuimjmvxied\"},\"id\":\"ugidyjrr\",\"name\":\"byao\",\"type\":\"v\"},{\"properties\":{\"groupId\":\"sonpclhocohs\",\"privateLinkResourceId\":\"kevle\"},\"id\":\"gz\",\"name\":\"buhfmvfaxkffeiit\",\"type\":\"lvmezyvshxmzsbbz\"},{\"properties\":{\"groupId\":\"igrxwburvjxxjn\",\"privateLinkResourceId\":\"pydptko\"},\"id\":\"nkoukn\",\"name\":\"udwtiukbl\",\"type\":\"ngkpocipazy\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"kgjn\",\"features\":[{\"flag\":\"EnableConnectivityLogs\",\"value\":\"gygev\",\"properties\":{\"ydnfyhxdeoejz\":\"typmrbpizcdrqjsd\",\"jttgzf\":\"cwif\",\"khaj\":\"ishc\",\"p\":\"eyeam\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"g\",\"properties\":{\"honowkgshwank\":\"buxwgip\",\"rywn\":\"xzbinjeputt\",\"lwh\":\"zoqftiyqzrnkcqvy\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"sicohoqqnwvlry\",\"properties\":{\"konocu\":\"hheunmmqhgyx\"}}],\"liveTraceConfiguration\":{\"enabled\":\"lyaxuc\",\"categories\":[{},{}]},\"resourceLogConfiguration\":{\"categories\":[{}]},\"cors\":{\"allowedOrigins\":[\"eyp\",\"wrmjmwvvjektc\",\"senhwlrs\"]},\"serverless\":{\"connectionTimeoutInSeconds\":842863771},\"upstream\":{\"templates\":[{\"urlTemplate\":\"lqdqgbiqylihka\"}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"Trace\",\"ServerConnection\",\"ClientConnection\"],\"deny\":[\"Trace\",\"Trace\",\"Trace\"]},\"privateEndpoints\":[{\"name\":\"ctq\"},{\"name\":\"jf\"},{\"name\":\"ebrjcxe\"}]},\"publicNetworkAccess\":\"uwutttxfvjrbi\",\"disableLocalAuth\":true,\"disableAadAuth\":true},\"kind\":\"SignalR\",\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{\"oxgvclt\":{\"principalId\":\"ljkyqxjvuuj\",\"clientId\":\"idokgjlj\"},\"gx\":{\"principalId\":\"sncghkjeszz\",\"clientId\":\"ijhtxf\"}},\"principalId\":\"smx\",\"tenantId\":\"hmpvecx\"},\"location\":\"debfqkkrbmpukgri\",\"tags\":{\"ahmgkbrp\":\"zlfbxzpuzycispnq\",\"hibnuqqkpika\":\"y\",\"buynhijggm\":\"rgvtqag\"},\"id\":\"bfs\",\"name\":\"arbu\",\"type\":\"rcvpnazzmhjrunmp\"},{\"sku\":{\"name\":\"tdbhrbnla\",\"tier\":\"Basic\",\"size\":\"yskpbhen\",\"family\":\"kcxywnyt\",\"capacity\":1863766018},\"properties\":{\"provisioningState\":\"Failed\",\"externalIP\":\"idybyxczf\",\"hostName\":\"haaxdbabphl\",\"publicPort\":77204722,\"serverPort\":818210611,\"version\":\"tsthsucocm\",\"privateEndpointConnections\":[{\"properties\":{},\"id\":\"t\",\"name\":\"bt\",\"type\":\"wrqpue\"},{\"properties\":{},\"id\":\"zywbiex\",\"name\":\"fey\",\"type\":\"eaxib\"},{\"properties\":{},\"id\":\"wbhqwal\",\"name\":\"uzyoxaep\",\"type\":\"kzjancuxrhdwbav\"},{\"properties\":{},\"id\":\"iwdjswztsdbpgn\",\"name\":\"ytxhp\",\"type\":\"xbzpfzab\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"xwtctyqiklbbovpl\",\"privateLinkResourceId\":\"zbhvgyuguosv\"},\"id\":\"kfssxqukkf\",\"name\":\"l\",\"type\":\"mg\"}],\"tls\":{\"clientCertEnabled\":false},\"hostNamePrefix\":\"zkd\",\"features\":[{\"flag\":\"EnableLiveTrace\",\"value\":\"vlopwiyighx\",\"properties\":{\"baumnyqupedeoj\":\"wzbaiue\",\"ckhsmtxpsieb\":\"a\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"hvpesapskrdqm\",\"properties\":{\"uutkncw\":\"dhtldwkyz\",\"wrupqsxvnmicykvc\":\"cwsvlxotog\",\"eil\":\"o\"}}],\"liveTraceConfiguration\":{\"enabled\":\"oty\",\"categories\":[{}]},\"resourceLogConfiguration\":{\"categories\":[{},{},{},{}]},\"cors\":{\"allowedOrigins\":[\"nxdhbt\"]},\"serverless\":{\"connectionTimeoutInSeconds\":59412891},\"upstream\":{\"templates\":[{\"urlTemplate\":\"nv\"},{\"urlTemplate\":\"t\"},{\"urlTemplate\":\"qnermclfplphoxu\"},{\"urlTemplate\":\"crpab\"}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"Trace\"],\"deny\":[\"Trace\"]},\"privateEndpoints\":[{\"name\":\"xywpmueefjzwfqkq\"},{\"name\":\"jidsuyonobglaoc\"}]},\"publicNetworkAccess\":\"tcc\",\"disableLocalAuth\":true,\"disableAadAuth\":false},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"wpzntxhdzh\":{\"principalId\":\"xv\",\"clientId\":\"u\"},\"rlhrxs\":{\"principalId\":\"qj\",\"clientId\":\"ck\"},\"ehhseyvjusrts\":{\"principalId\":\"yvpycanuzbpzk\",\"clientId\":\"kuwbcrnwb\"},\"ahvljuaha\":{\"principalId\":\"spkdee\",\"clientId\":\"ofmxagkvtmelmqkr\"}},\"principalId\":\"hcdhmdual\",\"tenantId\":\"xqpvfadmw\"},\"location\":\"crgvxpvgom\",\"tags\":{\"e\":\"misgwbnb\",\"urqhaka\":\"dawkzbali\"},\"id\":\"hashsfwxosow\",\"name\":\"xcug\",\"type\":\"cjooxdjebwpucwwf\"},{\"sku\":{\"name\":\"vbvmeu\",\"tier\":\"Premium\",\"size\":\"yhz\",\"family\":\"uojgj\",\"capacity\":1178618137},\"properties\":{\"provisioningState\":\"Failed\",\"externalIP\":\"twm\",\"hostName\":\"ytdxwit\",\"publicPort\":1070997174,\"serverPort\":381866779,\"version\":\"gqwgxhniskxfbkp\",\"privateEndpointConnections\":[{\"properties\":{},\"id\":\"wndnhj\",\"name\":\"auwhvylwzbtdhx\",\"type\":\"jznb\"},{\"properties\":{},\"id\":\"wuwprzqlv\",\"name\":\"ualupjmkh\",\"type\":\"xobbcswsrt\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"rbpbewtghfgblcg\",\"privateLinkResourceId\":\"xzvlvqhjkbegib\"},\"id\":\"nmxiebwwaloayqc\",\"name\":\"wrtz\",\"type\":\"uzgwyzmhtx\"},{\"properties\":{\"groupId\":\"mtsavjcbpwxqp\",\"privateLinkResourceId\":\"rknftguvriuhprwm\"},\"id\":\"yvxqtayriwwroy\",\"name\":\"bexrmcq\",\"type\":\"bycnojvkn\"},{\"properties\":{\"groupId\":\"qsgzvahapj\",\"privateLinkResourceId\":\"zhpvgqzcjrvxd\"},\"id\":\"zlmwlxkvugfhz\",\"name\":\"vawjvzunlu\",\"type\":\"hnnpr\"},{\"properties\":{\"groupId\":\"peilpjzuaejxdu\",\"privateLinkResourceId\":\"tskzbbtdzumveek\"},\"id\":\"pwo\",\"name\":\"uh\",\"type\":\"fpbsjyofdxl\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"touwaboekqv\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"smv\",\"properties\":{\"isxyawjoyaqcslyj\":\"yjsflhhcaalnji\",\"nelixhnrztfo\":\"kiidzyex\",\"xknalaulppg\":\"hb\",\"gvpgy\":\"dtpnapnyiropuhp\"}}],\"liveTraceConfiguration\":{\"enabled\":\"git\",\"categories\":[{},{},{}]},\"resourceLogConfiguration\":{\"categories\":[{}]},\"cors\":{\"allowedOrigins\":[\"ynqwwncwzzhxgk\",\"rmgucnap\",\"t\"]},\"serverless\":{\"connectionTimeoutInSeconds\":1950925712},\"upstream\":{\"templates\":[{\"urlTemplate\":\"tfdygpfqb\"}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"RESTAPI\"],\"deny\":[\"ServerConnection\",\"ServerConnection\",\"RESTAPI\",\"ClientConnection\"]},\"privateEndpoints\":[{\"name\":\"ppcqeqxolz\"},{\"name\":\"ahzxctobgbk\"},{\"name\":\"moizpos\"}]},\"publicNetworkAccess\":\"grcfb\",\"disableLocalAuth\":true,\"disableAadAuth\":true},\"kind\":\"SignalR\",\"identity\":{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"szjfauvjfdxxivet\":{\"principalId\":\"vjymjhxxjyngud\",\"clientId\":\"krtswbxqz\"},\"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\":\"mygtdssls\",\"privateLinkResourceId\":\"tmweriofzpyq\"},\"id\":\"emwabnet\",\"name\":\"hhszh\",\"type\":\"d\"},{\"properties\":{\"groupId\":\"wiwubm\",\"privateLinkResourceId\":\"mbes\"},\"id\":\"dnkwwtppjflcxog\",\"name\":\"okonzmnsikvmkqz\",\"type\":\"qqkdltfzxmhhvhgu\"},{\"properties\":{\"groupId\":\"dkwobdagx\",\"privateLinkResourceId\":\"ibqdxbxwakbogqx\"},\"id\":\"dlkzgxhuri\",\"name\":\"lbpodxunk\",\"type\":\"ebxmubyynt\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"tkoievseotgq\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"muwlauwzizxbm\",\"properties\":{\"p\":\"jefuzmuvpbttdumo\",\"mnzb\":\"xe\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"hjpglkf\",\"properties\":{\"lfphsdyhtozfikd\":\"dneu\",\"zonosgg\":\"wwquuvxzxclvithh\",\"ljuti\":\"hcohfwdsjnk\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"wacf\",\"properties\":{\"zewk\":\"k\",\"pnppfuf\":\"vhqcrail\",\"afcnih\":\"rwdmhdlxyjrxsa\",\"vq\":\"wqapnedgfbcvk\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"keqdcvdrhvoods\",\"properties\":{\"wmgxcxrsl\":\"obzdopcjwvnhdl\",\"rpkhjwn\":\"mutwuoe\",\"dggkzzlvmbmpa\":\"yqsluic\",\"yhrfouyftaakcpw\":\"modfvuefywsbpfvm\"}}],\"liveTraceConfiguration\":{\"enabled\":\"vqtmnub\",\"categories\":[{},{},{}]},\"resourceLogConfiguration\":{\"categories\":[{},{}]},\"cors\":{\"allowedOrigins\":[\"ndjmquxvyp\",\"mg\"]},\"serverless\":{\"connectionTimeoutInSeconds\":107730122},\"upstream\":{\"templates\":[{\"urlTemplate\":\"jvp\"},{\"urlTemplate\":\"jqg\"}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"ClientConnection\",\"ServerConnection\"],\"deny\":[\"ServerConnection\",\"RESTAPI\"]},\"privateEndpoints\":[{\"name\":\"xozap\"},{\"name\":\"helxprglya\"},{\"name\":\"dd\"}]},\"publicNetworkAccess\":\"cbcuejrjxgciqi\",\"disableLocalAuth\":false,\"disableAadAuth\":true},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"szdtmhrkwof\":{\"principalId\":\"y\",\"clientId\":\"bmrqyibahwfl\"},\"nwashrtd\":{\"principalId\":\"voqacpiexpbt\",\"clientId\":\"wbwo\"},\"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("debfqkkrbmpukgri", model.value().get(0).location()); + Assertions.assertEquals("zlfbxzpuzycispnq", model.value().get(0).tags().get("ahmgkbrp")); 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(ManagedIdentityType.NONE, 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(FeatureFlags.ENABLE_CONNECTIVITY_LOGS, model.value().get(0).features().get(0).flag()); + Assertions.assertEquals("gygev", model.value().get(0).features().get(0).value()); + Assertions.assertEquals("typmrbpizcdrqjsd", + model.value().get(0).features().get(0).properties().get("ydnfyhxdeoejz")); + Assertions.assertEquals("lyaxuc", model.value().get(0).liveTraceConfiguration().enabled()); + Assertions.assertEquals("eyp", model.value().get(0).cors().allowedOrigins().get(0)); + Assertions.assertEquals(842863771, model.value().get(0).serverless().connectionTimeoutInSeconds()); + Assertions.assertEquals("lqdqgbiqylihka", model.value().get(0).upstream().templates().get(0).urlTemplate()); Assertions.assertEquals(AclAction.ALLOW, model.value().get(0).networkACLs().defaultAction()); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, + Assertions.assertEquals(SignalRRequestType.TRACE, model.value().get(0).networkACLs().publicNetwork().allow().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, + Assertions.assertEquals(SignalRRequestType.TRACE, 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("ctq", model.value().get(0).networkACLs().privateEndpoints().get(0).name()); + Assertions.assertEquals("uwutttxfvjrbi", 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(true, model.value().get(0).disableAadAuth()); Assertions.assertEquals("qkvpuvksgplsakn", model.nextLink()); } @@ -74,247 +72,203 @@ public void testDeserialize() throws Exception { 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( + .withValue(Arrays.asList( + new SignalRResourceInner().withLocation("debfqkkrbmpukgri") + .withTags(mapOf("ahmgkbrp", "zlfbxzpuzycispnq", "hibnuqqkpika", "y", "buynhijggm", "rgvtqag")) + .withSku(new ResourceSku().withName("tpngjcrcczsqpjh") + .withTier(SignalRSkuTier.FREE) + .withCapacity(1901274446)) + .withKind(ServiceKind.SIGNALR) + .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.NONE) + .withUserAssignedIdentities(mapOf("oxgvclt", new UserAssignedIdentityProperty(), "gx", + new UserAssignedIdentityProperty()))) + .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) + .withFeatures(Arrays.asList( + new SignalRFeature().withFlag(FeatureFlags.ENABLE_CONNECTIVITY_LOGS) + .withValue("gygev") + .withProperties(mapOf("ydnfyhxdeoejz", "typmrbpizcdrqjsd", "jttgzf", "cwif", "khaj", + "ishc", "p", "eyeam")), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_LIVE_TRACE) + .withValue("g") + .withProperties(mapOf("honowkgshwank", "buxwgip", "rywn", "xzbinjeputt", "lwh", + "zoqftiyqzrnkcqvy")), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("sicohoqqnwvlry") + .withProperties(mapOf("konocu", "hheunmmqhgyx")))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("lyaxuc") + .withCategories(Arrays.asList(new LiveTraceCategory(), new LiveTraceCategory()))) + .withResourceLogConfiguration( + new ResourceLogConfiguration().withCategories(Arrays.asList(new ResourceLogCategory()))) + .withCors(new SignalRCorsSettings() + .withAllowedOrigins(Arrays.asList("eyp", "wrmjmwvvjektc", "senhwlrs"))) + .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(842863771)) + .withUpstream(new ServerlessUpstreamSettings() + .withTemplates(Arrays.asList(new UpstreamTemplate().withUrlTemplate("lqdqgbiqylihka")))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.ALLOW) + .withPublicNetwork(new NetworkAcl() + .withAllow(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.SERVER_CONNECTION, + SignalRRequestType.CLIENT_CONNECTION)) + .withDeny(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.TRACE, + SignalRRequestType.TRACE))) + .withPrivateEndpoints(Arrays.asList( + new PrivateEndpointAcl().withName("ctq"), new PrivateEndpointAcl().withName("jf"), + new PrivateEndpointAcl().withName("ebrjcxe")))) + .withPublicNetworkAccess("uwutttxfvjrbi") + .withDisableLocalAuth(true) + .withDisableAadAuth(true), + new SignalRResourceInner() + .withLocation("crgvxpvgom") + .withTags(mapOf("e", "misgwbnb", "urqhaka", "dawkzbali")) + .withSku(new ResourceSku().withName("tdbhrbnla") + .withTier(SignalRSkuTier.BASIC) + .withCapacity(1863766018)) + .withKind(ServiceKind.RAW_WEB_SOCKETS) + .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("wpzntxhdzh", new UserAssignedIdentityProperty(), + "rlhrxs", new UserAssignedIdentityProperty(), "ehhseyvjusrts", + new UserAssignedIdentityProperty(), "ahvljuaha", new UserAssignedIdentityProperty()))) + .withTls(new SignalRTlsSettings().withClientCertEnabled(false)) + .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")), + .withValue("vlopwiyighx") + .withProperties(mapOf("baumnyqupedeoj", "wzbaiue", "ckhsmtxpsieb", "a")), 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"))) + .withValue("hvpesapskrdqm") + .withProperties(mapOf("uutkncw", "dhtldwkyz", "wrupqsxvnmicykvc", "cwsvlxotog", + "eil", "o")))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("oty") + .withCategories(Arrays.asList(new LiveTraceCategory()))) + .withResourceLogConfiguration( + new ResourceLogConfiguration().withCategories(Arrays.asList(new ResourceLogCategory(), + new ResourceLogCategory(), new ResourceLogCategory(), new ResourceLogCategory()))) + .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("nxdhbt"))) + .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(59412891)) + .withUpstream(new ServerlessUpstreamSettings() + .withTemplates(Arrays.asList(new UpstreamTemplate().withUrlTemplate("nv"), + new UpstreamTemplate().withUrlTemplate("t"), + new UpstreamTemplate().withUrlTemplate("qnermclfplphoxu"), + new UpstreamTemplate().withUrlTemplate("crpab")))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.ALLOW) + .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.TRACE)) + .withDeny(Arrays.asList(SignalRRequestType.TRACE))) + .withPrivateEndpoints(Arrays.asList( + new PrivateEndpointAcl().withName("xywpmueefjzwfqkq"), + new PrivateEndpointAcl().withName("jidsuyonobglaoc")))) + .withPublicNetworkAccess("tcc") + .withDisableLocalAuth(true) + .withDisableAadAuth(false), + new SignalRResourceInner().withLocation("bsrfbj") + .withTags(mapOf("sotftpvj", "w")) + .withSku(new ResourceSku().withName("vbvmeu") + .withTier(SignalRSkuTier.PREMIUM) + .withCapacity(1178618137)) + .withKind(ServiceKind.SIGNALR) + .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("szjfauvjfdxxivet", new UserAssignedIdentityProperty(), + "bhsfxob", new UserAssignedIdentityProperty(), "shqjohxcrsbf", + new UserAssignedIdentityProperty()))) + .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) + .withFeatures(Arrays.asList(new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("smv") + .withProperties(mapOf("isxyawjoyaqcslyj", "yjsflhhcaalnji", "nelixhnrztfo", "kiidzyex", + "xknalaulppg", "hb", "gvpgy", "dtpnapnyiropuhp")))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("git") + .withCategories(Arrays.asList(new LiveTraceCategory(), new LiveTraceCategory(), + new LiveTraceCategory()))) + .withResourceLogConfiguration( + new ResourceLogConfiguration().withCategories(Arrays.asList(new ResourceLogCategory()))) + .withCors(new SignalRCorsSettings() + .withAllowedOrigins(Arrays.asList("ynqwwncwzzhxgk", "rmgucnap", "t"))) + .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(1950925712)) + .withUpstream(new ServerlessUpstreamSettings() + .withTemplates(Arrays.asList(new UpstreamTemplate().withUrlTemplate("tfdygpfqb")))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.DENY) + .withPublicNetwork(new NetworkAcl().withAllow(Arrays.asList(SignalRRequestType.RESTAPI)) + .withDeny(Arrays.asList(SignalRRequestType.SERVER_CONNECTION, + SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.RESTAPI, + SignalRRequestType.CLIENT_CONNECTION))) + .withPrivateEndpoints(Arrays.asList(new PrivateEndpointAcl().withName("ppcqeqxolz"), + new PrivateEndpointAcl().withName("ahzxctobgbk"), + new PrivateEndpointAcl().withName("moizpos")))) + .withPublicNetworkAccess("grcfb") + .withDisableLocalAuth(true) + .withDisableAadAuth(true), + 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.RAW_WEB_SOCKETS) + .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("szdtmhrkwof", new UserAssignedIdentityProperty(), + "nwashrtd", new UserAssignedIdentityProperty(), "i", new UserAssignedIdentityProperty(), + "fbtkuwhhmhyk", new UserAssignedIdentityProperty()))) + .withTls(new SignalRTlsSettings().withClientCertEnabled(true)) + .withFeatures(Arrays.asList( + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("muwlauwzizxbm") + .withProperties(mapOf("p", "jefuzmuvpbttdumo", "mnzb", "xe")), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_LIVE_TRACE) + .withValue("hjpglkf") + .withProperties(mapOf("lfphsdyhtozfikd", "dneu", "zonosgg", "wwquuvxzxclvithh", "ljuti", + "hcohfwdsjnk")), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("wacf") + .withProperties(mapOf("zewk", "k", "pnppfuf", "vhqcrail", "afcnih", "rwdmhdlxyjrxsa", + "vq", "wqapnedgfbcvk")), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_LIVE_TRACE) + .withValue("keqdcvdrhvoods") + .withProperties(mapOf("wmgxcxrsl", "obzdopcjwvnhdl", "rpkhjwn", "mutwuoe", + "dggkzzlvmbmpa", "yqsluic", "yhrfouyftaakcpw", "modfvuefywsbpfvm")))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("vqtmnub") + .withCategories(Arrays.asList(new LiveTraceCategory(), new LiveTraceCategory(), + new LiveTraceCategory()))) + .withResourceLogConfiguration(new ResourceLogConfiguration() + .withCategories(Arrays.asList(new ResourceLogCategory(), new ResourceLogCategory()))) + .withCors(new SignalRCorsSettings().withAllowedOrigins(Arrays.asList("ndjmquxvyp", "mg"))) + .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(107730122)) + .withUpstream(new ServerlessUpstreamSettings().withTemplates( + Arrays.asList(new UpstreamTemplate().withUrlTemplate("jvp"), + new UpstreamTemplate().withUrlTemplate("jqg")))) + .withNetworkACLs(new SignalRNetworkACLs().withDefaultAction(AclAction.DENY) + .withPublicNetwork(new NetworkAcl() + .withAllow(Arrays.asList(SignalRRequestType.CLIENT_CONNECTION, + SignalRRequestType.SERVER_CONNECTION)) + .withDeny( + Arrays.asList(SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.RESTAPI))) + .withPrivateEndpoints(Arrays.asList(new PrivateEndpointAcl().withName("xozap"), + new PrivateEndpointAcl().withName("helxprglya"), + new PrivateEndpointAcl().withName("dd")))) + .withPublicNetworkAccess("cbcuejrjxgciqi") + .withDisableLocalAuth(false) + .withDisableAadAuth(true))) .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("debfqkkrbmpukgri", model.value().get(0).location()); + Assertions.assertEquals("zlfbxzpuzycispnq", model.value().get(0).tags().get("ahmgkbrp")); 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(ManagedIdentityType.NONE, 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(FeatureFlags.ENABLE_CONNECTIVITY_LOGS, model.value().get(0).features().get(0).flag()); + Assertions.assertEquals("gygev", model.value().get(0).features().get(0).value()); + Assertions.assertEquals("typmrbpizcdrqjsd", + model.value().get(0).features().get(0).properties().get("ydnfyhxdeoejz")); + Assertions.assertEquals("lyaxuc", model.value().get(0).liveTraceConfiguration().enabled()); + Assertions.assertEquals("eyp", model.value().get(0).cors().allowedOrigins().get(0)); + Assertions.assertEquals(842863771, model.value().get(0).serverless().connectionTimeoutInSeconds()); + Assertions.assertEquals("lqdqgbiqylihka", model.value().get(0).upstream().templates().get(0).urlTemplate()); Assertions.assertEquals(AclAction.ALLOW, model.value().get(0).networkACLs().defaultAction()); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, + Assertions.assertEquals(SignalRRequestType.TRACE, model.value().get(0).networkACLs().publicNetwork().allow().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, + Assertions.assertEquals(SignalRRequestType.TRACE, 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("ctq", model.value().get(0).networkACLs().privateEndpoints().get(0).name()); + Assertions.assertEquals("uwutttxfvjrbi", 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(true, model.value().get(0).disableAadAuth()); Assertions.assertEquals("qkvpuvksgplsakn", model.nextLink()); } 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 index 5beb4a1c8346a..b675ccc2441c1 100644 --- 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 @@ -21,7 +21,7 @@ public final class SignalRSharedPrivateLinkResourcesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"groupId\":\"mkfqlwxldy\",\"privateLinkResourceId\":\"alsygao\",\"provisioningState\":\"Succeeded\",\"requestMessage\":\"nnbmjksibjgsjj\",\"status\":\"Disconnected\"},\"id\":\"mr\",\"name\":\"ad\",\"type\":\"yqegx\"}"; + = "{\"properties\":{\"groupId\":\"hhvnewgnxkymp\",\"privateLinkResourceId\":\"anxrj\",\"provisioningState\":\"Succeeded\",\"requestMessage\":\"wbtaoyp\",\"status\":\"Rejected\"},\"id\":\"hshxcylhkgmnsghp\",\"name\":\"ycphdrwjjkhvyo\",\"type\":\"ac\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SharedPrivateLinkResource response = manager.signalRSharedPrivateLinkResources() - .define("lz") - .withExistingSignalR("zjknyuxg", "ttxpnrupza") - .withGroupId("rdixt") - .withPrivateLinkResourceId("ekidswyskb") - .withRequestMessage("gllukkutvlxhrpqh") + .define("eeyaswl") + .withExistingSignalR("augmrmfjlr", "wtoaukhfk") + .withGroupId("sizmoae") + .withPrivateLinkResourceId("sx") + .withRequestMessage("vedwcgyeewx") .create(); - Assertions.assertEquals("mkfqlwxldy", response.groupId()); - Assertions.assertEquals("alsygao", response.privateLinkResourceId()); - Assertions.assertEquals("nnbmjksibjgsjj", response.requestMessage()); + Assertions.assertEquals("hhvnewgnxkymp", response.groupId()); + Assertions.assertEquals("anxrj", response.privateLinkResourceId()); + Assertions.assertEquals("wbtaoyp", 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 index 6abb96521ab19..879fd77299e69 100644 --- 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 @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.signalRSharedPrivateLinkResources() - .delete("e", "oyzbamwineofvf", "akpoldtvevbo", com.azure.core.util.Context.NONE); + .delete("yfqi", "gxhnpomyqwcabv", "ui", 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 index ae62e9e719aee..61807f45c73ca 100644 --- 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 @@ -21,7 +21,7 @@ public final class SignalRSharedPrivateLinkResourcesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"groupId\":\"btsuahxs\",\"privateLinkResourceId\":\"xjcmmzrrsc\",\"provisioningState\":\"Moving\",\"requestMessage\":\"sd\",\"status\":\"Rejected\"},\"id\":\"qwodiffjx\",\"name\":\"jrmmuabwib\",\"type\":\"jogjonmc\"}"; + = "{\"properties\":{\"groupId\":\"sqyzqedikdfr\",\"privateLinkResourceId\":\"biqmrjgei\",\"provisioningState\":\"Unknown\",\"requestMessage\":\"ggwfiwz\",\"status\":\"Approved\"},\"id\":\"jpbyephmgtv\",\"name\":\"j\",\"type\":\"rc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SharedPrivateLinkResource response = manager.signalRSharedPrivateLinkResources() - .getWithResponse("ay", "xbulpzealbmqkyo", "wyvf", com.azure.core.util.Context.NONE) + .getWithResponse("h", "rbqgvgov", "bbttefjo", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("btsuahxs", response.groupId()); - Assertions.assertEquals("xjcmmzrrsc", response.privateLinkResourceId()); - Assertions.assertEquals("sd", response.requestMessage()); + Assertions.assertEquals("sqyzqedikdfr", response.groupId()); + Assertions.assertEquals("biqmrjgei", response.privateLinkResourceId()); + Assertions.assertEquals("ggwfiwz", 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 index 7f4b9bb79fe8d..2c6f658e09eb2 100644 --- 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 @@ -22,7 +22,7 @@ public final class SignalRSharedPrivateLinkResourcesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"hhulrtywikdm\",\"privateLinkResourceId\":\"lakuflgbhgauacd\",\"provisioningState\":\"Creating\",\"requestMessage\":\"ufr\",\"status\":\"Rejected\"},\"id\":\"qg\",\"name\":\"kfnozoeoqbvj\",\"type\":\"vefgwbmqjchntas\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"hqlkccuzgygqwaho\",\"privateLinkResourceId\":\"ulwgniiprglvawuw\",\"provisioningState\":\"Canceled\",\"requestMessage\":\"ypivlsbb\",\"status\":\"Approved\"},\"id\":\"cubkmi\",\"name\":\"oxxkubvp\",\"type\":\"avp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.signalRSharedPrivateLinkResources() - .list("upeuknijduyye", "pydjfboc", com.azure.core.util.Context.NONE); + .list("e", "dptjgwdtgukranb", 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()); + Assertions.assertEquals("hqlkccuzgygqwaho", response.iterator().next().groupId()); + Assertions.assertEquals("ulwgniiprglvawuw", response.iterator().next().privateLinkResourceId()); + Assertions.assertEquals("ypivlsbb", response.iterator().next().requestMessage()); } } 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 index db7e5b01048ff..8ec5786d8d9d7 100644 --- 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 @@ -21,7 +21,7 @@ public final class SignalRsCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":false,\"reason\":\"moy\",\"message\":\"lwigdivbkbx\"}"; + String responseStr = "{\"nameAvailable\":false,\"reason\":\"rnysux\",\"message\":\"rafwgckhocxvdf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,13 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); NameAvailability response = manager.signalRs() - .checkNameAvailabilityWithResponse("qlkzme", - new NameAvailabilityParameters().withType("nitgvkxlz").withName("qdrfegcealzxwhc"), + .checkNameAvailabilityWithResponse("hihfrbbcevqagtlt", + new NameAvailabilityParameters().withType("hlfkqojpy").withName("vgtrdcnifmzzs"), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals("moy", response.reason()); - Assertions.assertEquals("lwigdivbkbx", response.message()); + Assertions.assertEquals("rnysux", response.reason()); + Assertions.assertEquals("rafwgckhocxvdf", 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 index dc270b6055fee..d678c8973c897 100644 --- 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 @@ -12,7 +12,6 @@ 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; @@ -48,7 +47,7 @@ public final class SignalRsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { 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\"}"; + = "{\"sku\":{\"name\":\"ooqjagmditgueio\",\"tier\":\"Standard\",\"size\":\"sahrtdtpdel\",\"family\":\"cslmotoebnfxo\",\"capacity\":1425919318},\"properties\":{\"provisioningState\":\"Succeeded\",\"externalIP\":\"irazftxejwabmd\",\"hostName\":\"tmvcop\",\"publicPort\":206055715,\"serverPort\":1931798752,\"version\":\"rbuhhlky\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Moving\",\"privateEndpoint\":{},\"groupIds\":[\"wkffdjkt\",\"ysidfvclgl\",\"n\",\"uijtkbu\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"ogsf\",\"name\":\"kayi\",\"type\":\"nsharujtjiqxfzyj\"},{\"properties\":{\"provisioningState\":\"Unknown\",\"privateEndpoint\":{},\"groupIds\":[\"hjpenuygbq\",\"qqekewvnqvcdlgu\",\"ucmfdj\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"laxpunj\",\"name\":\"ikczvvitacgxmf\",\"type\":\"sserxhtvsoxhlwn\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{},\"groupIds\":[\"y\",\"ruuuybnch\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"zizoyuely\",\"name\":\"tn\",\"type\":\"nb\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"agfl\",\"privateLinkResourceId\":\"lgmtrwahzjmucf\",\"provisioningState\":\"Unknown\",\"requestMessage\":\"plrohkpigq\",\"status\":\"Approved\"},\"id\":\"u\",\"name\":\"kzmkwklsnoxaxmqe\",\"type\":\"alhhjnhgwydyynfs\"},{\"properties\":{\"groupId\":\"gbv\",\"privateLinkResourceId\":\"ta\",\"provisioningState\":\"Running\",\"requestMessage\":\"dlpukhpyrne\",\"status\":\"Rejected\"},\"id\":\"cpeogkhnmgbrou\",\"name\":\"ddbhf\",\"type\":\"pfpazjzoywjxhpdu\"},{\"properties\":{\"groupId\":\"tacnpqwtehtuev\",\"privateLinkResourceId\":\"hrljy\",\"provisioningState\":\"Moving\",\"requestMessage\":\"xh\",\"status\":\"Rejected\"},\"id\":\"uug\",\"name\":\"bsre\",\"type\":\"rfqkfuar\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"htkln\",\"features\":[{\"flag\":\"ServiceMode\",\"value\":\"vvkyfedevjboslcq\",\"properties\":{\"ymc\":\"okkhminq\"}},{\"flag\":\"EnableMessagingLogs\",\"value\":\"gn\",\"properties\":{\"wuninv\":\"x\",\"h\":\"db\"}}],\"liveTraceConfiguration\":{\"enabled\":\"tvq\",\"categories\":[{\"name\":\"ct\",\"enabled\":\"xdtddmflhuytxzv\"},{\"name\":\"napxbannovv\",\"enabled\":\"czytprwn\"},{\"name\":\"roevyt\",\"enabled\":\"okrrrouuxv\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"crymodizrxklobd\",\"enabled\":\"azpmkmlmv\"},{\"name\":\"f\",\"enabled\":\"op\"},{\"name\":\"bzxliohrdddtfgxq\",\"enabled\":\"wpcbbnzqcy\"},{\"name\":\"apqofyuicdhz\",\"enabled\":\"ybww\"}]},\"cors\":{\"allowedOrigins\":[\"ibidmhmwffp\",\"fmuvapckccr\",\"vwe\",\"oxoyyukp\"]},\"serverless\":{\"connectionTimeoutInSeconds\":1490735732},\"upstream\":{\"templates\":[{\"hubPattern\":\"oqboshbragapyyr\",\"eventPattern\":\"svbpavbopfppdbwn\",\"categoryPattern\":\"gahxkumasjcaa\",\"urlTemplate\":\"fdmmcpug\",\"auth\":{}},{\"hubPattern\":\"qepvufhbzeh\",\"eventPattern\":\"hoqhnl\",\"categoryPattern\":\"nbldxeaclgschori\",\"urlTemplate\":\"krsrrmoucs\",\"auth\":{}}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"Trace\"],\"deny\":[\"Trace\"]},\"privateEndpoints\":[{\"name\":\"eolhbhlvbmx\",\"allow\":[\"Trace\",\"ClientConnection\",\"RESTAPI\"],\"deny\":[\"Trace\",\"RESTAPI\",\"Trace\",\"RESTAPI\"]},{\"name\":\"b\",\"allow\":[\"RESTAPI\",\"ClientConnection\"],\"deny\":[\"RESTAPI\"]}]},\"publicNetworkAccess\":\"lkjxnqpvwgf\",\"disableLocalAuth\":true,\"disableAadAuth\":false},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"gc\":{\"principalId\":\"aoaf\",\"clientId\":\"uqvoxmycjimryv\"},\"wefohecbvo\":{\"principalId\":\"pbmz\",\"clientId\":\"esyds\"},\"vbrdfjmzsyzfho\":{\"principalId\":\"ndyqleal\",\"clientId\":\"lmtkhlowkxx\"},\"rtws\":{\"principalId\":\"h\",\"clientId\":\"cyychunsjlp\"}},\"principalId\":\"vv\",\"tenantId\":\"c\"},\"location\":\"vtrrmhwrbfdpyflu\",\"tags\":{\"ocu\":\"jgl\",\"n\":\"zlwhhmemhooclu\",\"jk\":\"qmemc\",\"rryejylmbkzudnig\":\"mykyujxsglhs\"},\"id\":\"fihotj\",\"name\":\"wlpxuzzjg\",\"type\":\"refqy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -59,115 +58,113 @@ public void testCreateOrUpdate() throws Exception { 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) + .define("uojqt") + .withRegion("usxjbaqehg") + .withExistingResourceGroup("lgouwtlmjj") + .withTags(mapOf("xncnwfe", "hzjqatucoige", "cgbjbgdlfgt", "bnwgfmxj", "naquflq", "y", "zeqyjleziun", + "ctqhamzjrwdk")) + .withSku( + new ResourceSku().withName("axkjeytunlbfjk").withTier(SignalRSkuTier.FREE).withCapacity(1762253481)) + .withKind(ServiceKind.SIGNALR) .withIdentity(new ManagedIdentity().withType(ManagedIdentityType.NONE) - .withUserAssignedIdentities(mapOf("hlvbmxu", new UserAssignedIdentityProperty()))) + .withUserAssignedIdentities(mapOf("onwpnga", new UserAssignedIdentityProperty(), "jfjmyccxlzh", + new UserAssignedIdentityProperty(), "txrdcqtjvi", new UserAssignedIdentityProperty(), "ecjxe", + 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") + .withFeatures( + Arrays + .asList( + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("ivbgkcv") + .withProperties(mapOf("yp", "zvuqdflvon", "idibgqjxgpn", "pubcpzgpxtivhjk", + "kqmhhaowjr", "hgovfgp")), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_LIVE_TRACE) + .withValue("vuporqzdfuydzv") + .withProperties(mapOf("ggdhbemzqkzszuw", "xcnqmxqpswokmvkh", "ljfp", "wtglxx", + "pqcbfrmbodthsq", "picrmnzhrgmqgjsx")), + new SignalRFeature().withFlag(FeatureFlags.ENABLE_MESSAGING_LOGS) + .withValue("vriibakclacjfr") + .withProperties(mapOf("uzlwvsgmw", "usx", "izvu", "hqf", "vmribiat", "mmkjsvthnwpztek", + "zcugswvxwlmzqw", "gplucfotangcfhny")))) + .withLiveTraceConfiguration(new LiveTraceConfiguration().withEnabled("xnjmxm") + .withCategories(Arrays.asList(new LiveTraceCategory().withName("dtcvcl").withEnabled("npdkv"), + new LiveTraceCategory().withName("abuiy").withEnabled("buzphdugn"), + new LiveTraceCategory().withName("knpgoxgjiuq").withEnabled("btozipqwje")))) + .withResourceLogConfiguration(new ResourceLogConfiguration().withCategories( + Arrays.asList(new ResourceLogCategory().withName("xxgewpk").withEnabled("qylkmqpzoyhlf"), + new ResourceLogCategory().withName("gwgcl").withEnabled("oebqinjipn"), + new ResourceLogCategory().withName("fujqlafcba").withEnabled("pzpofoiyjw")))) + .withCors(new SignalRCorsSettings().withAllowedOrigins( + Arrays.asList("kmkkholvdnd", "iauogphuartv", "iukyefchnmna", "mnxhkxjqirwrweo"))) + .withServerless(new ServerlessSettings().withConnectionTimeoutInSeconds(641060199)) + .withUpstream(new ServerlessUpstreamSettings() + .withTemplates(Arrays.asList(new UpstreamTemplate().withHubPattern("wrsnewmozqvbu") + .withEventPattern("ma") + .withCategoryPattern("sycxhxzgaz") + .withUrlTemplate("taboidvmf") .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))) + .withDeny(Arrays.asList(SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.RESTAPI, + SignalRRequestType.CLIENT_CONNECTION, 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.SERVER_CONNECTION)) + .withDeny(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.RESTAPI, + SignalRRequestType.CLIENT_CONNECTION)) + .withName("dherngbtcj"), + new PrivateEndpointAcl() + .withAllow(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.TRACE)) + .withDeny(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.TRACE, + SignalRRequestType.CLIENT_CONNECTION)) + .withName("kauxof"), 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") + .withAllow(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.SERVER_CONNECTION, + SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.CLIENT_CONNECTION)) + .withDeny(Arrays.asList(SignalRRequestType.SERVER_CONNECTION, SignalRRequestType.TRACE, + SignalRRequestType.TRACE)) + .withName("aiywzejywhsl"), + new PrivateEndpointAcl().withAllow(Arrays.asList(SignalRRequestType.TRACE)) + .withDeny(Arrays.asList(SignalRRequestType.TRACE, SignalRRequestType.RESTAPI, + SignalRRequestType.CLIENT_CONNECTION, SignalRRequestType.CLIENT_CONNECTION)) + .withName("wrpqafgfugsnnf")))) + .withPublicNetworkAccess("ctfjgtixr") .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("vtrrmhwrbfdpyflu", response.location()); + Assertions.assertEquals("jgl", response.tags().get("ocu")); + Assertions.assertEquals("ooqjagmditgueio", response.sku().name()); + Assertions.assertEquals(SignalRSkuTier.STANDARD, response.sku().tier()); + Assertions.assertEquals(1425919318, response.sku().capacity()); + Assertions.assertEquals(ServiceKind.RAW_WEB_SOCKETS, response.kind()); + Assertions.assertEquals(ManagedIdentityType.SYSTEM_ASSIGNED, response.identity().type()); + Assertions.assertEquals(true, response.tls().clientCertEnabled()); + Assertions.assertEquals(FeatureFlags.SERVICE_MODE, response.features().get(0).flag()); + Assertions.assertEquals("vvkyfedevjboslcq", response.features().get(0).value()); + Assertions.assertEquals("okkhminq", response.features().get(0).properties().get("ymc")); + Assertions.assertEquals("tvq", response.liveTraceConfiguration().enabled()); + Assertions.assertEquals("ct", response.liveTraceConfiguration().categories().get(0).name()); + Assertions.assertEquals("xdtddmflhuytxzv", response.liveTraceConfiguration().categories().get(0).enabled()); + Assertions.assertEquals("crymodizrxklobd", response.resourceLogConfiguration().categories().get(0).name()); + Assertions.assertEquals("azpmkmlmv", response.resourceLogConfiguration().categories().get(0).enabled()); + Assertions.assertEquals("ibidmhmwffp", response.cors().allowedOrigins().get(0)); + Assertions.assertEquals(1490735732, response.serverless().connectionTimeoutInSeconds()); + Assertions.assertEquals("oqboshbragapyyr", response.upstream().templates().get(0).hubPattern()); + Assertions.assertEquals("svbpavbopfppdbwn", response.upstream().templates().get(0).eventPattern()); + Assertions.assertEquals("gahxkumasjcaa", response.upstream().templates().get(0).categoryPattern()); + Assertions.assertEquals("fdmmcpug", response.upstream().templates().get(0).urlTemplate()); + Assertions.assertEquals(AclAction.DENY, 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, + Assertions.assertEquals(SignalRRequestType.TRACE, response.networkACLs().publicNetwork().deny().get(0)); + Assertions.assertEquals(SignalRRequestType.TRACE, response.networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, + Assertions.assertEquals(SignalRRequestType.TRACE, 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()); + Assertions.assertEquals("eolhbhlvbmx", response.networkACLs().privateEndpoints().get(0).name()); + Assertions.assertEquals("lkjxnqpvwgf", response.publicNetworkAccess()); + Assertions.assertEquals(true, response.disableLocalAuth()); + Assertions.assertEquals(false, response.disableAadAuth()); } // Use "Map.of" if available 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 index f718f839bf5f5..944d639f1f0b5 100644 --- 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 @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .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); + manager.signalRs().delete("hflzokxco", "pelnjetag", 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 index 3630db0a59893..3aa044352decd 100644 --- 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 @@ -27,7 +27,7 @@ public final class SignalRsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { 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\"}"; + = "{\"sku\":{\"name\":\"wqqxeysko\",\"tier\":\"Premium\",\"size\":\"nkfkbgbzb\",\"family\":\"xeqoc\",\"capacity\":228407914},\"properties\":{\"provisioningState\":\"Failed\",\"externalIP\":\"zqkjjeokbzefe\",\"hostName\":\"xcczurtl\",\"publicPort\":1572244952,\"serverPort\":1316938253,\"version\":\"kwv\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{},\"groupIds\":[\"ixz\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"pnodawopqhe\",\"name\":\"jptmcgsbost\",\"type\":\"eln\"},{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{},\"groupIds\":[\"lbiojlvfhrb\",\"pn\",\"qvcww\",\"yurmochpprprs\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"okayzejnhlbkp\",\"name\":\"z\",\"type\":\"cpilj\"},{\"properties\":{\"provisioningState\":\"Running\",\"privateEndpoint\":{},\"groupIds\":[\"ndbnwieh\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"ewjwiuubw\",\"name\":\"fqsfa\",\"type\":\"aqtferr\"},{\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{},\"groupIds\":[\"xap\",\"wogqqnobpudcdab\",\"qwpwyawbzasqbuc\",\"jg\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"exaoguya\",\"name\":\"p\",\"type\":\"dsdaultxijjumf\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"nqnm\",\"privateLinkResourceId\":\"jng\",\"provisioningState\":\"Moving\",\"requestMessage\":\"xtbjwgnyfusfzsv\",\"status\":\"Approved\"},\"id\":\"kzhajqglcfhm\",\"name\":\"rqryxynqn\",\"type\":\"rd\"},{\"properties\":{\"groupId\":\"vwxzn\",\"privateLinkResourceId\":\"tgoe\",\"provisioningState\":\"Succeeded\",\"requestMessage\":\"abpfhvfs\",\"status\":\"Disconnected\"},\"id\":\"ntjlr\",\"name\":\"gjkskyrioov\",\"type\":\"idsxwaabzmifry\"},{\"properties\":{\"groupId\":\"mmaxrizkzobgo\",\"privateLinkResourceId\":\"xlhslnel\",\"provisioningState\":\"Failed\",\"requestMessage\":\"xynl\",\"status\":\"Pending\"},\"id\":\"cwcrojphs\",\"name\":\"hcawjutifdwfmv\",\"type\":\"gorqjbttzh\"},{\"properties\":{\"groupId\":\"lkafhonqjuje\",\"privateLinkResourceId\":\"ckpzvcpopmxeln\",\"provisioningState\":\"Unknown\",\"requestMessage\":\"yjede\",\"status\":\"Approved\"},\"id\":\"lfmk\",\"name\":\"scazuawxtzxpu\",\"type\":\"mwabzxrvxc\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"haivm\",\"features\":[{\"flag\":\"EnableLiveTrace\",\"value\":\"flv\",\"properties\":{\"hknsmjbl\":\"zwywako\",\"ryuzcbmqqv\":\"ljhlnymzotq\"}},{\"flag\":\"ServiceMode\",\"value\":\"vwf\",\"properties\":{\"jlzqnhc\":\"yxonsupe\",\"bgsxgnxfyqonmpq\":\"sqltnzo\",\"iqxeiiqbimht\":\"xwdofdb\"}}],\"liveTraceConfiguration\":{\"enabled\":\"inheh\",\"categories\":[{\"name\":\"fvwbcb\",\"enabled\":\"mbnkb\"},{\"name\":\"qvxkd\",\"enabled\":\"qihebw\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"uwfmduragegizvc\",\"enabled\":\"elisdjub\"},{\"name\":\"bqigkx\",\"enabled\":\"sazgakgacyrcmj\"},{\"name\":\"spofapvuhry\",\"enabled\":\"iofrzgbzjedmstk\"}]},\"cors\":{\"allowedOrigins\":[\"xbcuiiznkt\"]},\"serverless\":{\"connectionTimeoutInSeconds\":1437161648},\"upstream\":{\"templates\":[{\"hubPattern\":\"dibmikostbzbkiwb\",\"eventPattern\":\"n\",\"categoryPattern\":\"phzfylsgcrp\",\"urlTemplate\":\"bcunezzceze\",\"auth\":{}}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"ServerConnection\"],\"deny\":[\"RESTAPI\",\"RESTAPI\",\"RESTAPI\"]},\"privateEndpoints\":[{\"name\":\"ihclafzv\",\"allow\":[\"ClientConnection\"],\"deny\":[\"ClientConnection\",\"ServerConnection\",\"RESTAPI\"]},{\"name\":\"wztcmwqkchc\",\"allow\":[\"ClientConnection\"],\"deny\":[\"ClientConnection\",\"RESTAPI\",\"ServerConnection\"]},{\"name\":\"kjexfdeqvhp\",\"allow\":[\"RESTAPI\",\"ClientConnection\",\"ClientConnection\",\"ServerConnection\"],\"deny\":[\"RESTAPI\",\"ClientConnection\"]},{\"name\":\"mbmxzjrgywwpgj\",\"allow\":[\"Trace\",\"ClientConnection\"],\"deny\":[\"ServerConnection\",\"Trace\",\"ServerConnection\"]}]},\"publicNetworkAccess\":\"gaao\",\"disableLocalAuth\":true,\"disableAadAuth\":true},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{\"rtixokff\":{\"principalId\":\"xswvru\",\"clientId\":\"zzjgehkfki\"},\"xgvelfclduccbird\":{\"principalId\":\"inljqepqwhixmo\",\"clientId\":\"tshi\"},\"inwjizcilngh\":{\"principalId\":\"uwc\",\"clientId\":\"iegstm\"}},\"principalId\":\"h\",\"tenantId\":\"jtbxqmuluxlx\"},\"location\":\"vnersbycucrw\",\"tags\":{\"bsmswziqgf\":\"ikzebr\",\"vhczznvfby\":\"hokzrusw\"},\"id\":\"jsxjwwix\",\"name\":\"vumwmxqh\",\"type\":\"dvnoamldsehaohdj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,46 +37,42 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SignalRResource response = manager.signalRs() - .getByResourceGroupWithResponse("qnyophzfyls", "crpfbcunez", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("cohdx", "zlmcmuapcvhdb", 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("vnersbycucrw", response.location()); + Assertions.assertEquals("ikzebr", response.tags().get("bsmswziqgf")); + Assertions.assertEquals("wqqxeysko", response.sku().name()); Assertions.assertEquals(SignalRSkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals(953163194, response.sku().capacity()); + Assertions.assertEquals(228407914, 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(ManagedIdentityType.NONE, response.identity().type()); + Assertions.assertEquals(true, response.tls().clientCertEnabled()); + Assertions.assertEquals(FeatureFlags.ENABLE_LIVE_TRACE, response.features().get(0).flag()); + Assertions.assertEquals("flv", response.features().get(0).value()); + Assertions.assertEquals("zwywako", response.features().get(0).properties().get("hknsmjbl")); + Assertions.assertEquals("inheh", response.liveTraceConfiguration().enabled()); + Assertions.assertEquals("fvwbcb", response.liveTraceConfiguration().categories().get(0).name()); + Assertions.assertEquals("mbnkb", response.liveTraceConfiguration().categories().get(0).enabled()); + Assertions.assertEquals("uwfmduragegizvc", response.resourceLogConfiguration().categories().get(0).name()); + Assertions.assertEquals("elisdjub", response.resourceLogConfiguration().categories().get(0).enabled()); + Assertions.assertEquals("xbcuiiznkt", response.cors().allowedOrigins().get(0)); + Assertions.assertEquals(1437161648, response.serverless().connectionTimeoutInSeconds()); + Assertions.assertEquals("dibmikostbzbkiwb", response.upstream().templates().get(0).hubPattern()); + Assertions.assertEquals("n", response.upstream().templates().get(0).eventPattern()); + Assertions.assertEquals("phzfylsgcrp", response.upstream().templates().get(0).categoryPattern()); + Assertions.assertEquals("bcunezzceze", 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, + Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, response.networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.TRACE, + Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, 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("ihclafzv", response.networkACLs().privateEndpoints().get(0).name()); + Assertions.assertEquals("gaao", 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 index 0ef49701771d3..f1d70325f265d 100644 --- 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 @@ -28,7 +28,7 @@ public final class SignalRsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { 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\"}]}"; + = "{\"value\":[{\"sku\":{\"name\":\"merteeammxqiek\",\"tier\":\"Basic\",\"size\":\"drtkgdoj\",\"family\":\"xv\",\"capacity\":1550017967},\"properties\":{\"provisioningState\":\"Moving\",\"externalIP\":\"esvecuijpx\",\"hostName\":\"s\",\"publicPort\":629028889,\"serverPort\":107298058,\"version\":\"jwsawddjibab\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Moving\",\"privateEndpoint\":{},\"groupIds\":[\"exavoxt\",\"glecdmdqbwpypq\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"sfj\",\"name\":\"cbslhhx\",\"type\":\"db\"},{\"properties\":{\"provisioningState\":\"Running\",\"privateEndpoint\":{},\"groupIds\":[\"irudh\",\"m\",\"es\",\"kdlpa\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"rcxfailcfxwmdb\",\"name\":\"xdfgsftufqobr\",\"type\":\"lnacgcc\"},{\"properties\":{\"provisioningState\":\"Failed\",\"privateEndpoint\":{},\"groupIds\":[\"v\",\"tnrzvuljra\",\"eranokqgukkjqnv\",\"roylaxxu\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"disdosfjbjsvgj\",\"name\":\"whryvycytdcl\",\"type\":\"gc\"},{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{},\"groupIds\":[\"tmvpdvjdhtt\",\"a\",\"fedxihchrphkm\",\"rjdqnsdfzp\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"tg\",\"name\":\"ylkdghrje\",\"type\":\"utlwxezwzhok\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"htqlgehgpp\",\"privateLinkResourceId\":\"pifhpfeoajvgcxtx\",\"provisioningState\":\"Succeeded\",\"requestMessage\":\"eafidltugsresm\",\"status\":\"Pending\"},\"id\":\"jhoiftxfkfweg\",\"name\":\"rhptilluc\",\"type\":\"iqtgdqoh\"},{\"properties\":{\"groupId\":\"sldrizetpwbral\",\"privateLinkResourceId\":\"libph\",\"provisioningState\":\"Running\",\"requestMessage\":\"izakak\",\"status\":\"Disconnected\"},\"id\":\"jpdn\",\"name\":\"zhajoylhjlmuo\",\"type\":\"xprimrsop\"},{\"properties\":{\"groupId\":\"cjmeislstvasy\",\"privateLinkResourceId\":\"wxdzaumweoohgu\",\"provisioningState\":\"Deleting\",\"requestMessage\":\"boyjathwt\",\"status\":\"Approved\"},\"id\":\"b\",\"name\":\"emwmdxmebwjs\",\"type\":\"jpahlxvea\"},{\"properties\":{\"groupId\":\"xnmwmqtibxyijddt\",\"privateLinkResourceId\":\"qcttadijaeukmrsi\",\"provisioningState\":\"Unknown\",\"requestMessage\":\"ndzaapmudq\",\"status\":\"Timeout\"},\"id\":\"wig\",\"name\":\"ibudqwy\",\"type\":\"eb\"}],\"tls\":{\"clientCertEnabled\":true},\"hostNamePrefix\":\"zznrtffyaqi\",\"features\":[{\"flag\":\"EnableConnectivityLogs\",\"value\":\"eioqaqhvse\",\"properties\":{\"lcgqlsismj\":\"qyrxp\",\"ivfcdisyirnx\":\"frddgamquhiosrsj\"}},{\"flag\":\"ServiceMode\",\"value\":\"czexrxzbujrtrhqv\",\"properties\":{\"gnl\":\"vk\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"onzlr\",\"properties\":{\"cvjtszcofiz\":\"yw\",\"gbjkvreljeamur\":\"htd\",\"xlpm\":\"zmlovuanash\"}},{\"flag\":\"EnableConnectivityLogs\",\"value\":\"rbdkelvidiz\",\"properties\":{\"cxjmonfdgnwncyp\":\"db\",\"nkeifz\":\"uwwltvuqjctz\",\"hbxcu\":\"hmkdasvfl\",\"boldforobwj\":\"chxgs\"}}],\"liveTraceConfiguration\":{\"enabled\":\"zbfhfovvac\",\"categories\":[{\"name\":\"uodxesza\",\"enabled\":\"elawumu\"},{\"name\":\"lzkwrrwoy\",\"enabled\":\"ucwyhahno\"},{\"name\":\"rkywuhpsvfuu\",\"enabled\":\"tlwexxwlalniexz\"},{\"name\":\"zpgepqty\",\"enabled\":\"wwpgdakchzyvlixq\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"kjibnxmysuxswqrn\",\"enabled\":\"lwi\"},{\"name\":\"sttex\",\"enabled\":\"qpwcyyufmh\"},{\"name\":\"nc\",\"enabled\":\"mqspkcdqzhlctdd\"},{\"name\":\"qn\",\"enabled\":\"fpch\"}]},\"cors\":{\"allowedOrigins\":[\"jjrcgegydc\",\"boxjumvq\",\"olihrra\",\"ouau\"]},\"serverless\":{\"connectionTimeoutInSeconds\":754680778},\"upstream\":{\"templates\":[{\"hubPattern\":\"fuojrngif\",\"eventPattern\":\"z\",\"categoryPattern\":\"sccbiuimzd\",\"urlTemplate\":\"yjdfqwmky\",\"auth\":{}},{\"hubPattern\":\"fdvruz\",\"eventPattern\":\"zojhpctfnmd\",\"categoryPattern\":\"tngfdgugeyzihgr\",\"urlTemplate\":\"yui\",\"auth\":{}},{\"hubPattern\":\"snmfpphojeevy\",\"eventPattern\":\"hsgz\",\"categoryPattern\":\"zbgomfgbeg\",\"urlTemplate\":\"qgleohibetnluank\",\"auth\":{}}]},\"networkACLs\":{\"defaultAction\":\"Deny\",\"publicNetwork\":{\"allow\":[\"ClientConnection\",\"ClientConnection\",\"ClientConnection\"],\"deny\":[\"ServerConnection\",\"ServerConnection\"]},\"privateEndpoints\":[{\"name\":\"qzbqqxlajrnwxa\",\"allow\":[\"ServerConnection\"],\"deny\":[\"ServerConnection\",\"ServerConnection\",\"ServerConnection\"]}]},\"publicNetworkAccess\":\"oafgaoql\",\"disableLocalAuth\":false,\"disableAadAuth\":false},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"kprlpyznuc\":{\"principalId\":\"irpghriypoqeyh\",\"clientId\":\"h\"},\"nlj\":{\"principalId\":\"dsmexiitdfux\",\"clientId\":\"asiibmiybnnust\"},\"yyprotwyp\":{\"principalId\":\"mgixhcmavmqfou\",\"clientId\":\"rhc\"}},\"principalId\":\"d\",\"tenantId\":\"xhugcm\"},\"location\":\"avlg\",\"tags\":{\"jltfvnzcyjtotpv\":\"mftpmdtz\",\"qwthmky\":\"pvpbdbzqgqqiheds\"},\"id\":\"bcysih\",\"name\":\"gqcwdhohsdtmc\",\"type\":\"zsu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,53 +38,49 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.signalRs().listByResourceGroup("mysu", com.azure.core.util.Context.NONE); + = manager.signalRs().listByResourceGroup("ktp", 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("avlg", response.iterator().next().location()); + Assertions.assertEquals("mftpmdtz", response.iterator().next().tags().get("jltfvnzcyjtotpv")); + Assertions.assertEquals("merteeammxqiek", response.iterator().next().sku().name()); + Assertions.assertEquals(SignalRSkuTier.BASIC, response.iterator().next().sku().tier()); + Assertions.assertEquals(1550017967, 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(ManagedIdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type()); Assertions.assertEquals(true, response.iterator().next().tls().clientCertEnabled()); - Assertions.assertEquals(FeatureFlags.ENABLE_MESSAGING_LOGS, + Assertions.assertEquals(FeatureFlags.ENABLE_CONNECTIVITY_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", + Assertions.assertEquals("eioqaqhvse", response.iterator().next().features().get(0).value()); + Assertions.assertEquals("qyrxp", response.iterator().next().features().get(0).properties().get("lcgqlsismj")); + Assertions.assertEquals("zbfhfovvac", response.iterator().next().liveTraceConfiguration().enabled()); + Assertions.assertEquals("uodxesza", response.iterator().next().liveTraceConfiguration().categories().get(0).name()); - Assertions.assertEquals("ewjwiuubw", + Assertions.assertEquals("elawumu", response.iterator().next().liveTraceConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("pud", + Assertions.assertEquals("kjibnxmysuxswqrn", response.iterator().next().resourceLogConfiguration().categories().get(0).name()); - Assertions.assertEquals("abtqwpwyawbzasqb", + Assertions.assertEquals("lwi", 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("jjrcgegydc", response.iterator().next().cors().allowedOrigins().get(0)); + Assertions.assertEquals(754680778, response.iterator().next().serverless().connectionTimeoutInSeconds()); + Assertions.assertEquals("fuojrngif", response.iterator().next().upstream().templates().get(0).hubPattern()); Assertions.assertEquals("z", response.iterator().next().upstream().templates().get(0).eventPattern()); - Assertions.assertEquals("qnmcjngzqdqx", + Assertions.assertEquals("sccbiuimzd", 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, + Assertions.assertEquals("yjdfqwmky", response.iterator().next().upstream().templates().get(0).urlTemplate()); + Assertions.assertEquals(AclAction.DENY, response.iterator().next().networkACLs().defaultAction()); + Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, 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, + Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, response.iterator().next().networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.TRACE, + Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, response.iterator().next().networkACLs().privateEndpoints().get(0).deny().get(0)); - Assertions.assertEquals("pzvcpopmxelnwc", + Assertions.assertEquals("qzbqqxlajrnwxa", 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("oafgaoql", 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()); + Assertions.assertEquals(false, response.iterator().next().disableAadAuth()); } } 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 index 0e4b02755fd48..ee00f4c3096dd 100644 --- 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 @@ -28,7 +28,7 @@ public final class SignalRsListMockTests { @Test public void testList() throws Exception { 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\"}]}"; + = "{\"value\":[{\"sku\":{\"name\":\"wafqroud\",\"tier\":\"Basic\",\"size\":\"vehhrvkbunzozu\",\"family\":\"cxgkmoyxcdyui\",\"capacity\":1002212342},\"properties\":{\"provisioningState\":\"Canceled\",\"externalIP\":\"zydvfvf\",\"hostName\":\"naeo\",\"publicPort\":1738473188,\"serverPort\":1226403170,\"version\":\"gorf\",\"privateEndpointConnections\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{},\"groupIds\":[\"hwplefaxvx\",\"l\",\"btgn\",\"nzeyqxtjj\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"qlqhycavodg\",\"name\":\"xdbeesmieknl\",\"type\":\"ariaawi\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{},\"groupIds\":[\"bylyrfgia\",\"tcojocqwo\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"nzjvusfzldm\",\"name\":\"zuxylfsbtkadpyso\",\"type\":\"nbtgkbugrjqctoj\"},{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{},\"groupIds\":[\"ypefojyqdhcupl\",\"plcwkhi\",\"ihlhzdsqtzb\"],\"privateLinkServiceConnectionState\":{}},\"id\":\"gnowcjhfgmveca\",\"name\":\"txmwoteyow\",\"type\":\"luqovekqvg\"}],\"sharedPrivateLinkResources\":[{\"properties\":{\"groupId\":\"fzmpjwyivq\",\"privateLinkResourceId\":\"kfxcvhrfs\",\"provisioningState\":\"Unknown\",\"requestMessage\":\"grttikteusqczk\",\"status\":\"Approved\"},\"id\":\"lxubyj\",\"name\":\"ff\",\"type\":\"mfblcqcuubg\"},{\"properties\":{\"groupId\":\"rtalmet\",\"privateLinkResourceId\":\"t\",\"provisioningState\":\"Canceled\",\"requestMessage\":\"lqxihhrmooiz\",\"status\":\"Timeout\"},\"id\":\"ypxiutcxap\",\"name\":\"hyrpetogebjoxs\",\"type\":\"hvnh\"},{\"properties\":{\"groupId\":\"rqnkkzjcjbtr\",\"privateLinkResourceId\":\"aehvvibrxjjstoq\",\"provisioningState\":\"Moving\",\"requestMessage\":\"pkxztmoobkl\",\"status\":\"Disconnected\"},\"id\":\"dgfcwqmp\",\"name\":\"maqxzhemjyh\",\"type\":\"hujswtwkozzwcul\"}],\"tls\":{\"clientCertEnabled\":false},\"hostNamePrefix\":\"fajnjwltlwtjjguk\",\"features\":[{\"flag\":\"EnableMessagingLogs\",\"value\":\"snv\",\"properties\":{\"mlnwiaaomylweazu\":\"mxzrpoa\",\"hwwn\":\"cse\"}},{\"flag\":\"EnableLiveTrace\",\"value\":\"hlf\",\"properties\":{\"fb\":\"pchwa\",\"l\":\"usnfepgfewet\"}},{\"flag\":\"EnableConnectivityLogs\",\"value\":\"gncxykxhdj\",\"properties\":{\"rxvxcjzh\":\"mmbcxfhbcp\",\"qscjavftjuh\":\"izxfpxt\"}}],\"liveTraceConfiguration\":{\"enabled\":\"zkmtgguwpijrajci\",\"categories\":[{\"name\":\"hfcf\",\"enabled\":\"rxgkne\"},{\"name\":\"yinzqodfvpgs\",\"enabled\":\"xgsg\"},{\"name\":\"fgzdjtxvz\",\"enabled\":\"bqvgaqv\"},{\"name\":\"a\",\"enabled\":\"qusrdvetnws\"}]},\"resourceLogConfiguration\":{\"categories\":[{\"name\":\"wlduyc\",\"enabled\":\"zhyrmewipmve\"},{\"name\":\"xukuqgsj\",\"enabled\":\"undxgketw\"},{\"name\":\"hzjhf\",\"enabled\":\"hvvmuvgpmun\"}]},\"cors\":{\"allowedOrigins\":[\"vmhfbuz\",\"yihsasbhudypohyu\"]},\"serverless\":{\"connectionTimeoutInSeconds\":189904532},\"upstream\":{\"templates\":[{\"hubPattern\":\"yrpfoobrlttymsj\",\"eventPattern\":\"gqdnfwqzd\",\"categoryPattern\":\"tilaxh\",\"urlTemplate\":\"fhqlyvi\",\"auth\":{}}]},\"networkACLs\":{\"defaultAction\":\"Allow\",\"publicNetwork\":{\"allow\":[\"RESTAPI\",\"Trace\",\"ServerConnection\"],\"deny\":[\"ServerConnection\",\"RESTAPI\"]},\"privateEndpoints\":[{\"name\":\"rtikvcpwpg\",\"allow\":[\"Trace\"],\"deny\":[\"ClientConnection\",\"ServerConnection\"]},{\"name\":\"oxfrkenxpmyyefr\",\"allow\":[\"Trace\",\"ClientConnection\",\"ClientConnection\",\"ServerConnection\"],\"deny\":[\"Trace\"]},{\"name\":\"waoqvmmb\",\"allow\":[\"ClientConnection\"],\"deny\":[\"ServerConnection\",\"Trace\"]},{\"name\":\"kzmegnitgvkxlz\",\"allow\":[\"ClientConnection\"],\"deny\":[\"RESTAPI\"]}]},\"publicNetworkAccess\":\"ealzxwhcansymoyq\",\"disableLocalAuth\":false,\"disableAadAuth\":true},\"kind\":\"RawWebSockets\",\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{\"e\":{\"principalId\":\"omfaj\",\"clientId\":\"asqvd\"},\"xasicddyvvjskg\":{\"principalId\":\"guxak\",\"clientId\":\"qzhzbezkgimsi\"},\"eaahhvjhhn\":{\"principalId\":\"ocwah\",\"clientId\":\"gat\"}},\"principalId\":\"zybbj\",\"tenantId\":\"dj\"},\"location\":\"yxkyxvx\",\"tags\":{\"dnlj\":\"lbj\",\"aulx\":\"age\"},\"id\":\"nsmjbnkppxynen\",\"name\":\"svxeizzgwklnsr\",\"type\":\"ffeycx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,49 +39,47 @@ public void testList() throws Exception { 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("yxkyxvx", response.iterator().next().location()); + Assertions.assertEquals("lbj", response.iterator().next().tags().get("dnlj")); + Assertions.assertEquals("wafqroud", response.iterator().next().sku().name()); Assertions.assertEquals(SignalRSkuTier.BASIC, response.iterator().next().sku().tier()); - Assertions.assertEquals(1460947945, response.iterator().next().sku().capacity()); + Assertions.assertEquals(1002212342, 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(ManagedIdentityType.NONE, 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", + Assertions.assertEquals("snv", response.iterator().next().features().get(0).value()); + Assertions.assertEquals("mxzrpoa", + response.iterator().next().features().get(0).properties().get("mlnwiaaomylweazu")); + Assertions.assertEquals("zkmtgguwpijrajci", response.iterator().next().liveTraceConfiguration().enabled()); + Assertions.assertEquals("hfcf", response.iterator().next().liveTraceConfiguration().categories().get(0).name()); + Assertions.assertEquals("rxgkne", response.iterator().next().liveTraceConfiguration().categories().get(0).enabled()); - Assertions.assertEquals("ftxfkf", + Assertions.assertEquals("wlduyc", response.iterator().next().resourceLogConfiguration().categories().get(0).name()); - Assertions.assertEquals("gpr", + Assertions.assertEquals("zhyrmewipmve", 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("vmhfbuz", response.iterator().next().cors().allowedOrigins().get(0)); + Assertions.assertEquals(189904532, response.iterator().next().serverless().connectionTimeoutInSeconds()); + Assertions.assertEquals("yrpfoobrlttymsj", + response.iterator().next().upstream().templates().get(0).hubPattern()); + Assertions.assertEquals("gqdnfwqzd", response.iterator().next().upstream().templates().get(0).eventPattern()); + Assertions.assertEquals("tilaxh", response.iterator().next().upstream().templates().get(0).categoryPattern()); + Assertions.assertEquals("fhqlyvi", response.iterator().next().upstream().templates().get(0).urlTemplate()); + Assertions.assertEquals(AclAction.ALLOW, response.iterator().next().networkACLs().defaultAction()); Assertions.assertEquals(SignalRRequestType.RESTAPI, + response.iterator().next().networkACLs().publicNetwork().allow().get(0)); + Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, response.iterator().next().networkACLs().publicNetwork().deny().get(0)); - Assertions.assertEquals(SignalRRequestType.CLIENT_CONNECTION, + Assertions.assertEquals(SignalRRequestType.TRACE, response.iterator().next().networkACLs().privateEndpoints().get(0).allow().get(0)); - Assertions.assertEquals(SignalRRequestType.SERVER_CONNECTION, + Assertions.assertEquals(SignalRRequestType.CLIENT_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("rtikvcpwpg", + response.iterator().next().networkACLs().privateEndpoints().get(0).name()); + Assertions.assertEquals("ealzxwhcansymoyq", 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 0b0c189512cb9..0000000000000 --- a/sdk/signalr/azure-resourcemanager-signalr/src/test/java/com/azure/resourcemanager/signalr/generated/SignalRsListReplicaSkusWithResponseMockTests.java +++ /dev/null @@ -1,38 +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.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.signalr.SignalRManager; -import com.azure.resourcemanager.signalr.models.SkuList; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SignalRsListReplicaSkusWithResponseMockTests { - @Test - public void testListReplicaSkusWithResponse() throws Exception { - 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\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - 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 index 5c932a3abf6cf..e13b6ed6fd10e 100644 --- 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 @@ -20,7 +20,7 @@ public final class SignalRsListSkusWithResponseMockTests { @Test public void testListSkusWithResponse() throws Exception { 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\"}"; + = "{\"value\":[{\"resourceType\":\"fmpcycilrmca\",\"sku\":{\"name\":\"ggn\",\"tier\":\"Premium\",\"size\":\"t\",\"family\":\"sxwpndfcpfnznthj\",\"capacity\":417005856},\"capacity\":{\"minimum\":23086677,\"maximum\":2087882144,\"default\":1475743122,\"allowedValues\":[1851255683,1634012333,1244267052,1346105096],\"scaleType\":\"Manual\"}},{\"resourceType\":\"iosmgbzahgxqdly\",\"sku\":{\"name\":\"ltlaprltzkatbhj\",\"tier\":\"Standard\",\"size\":\"bsoqeqala\",\"family\":\"lagun\",\"capacity\":2144619087},\"capacity\":{\"minimum\":860612333,\"maximum\":33751840,\"default\":339622455,\"allowedValues\":[1797453594,506554696],\"scaleType\":\"Manual\"}}],\"nextLink\":\"dzqavbpdqmjxlyyz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testListSkusWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SkuList response = manager.signalRs() - .listSkusWithResponse("hmnxhkxjqi", "wrweoo", com.azure.core.util.Context.NONE) + .listSkusWithResponse("loccsrmozihm", "pgawtxxpkyjcxcjx", 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 index 831b675146d01..e3418310e02f8 100644 --- 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 @@ -11,7 +11,7 @@ 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\"}") + "{\"minimum\":1336110134,\"maximum\":1297480953,\"default\":923449348,\"allowedValues\":[871560508,874924204],\"scaleType\":\"Manual\"}") .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 index 84bea300001c8..2ef7129a31e02 100644 --- 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 @@ -11,7 +11,7 @@ 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\"}") + "{\"value\":[{\"resourceType\":\"rihpfhoq\",\"sku\":{\"name\":\"a\",\"tier\":\"Free\",\"size\":\"omdjvlpjxxkzbrm\",\"family\":\"eivsiykzkdnc\",\"capacity\":1416610190},\"capacity\":{\"minimum\":782500811,\"maximum\":170670215,\"default\":1358958496,\"allowedValues\":[2059665337,535574830,15755117],\"scaleType\":\"Manual\"}},{\"resourceType\":\"rpgogtqxep\",\"sku\":{\"name\":\"lbfu\",\"tier\":\"Free\",\"size\":\"jtlvofqzhvfciby\",\"family\":\"owuxrkjpvdwx\",\"capacity\":1171857310},\"capacity\":{\"minimum\":2090183437,\"maximum\":615358685,\"default\":1971215082,\"allowedValues\":[1608749608,1253939074,954639384,1858009162],\"scaleType\":\"Automatic\"}}],\"nextLink\":\"mbtrnegvmnvu\"}") .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 index b8018794e00dc..47f7fcd848fcb 100644 --- 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 @@ -11,7 +11,7 @@ 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\"}}") + "{\"resourceType\":\"qvldspastjbkkd\",\"sku\":{\"name\":\"lves\",\"tier\":\"Free\",\"size\":\"xrrilozapee\",\"family\":\"hpxlktwkuziycs\",\"capacity\":491130908},\"capacity\":{\"minimum\":1092377559,\"maximum\":1863886155,\"default\":1342484784,\"allowedValues\":[68898852,1077847462,717163299],\"scaleType\":\"None\"}}") .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 index 6ab867c8f7fa0..76d7ecb8d9a78 100644 --- 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 @@ -14,18 +14,18 @@ public final class UpstreamAuthSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpstreamAuthSettings model - = BinaryData.fromString("{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"ojfmwnco\"}}") + = BinaryData.fromString("{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"vz\"}}") .toObject(UpstreamAuthSettings.class); Assertions.assertEquals(UpstreamAuthType.MANAGED_IDENTITY, model.type()); - Assertions.assertEquals("ojfmwnco", model.managedIdentity().resource()); + Assertions.assertEquals("vz", 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")); + .withManagedIdentity(new ManagedIdentitySettings().withResource("vz")); model = BinaryData.fromObject(model).toObject(UpstreamAuthSettings.class); Assertions.assertEquals(UpstreamAuthType.MANAGED_IDENTITY, model.type()); - Assertions.assertEquals("ojfmwnco", model.managedIdentity().resource()); + Assertions.assertEquals("vz", 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 index 156f2e28380cf..43a4903eff85f 100644 --- 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 @@ -15,30 +15,30 @@ 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\"}}}") + "{\"hubPattern\":\"yzhftwesgogczh\",\"eventPattern\":\"nxkrlgnyhmossxkk\",\"categoryPattern\":\"h\",\"urlTemplate\":\"rghxjb\",\"auth\":{\"type\":\"ManagedIdentity\",\"managedIdentity\":{\"resource\":\"xgfrpdsofbshrnsv\"}}}") .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()); + Assertions.assertEquals("yzhftwesgogczh", model.hubPattern()); + Assertions.assertEquals("nxkrlgnyhmossxkk", model.eventPattern()); + Assertions.assertEquals("h", model.categoryPattern()); + Assertions.assertEquals("rghxjb", model.urlTemplate()); + Assertions.assertEquals(UpstreamAuthType.MANAGED_IDENTITY, model.auth().type()); + Assertions.assertEquals("xgfrpdsofbshrnsv", 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"))); + UpstreamTemplate model = new UpstreamTemplate().withHubPattern("yzhftwesgogczh") + .withEventPattern("nxkrlgnyhmossxkk") + .withCategoryPattern("h") + .withUrlTemplate("rghxjb") + .withAuth(new UpstreamAuthSettings().withType(UpstreamAuthType.MANAGED_IDENTITY) + .withManagedIdentity(new ManagedIdentitySettings().withResource("xgfrpdsofbshrnsv"))); 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()); + Assertions.assertEquals("yzhftwesgogczh", model.hubPattern()); + Assertions.assertEquals("nxkrlgnyhmossxkk", model.eventPattern()); + Assertions.assertEquals("h", model.categoryPattern()); + Assertions.assertEquals("rghxjb", model.urlTemplate()); + Assertions.assertEquals(UpstreamAuthType.MANAGED_IDENTITY, model.auth().type()); + Assertions.assertEquals("xgfrpdsofbshrnsv", 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 index d1ef629d85bf5..48db0d90b18f1 100644 --- 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 @@ -22,7 +22,7 @@ public final class UsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"id\":\"tgjcsgguxheml\",\"currentValue\":571555646638099029,\"limit\":5923731066969155308,\"name\":{\"value\":\"fbukklelssxblycs\",\"localizedValue\":\"ujksrlsmdesqplpv\"},\"unit\":\"cdoewbidyv\"}]}"; + = "{\"value\":[{\"id\":\"wpzdqtvhcspo\",\"currentValue\":7851073221681739012,\"limit\":4118287642102521584,\"name\":{\"value\":\"etgbebjfulb\",\"localizedValue\":\"ichdlpn\"},\"unit\":\"ubntnbatzviqsow\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,14 @@ public void testList() throws Exception { .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); + PagedIterable response + = manager.usages().list("qotoihiqakydiwfb", 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()); + Assertions.assertEquals("wpzdqtvhcspo", response.iterator().next().id()); + Assertions.assertEquals(7851073221681739012L, response.iterator().next().currentValue()); + Assertions.assertEquals(4118287642102521584L, response.iterator().next().limit()); + Assertions.assertEquals("etgbebjfulb", response.iterator().next().name().value()); + Assertions.assertEquals("ichdlpn", response.iterator().next().name().localizedValue()); + Assertions.assertEquals("ubntnbatzviqsow", 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 index a08c00baaeef1..69c6f5bb4d689 100644 --- 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 @@ -10,8 +10,9 @@ 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); + UserAssignedIdentityProperty model + = BinaryData.fromString("{\"principalId\":\"pqjlihhyusps\",\"clientId\":\"sdvlmfwdgzxulucv\"}") + .toObject(UserAssignedIdentityProperty.class); } @org.junit.jupiter.api.Test From 032045a90a06c1372662098bb8e702ede7f6e91f Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Tue, 24 Dec 2024 11:33:00 +0800 Subject: [PATCH 3/3] Update CHANGELOG.md for version 1.0.0 --- .../CHANGELOG.md | 51 +------------------ 1 file changed, 2 insertions(+), 49 deletions(-) diff --git a/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md b/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md index 788a7370c7b2d..c42b34a9b62b6 100644 --- a/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md +++ b/sdk/signalr/azure-resourcemanager-signalr/CHANGELOG.md @@ -4,56 +4,9 @@ - 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-02-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). -### Breaking Changes - -#### `models.SignalRReplicas` was removed - -#### `models.Replica` was removed - -#### `models.IpRule` was removed - -#### `models.Replica$Update` was removed - -#### `models.ReplicaList` was removed - -#### `models.Replica$DefinitionStages` was removed - -#### `models.Replica$UpdateStages` was removed - -#### `models.Replica$Definition` was removed - -#### `models.SignalRs` was modified - -* `listReplicaSkus(java.lang.String,java.lang.String,java.lang.String)` was removed -* `listReplicaSkusWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed - -#### `models.PrivateLinkResource` was modified - -* `systemData()` was removed - -#### `models.SignalRNetworkACLs` was modified - -* `ipRules()` was removed -* `withIpRules(java.util.List)` was removed - -#### `models.SignalRResource$Definition` was modified - -* `withResourceStopped(java.lang.String)` was removed -* `withRegionEndpointEnabled(java.lang.String)` was removed - -#### `models.SignalRResource` was modified - -* `regionEndpointEnabled()` was removed -* `resourceStopped()` was removed - -#### `models.SignalRResource$Update` was modified - -* `withResourceStopped(java.lang.String)` was removed -* `withRegionEndpointEnabled(java.lang.String)` was removed - -#### `SignalRManager` was modified +### Other Changes -* `signalRReplicas()` was removed +- Release for Azure Resource Manager SignalR client library for Java. ## 1.0.0-beta.9 (2024-10-31)