diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/IOperations.cs b/src/SignalR/SignalR.Management.Sdk/Generated/IOperations.cs
new file mode 100644
index 000000000000..8fdbf3cc4751
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/IOperations.cs
@@ -0,0 +1,64 @@
+// 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.Azure;
+ using Models;
+
+ ///
+ /// Operations operations.
+ ///
+ public partial interface IOperations
+ {
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRManagementClient.cs b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRManagementClient.cs
new file mode 100644
index 000000000000..f1e3454cd6c9
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRManagementClient.cs
@@ -0,0 +1,104 @@
+// 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;
+
+ ///
+ /// REST API for Azure SignalR Service
+ ///
+ public partial interface ISignalRManagementClient : System.IDisposable
+ {
+ ///
+ /// The base URI of the service.
+ ///
+ System.Uri BaseUri { get; set; }
+
+ ///
+ /// Gets or sets json serialization settings.
+ ///
+ Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; }
+
+ ///
+ /// Gets or sets json deserialization settings.
+ ///
+ Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; }
+
+ ///
+ /// Credentials needed for the client to connect to Azure.
+ ///
+ Microsoft.Rest.ServiceClientCredentials Credentials { get;}
+
+
+ ///
+ /// The API version to use for this operation.
+ ///
+ string ApiVersion { get;}
+
+
+ ///
+ /// Gets subscription Id which uniquely identify the Microsoft Azure
+ /// subscription. The subscription ID forms part of the URI for every service
+ /// call.
+ ///
+ string SubscriptionId { get; set;}
+
+
+ ///
+ /// The preferred language for the response.
+ ///
+ string AcceptLanguage { get; set;}
+
+
+ ///
+ /// The retry timeout in seconds for Long Running Operations. Default
+ /// /// value is 30.
+ ///
+ int? LongRunningOperationRetryTimeout { get; set;}
+
+
+ ///
+ /// Whether a unique x-ms-client-request-id should be generated. When
+ /// /// set to true a unique x-ms-client-request-id value is generated and
+ /// /// included in each request. Default is true.
+ ///
+ bool? GenerateClientRequestId { get; set;}
+
+
+ ///
+ /// Gets the IOperations
+ ///
+ IOperations Operations { get; }
+
+ ///
+ /// Gets the ISignalROperations
+ ///
+ ISignalROperations SignalR { get; }
+
+ ///
+ /// Gets the IUsagesOperations
+ ///
+ IUsagesOperations Usages { get; }
+
+ ///
+ /// Gets the ISignalRPrivateEndpointConnectionsOperations
+ ///
+ ISignalRPrivateEndpointConnectionsOperations SignalRPrivateEndpointConnections { get; }
+
+ ///
+ /// Gets the ISignalRPrivateLinkResourcesOperations
+ ///
+ ISignalRPrivateLinkResourcesOperations SignalRPrivateLinkResources { get; }
+
+ ///
+ /// Gets the ISignalRSharedPrivateLinkResourcesOperations
+ ///
+ ISignalRSharedPrivateLinkResourcesOperations SignalRSharedPrivateLinkResources { get; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/ISignalROperations.cs b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalROperations.cs
new file mode 100644
index 000000000000..80bab021fe2d
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalROperations.cs
@@ -0,0 +1,467 @@
+// 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.Azure;
+ using Models;
+
+ ///
+ /// SignalROperations operations.
+ ///
+ public partial interface ISignalROperations
+ {
+ ///
+ /// Checks that the resource name is valid and is not already in use.
+ ///
+ ///
+ /// Checks that the resource name is valid and is not already in use.
+ ///
+ ///
+ /// the region
+ ///
+ ///
+ /// Parameters supplied to the 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
+ ///
+ System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, NameAvailabilityParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Handles requests to list all resources in a subscription.
+ ///
+ ///
+ /// Handles requests to list all resources in a subscription.
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListBySubscriptionWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Handles requests to list all resources in a resource group.
+ ///
+ ///
+ /// Handles requests to list all resources in a resource group.
+ ///
+ ///
+ /// 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 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
+ ///
+ System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Get the resource and its properties.
+ ///
+ ///
+ /// 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 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
+ ///
+ System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Create or update a resource.
+ ///
+ ///
+ /// Create or update 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.
+ ///
+ ///
+ /// Parameters for the create or update 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
+ ///
+ System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Operation to delete a resource.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Operation to update an exiting resource.
+ ///
+ ///
+ /// Operation to update an exiting 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.
+ ///
+ ///
+ /// Parameters for the update 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
+ ///
+ System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Get the access keys of the resource.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey
+ /// cannot be regenerated at the same time.
+ ///
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// Parameter that describes the Regenerate Key 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
+ ///
+ System.Threading.Tasks.Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Operation to restart a resource.
+ ///
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ System.Threading.Tasks.Task RestartWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Create or update a resource.
+ ///
+ ///
+ /// Create or update 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.
+ ///
+ ///
+ /// Parameters for the create or update 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
+ ///
+ System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Operation to delete a resource.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Operation to update an exiting resource.
+ ///
+ ///
+ /// Operation to update an exiting 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.
+ ///
+ ///
+ /// Parameters for the update 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
+ ///
+ System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey
+ /// cannot be regenerated at the same time.
+ ///
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// Parameter that describes the Regenerate Key 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
+ ///
+ System.Threading.Tasks.Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Operation to restart a resource.
+ ///
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ System.Threading.Tasks.Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Handles requests to list all resources in a subscription.
+ ///
+ ///
+ /// Handles requests to list all resources in a subscription.
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Handles requests to list all resources in a resource group.
+ ///
+ ///
+ /// Handles requests to list all resources in a resource group.
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRPrivateEndpointConnectionsOperations.cs b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRPrivateEndpointConnectionsOperations.cs
new file mode 100644
index 000000000000..4a0207be348b
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRPrivateEndpointConnectionsOperations.cs
@@ -0,0 +1,184 @@
+// 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.Azure;
+ using Models;
+
+ ///
+ /// SignalRPrivateEndpointConnectionsOperations operations.
+ ///
+ public partial interface ISignalRPrivateEndpointConnectionsOperations
+ {
+ ///
+ /// List private endpoint connections
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Get the specified private endpoint connection
+ ///
+ ///
+ /// Get the specified private endpoint connection
+ ///
+ ///
+ /// 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 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
+ ///
+ System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Update the state of specified private endpoint connection
+ ///
+ ///
+ /// Update the state of specified private endpoint connection
+ ///
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// The resource of private endpoint and its properties
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, PrivateEndpointConnection parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Delete the specified private endpoint connection
+ ///
+ ///
+ /// Delete the specified private endpoint connection
+ ///
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Delete the specified private endpoint connection
+ ///
+ ///
+ /// Delete the specified private endpoint connection
+ ///
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string privateEndpointConnectionName, string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// List private endpoint connections
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRPrivateLinkResourcesOperations.cs b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRPrivateLinkResourcesOperations.cs
new file mode 100644
index 000000000000..dc96beea95b7
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRPrivateLinkResourcesOperations.cs
@@ -0,0 +1,67 @@
+// 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.Azure;
+ using Models;
+
+ ///
+ /// SignalRPrivateLinkResourcesOperations operations.
+ ///
+ public partial interface ISignalRPrivateLinkResourcesOperations
+ {
+ ///
+ /// Get the private link resources that need to be created for a 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 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
+ ///
+ System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Get the private link resources that need to be created for a resource.
+ ///
+ ///
+ /// Get the private link resources that need to be created for a resource.
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRSharedPrivateLinkResourcesOperations.cs b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRSharedPrivateLinkResourcesOperations.cs
new file mode 100644
index 000000000000..2ebcdb0ec66a
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/ISignalRSharedPrivateLinkResourcesOperations.cs
@@ -0,0 +1,217 @@
+// 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.Azure;
+ using Models;
+
+ ///
+ /// SignalRSharedPrivateLinkResourcesOperations operations.
+ ///
+ public partial interface ISignalRSharedPrivateLinkResourcesOperations
+ {
+ ///
+ /// List shared private link resources
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Get the specified shared private link resource
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Create or update a shared private link resource
+ ///
+ ///
+ /// Create or update a 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 shared private link 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
+ ///
+ System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, SharedPrivateLinkResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Delete the specified shared private link resource
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Create or update a shared private link resource
+ ///
+ ///
+ /// Create or update a 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 shared private link 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
+ ///
+ System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, SharedPrivateLinkResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// Delete the specified shared private link resource
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// List shared private link resources
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/IUsagesOperations.cs b/src/SignalR/SignalR.Management.Sdk/Generated/IUsagesOperations.cs
new file mode 100644
index 000000000000..bd30bcf9e7f1
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/IUsagesOperations.cs
@@ -0,0 +1,63 @@
+// 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.Azure;
+ using Models;
+
+ ///
+ /// UsagesOperations operations.
+ ///
+ public partial interface IUsagesOperations
+ {
+ ///
+ /// List resource usage quotas by location.
+ ///
+ ///
+ /// List resource usage quotas by location.
+ ///
+ ///
+ /// the location like "eastus"
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(string location, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ ///
+ /// List resource usage quotas by location.
+ ///
+ ///
+ /// List resource usage quotas by location.
+ ///
+ ///
+ /// 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
+ ///
+ System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ACLAction.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ACLAction.cs
new file mode 100644
index 000000000000..c2eb64d4c5cc
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ACLAction.cs
@@ -0,0 +1,19 @@
+// 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 ACLAction.
+ ///
+
+
+ public static class ACLAction
+ {
+ public const string Allow = "Allow";
+ public const string Deny = "Deny";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/CreatedByType.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/CreatedByType.cs
new file mode 100644
index 000000000000..7e042bf37a0d
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/CreatedByType.cs
@@ -0,0 +1,21 @@
+// 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";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/Dimension.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/Dimension.cs
new file mode 100644
index 000000000000..cbab708d2ac2
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/Dimension.cs
@@ -0,0 +1,80 @@
+// 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 System.Linq;
+
+ ///
+ /// Specifications of the Dimension of metrics.
+ ///
+ public partial class Dimension
+ {
+ ///
+ /// Initializes a new instance of the Dimension class.
+ ///
+ public Dimension()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Dimension class.
+ ///
+
+ /// The public facing name of the dimension.
+ ///
+
+ /// Localized friendly display name of the dimension.
+ ///
+
+ /// Name of the dimension as it appears in MDM.
+ ///
+
+ /// A Boolean flag indicating whether this dimension should be included for the
+ /// shoebox export scenario.
+ ///
+ public Dimension(string name = default(string), string displayName = default(string), string internalName = default(string), bool? toBeExportedForShoebox = default(bool?))
+
+ {
+ this.Name = name;
+ this.DisplayName = displayName;
+ this.InternalName = internalName;
+ this.ToBeExportedForShoebox = toBeExportedForShoebox;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the public facing name of the dimension.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public string Name {get; set; }
+
+ ///
+ /// Gets or sets localized friendly display name of the dimension.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "displayName")]
+ public string DisplayName {get; set; }
+
+ ///
+ /// Gets or sets name of the dimension as it appears in MDM.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "internalName")]
+ public string InternalName {get; set; }
+
+ ///
+ /// Gets or sets a Boolean flag indicating whether this dimension should be
+ /// included for the shoebox export scenario.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "toBeExportedForShoebox")]
+ public bool? ToBeExportedForShoebox {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorAdditionalInfo.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorAdditionalInfo.cs
new file mode 100644
index 000000000000..0ff33a002e6e
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorAdditionalInfo.cs
@@ -0,0 +1,58 @@
+// 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 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))
+
+ {
+ this.Type = type;
+ this.Info = info;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets the additional info type.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "type")]
+ public string Type {get; private set; }
+
+ ///
+ /// Gets the additional info.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "info")]
+ public object Info {get; private set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorDetail.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorDetail.cs
new file mode 100644
index 000000000000..50ef01502734
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorDetail.cs
@@ -0,0 +1,88 @@
+// 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 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), System.Collections.Generic.IList details = default(System.Collections.Generic.IList), System.Collections.Generic.IList additionalInfo = default(System.Collections.Generic.IList))
+
+ {
+ this.Code = code;
+ this.Message = message;
+ this.Target = target;
+ this.Details = details;
+ this.AdditionalInfo = additionalInfo;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets the error code.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "code")]
+ public string Code {get; private set; }
+
+ ///
+ /// Gets the error message.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "message")]
+ public string Message {get; private set; }
+
+ ///
+ /// Gets the error target.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "target")]
+ public string Target {get; private set; }
+
+ ///
+ /// Gets the error details.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "details")]
+ public System.Collections.Generic.IList Details {get; private set; }
+
+ ///
+ /// Gets the error additional info.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "additionalInfo")]
+ public System.Collections.Generic.IList AdditionalInfo {get; private set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorResponse.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorResponse.cs
new file mode 100644
index 000000000000..9ca82aa1b0da
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorResponse.cs
@@ -0,0 +1,55 @@
+// 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 System.Linq;
+
+ ///
+ /// Common error response for all Azure Resource Manager APIs to return error
+ /// details for failed operations. (This also follows the OData error response
+ /// format.).
+ ///
+ ///
+ /// 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
+ {
+ ///
+ /// Initializes a new instance of the ErrorResponse class.
+ ///
+ public ErrorResponse()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorResponse class.
+ ///
+
+ /// The error object.
+ ///
+ public ErrorResponse(ErrorDetail error = default(ErrorDetail))
+
+ {
+ this.Error = error;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the error object.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "error")]
+ public ErrorDetail Error {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorResponseException.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorResponseException.cs
new file mode 100644
index 000000000000..4c7da13bc876
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ErrorResponseException.cs
@@ -0,0 +1,55 @@
+// 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
+{
+
+ ///
+ /// Exception thrown for an invalid response with ErrorResponse information.
+ ///
+ public partial class ErrorResponseException : Microsoft.Rest.RestException
+ {
+ ///
+ /// Gets information about the associated HTTP request.
+ ///
+ public Microsoft.Rest.HttpRequestMessageWrapper Request { get; set; }
+
+ ///
+ /// Gets information about the associated HTTP response.
+ ///
+ public Microsoft.Rest.HttpResponseMessageWrapper Response { get; set; }
+
+ ///
+ /// Gets or sets the body object.
+ ///
+ public ErrorResponse Body { get; set; }
+
+ ///
+ /// Initializes a new instance of the ErrorResponseException class.
+ ///
+ public ErrorResponseException()
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorResponse class.
+ ///
+ /// The exception message.
+ public ErrorResponseException(string message)
+ : this(message, null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorResponse class.
+ ///
+ /// The exception message.
+ /// Inner exception.
+ public ErrorResponseException(string message, System.Exception innerException)
+ : base(message, innerException)
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/FeatureFlags.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/FeatureFlags.cs
new file mode 100644
index 000000000000..c75c496946ee
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/FeatureFlags.cs
@@ -0,0 +1,21 @@
+// 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 FeatureFlags.
+ ///
+
+
+ public static class FeatureFlags
+ {
+ public const string ServiceMode = "ServiceMode";
+ public const string EnableConnectivityLogs = "EnableConnectivityLogs";
+ public const string EnableMessagingLogs = "EnableMessagingLogs";
+ public const string EnableLiveTrace = "EnableLiveTrace";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/KeyType.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/KeyType.cs
new file mode 100644
index 000000000000..b0828c1aa03c
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/KeyType.cs
@@ -0,0 +1,19 @@
+// 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 KeyType.
+ ///
+
+
+ public static class KeyType
+ {
+ public const string Primary = "Primary";
+ public const string Secondary = "Secondary";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/LogSpecification.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/LogSpecification.cs
new file mode 100644
index 000000000000..6ff020db3f5a
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/LogSpecification.cs
@@ -0,0 +1,58 @@
+// 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 System.Linq;
+
+ ///
+ /// Specifications of the Logs for Azure Monitoring.
+ ///
+ public partial class LogSpecification
+ {
+ ///
+ /// Initializes a new instance of the LogSpecification class.
+ ///
+ public LogSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the LogSpecification class.
+ ///
+
+ /// Name of the log.
+ ///
+
+ /// Localized friendly display name of the log.
+ ///
+ public LogSpecification(string name = default(string), string displayName = default(string))
+
+ {
+ this.Name = name;
+ this.DisplayName = displayName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets name of the log.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public string Name {get; set; }
+
+ ///
+ /// Gets or sets localized friendly display name of the log.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "displayName")]
+ public string DisplayName {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentity.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentity.cs
new file mode 100644
index 000000000000..e30156931a83
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentity.cs
@@ -0,0 +1,83 @@
+// 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 System.Linq;
+
+ ///
+ /// A class represent managed identities used for request and response
+ ///
+ public partial class ManagedIdentity
+ {
+ ///
+ /// Initializes a new instance of the ManagedIdentity class.
+ ///
+ public ManagedIdentity()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ManagedIdentity class.
+ ///
+
+ /// Represent the identity type: systemAssigned, userAssigned, None
+ /// Possible values include: 'None', 'SystemAssigned', 'UserAssigned'
+
+ /// Get or set the user assigned identities
+ ///
+
+ /// Get the principal id for the system assigned identity.
+ /// Only be used in response.
+ ///
+
+ /// Get the tenant id for the system assigned identity.
+ /// Only be used in response
+ ///
+ public ManagedIdentity(string type = default(string), System.Collections.Generic.IDictionary userAssignedIdentities = default(System.Collections.Generic.IDictionary), string principalId = default(string), string tenantId = default(string))
+
+ {
+ this.Type = type;
+ this.UserAssignedIdentities = userAssignedIdentities;
+ this.PrincipalId = principalId;
+ this.TenantId = tenantId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets represent the identity type: systemAssigned, userAssigned,
+ /// None Possible values include: 'None', 'SystemAssigned', 'UserAssigned'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "type")]
+ public string Type {get; set; }
+
+ ///
+ /// Gets or sets get or set the user assigned identities
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "userAssignedIdentities")]
+ public System.Collections.Generic.IDictionary UserAssignedIdentities {get; set; }
+
+ ///
+ /// Gets get the principal id for the system assigned identity.
+ /// Only be used in response.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "principalId")]
+ public string PrincipalId {get; private set; }
+
+ ///
+ /// Gets get the tenant id for the system assigned identity.
+ /// Only be used in response
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "tenantId")]
+ public string TenantId {get; private set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentitySettings.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentitySettings.cs
new file mode 100644
index 000000000000..bdfd54a2bde1
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentitySettings.cs
@@ -0,0 +1,50 @@
+// 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 System.Linq;
+
+ ///
+ /// Managed identity settings for upstream.
+ ///
+ public partial class ManagedIdentitySettings
+ {
+ ///
+ /// Initializes a new instance of the ManagedIdentitySettings class.
+ ///
+ public ManagedIdentitySettings()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ManagedIdentitySettings class.
+ ///
+
+ /// The Resource indicating the App ID URI of the target resource.
+ /// It also appears in the aud (audience) claim of the issued token.
+ ///
+ public ManagedIdentitySettings(string resource = default(string))
+
+ {
+ this.Resource = resource;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the Resource indicating the App ID URI of the target resource.
+ /// It also appears in the aud (audience) claim of the issued token.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "resource")]
+ public string Resource {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentityType.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentityType.cs
new file mode 100644
index 000000000000..c40249745335
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ManagedIdentityType.cs
@@ -0,0 +1,20 @@
+// 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 ManagedIdentityType.
+ ///
+
+
+ public static class ManagedIdentityType
+ {
+ public const string None = "None";
+ public const string SystemAssigned = "SystemAssigned";
+ public const string UserAssigned = "UserAssigned";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/MetricSpecification.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/MetricSpecification.cs
new file mode 100644
index 000000000000..3a5c9cb766f0
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/MetricSpecification.cs
@@ -0,0 +1,132 @@
+// 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 System.Linq;
+
+ ///
+ /// Specifications of the Metrics for Azure Monitoring.
+ ///
+ public partial class MetricSpecification
+ {
+ ///
+ /// Initializes a new instance of the MetricSpecification class.
+ ///
+ public MetricSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MetricSpecification class.
+ ///
+
+ /// Name of the metric.
+ ///
+
+ /// Localized friendly display name of the metric.
+ ///
+
+ /// Localized friendly description of the metric.
+ ///
+
+ /// The unit that makes sense for the metric.
+ ///
+
+ /// Only provide one value for this field. Valid values: Average, Minimum,
+ /// Maximum, Total, Count.
+ ///
+
+ /// Optional. If set to true, then zero will be returned for time duration
+ /// where no metric is emitted/published.
+ /// Ex. a metric that returns the number of times a particular error code was
+ /// emitted. The error code may not appear
+ /// often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time
+ /// periods where nothing was emitted.
+ ///
+
+ /// The name of the metric category that the metric belongs to. A metric can
+ /// only belong to a single category.
+ ///
+
+ /// The dimensions of the metrics.
+ ///
+ public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), string unit = default(string), string aggregationType = default(string), string fillGapWithZero = default(string), string category = default(string), System.Collections.Generic.IList dimensions = default(System.Collections.Generic.IList))
+
+ {
+ this.Name = name;
+ this.DisplayName = displayName;
+ this.DisplayDescription = displayDescription;
+ this.Unit = unit;
+ this.AggregationType = aggregationType;
+ this.FillGapWithZero = fillGapWithZero;
+ this.Category = category;
+ this.Dimensions = dimensions;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets name of the metric.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public string Name {get; set; }
+
+ ///
+ /// Gets or sets localized friendly display name of the metric.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "displayName")]
+ public string DisplayName {get; set; }
+
+ ///
+ /// Gets or sets localized friendly description of the metric.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "displayDescription")]
+ public string DisplayDescription {get; set; }
+
+ ///
+ /// Gets or sets the unit that makes sense for the metric.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "unit")]
+ public string Unit {get; set; }
+
+ ///
+ /// Gets or sets only provide one value for this field. Valid values: Average,
+ /// Minimum, Maximum, Total, Count.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "aggregationType")]
+ public string AggregationType {get; set; }
+
+ ///
+ /// Gets or sets optional. If set to true, then zero will be returned for time
+ /// duration where no metric is emitted/published.
+ /// Ex. a metric that returns the number of times a particular error code was
+ /// emitted. The error code may not appear
+ /// often, instead of the RP publishing 0, Shoebox can auto fill in 0s for time
+ /// periods where nothing was emitted.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "fillGapWithZero")]
+ public string FillGapWithZero {get; set; }
+
+ ///
+ /// Gets or sets the name of the metric category that the metric belongs to. A
+ /// metric can only belong to a single category.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "category")]
+ public string Category {get; set; }
+
+ ///
+ /// Gets or sets the dimensions of the metrics.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "dimensions")]
+ public System.Collections.Generic.IList Dimensions {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/NameAvailability.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/NameAvailability.cs
new file mode 100644
index 000000000000..8d1fd1971390
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/NameAvailability.cs
@@ -0,0 +1,70 @@
+// 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 System.Linq;
+
+ ///
+ /// Result of the request to check name availability. It contains a flag and
+ /// possible reason of failure.
+ ///
+ public partial class NameAvailability
+ {
+ ///
+ /// Initializes a new instance of the NameAvailability class.
+ ///
+ public NameAvailability()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the NameAvailability class.
+ ///
+
+ /// Indicates whether the name is available or not.
+ ///
+
+ /// The reason of the availability. Required if name is not available.
+ ///
+
+ /// The message of the operation.
+ ///
+ public NameAvailability(bool? nameAvailable = default(bool?), string reason = default(string), string message = default(string))
+
+ {
+ this.NameAvailable = nameAvailable;
+ this.Reason = reason;
+ this.Message = message;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets indicates whether the name is available or not.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "nameAvailable")]
+ public bool? NameAvailable {get; set; }
+
+ ///
+ /// Gets or sets the reason of the availability. Required if name is not
+ /// available.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "reason")]
+ public string Reason {get; set; }
+
+ ///
+ /// Gets or sets the message of the operation.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "message")]
+ public string Message {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/NameAvailabilityParameters.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/NameAvailabilityParameters.cs
new file mode 100644
index 000000000000..7d1a7812c701
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/NameAvailabilityParameters.cs
@@ -0,0 +1,79 @@
+// 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 System.Linq;
+
+ ///
+ /// Data POST-ed to the nameAvailability action
+ ///
+ public partial class NameAvailabilityParameters
+ {
+ ///
+ /// Initializes a new instance of the NameAvailabilityParameters class.
+ ///
+ public NameAvailabilityParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the NameAvailabilityParameters class.
+ ///
+
+ /// 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)
+
+ {
+ this.Type = type;
+ this.Name = name;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the resource type. Can be "Microsoft.SignalRService/SignalR"
+ /// or "Microsoft.SignalRService/webPubSub"
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "type")]
+ public string Type {get; set; }
+
+ ///
+ /// Gets or sets the resource name to validate. e.g."my-resource-name"
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public string Name {get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (this.Type == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Type");
+ }
+ if (this.Name == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name");
+ }
+
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/NetworkACL.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/NetworkACL.cs
new file mode 100644
index 000000000000..ec9fc06e24fe
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/NetworkACL.cs
@@ -0,0 +1,62 @@
+// 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 System.Linq;
+
+ ///
+ /// Network ACL
+ ///
+ public partial class NetworkACL
+ {
+ ///
+ /// Initializes a new instance of the NetworkACL class.
+ ///
+ public NetworkACL()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the NetworkACL class.
+ ///
+
+ /// Allowed request types. The value can be one or more of: ClientConnection,
+ /// ServerConnection, RESTAPI.
+ ///
+
+ /// Denied request types. The value can be one or more of: ClientConnection,
+ /// ServerConnection, RESTAPI.
+ ///
+ public NetworkACL(System.Collections.Generic.IList allow = default(System.Collections.Generic.IList), System.Collections.Generic.IList deny = default(System.Collections.Generic.IList))
+
+ {
+ this.Allow = allow;
+ this.Deny = deny;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets allowed request types. The value can be one or more of:
+ /// ClientConnection, ServerConnection, RESTAPI.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "allow")]
+ public System.Collections.Generic.IList Allow {get; set; }
+
+ ///
+ /// Gets or sets denied request types. The value can be one or more of:
+ /// ClientConnection, ServerConnection, RESTAPI.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "deny")]
+ public System.Collections.Generic.IList Deny {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/Operation.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/Operation.cs
new file mode 100644
index 000000000000..47dfbca37af2
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/Operation.cs
@@ -0,0 +1,91 @@
+// 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 System.Linq;
+
+ ///
+ /// REST API operation supported by resource provider.
+ ///
+ public partial class Operation
+ {
+ ///
+ /// Initializes a new instance of the Operation class.
+ ///
+ public Operation()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Operation class.
+ ///
+
+ /// Name of the operation with format: {provider}/{resource}/{operation}
+ ///
+
+ /// If the operation is a data action. (for data plane rbac)
+ ///
+
+ /// The object that describes the operation.
+ ///
+
+ /// Optional. The intended executor of the operation; governs the display of
+ /// the operation in the RBAC UX and the audit logs UX.
+ ///
+
+ /// Extra properties for the operation.
+ ///
+ public Operation(string name = default(string), bool? isDataAction = default(bool?), OperationDisplay display = default(OperationDisplay), string origin = default(string), OperationProperties properties = default(OperationProperties))
+
+ {
+ this.Name = name;
+ this.IsDataAction = isDataAction;
+ this.Display = display;
+ this.Origin = origin;
+ this.Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets name of the operation with format:
+ /// {provider}/{resource}/{operation}
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public string Name {get; set; }
+
+ ///
+ /// Gets or sets if the operation is a data action. (for data plane rbac)
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "isDataAction")]
+ public bool? IsDataAction {get; set; }
+
+ ///
+ /// Gets or sets the object that describes the operation.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "display")]
+ public OperationDisplay Display {get; set; }
+
+ ///
+ /// Gets or sets optional. The intended executor of the operation; governs the
+ /// display of the operation in the RBAC UX and the audit logs UX.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "origin")]
+ public string Origin {get; set; }
+
+ ///
+ /// Gets or sets extra properties for the operation.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties")]
+ public OperationProperties Properties {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/OperationDisplay.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/OperationDisplay.cs
new file mode 100644
index 000000000000..e32955301bdc
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/OperationDisplay.cs
@@ -0,0 +1,78 @@
+// 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 System.Linq;
+
+ ///
+ /// The object that describes a operation.
+ ///
+ public partial class OperationDisplay
+ {
+ ///
+ /// Initializes a new instance of the OperationDisplay class.
+ ///
+ public OperationDisplay()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the OperationDisplay class.
+ ///
+
+ /// Friendly name of the resource provider
+ ///
+
+ /// Resource type on which the operation is performed.
+ ///
+
+ /// The localized friendly name for the operation.
+ ///
+
+ /// The localized friendly description for the operation
+ ///
+ public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string))
+
+ {
+ this.Provider = provider;
+ this.Resource = resource;
+ this.Operation = operation;
+ this.Description = description;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets friendly name of the resource provider
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "provider")]
+ public string Provider {get; set; }
+
+ ///
+ /// Gets or sets resource type on which the operation is performed.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "resource")]
+ public string Resource {get; set; }
+
+ ///
+ /// Gets or sets the localized friendly name for the operation.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "operation")]
+ public string Operation {get; set; }
+
+ ///
+ /// Gets or sets the localized friendly description for the operation
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "description")]
+ public string Description {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/OperationProperties.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/OperationProperties.cs
new file mode 100644
index 000000000000..0983a5fa1e22
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/OperationProperties.cs
@@ -0,0 +1,48 @@
+// 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 System.Linq;
+
+ ///
+ /// Extra Operation properties.
+ ///
+ public partial class OperationProperties
+ {
+ ///
+ /// Initializes a new instance of the OperationProperties class.
+ ///
+ public OperationProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the OperationProperties class.
+ ///
+
+ /// The service specifications.
+ ///
+ public OperationProperties(ServiceSpecification serviceSpecification = default(ServiceSpecification))
+
+ {
+ this.ServiceSpecification = serviceSpecification;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the service specifications.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "serviceSpecification")]
+ public ServiceSpecification ServiceSpecification {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/Page.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/Page.cs
new file mode 100644
index 000000000000..8d9c2c247599
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/Page.cs
@@ -0,0 +1,43 @@
+// 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 a page in Azure responses.
+ ///
+ /// Type of the page content items
+ [Newtonsoft.Json.JsonObject]
+ public class Page : Microsoft.Rest.Azure.IPage
+ {
+ ///
+ /// Gets the link to the next page.
+ ///
+ [Newtonsoft.Json.JsonProperty("nextLink")]
+ public System.String NextPageLink { get; private set; }
+
+ [Newtonsoft.Json.JsonProperty("value")]
+ private System.Collections.Generic.IList Items{ get; set; }
+
+ ///
+ /// Returns an enumerator that iterates through the collection.
+ ///
+ /// A an enumerator that can be used to iterate through the collection.
+ public System.Collections.Generic.IEnumerator GetEnumerator()
+ {
+ return (Items == null) ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator();
+ }
+
+ ///
+ /// Returns an enumerator that iterates through the collection.
+ ///
+ /// A an enumerator that can be used to iterate through the collection.
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpoint.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpoint.cs
new file mode 100644
index 000000000000..4a5cb49ae0b4
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpoint.cs
@@ -0,0 +1,48 @@
+// 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 System.Linq;
+
+ ///
+ /// Private endpoint
+ ///
+ public partial class PrivateEndpoint
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpoint class.
+ ///
+ public PrivateEndpoint()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpoint class.
+ ///
+
+ /// Full qualified Id of the private endpoint
+ ///
+ public PrivateEndpoint(string id = default(string))
+
+ {
+ this.Id = id;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets full qualified Id of the private endpoint
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "id")]
+ public string Id {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointACL.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointACL.cs
new file mode 100644
index 000000000000..f1165bb6b14b
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointACL.cs
@@ -0,0 +1,71 @@
+// 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 System.Linq;
+
+ ///
+ /// ACL for a private endpoint
+ ///
+ public partial class PrivateEndpointACL : NetworkACL
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpointACL class.
+ ///
+ public PrivateEndpointACL()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpointACL class.
+ ///
+
+ /// Allowed request types. The value can be one or more of: ClientConnection,
+ /// ServerConnection, RESTAPI.
+ ///
+
+ /// Denied request types. The value can be one or more of: ClientConnection,
+ /// ServerConnection, RESTAPI.
+ ///
+
+ /// Name of the private endpoint connection
+ ///
+ public PrivateEndpointACL(string name, System.Collections.Generic.IList allow = default(System.Collections.Generic.IList), System.Collections.Generic.IList deny = default(System.Collections.Generic.IList))
+
+ : base(allow, deny)
+ {
+ this.Name = name;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets name of the private endpoint connection
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public string Name {get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (this.Name == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name");
+ }
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointConnection.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointConnection.cs
new file mode 100644
index 000000000000..b4c14960745d
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointConnection.cs
@@ -0,0 +1,91 @@
+// 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 System.Linq;
+
+ ///
+ /// A private endpoint connection to an azure resource
+ ///
+ [Microsoft.Rest.Serialization.JsonTransformation]
+ public partial class PrivateEndpointConnection : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnection class.
+ ///
+ public PrivateEndpointConnection()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnection class.
+ ///
+
+ /// 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 private endpoint connection
+ /// Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled',
+ /// 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
+
+ /// Private endpoint associated with the private endpoint connection
+ ///
+
+ /// Connection state
+ ///
+ 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)
+ {
+ this.SystemData = systemData;
+ this.ProvisioningState = provisioningState;
+ this.PrivateEndpoint = privateEndpoint;
+ this.PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ 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.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData {get; private set; }
+
+ ///
+ /// Gets provisioning state of the private endpoint connection Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState {get; private set; }
+
+ ///
+ /// Gets or sets private endpoint associated with the private endpoint
+ /// connection
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.privateEndpoint")]
+ public PrivateEndpoint PrivateEndpoint {get; set; }
+
+ ///
+ /// Gets or sets connection state
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")]
+ public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointConnectionProperties.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointConnectionProperties.cs
new file mode 100644
index 000000000000..c05bcf4fde2a
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateEndpointConnectionProperties.cs
@@ -0,0 +1,70 @@
+// 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 System.Linq;
+
+ ///
+ /// Private endpoint connection properties
+ ///
+ public partial class PrivateEndpointConnectionProperties
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnectionProperties class.
+ ///
+ public PrivateEndpointConnectionProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnectionProperties class.
+ ///
+
+ /// Provisioning state of the private endpoint connection
+ /// Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled',
+ /// 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
+
+ /// Private endpoint associated with the private endpoint connection
+ ///
+
+ /// Connection state
+ ///
+ public PrivateEndpointConnectionProperties(string provisioningState = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState))
+
+ {
+ this.ProvisioningState = provisioningState;
+ this.PrivateEndpoint = privateEndpoint;
+ this.PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets provisioning state of the private endpoint connection Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")]
+ public string ProvisioningState {get; private set; }
+
+ ///
+ /// Gets or sets private endpoint associated with the private endpoint
+ /// connection
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "privateEndpoint")]
+ public PrivateEndpoint PrivateEndpoint {get; set; }
+
+ ///
+ /// Gets or sets connection state
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "privateLinkServiceConnectionState")]
+ public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkResource.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkResource.cs
new file mode 100644
index 000000000000..750c939d240c
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkResource.cs
@@ -0,0 +1,90 @@
+// 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 System.Linq;
+
+ ///
+ /// Private link resource
+ ///
+ [Microsoft.Rest.Serialization.JsonTransformation]
+ public partial class PrivateLinkResource : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkResource class.
+ ///
+ public PrivateLinkResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkResource class.
+ ///
+
+ /// Fully qualified resource Id for the resource.
+ ///
+
+ /// The name of the resource.
+ ///
+
+ /// The type of the resource - e.g. "Microsoft.SignalRService/SignalR"
+ ///
+
+ /// Group Id of the private link resource
+ ///
+
+ /// Required members of the private link resource
+ ///
+
+ /// Required private DNS zone names
+ ///
+
+ /// 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), System.Collections.Generic.IList requiredMembers = default(System.Collections.Generic.IList), System.Collections.Generic.IList requiredZoneNames = default(System.Collections.Generic.IList), System.Collections.Generic.IList shareablePrivateLinkResourceTypes = default(System.Collections.Generic.IList))
+
+ : base(id, name, type)
+ {
+ this.GroupId = groupId;
+ this.RequiredMembers = requiredMembers;
+ this.RequiredZoneNames = requiredZoneNames;
+ this.ShareablePrivateLinkResourceTypes = shareablePrivateLinkResourceTypes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets group Id of the private link resource
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.groupId")]
+ public string GroupId {get; set; }
+
+ ///
+ /// Gets or sets required members of the private link resource
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.requiredMembers")]
+ public System.Collections.Generic.IList RequiredMembers {get; set; }
+
+ ///
+ /// Gets or sets required private DNS zone names
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.requiredZoneNames")]
+ public System.Collections.Generic.IList RequiredZoneNames {get; set; }
+
+ ///
+ /// Gets or sets the list of resources that are onboarded to private link
+ /// service
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.shareablePrivateLinkResourceTypes")]
+ public System.Collections.Generic.IList ShareablePrivateLinkResourceTypes {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkResourceProperties.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkResourceProperties.cs
new file mode 100644
index 000000000000..df292790b4da
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkResourceProperties.cs
@@ -0,0 +1,79 @@
+// 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 System.Linq;
+
+ ///
+ /// Private link resource properties
+ ///
+ public partial class PrivateLinkResourceProperties
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkResourceProperties class.
+ ///
+ public PrivateLinkResourceProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkResourceProperties class.
+ ///
+
+ /// Group Id of the private link resource
+ ///
+
+ /// Required members of the private link resource
+ ///
+
+ /// Required private DNS zone names
+ ///
+
+ /// The list of resources that are onboarded to private link service
+ ///
+ public PrivateLinkResourceProperties(string groupId = default(string), System.Collections.Generic.IList requiredMembers = default(System.Collections.Generic.IList), System.Collections.Generic.IList requiredZoneNames = default(System.Collections.Generic.IList), System.Collections.Generic.IList shareablePrivateLinkResourceTypes = default(System.Collections.Generic.IList))
+
+ {
+ this.GroupId = groupId;
+ this.RequiredMembers = requiredMembers;
+ this.RequiredZoneNames = requiredZoneNames;
+ this.ShareablePrivateLinkResourceTypes = shareablePrivateLinkResourceTypes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets group Id of the private link resource
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "groupId")]
+ public string GroupId {get; set; }
+
+ ///
+ /// Gets or sets required members of the private link resource
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "requiredMembers")]
+ public System.Collections.Generic.IList RequiredMembers {get; set; }
+
+ ///
+ /// Gets or sets required private DNS zone names
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "requiredZoneNames")]
+ public System.Collections.Generic.IList RequiredZoneNames {get; set; }
+
+ ///
+ /// Gets or sets the list of resources that are onboarded to private link
+ /// service
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "shareablePrivateLinkResourceTypes")]
+ public System.Collections.Generic.IList ShareablePrivateLinkResourceTypes {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkServiceConnectionState.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkServiceConnectionState.cs
new file mode 100644
index 000000000000..0484a195bec4
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkServiceConnectionState.cs
@@ -0,0 +1,72 @@
+// 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 System.Linq;
+
+ ///
+ /// Connection state of the private endpoint connection
+ ///
+ public partial class PrivateLinkServiceConnectionState
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkServiceConnectionState class.
+ ///
+ public PrivateLinkServiceConnectionState()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkServiceConnectionState class.
+ ///
+
+ /// Indicates whether the connection has been Approved/Rejected/Removed by the
+ /// owner of the service.
+ /// Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
+
+ /// The reason for approval/rejection of the connection.
+ ///
+
+ /// A message indicating if changes on the service provider require any updates
+ /// on the consumer.
+ ///
+ public PrivateLinkServiceConnectionState(string status = default(string), string description = default(string), string actionsRequired = default(string))
+
+ {
+ this.Status = status;
+ this.Description = description;
+ this.ActionsRequired = actionsRequired;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets indicates whether the connection has been
+ /// Approved/Rejected/Removed by the owner of the service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "status")]
+ public string Status {get; set; }
+
+ ///
+ /// Gets or sets the reason for approval/rejection of the connection.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "description")]
+ public string Description {get; set; }
+
+ ///
+ /// Gets or sets a message indicating if changes on the service provider
+ /// require any updates on the consumer.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "actionsRequired")]
+ public string ActionsRequired {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkServiceConnectionStatus.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkServiceConnectionStatus.cs
new file mode 100644
index 000000000000..79c82d8a924d
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/PrivateLinkServiceConnectionStatus.cs
@@ -0,0 +1,21 @@
+// 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 PrivateLinkServiceConnectionStatus.
+ ///
+
+
+ public static class PrivateLinkServiceConnectionStatus
+ {
+ public const string Pending = "Pending";
+ public const string Approved = "Approved";
+ public const string Rejected = "Rejected";
+ public const string Disconnected = "Disconnected";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ProvisioningState.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ProvisioningState.cs
new file mode 100644
index 000000000000..e3f944c269ba
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ProvisioningState.cs
@@ -0,0 +1,26 @@
+// 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 ProvisioningState.
+ ///
+
+
+ public static class ProvisioningState
+ {
+ public const string Unknown = "Unknown";
+ public const string Succeeded = "Succeeded";
+ public const string Failed = "Failed";
+ public const string Canceled = "Canceled";
+ public const string Running = "Running";
+ public const string Creating = "Creating";
+ public const string Updating = "Updating";
+ public const string Deleting = "Deleting";
+ public const string Moving = "Moving";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ProxyResource.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ProxyResource.cs
new file mode 100644
index 000000000000..79e439aa0131
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ProxyResource.cs
@@ -0,0 +1,49 @@
+// 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 System.Linq;
+
+ ///
+ /// The resource model definition for a ARM proxy resource. It will have
+ /// everything other than required location and tags
+ ///
+ public partial class ProxyResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ public ProxyResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+
+ /// Fully qualified resource Id for the resource.
+ ///
+
+ /// The name of the resource.
+ ///
+
+ /// The type of the resource - e.g. "Microsoft.SignalRService/SignalR"
+ ///
+ public ProxyResource(string id = default(string), string name = default(string), string type = default(string))
+
+ : base(id, name, type)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/RegenerateKeyParameters.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/RegenerateKeyParameters.cs
new file mode 100644
index 000000000000..505cbfcf668f
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/RegenerateKeyParameters.cs
@@ -0,0 +1,50 @@
+// 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 System.Linq;
+
+ ///
+ /// Parameters describes the request to regenerate access keys
+ ///
+ public partial class RegenerateKeyParameters
+ {
+ ///
+ /// Initializes a new instance of the RegenerateKeyParameters class.
+ ///
+ public RegenerateKeyParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RegenerateKeyParameters class.
+ ///
+
+ /// The keyType to regenerate. Must be either 'primary' or
+ /// 'secondary'(case-insensitive).
+ /// Possible values include: 'Primary', 'Secondary'
+ public RegenerateKeyParameters(string keyType = default(string))
+
+ {
+ this.KeyType = keyType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the keyType to regenerate. Must be either 'primary' or
+ /// 'secondary'(case-insensitive). Possible values include: 'Primary', 'Secondary'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "keyType")]
+ public string KeyType {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/Resource.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/Resource.cs
new file mode 100644
index 000000000000..b92614cf3ba7
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/Resource.cs
@@ -0,0 +1,68 @@
+// 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 System.Linq;
+
+ ///
+ /// The core properties of ARM resources.
+ ///
+ public partial class Resource : Microsoft.Rest.Azure.IResource
+ {
+ ///
+ /// Initializes a new instance of the Resource class.
+ ///
+ public Resource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Resource class.
+ ///
+
+ /// Fully qualified resource Id for the resource.
+ ///
+
+ /// The name of the resource.
+ ///
+
+ /// The type of the resource - e.g. "Microsoft.SignalRService/SignalR"
+ ///
+ public Resource(string id = default(string), string name = default(string), string type = default(string))
+
+ {
+ this.Id = id;
+ this.Name = name;
+ this.Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets fully qualified resource Id for the resource.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "id")]
+ public string Id {get; private set; }
+
+ ///
+ /// Gets the name of the resource.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public string Name {get; private set; }
+
+ ///
+ /// Gets the type of the resource - e.g. "Microsoft.SignalRService/SignalR"
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "type")]
+ public string Type {get; private set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ResourceSku.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ResourceSku.cs
new file mode 100644
index 000000000000..515a9c3eee1f
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ResourceSku.cs
@@ -0,0 +1,116 @@
+// 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 System.Linq;
+
+ ///
+ /// The billing information of the resource.
+ ///
+ public partial class ResourceSku
+ {
+ ///
+ /// Initializes a new instance of the ResourceSku class.
+ ///
+ public ResourceSku()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ResourceSku class.
+ ///
+
+ /// The name of the SKU. Required.
+ /// Allowed values: Standard_S1, Free_F1
+ ///
+
+ /// Optional tier of this particular SKU. 'Standard' or 'Free'.
+ /// `Basic` is deprecated, use `Standard` instead.
+ /// Possible values include: 'Free', 'Basic', 'Standard', 'Premium'
+
+ /// Not used. Retained for future use.
+ ///
+
+ /// Not used. Retained for future use.
+ ///
+
+ /// Optional, integer. The unit count of the resource. 1 by default.
+ /// If present, following values are allowed:
+ /// Free: 1
+ /// Standard: 1,2,5,10,20,50,100
+ ///
+ public ResourceSku(string name, string tier = default(string), string size = default(string), string family = default(string), int? capacity = default(int?))
+
+ {
+ this.Name = name;
+ this.Tier = tier;
+ this.Size = size;
+ this.Family = family;
+ this.Capacity = capacity;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the name of the SKU. Required.
+ /// Allowed values: Standard_S1, Free_F1
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public string Name {get; set; }
+
+ ///
+ /// Gets or sets optional tier of this particular SKU. 'Standard' or 'Free'.
+ /// `Basic` is deprecated, use `Standard` instead. Possible values include: 'Free', 'Basic', 'Standard', 'Premium'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "tier")]
+ public string Tier {get; set; }
+
+ ///
+ /// Gets not used. Retained for future use.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "size")]
+ public string Size {get; private set; }
+
+ ///
+ /// Gets not used. Retained for future use.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "family")]
+ public string Family {get; private set; }
+
+ ///
+ /// Gets or sets optional, integer. The unit count of the resource. 1 by
+ /// default.
+ /// If present, following values are allowed:
+ /// Free: 1
+ /// Standard: 1,2,5,10,20,50,100
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "capacity")]
+ public int? Capacity {get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (this.Name == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name");
+ }
+
+
+
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServerlessUpstreamSettings.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServerlessUpstreamSettings.cs
new file mode 100644
index 000000000000..aba5144565a5
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServerlessUpstreamSettings.cs
@@ -0,0 +1,50 @@
+// 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 System.Linq;
+
+ ///
+ /// The settings for the Upstream when the service is in server-less mode.
+ ///
+ public partial class ServerlessUpstreamSettings
+ {
+ ///
+ /// Initializes a new instance of the ServerlessUpstreamSettings class.
+ ///
+ public ServerlessUpstreamSettings()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ServerlessUpstreamSettings class.
+ ///
+
+ /// Gets or sets the list of Upstream URL templates. Order matters, and the
+ /// first matching template takes effects.
+ ///
+ public ServerlessUpstreamSettings(System.Collections.Generic.IList templates = default(System.Collections.Generic.IList))
+
+ {
+ this.Templates = templates;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets gets or sets the list of Upstream URL templates. Order
+ /// matters, and the first matching template takes effects.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "templates")]
+ public System.Collections.Generic.IList Templates {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServiceKind.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServiceKind.cs
new file mode 100644
index 000000000000..131d7effdb16
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServiceKind.cs
@@ -0,0 +1,19 @@
+// 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 ServiceKind.
+ ///
+
+
+ public static class ServiceKind
+ {
+ public const string SignalR = "SignalR";
+ public const string RawWebSockets = "RawWebSockets";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServiceSpecification.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServiceSpecification.cs
new file mode 100644
index 000000000000..f2d5511361da
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ServiceSpecification.cs
@@ -0,0 +1,58 @@
+// 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 System.Linq;
+
+ ///
+ /// An object that describes a specification.
+ ///
+ public partial class ServiceSpecification
+ {
+ ///
+ /// Initializes a new instance of the ServiceSpecification class.
+ ///
+ public ServiceSpecification()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ServiceSpecification class.
+ ///
+
+ /// Specifications of the Metrics for Azure Monitoring.
+ ///
+
+ /// Specifications of the Logs for Azure Monitoring.
+ ///
+ public ServiceSpecification(System.Collections.Generic.IList metricSpecifications = default(System.Collections.Generic.IList), System.Collections.Generic.IList logSpecifications = default(System.Collections.Generic.IList))
+
+ {
+ this.MetricSpecifications = metricSpecifications;
+ this.LogSpecifications = logSpecifications;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets specifications of the Metrics for Azure Monitoring.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "metricSpecifications")]
+ public System.Collections.Generic.IList MetricSpecifications {get; set; }
+
+ ///
+ /// Gets or sets specifications of the Logs for Azure Monitoring.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "logSpecifications")]
+ public System.Collections.Generic.IList LogSpecifications {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ShareablePrivateLinkResourceProperties.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ShareablePrivateLinkResourceProperties.cs
new file mode 100644
index 000000000000..c79d835fa7f1
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ShareablePrivateLinkResourceProperties.cs
@@ -0,0 +1,75 @@
+// 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 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))
+
+ {
+ this.Description = description;
+ this.GroupId = groupId;
+ this.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
+ ///
+ [Newtonsoft.Json.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
+ ///
+ [Newtonsoft.Json.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
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "type")]
+ public string Type {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/ShareablePrivateLinkResourceType.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ShareablePrivateLinkResourceType.cs
new file mode 100644
index 000000000000..bb6563abc1e3
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/ShareablePrivateLinkResourceType.cs
@@ -0,0 +1,62 @@
+// 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 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))
+
+ {
+ this.Name = name;
+ this.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
+ ///
+ [Newtonsoft.Json.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
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties")]
+ public ShareablePrivateLinkResourceProperties Properties {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResource.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResource.cs
new file mode 100644
index 000000000000..f71f9bc58b22
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResource.cs
@@ -0,0 +1,116 @@
+// 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 System.Linq;
+
+ ///
+ /// Describes a Shared Private Link Resource
+ ///
+ [Microsoft.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.
+ ///
+
+ /// 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 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
+ ///
+
+ /// 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 id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string provisioningState = default(string), string groupId = default(string), string privateLinkResourceId = default(string), string requestMessage = default(string), string status = default(string))
+
+ : base(id, name, type)
+ {
+ this.SystemData = systemData;
+ this.ProvisioningState = provisioningState;
+ this.GroupId = groupId;
+ this.PrivateLinkResourceId = privateLinkResourceId;
+ this.RequestMessage = requestMessage;
+ this.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.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData {get; private set; }
+
+ ///
+ /// Gets provisioning state of the shared private link resource Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState {get; private set; }
+
+ ///
+ /// Gets or sets the group id from the provider of resource the shared private
+ /// link resource is for
+ ///
+ [Newtonsoft.Json.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
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.privateLinkResourceId")]
+ public string PrivateLinkResourceId {get; set; }
+
+ ///
+ /// Gets or sets the request message for requesting approval of the shared
+ /// private link resource
+ ///
+ [Newtonsoft.Json.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'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.status")]
+ public string Status {get; private set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResourceProperties.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResourceProperties.cs
new file mode 100644
index 000000000000..bebe80f61182
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResourceProperties.cs
@@ -0,0 +1,117 @@
+// 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 System.Linq;
+
+ ///
+ /// Describes the properties of an existing Shared Private Link Resource
+ ///
+ public partial class SharedPrivateLinkResourceProperties
+ {
+ ///
+ /// Initializes a new instance of the SharedPrivateLinkResourceProperties class.
+ ///
+ public SharedPrivateLinkResourceProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SharedPrivateLinkResourceProperties 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
+ ///
+
+ /// 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 SharedPrivateLinkResourceProperties(string groupId, string privateLinkResourceId, string provisioningState = default(string), string requestMessage = default(string), string status = default(string))
+
+ {
+ this.GroupId = groupId;
+ this.PrivateLinkResourceId = privateLinkResourceId;
+ this.ProvisioningState = provisioningState;
+ this.RequestMessage = requestMessage;
+ this.Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the group id from the provider of resource the shared private
+ /// link resource is for
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "groupId")]
+ public string GroupId {get; set; }
+
+ ///
+ /// Gets or sets the resource id of the resource the shared private link
+ /// resource is for
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "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'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")]
+ public string ProvisioningState {get; private set; }
+
+ ///
+ /// Gets or sets the request message for requesting approval of the shared
+ /// private link resource
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "requestMessage")]
+ public string RequestMessage {get; set; }
+
+ ///
+ /// Gets status of the shared private link resource Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "status")]
+ public string Status {get; private set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (this.GroupId == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "GroupId");
+ }
+ if (this.PrivateLinkResourceId == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "PrivateLinkResourceId");
+ }
+
+
+
+
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResourceStatus.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResourceStatus.cs
new file mode 100644
index 000000000000..62fd7d68efb1
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SharedPrivateLinkResourceStatus.cs
@@ -0,0 +1,22 @@
+// 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";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRCorsSettings.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRCorsSettings.cs
new file mode 100644
index 000000000000..f224105ca812
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRCorsSettings.cs
@@ -0,0 +1,52 @@
+// 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 System.Linq;
+
+ ///
+ /// Cross-Origin Resource Sharing (CORS) settings.
+ ///
+ public partial class SignalRCorsSettings
+ {
+ ///
+ /// Initializes a new instance of the SignalRCorsSettings class.
+ ///
+ public SignalRCorsSettings()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRCorsSettings class.
+ ///
+
+ /// Gets or sets the list of origins that should be allowed to make
+ /// cross-origin calls (for example: http://example.com:12345). Use "*" to
+ /// allow all. If omitted, allow all by default.
+ ///
+ public SignalRCorsSettings(System.Collections.Generic.IList allowedOrigins = default(System.Collections.Generic.IList))
+
+ {
+ this.AllowedOrigins = allowedOrigins;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets gets or sets the list of origins that should be allowed to
+ /// make cross-origin calls (for example: http://example.com:12345). Use "*" to
+ /// allow all. If omitted, allow all by default.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "allowedOrigins")]
+ public System.Collections.Generic.IList AllowedOrigins {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRFeature.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRFeature.cs
new file mode 100644
index 000000000000..d3c8835ac3d0
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRFeature.cs
@@ -0,0 +1,132 @@
+// 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 System.Linq;
+
+ ///
+ /// Feature of a SignalR resource, which controls the SignalR runtime behavior.
+ ///
+ public partial class SignalRFeature
+ {
+ ///
+ /// Initializes a new instance of the SignalRFeature class.
+ ///
+ public SignalRFeature()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRFeature class.
+ ///
+
+ /// FeatureFlags is the supported features of Azure SignalR service.
+ /// - ServiceMode: Flag for backend server for SignalR service. Values allowed:
+ /// "Default": have your own backend server; "Serverless": your application
+ /// doesn't have a backend server; "Classic": for backward compatibility.
+ /// Support both Default and Serverless mode but not recommended;
+ /// "PredefinedOnly": for future use.
+ /// - EnableConnectivityLogs: "true"/"false", to enable/disable the
+ /// connectivity log category respectively.
+ /// - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity
+ /// log category respectively.
+ /// - EnableLiveTrace: Live Trace allows you to know what's happening inside
+ /// Azure SignalR service, it will give you live traces in real time, it will
+ /// be helpful when you developing your own Azure SignalR based web application
+ /// or self-troubleshooting some issues. Please note that live traces are
+ /// counted as outbound messages that will be charged. Values allowed:
+ /// "true"/"false", to enable/disable live trace feature.
+ /// 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.
+ ///
+
+ /// Optional properties related to this feature.
+ ///
+ public SignalRFeature(string flag, string value, System.Collections.Generic.IDictionary properties = default(System.Collections.Generic.IDictionary))
+
+ {
+ this.Flag = flag;
+ this.Value = value;
+ this.Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets featureFlags is the supported features of Azure SignalR
+ /// service.
+ /// - ServiceMode: Flag for backend server for SignalR service. Values allowed:
+ /// "Default": have your own backend server; "Serverless": your application
+ /// doesn't have a backend server; "Classic": for backward compatibility.
+ /// Support both Default and Serverless mode but not recommended;
+ /// "PredefinedOnly": for future use.
+ /// - EnableConnectivityLogs: "true"/"false", to enable/disable the
+ /// connectivity log category respectively.
+ /// - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity
+ /// log category respectively.
+ /// - EnableLiveTrace: Live Trace allows you to know what's happening inside
+ /// Azure SignalR service, it will give you live traces in real time, it will
+ /// be helpful when you developing your own Azure SignalR based web application
+ /// or self-troubleshooting some issues. Please note that live traces are
+ /// counted as outbound messages that will be charged. Values allowed:
+ /// "true"/"false", to enable/disable live trace feature. Possible values include: 'ServiceMode', 'EnableConnectivityLogs', 'EnableMessagingLogs', 'EnableLiveTrace'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "flag")]
+ public string Flag {get; set; }
+
+ ///
+ /// Gets or sets value of the feature flag. See Azure SignalR service document
+ /// https://docs.microsoft.com/azure/azure-signalr/ for allowed values.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "value")]
+ public string Value {get; set; }
+
+ ///
+ /// Gets or sets optional properties related to this feature.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties")]
+ public System.Collections.Generic.IDictionary Properties {get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (this.Flag == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Flag");
+ }
+ if (this.Value == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Value");
+ }
+
+ if (this.Value != null)
+ {
+ if (this.Value.Length > 128)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "Value", 128);
+ }
+ if (this.Value.Length < 1)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Value", 1);
+ }
+ }
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRKeys.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRKeys.cs
new file mode 100644
index 000000000000..eb92bcc50bd0
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRKeys.cs
@@ -0,0 +1,78 @@
+// 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 System.Linq;
+
+ ///
+ /// A class represents the access keys of the resource.
+ ///
+ public partial class SignalRKeys
+ {
+ ///
+ /// Initializes a new instance of the SignalRKeys class.
+ ///
+ public SignalRKeys()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRKeys class.
+ ///
+
+ /// The primary access key.
+ ///
+
+ /// The secondary access key.
+ ///
+
+ /// 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))
+
+ {
+ this.PrimaryKey = primaryKey;
+ this.SecondaryKey = secondaryKey;
+ this.PrimaryConnectionString = primaryConnectionString;
+ this.SecondaryConnectionString = secondaryConnectionString;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the primary access key.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "primaryKey")]
+ public string PrimaryKey {get; set; }
+
+ ///
+ /// Gets or sets the secondary access key.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "secondaryKey")]
+ public string SecondaryKey {get; set; }
+
+ ///
+ /// Gets or sets connection string constructed via the primaryKey
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "primaryConnectionString")]
+ public string PrimaryConnectionString {get; set; }
+
+ ///
+ /// Gets or sets connection string constructed via the secondaryKey
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "secondaryConnectionString")]
+ public string SecondaryConnectionString {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRNetworkACLs.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRNetworkACLs.cs
new file mode 100644
index 000000000000..22bc69d6f383
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRNetworkACLs.cs
@@ -0,0 +1,68 @@
+// 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 System.Linq;
+
+ ///
+ /// Network ACLs for the resource
+ ///
+ public partial class SignalRNetworkACLs
+ {
+ ///
+ /// Initializes a new instance of the SignalRNetworkACLs class.
+ ///
+ public SignalRNetworkACLs()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRNetworkACLs class.
+ ///
+
+ /// Default action when no other rule matches
+ /// Possible values include: 'Allow', 'Deny'
+
+ /// ACL for requests from public network
+ ///
+
+ /// ACLs for requests from private endpoints
+ ///
+ public SignalRNetworkACLs(string defaultAction = default(string), NetworkACL publicNetwork = default(NetworkACL), System.Collections.Generic.IList privateEndpoints = default(System.Collections.Generic.IList))
+
+ {
+ this.DefaultAction = defaultAction;
+ this.PublicNetwork = publicNetwork;
+ this.PrivateEndpoints = privateEndpoints;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets default action when no other rule matches Possible values include: 'Allow', 'Deny'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "defaultAction")]
+ public string DefaultAction {get; set; }
+
+ ///
+ /// Gets or sets aCL for requests from public network
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "publicNetwork")]
+ public NetworkACL PublicNetwork {get; set; }
+
+ ///
+ /// Gets or sets aCLs for requests from private endpoints
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "privateEndpoints")]
+ public System.Collections.Generic.IList PrivateEndpoints {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRProperties.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRProperties.cs
new file mode 100644
index 000000000000..977cae3aa0c8
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRProperties.cs
@@ -0,0 +1,189 @@
+// 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 System.Linq;
+
+ ///
+ /// A class that describes the properties of the resource
+ ///
+ public partial class SignalRProperties
+ {
+ ///
+ /// Initializes a new instance of the SignalRProperties class.
+ ///
+ public SignalRProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRProperties class.
+ ///
+
+ /// 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, 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 service is in server-less mode.
+ ///
+
+ /// Network ACLs
+ ///
+ public SignalRProperties(string provisioningState = default(string), string externalIP = default(string), string hostName = default(string), int? publicPort = default(int?), int? serverPort = default(int?), string version = default(string), System.Collections.Generic.IList privateEndpointConnections = default(System.Collections.Generic.IList), System.Collections.Generic.IList sharedPrivateLinkResources = default(System.Collections.Generic.IList), SignalRTlsSettings tls = default(SignalRTlsSettings), System.Collections.Generic.IList features = default(System.Collections.Generic.IList), SignalRCorsSettings cors = default(SignalRCorsSettings), ServerlessUpstreamSettings upstream = default(ServerlessUpstreamSettings), SignalRNetworkACLs networkAcLs = default(SignalRNetworkACLs))
+
+ {
+ this.ProvisioningState = provisioningState;
+ this.ExternalIP = externalIP;
+ this.HostName = hostName;
+ this.PublicPort = publicPort;
+ this.ServerPort = serverPort;
+ this.Version = version;
+ this.PrivateEndpointConnections = privateEndpointConnections;
+ this.SharedPrivateLinkResources = sharedPrivateLinkResources;
+ this.Tls = tls;
+ this.Features = features;
+ this.Cors = cors;
+ this.Upstream = upstream;
+ this.NetworkAcLs = networkAcLs;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")]
+ public string ProvisioningState {get; private set; }
+
+ ///
+ /// Gets the publicly accessible IP of the resource.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "externalIP")]
+ public string ExternalIP {get; private set; }
+
+ ///
+ /// Gets fQDN of the service instance.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "hostName")]
+ public string HostName {get; private set; }
+
+ ///
+ /// Gets the publicly accessible port of the resource which is designed for
+ /// browser/client side usage.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "publicPort")]
+ public int? PublicPort {get; private set; }
+
+ ///
+ /// Gets the publicly accessible port of the resource which is designed for
+ /// customer server side usage.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "serverPort")]
+ public int? ServerPort {get; private set; }
+
+ ///
+ /// Gets version of the resource. Probably you need the same or higher version
+ /// of client SDKs.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "version")]
+ public string Version {get; private set; }
+
+ ///
+ /// Gets private endpoint connections to the resource.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "privateEndpointConnections")]
+ public System.Collections.Generic.IList PrivateEndpointConnections {get; private set; }
+
+ ///
+ /// Gets the list of shared private link resources.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "sharedPrivateLinkResources")]
+ public System.Collections.Generic.IList SharedPrivateLinkResources {get; private set; }
+
+ ///
+ /// Gets or sets tLS settings.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "tls")]
+ public SignalRTlsSettings Tls {get; set; }
+
+ ///
+ /// 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.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "features")]
+ public System.Collections.Generic.IList Features {get; set; }
+
+ ///
+ /// Gets or sets cross-Origin Resource Sharing (CORS) settings.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "cors")]
+ public SignalRCorsSettings Cors {get; set; }
+
+ ///
+ /// Gets or sets upstream settings when the service is in server-less mode.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "upstream")]
+ public ServerlessUpstreamSettings Upstream {get; set; }
+
+ ///
+ /// Gets or sets network ACLs
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "networkACLs")]
+ public SignalRNetworkACLs NetworkAcLs {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRRequestType.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRRequestType.cs
new file mode 100644
index 000000000000..0d2cfa9fa4b8
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRRequestType.cs
@@ -0,0 +1,21 @@
+// 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 SignalRRequestType.
+ ///
+
+
+ public static class SignalRRequestType
+ {
+ public const string ClientConnection = "ClientConnection";
+ public const string ServerConnection = "ServerConnection";
+ public const string Restapi = "RESTAPI";
+ public const string Trace = "Trace";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRResource.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRResource.cs
new file mode 100644
index 000000000000..51af32397e80
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRResource.cs
@@ -0,0 +1,286 @@
+// 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 System.Linq;
+
+ ///
+ /// A class represent a resource.
+ ///
+ [Microsoft.Rest.Serialization.JsonTransformation]
+ public partial class SignalRResource : TrackedResource
+ {
+ ///
+ /// Initializes a new instance of the SignalRResource class.
+ ///
+ public SignalRResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRResource class.
+ ///
+
+ /// Fully qualified resource Id for the resource.
+ ///
+
+ /// The name of the resource.
+ ///
+
+ /// The type of the resource - e.g. "Microsoft.SignalRService/SignalR"
+ ///
+
+ /// 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)
+ ///
+
+ /// The kind of the service - e.g. "SignalR" for
+ /// "Microsoft.SignalRService/SignalR"
+ /// Possible values include: 'SignalR', 'RawWebSockets'
+
+ /// The managed identity response
+ ///
+
+ /// Metadata pertaining to creation and last modification of the resource.
+ ///
+
+ /// 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, 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 service is in server-less mode.
+ ///
+
+ /// Network ACLs
+ ///
+ public SignalRResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), ResourceSku sku = default(ResourceSku), string kind = default(string), ManagedIdentity identity = default(ManagedIdentity), SystemData systemData = default(SystemData), string provisioningState = default(string), string externalIP = default(string), string hostName = default(string), int? publicPort = default(int?), int? serverPort = default(int?), string version = default(string), System.Collections.Generic.IList privateEndpointConnections = default(System.Collections.Generic.IList), System.Collections.Generic.IList sharedPrivateLinkResources = default(System.Collections.Generic.IList), SignalRTlsSettings tls = default(SignalRTlsSettings), System.Collections.Generic.IList features = default(System.Collections.Generic.IList), SignalRCorsSettings cors = default(SignalRCorsSettings), ServerlessUpstreamSettings upstream = default(ServerlessUpstreamSettings), SignalRNetworkACLs networkAcLs = default(SignalRNetworkACLs))
+
+ : base(id, name, type, location, tags)
+ {
+ this.Sku = sku;
+ this.Kind = kind;
+ this.Identity = identity;
+ this.SystemData = systemData;
+ this.ProvisioningState = provisioningState;
+ this.ExternalIP = externalIP;
+ this.HostName = hostName;
+ this.PublicPort = publicPort;
+ this.ServerPort = serverPort;
+ this.Version = version;
+ this.PrivateEndpointConnections = privateEndpointConnections;
+ this.SharedPrivateLinkResources = sharedPrivateLinkResources;
+ this.Tls = tls;
+ this.Features = features;
+ this.Cors = cors;
+ this.Upstream = upstream;
+ this.NetworkAcLs = networkAcLs;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the billing information of the resource.(e.g. Free, Standard)
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "sku")]
+ public ResourceSku Sku {get; set; }
+
+ ///
+ /// Gets or sets the kind of the service - e.g. "SignalR" for
+ /// "Microsoft.SignalRService/SignalR" Possible values include: 'SignalR', 'RawWebSockets'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "kind")]
+ public string Kind {get; set; }
+
+ ///
+ /// Gets or sets the managed identity response
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "identity")]
+ public ManagedIdentity Identity {get; set; }
+
+ ///
+ /// Gets metadata pertaining to creation and last modification of the resource.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData {get; private set; }
+
+ ///
+ /// Gets provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState {get; private set; }
+
+ ///
+ /// Gets the publicly accessible IP of the resource.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.externalIP")]
+ public string ExternalIP {get; private set; }
+
+ ///
+ /// Gets fQDN of the service instance.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.hostName")]
+ public string HostName {get; private set; }
+
+ ///
+ /// Gets the publicly accessible port of the resource which is designed for
+ /// browser/client side usage.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.publicPort")]
+ public int? PublicPort {get; private set; }
+
+ ///
+ /// Gets the publicly accessible port of the resource which is designed for
+ /// customer server side usage.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.serverPort")]
+ public int? ServerPort {get; private set; }
+
+ ///
+ /// Gets version of the resource. Probably you need the same or higher version
+ /// of client SDKs.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.version")]
+ public string Version {get; private set; }
+
+ ///
+ /// Gets private endpoint connections to the resource.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.privateEndpointConnections")]
+ public System.Collections.Generic.IList PrivateEndpointConnections {get; private set; }
+
+ ///
+ /// Gets the list of shared private link resources.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.sharedPrivateLinkResources")]
+ public System.Collections.Generic.IList SharedPrivateLinkResources {get; private set; }
+
+ ///
+ /// Gets or sets tLS settings.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.tls")]
+ public SignalRTlsSettings Tls {get; set; }
+
+ ///
+ /// 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.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.features")]
+ public System.Collections.Generic.IList Features {get; set; }
+
+ ///
+ /// Gets or sets cross-Origin Resource Sharing (CORS) settings.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.cors")]
+ public SignalRCorsSettings Cors {get; set; }
+
+ ///
+ /// Gets or sets upstream settings when the service is in server-less mode.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.upstream")]
+ public ServerlessUpstreamSettings Upstream {get; set; }
+
+ ///
+ /// Gets or sets network ACLs
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "properties.networkACLs")]
+ public SignalRNetworkACLs NetworkAcLs {get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (this.Sku != null)
+ {
+ this.Sku.Validate();
+ }
+
+
+
+
+
+
+
+
+
+
+ if (this.Features != null)
+ {
+ foreach (var element in this.Features)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+
+
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRSkuTier.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRSkuTier.cs
new file mode 100644
index 000000000000..6d16ca71fa9d
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRSkuTier.cs
@@ -0,0 +1,21 @@
+// 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 SignalRSkuTier.
+ ///
+
+
+ public static class SignalRSkuTier
+ {
+ public const string Free = "Free";
+ public const string Basic = "Basic";
+ public const string Standard = "Standard";
+ public const string Premium = "Premium";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRTlsSettings.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRTlsSettings.cs
new file mode 100644
index 000000000000..a942ac44d28d
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRTlsSettings.cs
@@ -0,0 +1,48 @@
+// 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 System.Linq;
+
+ ///
+ /// TLS settings for the resource
+ ///
+ public partial class SignalRTlsSettings
+ {
+ ///
+ /// Initializes a new instance of the SignalRTlsSettings class.
+ ///
+ public SignalRTlsSettings()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRTlsSettings class.
+ ///
+
+ /// Request client certificate during TLS handshake if enabled
+ ///
+ public SignalRTlsSettings(bool? clientCertEnabled = default(bool?))
+
+ {
+ this.ClientCertEnabled = clientCertEnabled;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets request client certificate during TLS handshake if enabled
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "clientCertEnabled")]
+ public bool? ClientCertEnabled {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRUsage.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRUsage.cs
new file mode 100644
index 000000000000..a173485d4ce6
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRUsage.cs
@@ -0,0 +1,93 @@
+// 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 System.Linq;
+
+ ///
+ /// Object that describes a specific usage of the resources.
+ ///
+ public partial class SignalRUsage
+ {
+ ///
+ /// Initializes a new instance of the SignalRUsage class.
+ ///
+ public SignalRUsage()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRUsage class.
+ ///
+
+ /// Fully qualified ARM resource id
+ ///
+
+ /// Current value for the usage quota.
+ ///
+
+ /// The maximum permitted value for the usage quota. If there is no limit, this
+ /// value will be -1.
+ ///
+
+ /// Localizable String object containing the name and a localized value.
+ ///
+
+ /// Representing the units of the usage quota. Possible values are: Count,
+ /// Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.
+ ///
+ public SignalRUsage(string id = default(string), long? currentValue = default(long?), long? limit = default(long?), SignalRUsageName name = default(SignalRUsageName), string unit = default(string))
+
+ {
+ this.Id = id;
+ this.CurrentValue = currentValue;
+ this.Limit = limit;
+ this.Name = name;
+ this.Unit = unit;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets fully qualified ARM resource id
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "id")]
+ public string Id {get; set; }
+
+ ///
+ /// Gets or sets current value for the usage quota.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "currentValue")]
+ public long? CurrentValue {get; set; }
+
+ ///
+ /// Gets or sets the maximum permitted value for the usage quota. If there is
+ /// no limit, this value will be -1.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "limit")]
+ public long? Limit {get; set; }
+
+ ///
+ /// Gets or sets localizable String object containing the name and a localized
+ /// value.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "name")]
+ public SignalRUsageName Name {get; set; }
+
+ ///
+ /// Gets or sets representing the units of the usage quota. Possible values
+ /// are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "unit")]
+ public string Unit {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRUsageName.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRUsageName.cs
new file mode 100644
index 000000000000..43bb18df07a7
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SignalRUsageName.cs
@@ -0,0 +1,58 @@
+// 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 System.Linq;
+
+ ///
+ /// Localizable String object containing the name and a localized value.
+ ///
+ public partial class SignalRUsageName
+ {
+ ///
+ /// Initializes a new instance of the SignalRUsageName class.
+ ///
+ public SignalRUsageName()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignalRUsageName class.
+ ///
+
+ /// The identifier of the usage.
+ ///
+
+ /// Localized name of the usage.
+ ///
+ public SignalRUsageName(string value = default(string), string localizedValue = default(string))
+
+ {
+ this.Value = value;
+ this.LocalizedValue = localizedValue;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the identifier of the usage.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "value")]
+ public string Value {get; set; }
+
+ ///
+ /// Gets or sets localized name of the usage.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "localizedValue")]
+ public string LocalizedValue {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/SystemData.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SystemData.cs
new file mode 100644
index 000000000000..ff603fa47f0f
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/SystemData.cs
@@ -0,0 +1,98 @@
+// 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 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.DateTimeOffset? createdAt = default(System.DateTimeOffset?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTimeOffset? lastModifiedAt = default(System.DateTimeOffset?))
+
+ {
+ this.CreatedBy = createdBy;
+ this.CreatedByType = createdByType;
+ this.CreatedAt = createdAt;
+ this.LastModifiedBy = lastModifiedBy;
+ this.LastModifiedByType = lastModifiedByType;
+ this.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.
+ ///
+ [Newtonsoft.Json.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'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "createdByType")]
+ public string CreatedByType {get; set; }
+
+ ///
+ /// Gets or sets the timestamp of resource creation (UTC).
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "createdAt")]
+ public System.DateTimeOffset? CreatedAt {get; set; }
+
+ ///
+ /// Gets or sets the identity that last modified the resource.
+ ///
+ [Newtonsoft.Json.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'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "lastModifiedByType")]
+ public string LastModifiedByType {get; set; }
+
+ ///
+ /// Gets or sets the timestamp of resource last modification (UTC)
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "lastModifiedAt")]
+ public System.DateTimeOffset? LastModifiedAt {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/TrackedResource.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/TrackedResource.cs
new file mode 100644
index 000000000000..6c5c4b9b3492
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/TrackedResource.cs
@@ -0,0 +1,72 @@
+// 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 System.Linq;
+
+ ///
+ /// The resource model definition for a ARM tracked top level resource.
+ ///
+ public partial class TrackedResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the TrackedResource class.
+ ///
+ public TrackedResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the TrackedResource class.
+ ///
+
+ /// Fully qualified resource Id for the resource.
+ ///
+
+ /// The name of the resource.
+ ///
+
+ /// The type of the resource - e.g. "Microsoft.SignalRService/SignalR"
+ ///
+
+ /// 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), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary))
+
+ : base(id, name, type)
+ {
+ this.Location = location;
+ this.Tags = tags;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets the GEO location of the resource. e.g. West US | East US |
+ /// North Central US | South Central US.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "location")]
+ public string Location {get; set; }
+
+ ///
+ /// Gets or sets tags of the service which is a list of key value pairs that
+ /// describe the resource.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "tags")]
+ public System.Collections.Generic.IDictionary Tags {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamAuthSettings.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamAuthSettings.cs
new file mode 100644
index 000000000000..f6cdcd16dd79
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamAuthSettings.cs
@@ -0,0 +1,61 @@
+// 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 System.Linq;
+
+ ///
+ /// Upstream auth settings.
+ ///
+ public partial class UpstreamAuthSettings
+ {
+ ///
+ /// Initializes a new instance of the UpstreamAuthSettings class.
+ ///
+ public UpstreamAuthSettings()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the UpstreamAuthSettings class.
+ ///
+
+ /// Gets or sets the type of auth. None or ManagedIdentity is supported now.
+ /// Possible values include: 'None', 'ManagedIdentity'
+
+ /// Gets or sets the managed identity settings. It's required if the auth type
+ /// is set to ManagedIdentity.
+ ///
+ public UpstreamAuthSettings(string type = default(string), ManagedIdentitySettings managedIdentity = default(ManagedIdentitySettings))
+
+ {
+ this.Type = type;
+ this.ManagedIdentity = managedIdentity;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets gets or sets the type of auth. None or ManagedIdentity is
+ /// supported now. Possible values include: 'None', 'ManagedIdentity'
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "type")]
+ public string Type {get; set; }
+
+ ///
+ /// Gets or sets gets or sets the managed identity settings. It's required if
+ /// the auth type is set to ManagedIdentity.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "managedIdentity")]
+ public ManagedIdentitySettings ManagedIdentity {get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamAuthType.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamAuthType.cs
new file mode 100644
index 000000000000..84e62d5e9da9
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamAuthType.cs
@@ -0,0 +1,19 @@
+// 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 UpstreamAuthType.
+ ///
+
+
+ public static class UpstreamAuthType
+ {
+ public const string None = "None";
+ public const string ManagedIdentity = "ManagedIdentity";
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamTemplate.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamTemplate.cs
new file mode 100644
index 000000000000..d26d5f573c59
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/UpstreamTemplate.cs
@@ -0,0 +1,160 @@
+// 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 System.Linq;
+
+ ///
+ /// Upstream template item settings. It defines the Upstream URL of the
+ /// incoming requests.
+ /// The template defines the pattern of the event, the hub or the category of
+ /// the incoming request that matches current URL template.
+ ///
+ public partial class UpstreamTemplate
+ {
+ ///
+ /// Initializes a new instance of the UpstreamTemplate class.
+ ///
+ public UpstreamTemplate()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the UpstreamTemplate class.
+ ///
+
+ /// Gets or sets the matching pattern for hub names. If not set, it matches any
+ /// hub.
+ /// There are 3 kind of patterns supported:
+ /// 1. "*", it to matches any hub name
+ /// 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches
+ /// "hub1" and "hub2"
+ /// 3. The single hub name, for example, "hub1", it matches "hub1"
+ ///
+
+ /// Gets or sets the matching pattern for event names. If not set, it matches
+ /// any event.
+ /// There are 3 kind of patterns supported:
+ /// 1. "*", it to matches any event name
+ /// 2. Combine multiple events with ",", for example "connect,disconnect", it
+ /// matches event "connect" and "disconnect"
+ /// 3. The single event name, for example, "connect", it matches "connect"
+ ///
+
+ /// Gets or sets the matching pattern for category names. If not set, it
+ /// matches any category.
+ /// There are 3 kind of patterns supported:
+ /// 1. "*", it to matches any category name
+ /// 2. Combine multiple categories with ",", for example
+ /// "connections,messages", it matches category "connections" and "messages"
+ /// 3. The single category name, for example, "connections", it matches the
+ /// category "connections"
+ ///
+
+ /// Gets or sets the Upstream URL template. You can use 3 predefined parameters
+ /// {hub}, {category} {event} inside the template, the value of the Upstream
+ /// URL is dynamically calculated when the client request comes in.
+ /// For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`,
+ /// with a client request from hub `chat` connects, it will first POST to this
+ /// URL: `http://example.com/chat/api/connect`.
+ ///
+
+ /// Gets or sets the auth settings for an upstream. If not set, no auth is used
+ /// for upstream messages.
+ ///
+ public UpstreamTemplate(string urlTemplate, string hubPattern = default(string), string eventPattern = default(string), string categoryPattern = default(string), UpstreamAuthSettings auth = default(UpstreamAuthSettings))
+
+ {
+ this.HubPattern = hubPattern;
+ this.EventPattern = eventPattern;
+ this.CategoryPattern = categoryPattern;
+ this.UrlTemplate = urlTemplate;
+ this.Auth = auth;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets or sets gets or sets the matching pattern for hub names. If not set,
+ /// it matches any hub.
+ /// There are 3 kind of patterns supported:
+ /// 1. "*", it to matches any hub name
+ /// 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches
+ /// "hub1" and "hub2"
+ /// 3. The single hub name, for example, "hub1", it matches "hub1"
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "hubPattern")]
+ public string HubPattern {get; set; }
+
+ ///
+ /// Gets or sets gets or sets the matching pattern for event names. If not set,
+ /// it matches any event.
+ /// There are 3 kind of patterns supported:
+ /// 1. "*", it to matches any event name
+ /// 2. Combine multiple events with ",", for example "connect,disconnect", it
+ /// matches event "connect" and "disconnect"
+ /// 3. The single event name, for example, "connect", it matches "connect"
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "eventPattern")]
+ public string EventPattern {get; set; }
+
+ ///
+ /// Gets or sets gets or sets the matching pattern for category names. If not
+ /// set, it matches any category.
+ /// There are 3 kind of patterns supported:
+ /// 1. "*", it to matches any category name
+ /// 2. Combine multiple categories with ",", for example
+ /// "connections,messages", it matches category "connections" and "messages"
+ /// 3. The single category name, for example, "connections", it matches the
+ /// category "connections"
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "categoryPattern")]
+ public string CategoryPattern {get; set; }
+
+ ///
+ /// Gets or sets gets or sets the Upstream URL template. You can use 3
+ /// predefined parameters {hub}, {category} {event} inside the template, the
+ /// value of the Upstream URL is dynamically calculated when the client request
+ /// comes in.
+ /// For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`,
+ /// with a client request from hub `chat` connects, it will first POST to this
+ /// URL: `http://example.com/chat/api/connect`.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "urlTemplate")]
+ public string UrlTemplate {get; set; }
+
+ ///
+ /// Gets or sets gets or sets the auth settings for an upstream. If not set, no
+ /// auth is used for upstream messages.
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "auth")]
+ public UpstreamAuthSettings Auth {get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (this.UrlTemplate == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "UrlTemplate");
+ }
+
+
+
+
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Models/UserAssignedIdentityProperty.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Models/UserAssignedIdentityProperty.cs
new file mode 100644
index 000000000000..2bda4cd56244
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Models/UserAssignedIdentityProperty.cs
@@ -0,0 +1,58 @@
+// 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 System.Linq;
+
+ ///
+ /// Properties of user assigned identity.
+ ///
+ public partial class UserAssignedIdentityProperty
+ {
+ ///
+ /// Initializes a new instance of the UserAssignedIdentityProperty class.
+ ///
+ public UserAssignedIdentityProperty()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the UserAssignedIdentityProperty class.
+ ///
+
+ /// Get the principal id for the user assigned identity
+ ///
+
+ /// Get the client id for the user assigned identity
+ ///
+ public UserAssignedIdentityProperty(string principalId = default(string), string clientId = default(string))
+
+ {
+ this.PrincipalId = principalId;
+ this.ClientId = clientId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+
+ ///
+ /// Gets get the principal id for the user assigned identity
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "principalId")]
+ public string PrincipalId {get; private set; }
+
+ ///
+ /// Gets get the client id for the user assigned identity
+ ///
+ [Newtonsoft.Json.JsonProperty(PropertyName = "clientId")]
+ public string ClientId {get; private set; }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/Operations.cs b/src/SignalR/SignalR.Management.Sdk/Generated/Operations.cs
new file mode 100644
index 000000000000..a7976c972482
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/Operations.cs
@@ -0,0 +1,403 @@
+// 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 System.Linq;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+
+ ///
+ /// Operations operations.
+ ///
+ internal partial class Operations : Microsoft.Rest.IServiceOperations, IOperations
+ {
+ ///
+ /// Initializes a new instance of the Operations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal Operations (SignalRManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ this.Client = client;
+ }
+
+ ///
+ /// Gets a reference to the SignalRManagementClient
+ ///
+ public SignalRManagementClient Client { get; private set; }
+
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// 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 System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+
+
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.SignalRService/operations").ToString();
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.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 (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// 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 System.Threading.Tasks.Task>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+ if (nextPageLink == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.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 (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/OperationsExtensions.cs b/src/SignalR/SignalR.Management.Sdk/Generated/OperationsExtensions.cs
new file mode 100644
index 000000000000..4d3d72e8424c
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/OperationsExtensions.cs
@@ -0,0 +1,80 @@
+// 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.Azure;
+ using Models;
+
+ ///
+ /// Extension methods for Operations
+ ///
+ public static partial class OperationsExtensions
+ {
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ public static Microsoft.Rest.Azure.IPage List(this IOperations operations)
+ {
+ return ((IOperations)operations).ListAsync().GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async System.Threading.Tasks.Task> ListAsync(this IOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static Microsoft.Rest.Azure.IPage ListNext(this IOperations operations, string nextPageLink)
+ {
+ return ((IOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists all of the available REST API operations of the
+ /// Microsoft.SignalRService provider.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async System.Threading.Tasks.Task> ListNextAsync(this IOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+ }
+}
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/SignalRManagementClient.cs b/src/SignalR/SignalR.Management.Sdk/Generated/SignalRManagementClient.cs
new file mode 100644
index 000000000000..9090c37b5b43
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/SignalRManagementClient.cs
@@ -0,0 +1,366 @@
+// 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 System.Linq;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+
+ ///
+ /// REST API for Azure SignalR Service
+ ///
+ public partial class SignalRManagementClient : Microsoft.Rest.ServiceClient, ISignalRManagementClient, IAzureClient
+ {
+ ///
+ /// The base URI of the service.
+ ///
+ public System.Uri BaseUri { get; set; }
+ ///
+ /// Gets or sets json serialization settings.
+ ///
+ public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; private set; }
+ ///
+ /// Gets or sets json deserialization settings.
+ ///
+ public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; private set; }
+ ///
+ /// Credentials needed for the client to connect to Azure.
+ ///
+ public Microsoft.Rest.ServiceClientCredentials Credentials { get; private set; }
+
+ ///
+ /// The API version to use for this operation.
+ ///
+ public string ApiVersion { get; private set; }
+
+ ///
+ /// Gets subscription Id which uniquely identify the Microsoft Azure
+ /// subscription. The subscription ID forms part of the URI for every service
+ /// call.
+ ///
+ public string SubscriptionId { get; set;}
+
+ ///
+ /// The preferred language for the response.
+ ///
+ public string AcceptLanguage { get; set;}
+
+ ///
+ /// The retry timeout in seconds for Long Running Operations. Default
+ /// /// value is 30.
+ ///
+ public int? LongRunningOperationRetryTimeout { get; set;}
+
+ ///
+ /// Whether a unique x-ms-client-request-id should be generated. When
+ /// /// set to true a unique x-ms-client-request-id value is generated and
+ /// /// included in each request. Default is true.
+ ///
+ public bool? GenerateClientRequestId { get; set;}
+
+ ///
+ /// Gets the IOperations
+ ///
+ public virtual IOperations Operations { get; private set; }
+ ///
+ /// Gets the ISignalROperations
+ ///
+ public virtual ISignalROperations SignalR { get; private set; }
+ ///
+ /// Gets the IUsagesOperations
+ ///
+ public virtual IUsagesOperations Usages { get; private set; }
+ ///
+ /// Gets the ISignalRPrivateEndpointConnectionsOperations
+ ///
+ public virtual ISignalRPrivateEndpointConnectionsOperations SignalRPrivateEndpointConnections { get; private set; }
+ ///
+ /// Gets the ISignalRPrivateLinkResourcesOperations
+ ///
+ public virtual ISignalRPrivateLinkResourcesOperations SignalRPrivateLinkResources { get; private set; }
+ ///
+ /// Gets the ISignalRSharedPrivateLinkResourcesOperations
+ ///
+ public virtual ISignalRSharedPrivateLinkResourcesOperations SignalRSharedPrivateLinkResources { get; private set; }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// HttpClient to be used
+ ///
+ ///
+ /// True: will dispose the provided httpClient on calling SignalRManagementClient.Dispose(). False: will not dispose provided httpClient
+ protected SignalRManagementClient(System.Net.Http.HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
+ {
+ this.Initialize();
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ protected SignalRManagementClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers)
+ {
+ this.Initialize();
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Optional. The http client handler used to handle http transport.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ protected SignalRManagementClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers)
+ {
+ this.Initialize();
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Optional. The base URI of the service.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ protected SignalRManagementClient(System.Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers)
+ {
+ if (baseUri == null)
+ {
+ throw new System.ArgumentNullException("baseUri");
+ }
+ this.BaseUri = baseUri;
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Optional. The base URI of the service.
+ ///
+ ///
+ /// Optional. The http client handler used to handle http transport.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ protected SignalRManagementClient(System.Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers)
+ {
+ if (baseUri == null)
+ {
+ throw new System.ArgumentNullException("baseUri");
+ }
+
+ this.BaseUri = baseUri;
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public SignalRManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers)
+ {
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ this.Credentials = credentials;
+ if (this.Credentials != null)
+ {
+ this.Credentials.InitializeServiceClient(this);
+ }
+
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// HttpClient to be used
+ ///
+ ///
+ /// True: will dispose the provided httpClient on calling SignalRManagementClient.Dispose(). False: will not dispose provided httpClient
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public SignalRManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
+ {
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ this.Credentials = credentials;
+ if (this.Credentials != null)
+ {
+ this.Credentials.InitializeServiceClient(this);
+ }
+
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// Optional. The http client handler used to handle http transport.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public SignalRManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers)
+ {
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ this.Credentials = credentials;
+ if (this.Credentials != null)
+ {
+ this.Credentials.InitializeServiceClient(this);
+ }
+
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Optional. The base URI of the service.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public SignalRManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers)
+ {
+ if (baseUri == null)
+ {
+ throw new System.ArgumentNullException("baseUri");
+ }
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ this.BaseUri = baseUri;
+ this.Credentials = credentials;
+ if (this.Credentials != null)
+ {
+ this.Credentials.InitializeServiceClient(this);
+ }
+
+ }
+ ///
+ /// Initializes a new instance of the SignalRManagementClient class.
+ ///
+ ///
+ /// Optional. The base URI of the service.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// Optional. The http client handler used to handle http transport.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public SignalRManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers)
+ {
+ if (baseUri == null)
+ {
+ throw new System.ArgumentNullException("baseUri");
+ }
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ this.BaseUri = baseUri;
+ this.Credentials = credentials;
+ if (this.Credentials != null)
+ {
+ this.Credentials.InitializeServiceClient(this);
+ }
+
+ }
+ ///
+ /// An optional partial-method to perform custom initialization.
+ ///
+ partial void CustomInitialize();
+
+ ///
+ /// Initializes client properties.
+ ///
+ private void Initialize()
+ {
+ this.Operations = new Operations(this);
+ this.SignalR = new SignalROperations(this);
+ this.Usages = new UsagesOperations(this);
+ this.SignalRPrivateEndpointConnections = new SignalRPrivateEndpointConnectionsOperations(this);
+ this.SignalRPrivateLinkResources = new SignalRPrivateLinkResourcesOperations(this);
+ this.SignalRSharedPrivateLinkResources = new SignalRSharedPrivateLinkResourcesOperations(this);
+ this.BaseUri = new System.Uri("https://management.azure.com");
+ this.ApiVersion = "2021-04-01-preview";
+ this.AcceptLanguage = "en-US";
+ this.LongRunningOperationRetryTimeout = 30;
+ this.GenerateClientRequestId = true;
+ SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings
+ {
+ Formatting = Newtonsoft.Json.Formatting.Indented,
+ DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
+ DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
+ NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
+ ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
+ ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(),
+ Converters = new System.Collections.Generic.List
+ {
+ new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter()
+ }
+ };
+ SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter());
+ DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings
+ {
+ DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
+ DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
+ NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
+ ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
+ ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(),
+ Converters = new System.Collections.Generic.List
+ {
+ new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter()
+ }
+ };
+ CustomInitialize();
+ DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter());
+ DeserializationSettings.Converters.Add(new Microsoft.Rest.Azure.CloudErrorJsonConverter());
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/SignalR/SignalR.Management.Sdk/Generated/SignalROperations.cs b/src/SignalR/SignalR.Management.Sdk/Generated/SignalROperations.cs
new file mode 100644
index 000000000000..2da7c0f9105b
--- /dev/null
+++ b/src/SignalR/SignalR.Management.Sdk/Generated/SignalROperations.cs
@@ -0,0 +1,2611 @@
+// 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 System.Linq;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+
+ ///
+ /// SignalROperations operations.
+ ///
+ internal partial class SignalROperations : Microsoft.Rest.IServiceOperations, ISignalROperations
+ {
+ ///
+ /// Initializes a new instance of the SignalROperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal SignalROperations (SignalRManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ this.Client = client;
+ }
+
+ ///
+ /// Gets a reference to the SignalRManagementClient
+ ///
+ public SignalRManagementClient Client { get; private set; }
+
+ ///
+ /// Checks that the resource name is valid and is not already in use.
+ ///
+ ///
+ /// the region
+ ///
+ ///
+ /// Parameters supplied to the 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 System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(string location, NameAvailabilityParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+
+
+
+ if (parameters == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
+ if (location == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "location");
+ }
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
+ if (this.Client.SubscriptionId == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+ tracingParameters.Add("location", location);
+
+ tracingParameters.Add("parameters", parameters);
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", tracingParameters);
+ }
+ // Construct URL
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability").ToString();
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.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;
+ if(parameters != null)
+ {
+ _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings);
+ _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
+ ///
+ /// Handles requests to list all resources in a subscription.
+ ///
+ ///
+ /// 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 System.Threading.Tasks.Task>> ListBySubscriptionWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+
+
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
+ if (this.Client.SubscriptionId == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
+ }
+ // Construct URL
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/signalR").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.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 (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
+ ///
+ /// Handles requests to list all resources in a resource group.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// 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 System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+
+
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
+ if (this.Client.SubscriptionId == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+
+ if (resourceGroupName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
+ }
+ // Construct URL
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.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 (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
+ ///
+ /// 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 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 System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+
+
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
+ if (this.Client.SubscriptionId == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+
+ if (resourceGroupName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+
+ if (resourceName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceName");
+ }
+
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
+ 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(this.Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.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 (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
+ ///
+ /// Create or update 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.
+ ///
+ ///
+ /// Parameters for the create or update operation
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.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.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Operation to update an exiting 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.
+ ///
+ ///
+ /// Parameters for the update operation
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.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.
+ ///
+ ///
+ /// 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 System.Threading.Tasks.Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+
+
+
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
+ if (this.Client.SubscriptionId == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+
+ if (resourceGroupName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+
+ if (resourceName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceName");
+ }
+
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters);
+ }
+ // Construct URL
+
+ var _baseUrl = this.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();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.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 (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// Parameter that describes the Regenerate Key Operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async System.Threading.Tasks.Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// 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 resource.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async System.Threading.Tasks.Task RestartWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // Send Request
+ Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginRestartWithHttpMessagesAsync(resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Create or update 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.
+ ///
+ ///
+ /// Parameters for the create or update 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 System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+
+
+
+
+ if (parameters == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
+ if (this.Client.ApiVersion == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+
+ if (this.Client.SubscriptionId == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+
+ if (resourceGroupName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+
+ if (resourceName == null)
+ {
+ throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceName");
+ }
+
+ // Tracing
+ bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
+ System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+
+ tracingParameters.Add("parameters", parameters);
+
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
+ }
+ // Construct URL
+
+ var _baseUrl = this.Client.BaseUri.AbsoluteUri;
+ 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(this.Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+
+ System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List();
+ if (this.Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new System.Net.Http.HttpRequestMessage();
+ System.Net.Http.HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new System.Net.Http.HttpMethod("PUT");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (this.Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.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;
+ if(parameters != null)
+ {
+ _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings);
+ _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (this.Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+
+ System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+
+ 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
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (Newtonsoft.Json.JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings);
+ }
+ catch (Newtonsoft.Json.JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+
+
+
+
+
+ }
+ ///
+ /// 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.
+ ///
+ ///
+ /// 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
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async System.Threading.Tasks.Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, System.Collections.Generic.Dictionary