diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRManagementClient.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRManagementClient.cs
index cec9fdb25b94..1ad9e814e242 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRManagementClient.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRManagementClient.cs
@@ -81,6 +81,11 @@ public partial interface ISignalRManagementClient : System.IDisposable
///
ISignalROperations SignalR { get; }
+ ///
+ /// Gets the IUsagesOperations.
+ ///
+ IUsagesOperations Usages { get; }
+
///
/// Gets the ISignalRPrivateEndpointConnectionsOperations.
///
@@ -92,9 +97,9 @@ public partial interface ISignalRManagementClient : System.IDisposable
ISignalRPrivateLinkResourcesOperations SignalRPrivateLinkResources { get; }
///
- /// Gets the IUsagesOperations.
+ /// Gets the ISignalRSharedPrivateLinkResourcesOperations.
///
- IUsagesOperations Usages { get; }
+ ISignalRSharedPrivateLinkResourcesOperations SignalRSharedPrivateLinkResources { get; }
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalROperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalROperations.cs
index 10006c6a899e..c1969ab03c65 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalROperations.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalROperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.SignalR
public partial interface ISignalROperations
{
///
- /// Checks that the SignalR name is valid and is not already in use.
+ /// Checks that the resource name is valid and is not already in use.
///
///
/// the region
@@ -47,7 +47,7 @@ public partial interface ISignalROperations
///
/// Thrown when a required parameter is null
///
- Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, NameAvailabilityParameters parameters = default(NameAvailabilityParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, NameAvailabilityParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Handles requests to list all resources in a subscription.
///
@@ -92,7 +92,7 @@ public partial interface ISignalROperations
///
Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Get the access keys of the SignalR resource.
+ /// Get the resource and its properties.
///
///
/// The name of the resource group that contains the resource. You can
@@ -100,7 +100,7 @@ public partial interface ISignalROperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -117,21 +117,20 @@ public partial interface ISignalROperations
///
/// Thrown when a required parameter is null
///
- Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey
- /// cannot be regenerated at the same time.
+ /// Create or update a resource.
///
+ ///
+ /// Parameters for the create or update operation
+ ///
///
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameter that describes the Regenerate Key Operation.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -148,9 +147,9 @@ public partial interface ISignalROperations
///
/// Thrown when a required parameter is null
///
- Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(SignalRResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Get the SignalR service and its properties.
+ /// Operation to delete a resource.
///
///
/// The name of the resource group that contains the resource. You can
@@ -158,7 +157,7 @@ public partial interface ISignalROperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -169,26 +168,23 @@ public partial interface ISignalROperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Create a new SignalR service and update an exiting SignalR service.
+ /// Operation to update an exiting resource.
///
+ ///
+ /// Parameters for the update operation
+ ///
///
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the create or update operation
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -205,9 +201,9 @@ public partial interface ISignalROperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(SignalRResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Operation to delete a SignalR service.
+ /// Get the access keys of the resource.
///
///
/// The name of the resource group that contains the resource. You can
@@ -215,7 +211,7 @@ public partial interface ISignalROperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -226,23 +222,27 @@ public partial interface ISignalROperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Operation to update an exiting SignalR service.
+ /// Regenerate the access key for the resource. PrimaryKey and
+ /// SecondaryKey cannot be regenerated at the same time.
///
+ ///
+ /// Parameter that describes the Regenerate Key Operation.
+ ///
///
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the update operation
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -259,9 +259,9 @@ public partial interface ISignalROperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> RegenerateKeyWithHttpMessagesAsync(RegenerateKeyParameters parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Operation to restart a SignalR service.
+ /// Operation to restart a resource.
///
///
/// The name of the resource group that contains the resource. You can
@@ -269,7 +269,7 @@ public partial interface ISignalROperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -285,19 +285,18 @@ public partial interface ISignalROperations
///
Task RestartWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey
- /// cannot be regenerated at the same time.
+ /// Create or update a resource.
///
+ ///
+ /// Parameters for the create or update operation
+ ///
///
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameter that describes the Regenerate Key Operation.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -314,9 +313,9 @@ public partial interface ISignalROperations
///
/// Thrown when a required parameter is null
///
- Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginCreateOrUpdateWithHttpMessagesAsync(SignalRResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Create a new SignalR service and update an exiting SignalR service.
+ /// Operation to delete a resource.
///
///
/// The name of the resource group that contains the resource. You can
@@ -324,10 +323,7 @@ public partial interface ISignalROperations
/// portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the create or update operation
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -338,23 +334,23 @@ public partial interface ISignalROperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Operation to delete a SignalR service.
+ /// Operation to update an exiting resource.
///
+ ///
+ /// Parameters for the update operation
+ ///
///
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -365,23 +361,27 @@ public partial interface ISignalROperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(SignalRResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Operation to update an exiting SignalR service.
+ /// Regenerate the access key for the resource. PrimaryKey and
+ /// SecondaryKey cannot be regenerated at the same time.
///
+ ///
+ /// Parameter that describes the Regenerate Key Operation.
+ ///
///
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the update operation
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -398,9 +398,9 @@ public partial interface ISignalROperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginRegenerateKeyWithHttpMessagesAsync(RegenerateKeyParameters parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Operation to restart a SignalR service.
+ /// Operation to restart a resource.
///
///
/// The name of the resource group that contains the resource. You can
@@ -408,7 +408,7 @@ public partial interface ISignalROperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRPrivateEndpointConnectionsOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRPrivateEndpointConnectionsOperations.cs
index b5d478817ac6..62ff2db0e1c4 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRPrivateEndpointConnectionsOperations.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRPrivateEndpointConnectionsOperations.cs
@@ -24,12 +24,37 @@ namespace Microsoft.Azure.Management.SignalR
public partial interface ISignalRPrivateEndpointConnectionsOperations
{
///
- /// Get the specified private endpoint connection associated with a
- /// SignalR resource.
+ /// List private endpoint connections
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get the specified private endpoint connection
///
///
- /// The name of the private endpoint connection associated with the
- /// SignalR resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can
@@ -37,7 +62,7 @@ public partial interface ISignalRPrivateEndpointConnectionsOperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -57,11 +82,12 @@ public partial interface ISignalRPrivateEndpointConnectionsOperations
Task> GetWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Update the state of specified private endpoint connection
- /// associated with a SignalR resource.
///
///
- /// The name of the private endpoint connection associated with the
- /// SignalR resource.
+ /// The name of the private endpoint connection
+ ///
+ ///
+ /// The resource of private endpoint and its properties
///
///
/// The name of the resource group that contains the resource. You can
@@ -69,10 +95,7 @@ public partial interface ISignalRPrivateEndpointConnectionsOperations
/// portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// The resource of private endpoint and its properties.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -89,14 +112,12 @@ public partial interface ISignalRPrivateEndpointConnectionsOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, PrivateEndpointConnection parameters = default(PrivateEndpointConnection), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string privateEndpointConnectionName, PrivateEndpointConnection parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Delete the specified private endpoint connection associated with a
- /// SignalR resource.
+ /// Delete the specified private endpoint connection
///
///
- /// The name of the private endpoint connection associated with the
- /// SignalR resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can
@@ -104,7 +125,7 @@ public partial interface ISignalRPrivateEndpointConnectionsOperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -120,12 +141,10 @@ public partial interface ISignalRPrivateEndpointConnectionsOperations
///
Task DeleteWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Delete the specified private endpoint connection associated with a
- /// SignalR resource.
+ /// Delete the specified private endpoint connection
///
///
- /// The name of the private endpoint connection associated with the
- /// SignalR resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can
@@ -133,7 +152,7 @@ public partial interface ISignalRPrivateEndpointConnectionsOperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -148,5 +167,27 @@ public partial interface ISignalRPrivateEndpointConnectionsOperations
/// Thrown when a required parameter is null
///
Task BeginDeleteWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List private endpoint connections
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRPrivateLinkResourcesOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRPrivateLinkResourcesOperations.cs
index 48667869316f..e83dcd4c2de3 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRPrivateLinkResourcesOperations.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRPrivateLinkResourcesOperations.cs
@@ -25,7 +25,7 @@ public partial interface ISignalRPrivateLinkResourcesOperations
{
///
/// Get the private link resources that need to be created for a
- /// SignalR resource.
+ /// resource.
///
///
/// The name of the resource group that contains the resource. You can
@@ -33,7 +33,7 @@ public partial interface ISignalRPrivateLinkResourcesOperations
/// portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -53,7 +53,7 @@ public partial interface ISignalRPrivateLinkResourcesOperations
Task>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Get the private link resources that need to be created for a
- /// SignalR resource.
+ /// resource.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRSharedPrivateLinkResourcesOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRSharedPrivateLinkResourcesOperations.cs
new file mode 100644
index 000000000000..27728658de0b
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRSharedPrivateLinkResourcesOperations.cs
@@ -0,0 +1,226 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// SignalRSharedPrivateLinkResourcesOperations operations.
+ ///
+ public partial interface ISignalRSharedPrivateLinkResourcesOperations
+ {
+ ///
+ /// List shared private link resources
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get the specified shared private link resource
+ ///
+ ///
+ /// The name of the shared private link resource
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Create or update a shared private link resource
+ ///
+ ///
+ /// The name of the shared private link resource
+ ///
+ ///
+ /// The shared private link resource
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(string sharedPrivateLinkResourceName, SharedPrivateLinkResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete the specified shared private link resource
+ ///
+ ///
+ /// The name of the shared private link resource
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Create or update a shared private link resource
+ ///
+ ///
+ /// The name of the shared private link resource
+ ///
+ ///
+ /// The shared private link resource
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginCreateOrUpdateWithHttpMessagesAsync(string sharedPrivateLinkResourceName, SharedPrivateLinkResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete the specified shared private link resource
+ ///
+ ///
+ /// The name of the shared private link resource
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginDeleteWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List shared private link resources
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/IUsagesOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/IUsagesOperations.cs
index da6f0f53e17b..0e62401f7176 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/IUsagesOperations.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/IUsagesOperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.SignalR
public partial interface IUsagesOperations
{
///
- /// List usage quotas for Azure SignalR service by location.
+ /// List resource usage quotas by location.
///
///
/// the location like "eastus"
@@ -46,7 +46,7 @@ public partial interface IUsagesOperations
///
Task>> ListWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List usage quotas for Azure SignalR service by location.
+ /// List resource usage quotas by location.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/CreatedByType.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/CreatedByType.cs
new file mode 100644
index 000000000000..b8aca4dc1b8c
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/CreatedByType.cs
@@ -0,0 +1,24 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR.Models
+{
+
+ ///
+ /// Defines values for CreatedByType.
+ ///
+ public static class CreatedByType
+ {
+ public const string User = "User";
+ public const string Application = "Application";
+ public const string ManagedIdentity = "ManagedIdentity";
+ public const string Key = "Key";
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorAdditionalInfo.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorAdditionalInfo.cs
new file mode 100644
index 000000000000..35f2a9da38f6
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorAdditionalInfo.cs
@@ -0,0 +1,59 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The resource management error additional info.
+ ///
+ public partial class ErrorAdditionalInfo
+ {
+ ///
+ /// Initializes a new instance of the ErrorAdditionalInfo class.
+ ///
+ public ErrorAdditionalInfo()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorAdditionalInfo class.
+ ///
+ /// The additional info type.
+ /// The additional info.
+ public ErrorAdditionalInfo(string type = default(string), object info = default(object))
+ {
+ Type = type;
+ Info = info;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the additional info type.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ ///
+ /// Gets the additional info.
+ ///
+ [JsonProperty(PropertyName = "info")]
+ public object Info { get; private set; }
+
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorDetail.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorDetail.cs
new file mode 100644
index 000000000000..bd05d70ac2da
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorDetail.cs
@@ -0,0 +1,85 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The error detail.
+ ///
+ public partial class ErrorDetail
+ {
+ ///
+ /// Initializes a new instance of the ErrorDetail class.
+ ///
+ public ErrorDetail()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorDetail class.
+ ///
+ /// The error code.
+ /// The error message.
+ /// The error target.
+ /// The error details.
+ /// The error additional info.
+ public ErrorDetail(string code = default(string), string message = default(string), string target = default(string), IList details = default(IList), IList additionalInfo = default(IList))
+ {
+ Code = code;
+ Message = message;
+ Target = target;
+ Details = details;
+ AdditionalInfo = additionalInfo;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the error code.
+ ///
+ [JsonProperty(PropertyName = "code")]
+ public string Code { get; private set; }
+
+ ///
+ /// Gets the error message.
+ ///
+ [JsonProperty(PropertyName = "message")]
+ public string Message { get; private set; }
+
+ ///
+ /// Gets the error target.
+ ///
+ [JsonProperty(PropertyName = "target")]
+ public string Target { get; private set; }
+
+ ///
+ /// Gets the error details.
+ ///
+ [JsonProperty(PropertyName = "details")]
+ public IList Details { get; private set; }
+
+ ///
+ /// Gets the error additional info.
+ ///
+ [JsonProperty(PropertyName = "additionalInfo")]
+ public IList AdditionalInfo { get; private set; }
+
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorResponse.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorResponse.cs
index 752c7233d73d..2358918d9aba 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorResponse.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorResponse.cs
@@ -14,8 +14,13 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// Contains information about an API error.
+ /// Error response
///
+ ///
+ /// Common error response for all Azure Resource Manager APIs to return
+ /// error details for failed operations. (This also follows the OData error
+ /// response format.).
+ ///
public partial class ErrorResponse
{
///
@@ -29,9 +34,8 @@ public ErrorResponse()
///
/// Initializes a new instance of the ErrorResponse class.
///
- /// Describes a particular API error with an error
- /// code and a message.
- public ErrorResponse(ErrorResponseBody error = default(ErrorResponseBody))
+ /// The error object.
+ public ErrorResponse(ErrorDetail error = default(ErrorDetail))
{
Error = error;
CustomInit();
@@ -43,24 +47,10 @@ public ErrorResponse()
partial void CustomInit();
///
- /// Gets or sets describes a particular API error with an error code
- /// and a message.
+ /// Gets or sets the error object.
///
[JsonProperty(PropertyName = "error")]
- public ErrorResponseBody Error { get; set; }
+ public ErrorDetail Error { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Error != null)
- {
- Error.Validate();
- }
- }
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorResponseBody.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorResponseBody.cs
deleted file mode 100644
index 30037a713727..000000000000
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ErrorResponseBody.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.SignalR.Models
-{
- using Microsoft.Rest;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Describes a particular API error with an error code and a message.
- ///
- public partial class ErrorResponseBody
- {
- ///
- /// Initializes a new instance of the ErrorResponseBody class.
- ///
- public ErrorResponseBody()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the ErrorResponseBody class.
- ///
- /// An error code that describes the error condition
- /// more precisely than an HTTP status code.
- /// Can be used to programmatically handle specific error
- /// cases.
- /// A message that describes the error in detail
- /// and provides debugging information.
- /// The target of the particular error (for
- /// example, the name of the property in error).
- /// Contains nested errors that are related to
- /// this error.
- public ErrorResponseBody(string code, string message, string target = default(string), IList details = default(IList))
- {
- Code = code;
- Message = message;
- Target = target;
- Details = details;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets an error code that describes the error condition more
- /// precisely than an HTTP status code.
- /// Can be used to programmatically handle specific error cases.
- ///
- [JsonProperty(PropertyName = "code")]
- public string Code { get; set; }
-
- ///
- /// Gets or sets a message that describes the error in detail and
- /// provides debugging information.
- ///
- [JsonProperty(PropertyName = "message")]
- public string Message { get; set; }
-
- ///
- /// Gets or sets the target of the particular error (for example, the
- /// name of the property in error).
- ///
- [JsonProperty(PropertyName = "target")]
- public string Target { get; set; }
-
- ///
- /// Gets or sets contains nested errors that are related to this error.
- ///
- [JsonProperty(PropertyName = "details")]
- public IList Details { get; set; }
-
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Code == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Code");
- }
- if (Message == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Message");
- }
- if (Details != null)
- {
- foreach (var element in Details)
- {
- if (element != null)
- {
- element.Validate();
- }
- }
- }
- }
- }
-}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/FeatureFlags.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/FeatureFlags.cs
index 5f657abae2aa..a49ea1ea90f7 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/FeatureFlags.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/FeatureFlags.cs
@@ -19,5 +19,6 @@ public static class FeatureFlags
public const string ServiceMode = "ServiceMode";
public const string EnableConnectivityLogs = "EnableConnectivityLogs";
public const string EnableMessagingLogs = "EnableMessagingLogs";
+ public const string EnableLiveTrace = "EnableLiveTrace";
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/NameAvailabilityParameters.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/NameAvailabilityParameters.cs
index 8321009b0421..a122eb2ded14 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/NameAvailabilityParameters.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/NameAvailabilityParameters.cs
@@ -30,10 +30,11 @@ public NameAvailabilityParameters()
///
/// Initializes a new instance of the NameAvailabilityParameters class.
///
- /// The resource type. Should be always
- /// "Microsoft.SignalRService/SignalR".
- /// The SignalR service name to validate.
- /// e.g."my-signalR-name-here"
+ /// The resource type. Can be
+ /// "Microsoft.SignalRService/SignalR" or
+ /// "Microsoft.SignalRService/webPubSub"
+ /// The resource name to validate.
+ /// e.g."my-resource-name"
public NameAvailabilityParameters(string type, string name)
{
Type = type;
@@ -47,15 +48,15 @@ public NameAvailabilityParameters(string type, string name)
partial void CustomInit();
///
- /// Gets or sets the resource type. Should be always
- /// "Microsoft.SignalRService/SignalR".
+ /// Gets or sets the resource type. Can be
+ /// "Microsoft.SignalRService/SignalR" or
+ /// "Microsoft.SignalRService/webPubSub"
///
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
///
- /// Gets or sets the SignalR service name to validate.
- /// e.g."my-signalR-name-here"
+ /// Gets or sets the resource name to validate. e.g."my-resource-name"
///
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/Operation.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/Operation.cs
index 5096c1740d36..14879d39dc49 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/Operation.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/Operation.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// REST API operation supported by SignalR resource provider.
+ /// REST API operation supported by resource provider.
///
public partial class Operation
{
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/PrivateEndpointConnection.cs
index c8936e3a239b..1552686f011f 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/PrivateEndpointConnection.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/PrivateEndpointConnection.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// A private endpoint connection to SignalR resource
+ /// A private endpoint connection to an azure resource
///
[Rest.Serialization.JsonTransformation]
public partial class PrivateEndpointConnection : ProxyResource
@@ -37,6 +37,8 @@ public PrivateEndpointConnection()
/// The name of the resource.
/// The type of the resource - e.g.
/// "Microsoft.SignalRService/SignalR"
+ /// Metadata pertaining to creation and last
+ /// modification of the resource.
/// Provisioning state of the private
/// endpoint connection. Possible values include: 'Unknown',
/// 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating',
@@ -45,9 +47,10 @@ public PrivateEndpointConnection()
/// private endpoint connection
/// Connection
/// state
- public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), string provisioningState = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState))
+ public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState))
: base(id, name, type)
{
+ SystemData = systemData;
ProvisioningState = provisioningState;
PrivateEndpoint = privateEndpoint;
PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
@@ -59,6 +62,13 @@ public PrivateEndpointConnection()
///
partial void CustomInit();
+ ///
+ /// Gets metadata pertaining to creation and last modification of the
+ /// resource.
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; private set; }
+
///
/// Gets provisioning state of the private endpoint connection.
/// Possible values include: 'Unknown', 'Succeeded', 'Failed',
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/PrivateLinkResource.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/PrivateLinkResource.cs
index e269fccd3b1b..adc2d148684b 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/PrivateLinkResource.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/PrivateLinkResource.cs
@@ -44,12 +44,15 @@ public PrivateLinkResource()
/// resource
/// Required private DNS zone
/// names
- public PrivateLinkResource(string id = default(string), string name = default(string), string type = default(string), string groupId = default(string), IList requiredMembers = default(IList), IList requiredZoneNames = default(IList))
+ /// The list of
+ /// resources that are onboarded to private link service
+ public PrivateLinkResource(string id = default(string), string name = default(string), string type = default(string), string groupId = default(string), IList requiredMembers = default(IList), IList requiredZoneNames = default(IList), IList shareablePrivateLinkResourceTypes = default(IList))
: base(id, name, type)
{
GroupId = groupId;
RequiredMembers = requiredMembers;
RequiredZoneNames = requiredZoneNames;
+ ShareablePrivateLinkResourceTypes = shareablePrivateLinkResourceTypes;
CustomInit();
}
@@ -76,5 +79,12 @@ public PrivateLinkResource()
[JsonProperty(PropertyName = "properties.requiredZoneNames")]
public IList RequiredZoneNames { get; set; }
+ ///
+ /// Gets or sets the list of resources that are onboarded to private
+ /// link service
+ ///
+ [JsonProperty(PropertyName = "properties.shareablePrivateLinkResourceTypes")]
+ public IList ShareablePrivateLinkResourceTypes { get; set; }
+
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ResourceSku.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ResourceSku.cs
index 8fe43ce899cf..37fa852d94f5 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ResourceSku.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ResourceSku.cs
@@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// The billing information of the SignalR resource.
+ /// The billing information of the resource.
///
public partial class ResourceSku
{
@@ -40,7 +40,7 @@ public ResourceSku()
/// include: 'Free', 'Basic', 'Standard', 'Premium'
/// Not used. Retained for future use.
/// Not used. Retained for future use.
- /// Optional, integer. The unit count of SignalR
+ /// Optional, integer. The unit count of the
/// resource. 1 by default.
///
/// If present, following values are allowed:
@@ -92,8 +92,8 @@ public ResourceSku()
public string Family { get; private set; }
///
- /// Gets or sets optional, integer. The unit count of SignalR resource.
- /// 1 by default.
+ /// Gets or sets optional, integer. The unit count of the resource. 1
+ /// by default.
///
/// If present, following values are allowed:
/// Free: 1
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs
index 5a1e2b776226..e1a89d8c2794 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs
@@ -16,8 +16,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// The settings for the Upstream when the Azure SignalR is in server-less
- /// mode.
+ /// The settings for the Upstream when the service is in server-less mode.
///
public partial class ServerlessUpstreamSettings
{
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ShareablePrivateLinkResourceProperties.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ShareablePrivateLinkResourceProperties.cs
new file mode 100644
index 000000000000..636f18715fa3
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ShareablePrivateLinkResourceProperties.cs
@@ -0,0 +1,76 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes the properties of a resource type that has been onboarded to
+ /// private link service
+ ///
+ public partial class ShareablePrivateLinkResourceProperties
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ShareablePrivateLinkResourceProperties class.
+ ///
+ public ShareablePrivateLinkResourceProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ShareablePrivateLinkResourceProperties class.
+ ///
+ /// The description of the resource type that
+ /// has been onboarded to private link service
+ /// The resource provider group id for the
+ /// resource that has been onboarded to private link service
+ /// The resource provider type for the resource that
+ /// has been onboarded to private link service
+ public ShareablePrivateLinkResourceProperties(string description = default(string), string groupId = default(string), string type = default(string))
+ {
+ Description = description;
+ GroupId = groupId;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the description of the resource type that has been
+ /// onboarded to private link service
+ ///
+ [JsonProperty(PropertyName = "description")]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or sets the resource provider group id for the resource that
+ /// has been onboarded to private link service
+ ///
+ [JsonProperty(PropertyName = "groupId")]
+ public string GroupId { get; set; }
+
+ ///
+ /// Gets or sets the resource provider type for the resource that has
+ /// been onboarded to private link service
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ShareablePrivateLinkResourceType.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ShareablePrivateLinkResourceType.cs
new file mode 100644
index 000000000000..85b442fdde5a
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ShareablePrivateLinkResourceType.cs
@@ -0,0 +1,66 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes a resource type that has been onboarded to private link
+ /// service
+ ///
+ public partial class ShareablePrivateLinkResourceType
+ {
+ ///
+ /// Initializes a new instance of the ShareablePrivateLinkResourceType
+ /// class.
+ ///
+ public ShareablePrivateLinkResourceType()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ShareablePrivateLinkResourceType
+ /// class.
+ ///
+ /// The name of the resource type that has been
+ /// onboarded to private link service
+ /// Describes the properties of a resource
+ /// type that has been onboarded to private link service
+ public ShareablePrivateLinkResourceType(string name = default(string), ShareablePrivateLinkResourceProperties properties = default(ShareablePrivateLinkResourceProperties))
+ {
+ Name = name;
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name of the resource type that has been onboarded
+ /// to private link service
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets describes the properties of a resource type that has
+ /// been onboarded to private link service
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public ShareablePrivateLinkResourceProperties Properties { get; set; }
+
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SharedPrivateLinkResource.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SharedPrivateLinkResource.cs
new file mode 100644
index 000000000000..53dfac62af26
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SharedPrivateLinkResource.cs
@@ -0,0 +1,134 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes a Shared Private Link Resource
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class SharedPrivateLinkResource : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the SharedPrivateLinkResource class.
+ ///
+ public SharedPrivateLinkResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SharedPrivateLinkResource class.
+ ///
+ /// The group id from the provider of resource
+ /// the shared private link resource is for
+ /// The resource id of the resource
+ /// the shared private link resource is for
+ /// Fully qualified resource Id for the
+ /// resource.
+ /// The name of the resource.
+ /// The type of the resource - e.g.
+ /// "Microsoft.SignalRService/SignalR"
+ /// Metadata pertaining to creation and last
+ /// modification of the resource.
+ /// Provisioning state of the shared
+ /// private link resource. Possible values include: 'Unknown',
+ /// 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating',
+ /// 'Updating', 'Deleting', 'Moving'
+ /// The request message for requesting
+ /// approval of the shared private link resource
+ /// Status of the shared private link resource.
+ /// Possible values include: 'Pending', 'Approved', 'Rejected',
+ /// 'Disconnected', 'Timeout'
+ public SharedPrivateLinkResource(string groupId, string privateLinkResourceId, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), string requestMessage = default(string), string status = default(string))
+ : base(id, name, type)
+ {
+ SystemData = systemData;
+ GroupId = groupId;
+ PrivateLinkResourceId = privateLinkResourceId;
+ ProvisioningState = provisioningState;
+ RequestMessage = requestMessage;
+ Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets metadata pertaining to creation and last modification of the
+ /// resource.
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; private set; }
+
+ ///
+ /// Gets or sets the group id from the provider of resource the shared
+ /// private link resource is for
+ ///
+ [JsonProperty(PropertyName = "properties.groupId")]
+ public string GroupId { get; set; }
+
+ ///
+ /// Gets or sets the resource id of the resource the shared private
+ /// link resource is for
+ ///
+ [JsonProperty(PropertyName = "properties.privateLinkResourceId")]
+ public string PrivateLinkResourceId { get; set; }
+
+ ///
+ /// Gets provisioning state of the shared private link resource.
+ /// Possible values include: 'Unknown', 'Succeeded', 'Failed',
+ /// 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets or sets the request message for requesting approval of the
+ /// shared private link resource
+ ///
+ [JsonProperty(PropertyName = "properties.requestMessage")]
+ public string RequestMessage { get; set; }
+
+ ///
+ /// Gets status of the shared private link resource. Possible values
+ /// include: 'Pending', 'Approved', 'Rejected', 'Disconnected',
+ /// 'Timeout'
+ ///
+ [JsonProperty(PropertyName = "properties.status")]
+ public string Status { get; private set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (GroupId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "GroupId");
+ }
+ if (PrivateLinkResourceId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "PrivateLinkResourceId");
+ }
+ }
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SharedPrivateLinkResourceStatus.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SharedPrivateLinkResourceStatus.cs
new file mode 100644
index 000000000000..2f790ce9712b
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SharedPrivateLinkResourceStatus.cs
@@ -0,0 +1,25 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR.Models
+{
+
+ ///
+ /// Defines values for SharedPrivateLinkResourceStatus.
+ ///
+ public static class SharedPrivateLinkResourceStatus
+ {
+ public const string Pending = "Pending";
+ public const string Approved = "Approved";
+ public const string Rejected = "Rejected";
+ public const string Disconnected = "Disconnected";
+ public const string Timeout = "Timeout";
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRCreateOrUpdateProperties.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRCreateOrUpdateProperties.cs
deleted file mode 100644
index 83f5798ebb86..000000000000
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRCreateOrUpdateProperties.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.SignalR.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Settings used to provision or configure the resource.
- ///
- public partial class SignalRCreateOrUpdateProperties
- {
- ///
- /// Initializes a new instance of the SignalRCreateOrUpdateProperties
- /// class.
- ///
- public SignalRCreateOrUpdateProperties()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the SignalRCreateOrUpdateProperties
- /// class.
- ///
- /// List of SignalR featureFlags. e.g.
- /// ServiceMode.
- ///
- /// FeatureFlags that are not included in the parameters for the update
- /// operation will not be modified.
- /// And the response will only include featureFlags that are explicitly
- /// set.
- /// When a featureFlag is not explicitly set, SignalR service will use
- /// its globally default value.
- /// But keep in mind, the default value doesn't mean "false". It varies
- /// in terms of different FeatureFlags.
- /// Cross-Origin Resource Sharing (CORS)
- /// settings.
- /// Upstream settings when the Azure SignalR is
- /// in server-less mode.
- /// Network ACLs
- public SignalRCreateOrUpdateProperties(IList features = default(IList), SignalRCorsSettings cors = default(SignalRCorsSettings), ServerlessUpstreamSettings upstream = default(ServerlessUpstreamSettings), SignalRNetworkACLs networkACLs = default(SignalRNetworkACLs))
- {
- Features = features;
- Cors = cors;
- Upstream = upstream;
- NetworkACLs = networkACLs;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets list of SignalR featureFlags. e.g. ServiceMode.
- ///
- /// FeatureFlags that are not included in the parameters for the update
- /// operation will not be modified.
- /// And the response will only include featureFlags that are explicitly
- /// set.
- /// When a featureFlag is not explicitly set, SignalR service will use
- /// its globally default value.
- /// But keep in mind, the default value doesn't mean "false". It varies
- /// in terms of different FeatureFlags.
- ///
- [JsonProperty(PropertyName = "features")]
- public IList Features { get; set; }
-
- ///
- /// Gets or sets cross-Origin Resource Sharing (CORS) settings.
- ///
- [JsonProperty(PropertyName = "cors")]
- public SignalRCorsSettings Cors { get; set; }
-
- ///
- /// Gets or sets upstream settings when the Azure SignalR is in
- /// server-less mode.
- ///
- [JsonProperty(PropertyName = "upstream")]
- public ServerlessUpstreamSettings Upstream { get; set; }
-
- ///
- /// Gets or sets network ACLs
- ///
- [JsonProperty(PropertyName = "networkACLs")]
- public SignalRNetworkACLs NetworkACLs { get; set; }
-
- }
-}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRFeature.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRFeature.cs
index f38478b3dc15..7cb8f344fd2d 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRFeature.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRFeature.cs
@@ -41,9 +41,18 @@ public SignalRFeature()
/// backward compatibility. Support both Default and Serverless mode
/// but not recommended; "PredefinedOnly": for future use.
/// - EnableConnectivityLogs: "true"/"false", to enable/disable the
- /// connectivity log category respectively. Possible values include:
- /// 'ServiceMode', 'EnableConnectivityLogs',
- /// 'EnableMessagingLogs'
+ /// connectivity log category respectively.
+ /// - EnableMessagingLogs: "true"/"false", to enable/disable the
+ /// connectivity log category respectively.
+ /// - EnableLiveTrace: Live Trace allows you to know what's happening
+ /// inside Azure SignalR service, it will give you live traces in real
+ /// time, it will be helpful when you developing your own Azure SignalR
+ /// based web application or self-troubleshooting some issues. Please
+ /// note that live traces are counted as outbound messages that will be
+ /// charged. Values allowed: "true"/"false", to enable/disable live
+ /// trace feature. Possible values include: 'ServiceMode',
+ /// 'EnableConnectivityLogs', 'EnableMessagingLogs',
+ /// 'EnableLiveTrace'
/// Value of the feature flag. See Azure SignalR
/// service document https://docs.microsoft.com/azure/azure-signalr/
/// for allowed values.
@@ -71,8 +80,17 @@ public SignalRFeature()
/// backward compatibility. Support both Default and Serverless mode
/// but not recommended; "PredefinedOnly": for future use.
/// - EnableConnectivityLogs: "true"/"false", to enable/disable the
- /// connectivity log category respectively. Possible values include:
- /// 'ServiceMode', 'EnableConnectivityLogs', 'EnableMessagingLogs'
+ /// connectivity log category respectively.
+ /// - EnableMessagingLogs: "true"/"false", to enable/disable the
+ /// connectivity log category respectively.
+ /// - EnableLiveTrace: Live Trace allows you to know what's happening
+ /// inside Azure SignalR service, it will give you live traces in real
+ /// time, it will be helpful when you developing your own Azure SignalR
+ /// based web application or self-troubleshooting some issues. Please
+ /// note that live traces are counted as outbound messages that will be
+ /// charged. Values allowed: "true"/"false", to enable/disable live
+ /// trace feature. Possible values include: 'ServiceMode',
+ /// 'EnableConnectivityLogs', 'EnableMessagingLogs', 'EnableLiveTrace'
///
[JsonProperty(PropertyName = "flag")]
public string Flag { get; set; }
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRKeys.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRKeys.cs
index 80fad0e71b21..f7188567485c 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRKeys.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRKeys.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// A class represents the access keys of SignalR service.
+ /// A class represents the access keys of the resource.
///
public partial class SignalRKeys
{
@@ -31,9 +31,9 @@ public SignalRKeys()
///
/// The primary access key.
/// The secondary access key.
- /// SignalR connection string
- /// constructed via the primaryKey
- /// SignalR connection string
+ /// Connection string constructed
+ /// via the primaryKey
+ /// Connection string
/// constructed via the secondaryKey
public SignalRKeys(string primaryKey = default(string), string secondaryKey = default(string), string primaryConnectionString = default(string), string secondaryConnectionString = default(string))
{
@@ -62,15 +62,13 @@ public SignalRKeys()
public string SecondaryKey { get; set; }
///
- /// Gets or sets signalR connection string constructed via the
- /// primaryKey
+ /// Gets or sets connection string constructed via the primaryKey
///
[JsonProperty(PropertyName = "primaryConnectionString")]
public string PrimaryConnectionString { get; set; }
///
- /// Gets or sets signalR connection string constructed via the
- /// secondaryKey
+ /// Gets or sets connection string constructed via the secondaryKey
///
[JsonProperty(PropertyName = "secondaryConnectionString")]
public string SecondaryConnectionString { get; set; }
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRNetworkACLs.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRNetworkACLs.cs
index 7056f222c520..b9248490f0e2 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRNetworkACLs.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRNetworkACLs.cs
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// Network ACLs for SignalR
+ /// Network ACLs for the resource
///
public partial class SignalRNetworkACLs
{
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRRequestType.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRRequestType.cs
index 0ff42fabc4fd..af6846b15e78 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRRequestType.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRRequestType.cs
@@ -19,5 +19,6 @@ public static class SignalRRequestType
public const string ClientConnection = "ClientConnection";
public const string ServerConnection = "ServerConnection";
public const string RESTAPI = "RESTAPI";
+ public const string Trace = "Trace";
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRResource.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRResource.cs
index bee9fa781170..4100f9ce65af 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRResource.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRResource.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// A class represent a SignalR service resource.
+ /// A class represent a resource.
///
[Rest.Serialization.JsonTransformation]
public partial class SignalRResource : TrackedResource
@@ -39,60 +39,55 @@ public SignalRResource()
/// The name of the resource.
/// The type of the resource - e.g.
/// "Microsoft.SignalRService/SignalR"
- /// The GEO location of the SignalR service.
- /// e.g. West US | East US | North Central US | South Central
- /// US.
+ /// The GEO location of the resource. e.g. West
+ /// US | East US | North Central US | South Central US.
/// Tags of the service which is a list of key value
/// pairs that describe the resource.
/// The billing information of the resource.(e.g.
/// Free, Standard)
- /// List of SignalR featureFlags. e.g.
- /// ServiceMode.
+ /// Provisioning state of the resource.
+ /// Possible values include: 'Unknown', 'Succeeded', 'Failed',
+ /// 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting',
+ /// 'Moving'
+ /// The publicly accessible IP of the
+ /// resource.
+ /// FQDN of the service instance.
+ /// The publicly accessible port of the
+ /// resource which is designed for browser/client side usage.
+ /// The publicly accessible port of the
+ /// resource which is designed for customer server side usage.
+ /// Version of the resource. Probably you need
+ /// the same or higher version of client SDKs.
+ /// Private endpoint
+ /// connections to the resource.
+ /// The list of shared private
+ /// link resources.
+ /// TLS settings.
+ /// List of the featureFlags.
///
/// FeatureFlags that are not included in the parameters for the update
/// operation will not be modified.
/// And the response will only include featureFlags that are explicitly
/// set.
- /// When a featureFlag is not explicitly set, SignalR service will use
- /// its globally default value.
+ /// When a featureFlag is not explicitly set, its globally default
+ /// value will be used
/// But keep in mind, the default value doesn't mean "false". It varies
/// in terms of different FeatureFlags.
/// Cross-Origin Resource Sharing (CORS)
/// settings.
- /// Upstream settings when the Azure SignalR is
- /// in server-less mode.
+ /// Upstream settings when the service is in
+ /// server-less mode.
/// Network ACLs
- /// Provisioning state of the resource.
- /// Possible values include: 'Unknown', 'Succeeded', 'Failed',
- /// 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting',
- /// 'Moving'
- /// The publicly accessible IP of the SignalR
- /// service.
- /// FQDN of the SignalR service instance.
- /// Format: xxx.service.signalr.net
- /// The publicly accessible port of the
- /// SignalR service which is designed for browser/client side
- /// usage.
- /// The publicly accessible port of the
- /// SignalR service which is designed for customer server side
- /// usage.
- /// Version of the SignalR resource. Probably you
- /// need the same or higher version of client SDKs.
- /// Private endpoint
- /// connections to the SignalR resource.
- /// TLS settings.
- /// The kind of the service - e.g. "SignalR", or
- /// "RawWebSockets" for "Microsoft.SignalRService/SignalR". Possible
- /// values include: 'SignalR', 'RawWebSockets'
+ /// The kind of the service - e.g. "SignalR" for
+ /// "Microsoft.SignalRService/SignalR". Possible values include:
+ /// 'SignalR', 'RawWebSockets'
/// The managed identity response
- public SignalRResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ResourceSku sku = default(ResourceSku), IList features = default(IList), SignalRCorsSettings cors = default(SignalRCorsSettings), ServerlessUpstreamSettings upstream = default(ServerlessUpstreamSettings), SignalRNetworkACLs networkACLs = default(SignalRNetworkACLs), string provisioningState = default(string), string externalIP = default(string), string hostName = default(string), int? publicPort = default(int?), int? serverPort = default(int?), string version = default(string), IList privateEndpointConnections = default(IList), SignalRTlsSettings tls = default(SignalRTlsSettings), string kind = default(string), ManagedIdentity identity = default(ManagedIdentity))
+ /// Metadata pertaining to creation and last
+ /// modification of the resource.
+ public SignalRResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ResourceSku sku = default(ResourceSku), string provisioningState = default(string), string externalIP = default(string), string hostName = default(string), int? publicPort = default(int?), int? serverPort = default(int?), string version = default(string), IList privateEndpointConnections = default(IList), IList sharedPrivateLinkResources = default(IList), SignalRTlsSettings tls = default(SignalRTlsSettings), IList features = default(IList), SignalRCorsSettings cors = default(SignalRCorsSettings), ServerlessUpstreamSettings upstream = default(ServerlessUpstreamSettings), SignalRNetworkACLs networkACLs = default(SignalRNetworkACLs), string kind = default(string), ManagedIdentity identity = default(ManagedIdentity), SystemData systemData = default(SystemData))
: base(id, name, type, location, tags)
{
Sku = sku;
- Features = features;
- Cors = cors;
- Upstream = upstream;
- NetworkACLs = networkACLs;
ProvisioningState = provisioningState;
ExternalIP = externalIP;
HostName = hostName;
@@ -100,9 +95,15 @@ public SignalRResource()
ServerPort = serverPort;
Version = version;
PrivateEndpointConnections = privateEndpointConnections;
+ SharedPrivateLinkResources = sharedPrivateLinkResources;
Tls = tls;
+ Features = features;
+ Cors = cors;
+ Upstream = upstream;
+ NetworkACLs = networkACLs;
Kind = kind;
Identity = identity;
+ SystemData = systemData;
CustomInit();
}
@@ -118,40 +119,6 @@ public SignalRResource()
[JsonProperty(PropertyName = "sku")]
public ResourceSku Sku { get; set; }
- ///
- /// Gets or sets list of SignalR featureFlags. e.g. ServiceMode.
- ///
- /// FeatureFlags that are not included in the parameters for the update
- /// operation will not be modified.
- /// And the response will only include featureFlags that are explicitly
- /// set.
- /// When a featureFlag is not explicitly set, SignalR service will use
- /// its globally default value.
- /// But keep in mind, the default value doesn't mean "false". It varies
- /// in terms of different FeatureFlags.
- ///
- [JsonProperty(PropertyName = "properties.features")]
- public IList Features { get; set; }
-
- ///
- /// Gets or sets cross-Origin Resource Sharing (CORS) settings.
- ///
- [JsonProperty(PropertyName = "properties.cors")]
- public SignalRCorsSettings Cors { get; set; }
-
- ///
- /// Gets or sets upstream settings when the Azure SignalR is in
- /// server-less mode.
- ///
- [JsonProperty(PropertyName = "properties.upstream")]
- public ServerlessUpstreamSettings Upstream { get; set; }
-
- ///
- /// Gets or sets network ACLs
- ///
- [JsonProperty(PropertyName = "properties.networkACLs")]
- public SignalRNetworkACLs NetworkACLs { get; set; }
-
///
/// Gets provisioning state of the resource. Possible values include:
/// 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running',
@@ -161,45 +128,50 @@ public SignalRResource()
public string ProvisioningState { get; private set; }
///
- /// Gets the publicly accessible IP of the SignalR service.
+ /// Gets the publicly accessible IP of the resource.
///
[JsonProperty(PropertyName = "properties.externalIP")]
public string ExternalIP { get; private set; }
///
- /// Gets FQDN of the SignalR service instance. Format:
- /// xxx.service.signalr.net
+ /// Gets FQDN of the service instance.
///
[JsonProperty(PropertyName = "properties.hostName")]
public string HostName { get; private set; }
///
- /// Gets the publicly accessible port of the SignalR service which is
- /// designed for browser/client side usage.
+ /// Gets the publicly accessible port of the resource which is designed
+ /// for browser/client side usage.
///
[JsonProperty(PropertyName = "properties.publicPort")]
public int? PublicPort { get; private set; }
///
- /// Gets the publicly accessible port of the SignalR service which is
- /// designed for customer server side usage.
+ /// Gets the publicly accessible port of the resource which is designed
+ /// for customer server side usage.
///
[JsonProperty(PropertyName = "properties.serverPort")]
public int? ServerPort { get; private set; }
///
- /// Gets version of the SignalR resource. Probably you need the same or
- /// higher version of client SDKs.
+ /// Gets version of the resource. Probably you need the same or higher
+ /// version of client SDKs.
///
[JsonProperty(PropertyName = "properties.version")]
public string Version { get; private set; }
///
- /// Gets private endpoint connections to the SignalR resource.
+ /// Gets private endpoint connections to the resource.
///
[JsonProperty(PropertyName = "properties.privateEndpointConnections")]
public IList PrivateEndpointConnections { get; private set; }
+ ///
+ /// Gets the list of shared private link resources.
+ ///
+ [JsonProperty(PropertyName = "properties.sharedPrivateLinkResources")]
+ public IList SharedPrivateLinkResources { get; private set; }
+
///
/// Gets or sets TLS settings.
///
@@ -207,9 +179,43 @@ public SignalRResource()
public SignalRTlsSettings Tls { get; set; }
///
- /// Gets or sets the kind of the service - e.g. "SignalR", or
- /// "RawWebSockets" for "Microsoft.SignalRService/SignalR". Possible
- /// values include: 'SignalR', 'RawWebSockets'
+ /// Gets or sets list of the featureFlags.
+ ///
+ /// FeatureFlags that are not included in the parameters for the update
+ /// operation will not be modified.
+ /// And the response will only include featureFlags that are explicitly
+ /// set.
+ /// When a featureFlag is not explicitly set, its globally default
+ /// value will be used
+ /// But keep in mind, the default value doesn't mean "false". It varies
+ /// in terms of different FeatureFlags.
+ ///
+ [JsonProperty(PropertyName = "properties.features")]
+ public IList Features { get; set; }
+
+ ///
+ /// Gets or sets cross-Origin Resource Sharing (CORS) settings.
+ ///
+ [JsonProperty(PropertyName = "properties.cors")]
+ public SignalRCorsSettings Cors { get; set; }
+
+ ///
+ /// Gets or sets upstream settings when the service is in server-less
+ /// mode.
+ ///
+ [JsonProperty(PropertyName = "properties.upstream")]
+ public ServerlessUpstreamSettings Upstream { get; set; }
+
+ ///
+ /// Gets or sets network ACLs
+ ///
+ [JsonProperty(PropertyName = "properties.networkACLs")]
+ public SignalRNetworkACLs NetworkACLs { get; set; }
+
+ ///
+ /// Gets or sets the kind of the service - e.g. "SignalR" for
+ /// "Microsoft.SignalRService/SignalR". Possible values include:
+ /// 'SignalR', 'RawWebSockets'
///
[JsonProperty(PropertyName = "kind")]
public string Kind { get; set; }
@@ -220,6 +226,13 @@ public SignalRResource()
[JsonProperty(PropertyName = "identity")]
public ManagedIdentity Identity { get; set; }
+ ///
+ /// Gets metadata pertaining to creation and last modification of the
+ /// resource.
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; private set; }
+
///
/// Validate the object.
///
@@ -232,9 +245,9 @@ public virtual void Validate()
{
Sku.Validate();
}
- if (Features != null)
+ if (SharedPrivateLinkResources != null)
{
- foreach (var element in Features)
+ foreach (var element in SharedPrivateLinkResources)
{
if (element != null)
{
@@ -242,6 +255,16 @@ public virtual void Validate()
}
}
}
+ if (Features != null)
+ {
+ foreach (var element1 in Features)
+ {
+ if (element1 != null)
+ {
+ element1.Validate();
+ }
+ }
+ }
}
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRTlsSettings.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRTlsSettings.cs
index fad11b6db7fd..c7436327abb2 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRTlsSettings.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRTlsSettings.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// TLS settings for SignalR
+ /// TLS settings for the resource
///
public partial class SignalRTlsSettings
{
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRUsage.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRUsage.cs
index 9cbd77750ceb..f3414aaff29a 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRUsage.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRUsage.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.SignalR.Models
using System.Linq;
///
- /// Object that describes a specific usage of SignalR resources.
+ /// Object that describes a specific usage of the resources.
///
public partial class SignalRUsage
{
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SystemData.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SystemData.cs
new file mode 100644
index 000000000000..9c9f75db2106
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SystemData.cs
@@ -0,0 +1,103 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Metadata pertaining to creation and last modification of the resource.
+ ///
+ public partial class SystemData
+ {
+ ///
+ /// Initializes a new instance of the SystemData class.
+ ///
+ public SystemData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SystemData class.
+ ///
+ /// The identity that created the
+ /// resource.
+ /// The type of identity that created the
+ /// resource. Possible values include: 'User', 'Application',
+ /// 'ManagedIdentity', 'Key'
+ /// The timestamp of resource creation
+ /// (UTC).
+ /// The identity that last modified the
+ /// resource.
+ /// The type of identity that last
+ /// modified the resource. Possible values include: 'User',
+ /// 'Application', 'ManagedIdentity', 'Key'
+ /// The timestamp of resource last
+ /// modification (UTC)
+ public SystemData(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?))
+ {
+ CreatedBy = createdBy;
+ CreatedByType = createdByType;
+ CreatedAt = createdAt;
+ LastModifiedBy = lastModifiedBy;
+ LastModifiedByType = lastModifiedByType;
+ LastModifiedAt = lastModifiedAt;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the identity that created the resource.
+ ///
+ [JsonProperty(PropertyName = "createdBy")]
+ public string CreatedBy { get; set; }
+
+ ///
+ /// Gets or sets the type of identity that created the resource.
+ /// Possible values include: 'User', 'Application', 'ManagedIdentity',
+ /// 'Key'
+ ///
+ [JsonProperty(PropertyName = "createdByType")]
+ public string CreatedByType { get; set; }
+
+ ///
+ /// Gets or sets the timestamp of resource creation (UTC).
+ ///
+ [JsonProperty(PropertyName = "createdAt")]
+ public System.DateTime? CreatedAt { get; set; }
+
+ ///
+ /// Gets or sets the identity that last modified the resource.
+ ///
+ [JsonProperty(PropertyName = "lastModifiedBy")]
+ public string LastModifiedBy { get; set; }
+
+ ///
+ /// Gets or sets the type of identity that last modified the resource.
+ /// Possible values include: 'User', 'Application', 'ManagedIdentity',
+ /// 'Key'
+ ///
+ [JsonProperty(PropertyName = "lastModifiedByType")]
+ public string LastModifiedByType { get; set; }
+
+ ///
+ /// Gets or sets the timestamp of resource last modification (UTC)
+ ///
+ [JsonProperty(PropertyName = "lastModifiedAt")]
+ public System.DateTime? LastModifiedAt { get; set; }
+
+ }
+}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/TrackedResource.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/TrackedResource.cs
index 37c51994e20e..5ec7ffa3f5cc 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/TrackedResource.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/TrackedResource.cs
@@ -36,9 +36,8 @@ public TrackedResource()
/// The name of the resource.
/// The type of the resource - e.g.
/// "Microsoft.SignalRService/SignalR"
- /// The GEO location of the SignalR service.
- /// e.g. West US | East US | North Central US | South Central
- /// US.
+ /// The GEO location of the resource. e.g. West
+ /// US | East US | North Central US | South Central US.
/// Tags of the service which is a list of key value
/// pairs that describe the resource.
public TrackedResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary))
@@ -55,8 +54,8 @@ public TrackedResource()
partial void CustomInit();
///
- /// Gets or sets the GEO location of the SignalR service. e.g. West US
- /// | East US | North Central US | South Central US.
+ /// Gets or sets the GEO location of the resource. e.g. West US | East
+ /// US | North Central US | South Central US.
///
[JsonProperty(PropertyName = "location")]
public string Location { get; set; }
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SdkInfo_SignalRManagementClient.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SdkInfo_SignalRManagementClient.cs
index 36806c32224a..26ff83e5adbc 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SdkInfo_SignalRManagementClient.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SdkInfo_SignalRManagementClient.cs
@@ -19,24 +19,14 @@ public static IEnumerable> ApiInfo_SignalRManageme
{
return new Tuple[]
{
- new Tuple("SignalRService", "Operations", "2020-07-01-preview"),
- new Tuple("SignalRService", "SignalR", "2020-07-01-preview"),
- new Tuple("SignalRService", "SignalRPrivateEndpointConnections", "2020-07-01-preview"),
- new Tuple("SignalRService", "SignalRPrivateLinkResources", "2020-07-01-preview"),
- new Tuple("SignalRService", "Usages", "2020-07-01-preview"),
+ new Tuple("SignalRService", "Operations", "2021-04-01-preview"),
+ new Tuple("SignalRService", "SignalR", "2021-04-01-preview"),
+ new Tuple("SignalRService", "SignalRPrivateEndpointConnections", "2021-04-01-preview"),
+ new Tuple("SignalRService", "SignalRPrivateLinkResources", "2021-04-01-preview"),
+ new Tuple("SignalRService", "SignalRSharedPrivateLinkResources", "2021-04-01-preview"),
+ new Tuple("SignalRService", "Usages", "2021-04-01-preview"),
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "v2";
- public static readonly String AutoRestBootStrapperVersion = "autorest@1.9.1";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/signalr/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\workspace\\github\\juniwang\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "da7d451541f551dd1fed355a77444bc8f14e7461";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRManagementClient.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRManagementClient.cs
index 8aac10fa65be..414108544035 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRManagementClient.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRManagementClient.cs
@@ -86,6 +86,11 @@ public partial class SignalRManagementClient : ServiceClient
public virtual ISignalROperations SignalR { get; private set; }
+ ///
+ /// Gets the IUsagesOperations.
+ ///
+ public virtual IUsagesOperations Usages { get; private set; }
+
///
/// Gets the ISignalRPrivateEndpointConnectionsOperations.
///
@@ -97,9 +102,9 @@ public partial class SignalRManagementClient : ServiceClient
- /// Gets the IUsagesOperations.
+ /// Gets the ISignalRSharedPrivateLinkResourcesOperations.
///
- public virtual IUsagesOperations Usages { get; private set; }
+ public virtual ISignalRSharedPrivateLinkResourcesOperations SignalRSharedPrivateLinkResources { get; private set; }
///
/// Initializes a new instance of the SignalRManagementClient class.
@@ -344,11 +349,12 @@ private void Initialize()
{
Operations = new Operations(this);
SignalR = new SignalROperations(this);
+ Usages = new UsagesOperations(this);
SignalRPrivateEndpointConnections = new SignalRPrivateEndpointConnectionsOperations(this);
SignalRPrivateLinkResources = new SignalRPrivateLinkResourcesOperations(this);
- Usages = new UsagesOperations(this);
+ SignalRSharedPrivateLinkResources = new SignalRSharedPrivateLinkResourcesOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2020-07-01-preview";
+ ApiVersion = "2021-04-01-preview";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperations.cs
index faa1d35de436..36cdc8d4fe59 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperations.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperations.cs
@@ -51,7 +51,7 @@ internal SignalROperations(SignalRManagementClient client)
public SignalRManagementClient Client { get; private set; }
///
- /// Checks that the SignalR name is valid and is not already in use.
+ /// Checks that the resource name is valid and is not already in use.
///
///
/// the region
@@ -80,12 +80,16 @@ internal SignalROperations(SignalRManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, NameAvailabilityParameters parameters = default(NameAvailabilityParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, NameAvailabilityParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (location == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
}
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
if (parameters != null)
{
parameters.Validate();
@@ -603,14 +607,14 @@ internal SignalROperations(SignalRManagementClient client)
}
///
- /// Get the access keys of the SignalR resource.
+ /// Get the resource and its properties.
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -633,7 +637,7 @@ internal SignalROperations(SignalRManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
@@ -661,11 +665,11 @@ internal SignalROperations(SignalRManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("resourceName", resourceName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
@@ -681,7 +685,7 @@ internal SignalROperations(SignalRManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -762,7 +766,7 @@ internal SignalROperations(SignalRManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -775,7 +779,7 @@ internal SignalROperations(SignalRManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -795,18 +799,40 @@ internal SignalROperations(SignalRManagementClient client)
}
///
- /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot
- /// be regenerated at the same time.
+ /// Create or update a resource.
///
+ ///
+ /// Parameters for the create or update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
- ///
- /// Parameter that describes the Regenerate Key Operation.
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(SignalRResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Operation to delete a resource.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -814,22 +840,48 @@ internal SignalROperations(SignalRManagementClient client)
///
/// The cancellation token.
///
- public async Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
- AzureOperationResponse _response = await BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Get the SignalR service and its properties.
+ /// Operation to update an exiting resource.
///
+ ///
+ /// Parameters for the update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> UpdateWithHttpMessagesAsync(SignalRResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get the access keys of the resource.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -852,7 +904,7 @@ internal SignalROperations(SignalRManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
@@ -880,11 +932,11 @@ internal SignalROperations(SignalRManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("resourceName", resourceName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
@@ -900,7 +952,7 @@ internal SignalROperations(SignalRManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -981,7 +1033,7 @@ internal SignalROperations(SignalRManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -994,7 +1046,7 @@ internal SignalROperations(SignalRManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -1014,40 +1066,18 @@ internal SignalROperations(SignalRManagementClient client)
}
///
- /// Create a new SignalR service and update an exiting SignalR service.
+ /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey
+ /// cannot be regenerated at the same time.
///
- ///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
- ///
- ///
- /// The name of the SignalR resource.
- ///
///
- /// Parameters for the create or update operation
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
+ /// Parameter that describes the Regenerate Key Operation.
///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Operation to delete a SignalR service.
- ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -1055,48 +1085,22 @@ internal SignalROperations(SignalRManagementClient client)
///
/// The cancellation token.
///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> RegenerateKeyWithHttpMessagesAsync(RegenerateKeyParameters parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginRegenerateKeyWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Operation to update an exiting SignalR service.
- ///
- ///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
- ///
- ///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the update operation
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Operation to restart a SignalR service.
+ /// Operation to restart a resource.
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -1112,18 +1116,17 @@ internal SignalROperations(SignalRManagementClient client)
}
///
- /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot
- /// be regenerated at the same time.
+ /// Create or update a resource.
///
+ ///
+ /// Parameters for the create or update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameter that describes the Regenerate Key Operation.
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -1146,8 +1149,16 @@ internal SignalROperations(SignalRManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(SignalRResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -1175,11 +1186,11 @@ internal SignalROperations(SignalRManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("resourceName", resourceName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginRegenerateKey", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
@@ -1195,7 +1206,7 @@ internal SignalROperations(SignalRManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1252,7 +1263,7 @@ internal SignalROperations(SignalRManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 201)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1282,7 +1293,7 @@ internal SignalROperations(SignalRManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -1290,12 +1301,30 @@ internal SignalROperations(SignalRManagementClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
if ((int)_statusCode == 201)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -1315,17 +1344,14 @@ internal SignalROperations(SignalRManagementClient client)
}
///
- /// Create a new SignalR service and update an exiting SignalR service.
+ /// Operation to delete a resource.
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the create or update operation
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -1336,9 +1362,6 @@ internal SignalROperations(SignalRManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -1348,12 +1371,8 @@ internal SignalROperations(SignalRManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (parameters != null)
- {
- parameters.Validate();
- }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -1377,11 +1396,10 @@ internal SignalROperations(SignalRManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("parameters", parameters);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("resourceName", resourceName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -1401,7 +1419,7 @@ internal SignalROperations(SignalRManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.Method = new HttpMethod("DELETE");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1432,12 +1450,6 @@ internal SignalROperations(SignalRManagementClient client)
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
// Set Credentials
if (Client.Credentials != null)
{
@@ -1458,7 +1470,7 @@ internal SignalROperations(SignalRManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1488,49 +1500,13 @@ internal SignalROperations(SignalRManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- // Deserialize Response
- if ((int)_statusCode == 201)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -1539,14 +1515,17 @@ internal SignalROperations(SignalRManagementClient client)
}
///
- /// Operation to delete a SignalR service.
+ /// Operation to update an exiting resource.
///
+ ///
+ /// Parameters for the update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -1557,6 +1536,9 @@ internal SignalROperations(SignalRManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -1566,8 +1548,12 @@ internal SignalROperations(SignalRManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(SignalRResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -1591,10 +1577,11 @@ internal SignalROperations(SignalRManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("resourceName", resourceName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -1614,7 +1601,7 @@ internal SignalROperations(SignalRManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
+ _httpRequest.Method = new HttpMethod("PATCH");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1645,6 +1632,12 @@ internal SignalROperations(SignalRManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (Client.Credentials != null)
{
@@ -1665,7 +1658,7 @@ internal SignalROperations(SignalRManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1695,13 +1688,31 @@ internal SignalROperations(SignalRManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -1710,17 +1721,18 @@ internal SignalROperations(SignalRManagementClient client)
}
///
- /// Operation to update an exiting SignalR service.
+ /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey
+ /// cannot be regenerated at the same time.
///
+ ///
+ /// Parameter that describes the Regenerate Key Operation.
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the update operation
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -1743,8 +1755,12 @@ internal SignalROperations(SignalRManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginRegenerateKeyWithHttpMessagesAsync(RegenerateKeyParameters parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -1772,11 +1788,11 @@ internal SignalROperations(SignalRManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("resourceName", resourceName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginRegenerateKey", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
@@ -1792,7 +1808,7 @@ internal SignalROperations(SignalRManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.Method = new HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1849,7 +1865,7 @@ internal SignalROperations(SignalRManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ if ((int)_statusCode != 202)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1879,7 +1895,7 @@ internal SignalROperations(SignalRManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -1887,12 +1903,12 @@ internal SignalROperations(SignalRManagementClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
- if ((int)_statusCode == 200)
+ if ((int)_statusCode == 202)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -1912,14 +1928,14 @@ internal SignalROperations(SignalRManagementClient client)
}
///
- /// Operation to restart a SignalR service.
+ /// Operation to restart a resource.
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperationsExtensions.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperationsExtensions.cs
index 6719df4c8bbc..7a490b7b9d65 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperationsExtensions.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperationsExtensions.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.SignalR
public static partial class SignalROperationsExtensions
{
///
- /// Checks that the SignalR name is valid and is not already in use.
+ /// Checks that the resource name is valid and is not already in use.
///
///
/// The operations group for this extension method.
@@ -33,13 +33,13 @@ public static partial class SignalROperationsExtensions
///
/// Parameters supplied to the operation.
///
- public static NameAvailability CheckNameAvailability(this ISignalROperations operations, string location, NameAvailabilityParameters parameters = default(NameAvailabilityParameters))
+ public static NameAvailability CheckNameAvailability(this ISignalROperations operations, string location, NameAvailabilityParameters parameters)
{
return operations.CheckNameAvailabilityAsync(location, parameters).GetAwaiter().GetResult();
}
///
- /// Checks that the SignalR name is valid and is not already in use.
+ /// Checks that the resource name is valid and is not already in use.
///
///
/// The operations group for this extension method.
@@ -53,7 +53,7 @@ public static partial class SignalROperationsExtensions
///
/// The cancellation token.
///
- public static async Task CheckNameAvailabilityAsync(this ISignalROperations operations, string location, NameAvailabilityParameters parameters = default(NameAvailabilityParameters), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CheckNameAvailabilityAsync(this ISignalROperations operations, string location, NameAvailabilityParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(location, parameters, null, cancellationToken).ConfigureAwait(false))
{
@@ -126,7 +126,7 @@ public static IPage ListByResourceGroup(this ISignalROperations
}
///
- /// Get the access keys of the SignalR resource.
+ /// Get the resource and its properties.
///
///
/// The operations group for this extension method.
@@ -136,15 +136,15 @@ public static IPage ListByResourceGroup(this ISignalROperations
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
- public static SignalRKeys ListKeys(this ISignalROperations operations, string resourceGroupName, string resourceName)
+ public static SignalRResource Get(this ISignalROperations operations, string resourceGroupName, string resourceName)
{
- return operations.ListKeysAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ return operations.GetAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Get the access keys of the SignalR resource.
+ /// Get the resource and its properties.
///
///
/// The operations group for this extension method.
@@ -154,71 +154,69 @@ public static SignalRKeys ListKeys(this ISignalROperations operations, string re
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task ListKeysAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListKeysWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot
- /// be regenerated at the same time.
+ /// Create or update a resource.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameters for the create or update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
- ///
- /// Parameter that describes the Regenerate Key Operation.
- ///
- public static SignalRKeys RegenerateKey(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters))
+ public static SignalRResource CreateOrUpdate(this ISignalROperations operations, SignalRResource parameters, string resourceGroupName, string resourceName)
{
- return operations.RegenerateKeyAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult();
+ return operations.CreateOrUpdateAsync(parameters, resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot
- /// be regenerated at the same time.
+ /// Create or update a resource.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameters for the create or update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameter that describes the Regenerate Key Operation.
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task RegenerateKeyAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateOrUpdateAsync(this ISignalROperations operations, SignalRResource parameters, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Get the SignalR service and its properties.
+ /// Operation to delete a resource.
///
///
/// The operations group for this extension method.
@@ -228,15 +226,15 @@ public static SignalRKeys ListKeys(this ISignalROperations operations, string re
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
- public static SignalRResource Get(this ISignalROperations operations, string resourceGroupName, string resourceName)
+ public static void Delete(this ISignalROperations operations, string resourceGroupName, string resourceName)
{
- return operations.GetAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ operations.DeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Get the SignalR service and its properties.
+ /// Operation to delete a resource.
///
///
/// The operations group for this extension method.
@@ -246,69 +244,66 @@ public static SignalRResource Get(this ISignalROperations operations, string res
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task GetAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
- /// Create a new SignalR service and update an exiting SignalR service.
+ /// Operation to update an exiting resource.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameters for the update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the create or update operation
+ /// The name of the resource.
///
- public static SignalRResource CreateOrUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource))
+ public static SignalRResource Update(this ISignalROperations operations, SignalRResource parameters, string resourceGroupName, string resourceName)
{
- return operations.CreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult();
+ return operations.UpdateAsync(parameters, resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Create a new SignalR service and update an exiting SignalR service.
+ /// Operation to update an exiting resource.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameters for the update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the create or update operation
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this ISignalROperations operations, SignalRResource parameters, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Operation to delete a SignalR service.
+ /// Get the access keys of the resource.
///
///
/// The operations group for this extension method.
@@ -318,15 +313,15 @@ public static SignalRResource Get(this ISignalROperations operations, string res
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
- public static void Delete(this ISignalROperations operations, string resourceGroupName, string resourceName)
+ public static SignalRKeys ListKeys(this ISignalROperations operations, string resourceGroupName, string resourceName)
{
- operations.DeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ return operations.ListKeysAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Operation to delete a SignalR service.
+ /// Get the access keys of the resource.
///
///
/// The operations group for this extension method.
@@ -336,66 +331,71 @@ public static void Delete(this ISignalROperations operations, string resourceGro
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task ListKeysAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.ListKeysWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
- /// Operation to update an exiting SignalR service.
+ /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey
+ /// cannot be regenerated at the same time.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameter that describes the Regenerate Key Operation.
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the update operation
+ /// The name of the resource.
///
- public static SignalRResource Update(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource))
+ public static SignalRKeys RegenerateKey(this ISignalROperations operations, RegenerateKeyParameters parameters, string resourceGroupName, string resourceName)
{
- return operations.UpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult();
+ return operations.RegenerateKeyAsync(parameters, resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Operation to update an exiting SignalR service.
+ /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey
+ /// cannot be regenerated at the same time.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameter that describes the Regenerate Key Operation.
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the update operation
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task RegenerateKeyAsync(this ISignalROperations operations, RegenerateKeyParameters parameters, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Operation to restart a SignalR service.
+ /// Operation to restart a resource.
///
///
/// The operations group for this extension method.
@@ -405,7 +405,7 @@ public static void Delete(this ISignalROperations operations, string resourceGro
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
public static void Restart(this ISignalROperations operations, string resourceGroupName, string resourceName)
{
@@ -413,7 +413,7 @@ public static void Restart(this ISignalROperations operations, string resourceGr
}
///
- /// Operation to restart a SignalR service.
+ /// Operation to restart a resource.
///
///
/// The operations group for this extension method.
@@ -423,7 +423,7 @@ public static void Restart(this ISignalROperations operations, string resourceGr
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
@@ -434,57 +434,55 @@ public static void Restart(this ISignalROperations operations, string resourceGr
}
///
- /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot
- /// be regenerated at the same time.
+ /// Create or update a resource.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameters for the create or update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
- ///
- /// Parameter that describes the Regenerate Key Operation.
- ///
- public static SignalRKeys BeginRegenerateKey(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters))
+ public static SignalRResource BeginCreateOrUpdate(this ISignalROperations operations, SignalRResource parameters, string resourceGroupName, string resourceName)
{
- return operations.BeginRegenerateKeyAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult();
+ return operations.BeginCreateOrUpdateAsync(parameters, resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot
- /// be regenerated at the same time.
+ /// Create or update a resource.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameters for the create or update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameter that describes the Regenerate Key Operation.
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task BeginRegenerateKeyAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginCreateOrUpdateAsync(this ISignalROperations operations, SignalRResource parameters, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Create a new SignalR service and update an exiting SignalR service.
+ /// Operation to delete a resource.
///
///
/// The operations group for this extension method.
@@ -494,18 +492,15 @@ public static void Restart(this ISignalROperations operations, string resourceGr
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the create or update operation
+ /// The name of the resource.
///
- public static SignalRResource BeginCreateOrUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource))
+ public static void BeginDelete(this ISignalROperations operations, string resourceGroupName, string resourceName)
{
- return operations.BeginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult();
+ operations.BeginDeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Create a new SignalR service and update an exiting SignalR service.
+ /// Operation to delete a resource.
///
///
/// The operations group for this extension method.
@@ -515,111 +510,116 @@ public static void Restart(this ISignalROperations operations, string resourceGr
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the create or update operation
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task BeginCreateOrUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginDeleteAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
- /// Operation to delete a SignalR service.
+ /// Operation to update an exiting resource.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameters for the update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
- public static void BeginDelete(this ISignalROperations operations, string resourceGroupName, string resourceName)
+ public static SignalRResource BeginUpdate(this ISignalROperations operations, SignalRResource parameters, string resourceGroupName, string resourceName)
{
- operations.BeginDeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ return operations.BeginUpdateAsync(parameters, resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Operation to delete a SignalR service.
+ /// Operation to update an exiting resource.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameters for the update operation
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task BeginDeleteAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginUpdateAsync(this ISignalROperations operations, SignalRResource parameters, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
- /// Operation to update an exiting SignalR service.
+ /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey
+ /// cannot be regenerated at the same time.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameter that describes the Regenerate Key Operation.
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the update operation
+ /// The name of the resource.
///
- public static SignalRResource BeginUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource))
+ public static SignalRKeys BeginRegenerateKey(this ISignalROperations operations, RegenerateKeyParameters parameters, string resourceGroupName, string resourceName)
{
- return operations.BeginUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult();
+ return operations.BeginRegenerateKeyAsync(parameters, resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Operation to update an exiting SignalR service.
+ /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey
+ /// cannot be regenerated at the same time.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Parameter that describes the Regenerate Key Operation.
+ ///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// Parameters for the update operation
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task BeginUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginRegenerateKeyAsync(this ISignalROperations operations, RegenerateKeyParameters parameters, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginRegenerateKeyWithHttpMessagesAsync(parameters, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Operation to restart a SignalR service.
+ /// Operation to restart a resource.
///
///
/// The operations group for this extension method.
@@ -629,7 +629,7 @@ public static void BeginDelete(this ISignalROperations operations, string resour
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
public static void BeginRestart(this ISignalROperations operations, string resourceGroupName, string resourceName)
{
@@ -637,7 +637,7 @@ public static void BeginRestart(this ISignalROperations operations, string resou
}
///
- /// Operation to restart a SignalR service.
+ /// Operation to restart a resource.
///
///
/// The operations group for this extension method.
@@ -647,7 +647,7 @@ public static void BeginRestart(this ISignalROperations operations, string resou
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateEndpointConnectionsOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateEndpointConnectionsOperations.cs
index d97a732fd118..6960a10eab13 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateEndpointConnectionsOperations.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateEndpointConnectionsOperations.cs
@@ -51,19 +51,209 @@ internal SignalRPrivateEndpointConnectionsOperations(SignalRManagementClient cli
public SignalRManagementClient Client { get; private set; }
///
- /// Get the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// List private endpoint connections
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Get the specified private endpoint connection
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -254,22 +444,20 @@ internal SignalRPrivateEndpointConnectionsOperations(SignalRManagementClient cli
}
///
- /// Update the state of specified private endpoint connection associated with a
- /// SignalR resource.
+ /// Update the state of specified private endpoint connection
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
+ ///
+ ///
+ /// The resource of private endpoint and its properties
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// The resource of private endpoint and its properties.
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -292,12 +480,16 @@ internal SignalRPrivateEndpointConnectionsOperations(SignalRManagementClient cli
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, PrivateEndpointConnection parameters = default(PrivateEndpointConnection), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string privateEndpointConnectionName, PrivateEndpointConnection parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (privateEndpointConnectionName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "privateEndpointConnectionName");
}
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -467,19 +659,17 @@ internal SignalRPrivateEndpointConnectionsOperations(SignalRManagementClient cli
}
///
- /// Delete the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// Delete the specified private endpoint connection
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The headers that will be added to request.
@@ -495,19 +685,17 @@ internal SignalRPrivateEndpointConnectionsOperations(SignalRManagementClient cli
}
///
- /// Delete the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// Delete the specified private endpoint connection
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -632,7 +820,7 @@ internal SignalRPrivateEndpointConnectionsOperations(SignalRManagementClient cli
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -676,5 +864,173 @@ internal SignalRPrivateEndpointConnectionsOperations(SignalRManagementClient cli
return _result;
}
+ ///
+ /// List private endpoint connections
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateEndpointConnectionsOperationsExtensions.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateEndpointConnectionsOperationsExtensions.cs
index 271be89d5e49..b8a2c65d8836 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateEndpointConnectionsOperationsExtensions.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateEndpointConnectionsOperationsExtensions.cs
@@ -22,22 +22,62 @@ namespace Microsoft.Azure.Management.SignalR
public static partial class SignalRPrivateEndpointConnectionsOperationsExtensions
{
///
- /// Get the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// List private endpoint connections
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ public static IPage List(this ISignalRPrivateEndpointConnectionsOperations operations, string resourceGroupName, string resourceName)
+ {
+ return operations.ListAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List private endpoint connections
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAsync(this ISignalRPrivateEndpointConnectionsOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Get the specified private endpoint connection
///
///
/// The operations group for this extension method.
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
public static PrivateEndpointConnection Get(this ISignalRPrivateEndpointConnectionsOperations operations, string privateEndpointConnectionName, string resourceGroupName, string resourceName)
{
@@ -45,22 +85,20 @@ public static PrivateEndpointConnection Get(this ISignalRPrivateEndpointConnecti
}
///
- /// Get the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// Get the specified private endpoint connection
///
///
/// The operations group for this extension method.
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
@@ -74,80 +112,74 @@ public static PrivateEndpointConnection Get(this ISignalRPrivateEndpointConnecti
}
///
- /// Update the state of specified private endpoint connection associated with a
- /// SignalR resource.
+ /// Update the state of specified private endpoint connection
///
///
/// The operations group for this extension method.
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
+ ///
+ ///
+ /// The resource of private endpoint and its properties
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// The resource of private endpoint and its properties.
+ /// The name of the resource.
///
- public static PrivateEndpointConnection Update(this ISignalRPrivateEndpointConnectionsOperations operations, string privateEndpointConnectionName, string resourceGroupName, string resourceName, PrivateEndpointConnection parameters = default(PrivateEndpointConnection))
+ public static PrivateEndpointConnection Update(this ISignalRPrivateEndpointConnectionsOperations operations, string privateEndpointConnectionName, PrivateEndpointConnection parameters, string resourceGroupName, string resourceName)
{
- return operations.UpdateAsync(privateEndpointConnectionName, resourceGroupName, resourceName, parameters).GetAwaiter().GetResult();
+ return operations.UpdateAsync(privateEndpointConnectionName, parameters, resourceGroupName, resourceName).GetAwaiter().GetResult();
}
///
- /// Update the state of specified private endpoint connection associated with a
- /// SignalR resource.
+ /// Update the state of specified private endpoint connection
///
///
/// The operations group for this extension method.
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
+ ///
+ ///
+ /// The resource of private endpoint and its properties
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
- ///
- ///
- /// The resource of private endpoint and its properties.
+ /// The name of the resource.
///
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this ISignalRPrivateEndpointConnectionsOperations operations, string privateEndpointConnectionName, string resourceGroupName, string resourceName, PrivateEndpointConnection parameters = default(PrivateEndpointConnection), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this ISignalRPrivateEndpointConnectionsOperations operations, string privateEndpointConnectionName, PrivateEndpointConnection parameters, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(privateEndpointConnectionName, resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(privateEndpointConnectionName, parameters, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Delete the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// Delete the specified private endpoint connection
///
///
/// The operations group for this extension method.
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
public static void Delete(this ISignalRPrivateEndpointConnectionsOperations operations, string privateEndpointConnectionName, string resourceGroupName, string resourceName)
{
@@ -155,22 +187,20 @@ public static void Delete(this ISignalRPrivateEndpointConnectionsOperations oper
}
///
- /// Delete the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// Delete the specified private endpoint connection
///
///
/// The operations group for this extension method.
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
@@ -181,22 +211,20 @@ public static void Delete(this ISignalRPrivateEndpointConnectionsOperations oper
}
///
- /// Delete the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// Delete the specified private endpoint connection
///
///
/// The operations group for this extension method.
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
public static void BeginDelete(this ISignalRPrivateEndpointConnectionsOperations operations, string privateEndpointConnectionName, string resourceGroupName, string resourceName)
{
@@ -204,22 +232,20 @@ public static void BeginDelete(this ISignalRPrivateEndpointConnectionsOperations
}
///
- /// Delete the specified private endpoint connection associated with a SignalR
- /// resource.
+ /// Delete the specified private endpoint connection
///
///
/// The operations group for this extension method.
///
///
- /// The name of the private endpoint connection associated with the SignalR
- /// resource.
+ /// The name of the private endpoint connection
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
@@ -229,5 +255,39 @@ public static void BeginDelete(this ISignalRPrivateEndpointConnectionsOperations
(await operations.BeginDeleteWithHttpMessagesAsync(privateEndpointConnectionName, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// List private endpoint connections
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListNext(this ISignalRPrivateEndpointConnectionsOperations operations, string nextPageLink)
+ {
+ return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List private endpoint connections
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListNextAsync(this ISignalRPrivateEndpointConnectionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
}
}
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateLinkResourcesOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateLinkResourcesOperations.cs
index f9a35fae61fb..08cb33a31c54 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateLinkResourcesOperations.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateLinkResourcesOperations.cs
@@ -51,15 +51,14 @@ internal SignalRPrivateLinkResourcesOperations(SignalRManagementClient client)
public SignalRManagementClient Client { get; private set; }
///
- /// Get the private link resources that need to be created for a SignalR
- /// resource.
+ /// Get the private link resources that need to be created for a resource.
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// Headers that will be added to request.
@@ -244,8 +243,7 @@ internal SignalRPrivateLinkResourcesOperations(SignalRManagementClient client)
}
///
- /// Get the private link resources that need to be created for a SignalR
- /// resource.
+ /// Get the private link resources that need to be created for a resource.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateLinkResourcesOperationsExtensions.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateLinkResourcesOperationsExtensions.cs
index 7e9358d5bfe8..f4053e31fe97 100644
--- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateLinkResourcesOperationsExtensions.cs
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRPrivateLinkResourcesOperationsExtensions.cs
@@ -22,8 +22,7 @@ namespace Microsoft.Azure.Management.SignalR
public static partial class SignalRPrivateLinkResourcesOperationsExtensions
{
///
- /// Get the private link resources that need to be created for a SignalR
- /// resource.
+ /// Get the private link resources that need to be created for a resource.
///
///
/// The operations group for this extension method.
@@ -33,7 +32,7 @@ public static partial class SignalRPrivateLinkResourcesOperationsExtensions
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
public static IPage List(this ISignalRPrivateLinkResourcesOperations operations, string resourceGroupName, string resourceName)
{
@@ -41,8 +40,7 @@ public static IPage List(this ISignalRPrivateLinkResourcesO
}
///
- /// Get the private link resources that need to be created for a SignalR
- /// resource.
+ /// Get the private link resources that need to be created for a resource.
///
///
/// The operations group for this extension method.
@@ -52,7 +50,7 @@ public static IPage List(this ISignalRPrivateLinkResourcesO
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the SignalR resource.
+ /// The name of the resource.
///
///
/// The cancellation token.
@@ -66,8 +64,7 @@ public static IPage List(this ISignalRPrivateLinkResourcesO
}
///
- /// Get the private link resources that need to be created for a SignalR
- /// resource.
+ /// Get the private link resources that need to be created for a resource.
///
///
/// The operations group for this extension method.
@@ -81,8 +78,7 @@ public static IPage ListNext(this ISignalRPrivateLinkResour
}
///
- /// Get the private link resources that need to be created for a SignalR
- /// resource.
+ /// Get the private link resources that need to be created for a resource.
///
///
/// The operations group for this extension method.
diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRSharedPrivateLinkResourcesOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRSharedPrivateLinkResourcesOperations.cs
new file mode 100644
index 000000000000..3e045853f701
--- /dev/null
+++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRSharedPrivateLinkResourcesOperations.cs
@@ -0,0 +1,1087 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SignalR
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// SignalRSharedPrivateLinkResourcesOperations operations.
+ ///
+ internal partial class SignalRSharedPrivateLinkResourcesOperations : IServiceOperations, ISignalRSharedPrivateLinkResourcesOperations
+ {
+ ///
+ /// Initializes a new instance of the SignalRSharedPrivateLinkResourcesOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal SignalRSharedPrivateLinkResourcesOperations(SignalRManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the SignalRManagementClient
+ ///
+ public SignalRManagementClient Client { get; private set; }
+
+ ///
+ /// List shared private link resources
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Get the specified shared private link resource
+ ///
+ ///
+ /// The name of the shared private link resource
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (sharedPrivateLinkResourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "sharedPrivateLinkResourceName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("sharedPrivateLinkResourceName", sharedPrivateLinkResourceName);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}").ToString();
+ _url = _url.Replace("{sharedPrivateLinkResourceName}", System.Uri.EscapeDataString(sharedPrivateLinkResourceName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Create or update a shared private link resource
+ ///
+ ///
+ /// The name of the shared private link resource
+ ///
+ ///
+ /// The shared private link resource
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string sharedPrivateLinkResourceName, SharedPrivateLinkResource parameters, string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(sharedPrivateLinkResourceName, parameters, resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Delete the specified shared private link resource
+ ///
+ ///
+ /// The name of the shared private link resource
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, Dictionary