diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRManagementClient.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRManagementClient.cs index cec9fdb25b944..7690ff3e17e26 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRManagementClient.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalRManagementClient.cs @@ -81,6 +81,11 @@ public partial interface ISignalRManagementClient : System.IDisposable /// ISignalROperations SignalR { get; } + /// + /// Gets the IUsagesOperations. + /// + IUsagesOperations Usages { get; } + /// /// Gets the ISignalRPrivateEndpointConnectionsOperations. /// @@ -91,10 +96,5 @@ public partial interface ISignalRManagementClient : System.IDisposable /// ISignalRPrivateLinkResourcesOperations SignalRPrivateLinkResources { get; } - /// - /// Gets the IUsagesOperations. - /// - IUsagesOperations Usages { get; } - } } diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalROperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalROperations.cs index 10006c6a899e7..1572a98249a53 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalROperations.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/ISignalROperations.cs @@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.SignalR public partial interface ISignalROperations { /// - /// Checks that the SignalR name is valid and is not already in use. + /// Checks that the resource name is valid and is not already in use. /// /// /// the region @@ -92,7 +92,7 @@ public partial interface ISignalROperations /// Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the access keys of the SignalR resource. + /// Get the resource and its properties. /// /// /// The name of the resource group that contains the resource. You can @@ -117,10 +117,9 @@ public partial interface ISignalROperations /// /// Thrown when a required parameter is null /// - Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey - /// cannot be regenerated at the same time. + /// Create or update a resource. /// /// /// The name of the resource group that contains the resource. You can @@ -131,7 +130,7 @@ public partial interface ISignalROperations /// The name of the SignalR resource. /// /// - /// Parameter that describes the Regenerate Key Operation. + /// Parameters for the create or update operation /// /// /// The headers that will be added to request. @@ -148,9 +147,9 @@ public partial interface ISignalROperations /// /// Thrown when a required parameter is null /// - Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the SignalR service and its properties. + /// Operation to delete a resource. /// /// /// The name of the resource group that contains the resource. You can @@ -169,15 +168,12 @@ public partial interface ISignalROperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create a new SignalR service and update an exiting SignalR service. + /// Operation to update an exiting resource. /// /// /// The name of the resource group that contains the resource. You can @@ -188,7 +184,7 @@ public partial interface ISignalROperations /// The name of the SignalR resource. /// /// - /// Parameters for the create or update operation + /// Parameters for the update operation /// /// /// The headers that will be added to request. @@ -205,9 +201,9 @@ public partial interface ISignalROperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Operation to delete a SignalR service. + /// Get the access keys of the resource. /// /// /// The name of the resource group that contains the resource. You can @@ -226,12 +222,16 @@ public partial interface ISignalROperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Operation to update an exiting SignalR service. + /// Regenerate the access key for the resource. PrimaryKey and + /// SecondaryKey cannot be regenerated at the same time. /// /// /// The name of the resource group that contains the resource. You can @@ -242,7 +242,7 @@ public partial interface ISignalROperations /// The name of the SignalR resource. /// /// - /// Parameters for the update operation + /// Parameter that describes the Regenerate Key Operation. /// /// /// The headers that will be added to request. @@ -259,9 +259,9 @@ public partial interface ISignalROperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Operation to restart a SignalR service. + /// Operation to restart a resource. /// /// /// The name of the resource group that contains the resource. You can @@ -285,8 +285,7 @@ public partial interface ISignalROperations /// Task RestartWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey - /// cannot be regenerated at the same time. + /// Create or update a resource. /// /// /// The name of the resource group that contains the resource. You can @@ -297,7 +296,7 @@ public partial interface ISignalROperations /// The name of the SignalR resource. /// /// - /// Parameter that describes the Regenerate Key Operation. + /// Parameters for the create or update operation /// /// /// The headers that will be added to request. @@ -314,9 +313,9 @@ public partial interface ISignalROperations /// /// Thrown when a required parameter is null /// - Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create a new SignalR service and update an exiting SignalR service. + /// Operation to delete a resource. /// /// /// The name of the resource group that contains the resource. You can @@ -326,9 +325,6 @@ public partial interface ISignalROperations /// /// The name of the SignalR resource. /// - /// - /// Parameters for the create or update operation - /// /// /// The headers that will be added to request. /// @@ -338,15 +334,12 @@ public partial interface ISignalROperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Operation to delete a SignalR service. + /// Operation to update an exiting resource. /// /// /// The name of the resource group that contains the resource. You can @@ -356,6 +349,9 @@ public partial interface ISignalROperations /// /// The name of the SignalR resource. /// + /// + /// Parameters for the update operation + /// /// /// The headers that will be added to request. /// @@ -365,12 +361,16 @@ public partial interface ISignalROperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Operation to update an exiting SignalR service. + /// Regenerate the access key for the resource. PrimaryKey and + /// SecondaryKey cannot be regenerated at the same time. /// /// /// The name of the resource group that contains the resource. You can @@ -381,7 +381,7 @@ public partial interface ISignalROperations /// The name of the SignalR resource. /// /// - /// Parameters for the update operation + /// Parameter that describes the Regenerate Key Operation. /// /// /// The headers that will be added to request. @@ -398,9 +398,9 @@ public partial interface ISignalROperations /// /// Thrown when a required parameter is null /// - Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Operation to restart a SignalR service. + /// Operation to restart a resource. /// /// /// The name of the resource group that contains the resource. You can diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/IUsagesOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/IUsagesOperations.cs index da6f0f53e17b4..0e62401f7176a 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/IUsagesOperations.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/IUsagesOperations.cs @@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.SignalR public partial interface IUsagesOperations { /// - /// List usage quotas for Azure SignalR service by location. + /// List resource usage quotas by location. /// /// /// the location like "eastus" @@ -46,7 +46,7 @@ public partial interface IUsagesOperations /// Task>> ListWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List usage quotas for Azure SignalR service by location. + /// List resource usage quotas by location. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/NameAvailabilityParameters.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/NameAvailabilityParameters.cs index 8321009b04210..0ac502aa51533 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/NameAvailabilityParameters.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/NameAvailabilityParameters.cs @@ -30,8 +30,9 @@ public NameAvailabilityParameters() /// /// Initializes a new instance of the NameAvailabilityParameters class. /// - /// The resource type. Should be always - /// "Microsoft.SignalRService/SignalR". + /// The resource type. Can be + /// "Microsoft.SignalRService/SignalR" or + /// "Microsoft.SignalRService/webPubSub" /// The SignalR service name to validate. /// e.g."my-signalR-name-here" public NameAvailabilityParameters(string type, string name) @@ -47,8 +48,9 @@ public NameAvailabilityParameters(string type, string name) partial void CustomInit(); /// - /// Gets or sets the resource type. Should be always - /// "Microsoft.SignalRService/SignalR". + /// Gets or sets the resource type. Can be + /// "Microsoft.SignalRService/SignalR" or + /// "Microsoft.SignalRService/webPubSub" /// [JsonProperty(PropertyName = "type")] public string Type { get; set; } diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/Operation.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/Operation.cs index 5096c1740d367..14879d39dc496 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/Operation.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/Operation.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.SignalR.Models using System.Linq; /// - /// REST API operation supported by SignalR resource provider. + /// REST API operation supported by resource provider. /// public partial class Operation { diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ResourceSku.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ResourceSku.cs index 8fe43ce899cf9..d24909edb8eae 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ResourceSku.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ResourceSku.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.SignalR.Models using System.Linq; /// - /// The billing information of the SignalR resource. + /// The billing information of the resource. /// public partial class ResourceSku { diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs index 5a1e2b7762262..e1a89d8c27940 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/ServerlessUpstreamSettings.cs @@ -16,8 +16,7 @@ namespace Microsoft.Azure.Management.SignalR.Models using System.Linq; /// - /// The settings for the Upstream when the Azure SignalR is in server-less - /// mode. + /// The settings for the Upstream when the service is in server-less mode. /// public partial class ServerlessUpstreamSettings { diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRKeys.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRKeys.cs index 80fad0e71b21e..f7188567485cf 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRKeys.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRKeys.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.SignalR.Models using System.Linq; /// - /// A class represents the access keys of SignalR service. + /// A class represents the access keys of the resource. /// public partial class SignalRKeys { @@ -31,9 +31,9 @@ public SignalRKeys() /// /// The primary access key. /// The secondary access key. - /// SignalR connection string - /// constructed via the primaryKey - /// SignalR connection string + /// Connection string constructed + /// via the primaryKey + /// Connection string /// constructed via the secondaryKey public SignalRKeys(string primaryKey = default(string), string secondaryKey = default(string), string primaryConnectionString = default(string), string secondaryConnectionString = default(string)) { @@ -62,15 +62,13 @@ public SignalRKeys() public string SecondaryKey { get; set; } /// - /// Gets or sets signalR connection string constructed via the - /// primaryKey + /// Gets or sets connection string constructed via the primaryKey /// [JsonProperty(PropertyName = "primaryConnectionString")] public string PrimaryConnectionString { get; set; } /// - /// Gets or sets signalR connection string constructed via the - /// secondaryKey + /// Gets or sets connection string constructed via the secondaryKey /// [JsonProperty(PropertyName = "secondaryConnectionString")] public string SecondaryConnectionString { get; set; } diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRNetworkACLs.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRNetworkACLs.cs index 7056f222c5200..b9248490f0e2b 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRNetworkACLs.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRNetworkACLs.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.SignalR.Models using System.Linq; /// - /// Network ACLs for SignalR + /// Network ACLs for the resource /// public partial class SignalRNetworkACLs { diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRResource.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRResource.cs index bee9fa781170f..3bd75180c383c 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRResource.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRResource.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.SignalR.Models using System.Linq; /// - /// A class represent a SignalR service resource. + /// A class represent a resource. /// [Rest.Serialization.JsonTransformation] public partial class SignalRResource : TrackedResource @@ -39,9 +39,8 @@ public SignalRResource() /// The name of the resource. /// The type of the resource - e.g. /// "Microsoft.SignalRService/SignalR" - /// The GEO location of the SignalR service. - /// e.g. West US | East US | North Central US | South Central - /// US. + /// The GEO location of the resource. e.g. West + /// US | East US | North Central US | South Central US. /// Tags of the service which is a list of key value /// pairs that describe the resource. /// The billing information of the resource.(e.g. @@ -66,24 +65,21 @@ public SignalRResource() /// Possible values include: 'Unknown', 'Succeeded', 'Failed', /// 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', /// 'Moving' - /// The publicly accessible IP of the SignalR - /// service. - /// FQDN of the SignalR service instance. - /// Format: xxx.service.signalr.net + /// The publicly accessible IP of the + /// resource. + /// FQDN of the service instance. /// The publicly accessible port of the - /// SignalR service which is designed for browser/client side - /// usage. + /// resource which is designed for browser/client side usage. /// The publicly accessible port of the - /// SignalR service which is designed for customer server side - /// usage. - /// Version of the SignalR resource. Probably you - /// need the same or higher version of client SDKs. + /// 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 SignalR resource. + /// connections to the resource. /// TLS settings. - /// The kind of the service - e.g. "SignalR", or - /// "RawWebSockets" for "Microsoft.SignalRService/SignalR". Possible - /// values include: 'SignalR', 'RawWebSockets' + /// The kind of the service - e.g. "SignalR" for + /// "Microsoft.SignalRService/SignalR". Possible values include: + /// 'SignalR', 'RawWebSockets' /// The managed identity response public SignalRResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ResourceSku sku = default(ResourceSku), IList features = default(IList), SignalRCorsSettings cors = default(SignalRCorsSettings), ServerlessUpstreamSettings upstream = default(ServerlessUpstreamSettings), SignalRNetworkACLs networkACLs = default(SignalRNetworkACLs), string provisioningState = default(string), string externalIP = default(string), string hostName = default(string), int? publicPort = default(int?), int? serverPort = default(int?), string version = default(string), IList privateEndpointConnections = default(IList), SignalRTlsSettings tls = default(SignalRTlsSettings), string kind = default(string), ManagedIdentity identity = default(ManagedIdentity)) : base(id, name, type, location, tags) @@ -161,41 +157,40 @@ public SignalRResource() public string ProvisioningState { get; private set; } /// - /// Gets the publicly accessible IP of the SignalR service. + /// Gets the publicly accessible IP of the resource. /// [JsonProperty(PropertyName = "properties.externalIP")] public string ExternalIP { get; private set; } /// - /// Gets FQDN of the SignalR service instance. Format: - /// xxx.service.signalr.net + /// Gets FQDN of the service instance. /// [JsonProperty(PropertyName = "properties.hostName")] public string HostName { get; private set; } /// - /// Gets the publicly accessible port of the SignalR service which is - /// designed for browser/client side usage. + /// Gets the publicly accessible port of the resource which is designed + /// for browser/client side usage. /// [JsonProperty(PropertyName = "properties.publicPort")] public int? PublicPort { get; private set; } /// - /// Gets the publicly accessible port of the SignalR service which is - /// designed for customer server side usage. + /// Gets the publicly accessible port of the resource which is designed + /// for customer server side usage. /// [JsonProperty(PropertyName = "properties.serverPort")] public int? ServerPort { get; private set; } /// - /// Gets version of the SignalR resource. Probably you need the same or - /// higher version of client SDKs. + /// Gets version of the resource. Probably you need the same or higher + /// version of client SDKs. /// [JsonProperty(PropertyName = "properties.version")] public string Version { get; private set; } /// - /// Gets private endpoint connections to the SignalR resource. + /// Gets private endpoint connections to the resource. /// [JsonProperty(PropertyName = "properties.privateEndpointConnections")] public IList PrivateEndpointConnections { get; private set; } @@ -207,9 +202,9 @@ public SignalRResource() public SignalRTlsSettings Tls { get; set; } /// - /// Gets or sets the kind of the service - e.g. "SignalR", or - /// "RawWebSockets" for "Microsoft.SignalRService/SignalR". Possible - /// values include: 'SignalR', 'RawWebSockets' + /// Gets or sets the kind of the service - e.g. "SignalR" for + /// "Microsoft.SignalRService/SignalR". Possible values include: + /// 'SignalR', 'RawWebSockets' /// [JsonProperty(PropertyName = "kind")] public string Kind { get; set; } diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRTlsSettings.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRTlsSettings.cs index fad11b6db7fd3..c7436327abb2f 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRTlsSettings.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRTlsSettings.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.SignalR.Models using System.Linq; /// - /// TLS settings for SignalR + /// TLS settings for the resource /// public partial class SignalRTlsSettings { diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRUsage.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRUsage.cs index 9cbd77750ceb9..f3414aaff29a6 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRUsage.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/SignalRUsage.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.SignalR.Models using System.Linq; /// - /// Object that describes a specific usage of SignalR resources. + /// Object that describes a specific usage of the resources. /// public partial class SignalRUsage { diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/TrackedResource.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/TrackedResource.cs index 37c51994e20e5..5ec7ffa3f5cc6 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/TrackedResource.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/Models/TrackedResource.cs @@ -36,9 +36,8 @@ public TrackedResource() /// The name of the resource. /// The type of the resource - e.g. /// "Microsoft.SignalRService/SignalR" - /// The GEO location of the SignalR service. - /// e.g. West US | East US | North Central US | South Central - /// US. + /// The GEO location of the resource. e.g. West + /// US | East US | North Central US | South Central US. /// Tags of the service which is a list of key value /// pairs that describe the resource. public TrackedResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) @@ -55,8 +54,8 @@ public TrackedResource() partial void CustomInit(); /// - /// Gets or sets the GEO location of the SignalR service. e.g. West US - /// | East US | North Central US | South Central US. + /// Gets or sets the GEO location of the resource. e.g. West US | East + /// US | North Central US | South Central US. /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SdkInfo_SignalRManagementClient.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SdkInfo_SignalRManagementClient.cs index 36806c32224a7..5fd3d7120946a 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SdkInfo_SignalRManagementClient.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SdkInfo_SignalRManagementClient.cs @@ -27,16 +27,5 @@ public static IEnumerable> ApiInfo_SignalRManageme }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@1.9.1"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/signalr/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\workspace\\github\\juniwang\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "da7d451541f551dd1fed355a77444bc8f14e7461"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRManagementClient.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRManagementClient.cs index 8aac10fa65be7..bf2244d010d11 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRManagementClient.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalRManagementClient.cs @@ -86,6 +86,11 @@ public partial class SignalRManagementClient : ServiceClient public virtual ISignalROperations SignalR { get; private set; } + /// + /// Gets the IUsagesOperations. + /// + public virtual IUsagesOperations Usages { get; private set; } + /// /// Gets the ISignalRPrivateEndpointConnectionsOperations. /// @@ -96,11 +101,6 @@ public partial class SignalRManagementClient : ServiceClient public virtual ISignalRPrivateLinkResourcesOperations SignalRPrivateLinkResources { get; private set; } - /// - /// Gets the IUsagesOperations. - /// - public virtual IUsagesOperations Usages { get; private set; } - /// /// Initializes a new instance of the SignalRManagementClient class. /// @@ -344,9 +344,9 @@ private void Initialize() { Operations = new Operations(this); SignalR = new SignalROperations(this); + Usages = new UsagesOperations(this); SignalRPrivateEndpointConnections = new SignalRPrivateEndpointConnectionsOperations(this); SignalRPrivateLinkResources = new SignalRPrivateLinkResourcesOperations(this); - Usages = new UsagesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2020-07-01-preview"; AcceptLanguage = "en-US"; diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperations.cs index faa1d35de4362..68fb1933960f3 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperations.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperations.cs @@ -51,7 +51,7 @@ internal SignalROperations(SignalRManagementClient client) public SignalRManagementClient Client { get; private set; } /// - /// Checks that the SignalR name is valid and is not already in use. + /// Checks that the resource name is valid and is not already in use. /// /// /// the region @@ -603,7 +603,7 @@ internal SignalROperations(SignalRManagementClient client) } /// - /// Get the access keys of the SignalR resource. + /// Get the resource and its properties. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -633,7 +633,7 @@ internal SignalROperations(SignalRManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -661,11 +661,11 @@ internal SignalROperations(SignalRManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("resourceName", resourceName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); @@ -681,7 +681,7 @@ internal SignalROperations(SignalRManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -762,7 +762,7 @@ internal SignalROperations(SignalRManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -775,7 +775,7 @@ internal SignalROperations(SignalRManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -795,8 +795,7 @@ internal SignalROperations(SignalRManagementClient client) } /// - /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot - /// be regenerated at the same time. + /// Create or update a resource. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -806,7 +805,7 @@ internal SignalROperations(SignalRManagementClient client) /// The name of the SignalR resource. /// /// - /// Parameter that describes the Regenerate Key Operation. + /// Parameters for the create or update operation /// /// /// The headers that will be added to request. @@ -814,15 +813,64 @@ internal SignalROperations(SignalRManagementClient client) /// /// The cancellation token. /// - public async Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Operation to delete a resource. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the SignalR resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Get the SignalR service and its properties. + /// Operation to update an exiting resource. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the SignalR resource. + /// + /// + /// Parameters for the update operation + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get the access keys of the resource. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -852,7 +900,7 @@ internal SignalROperations(SignalRManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -880,11 +928,11 @@ internal SignalROperations(SignalRManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("resourceName", resourceName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); @@ -900,7 +948,7 @@ internal SignalROperations(SignalRManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -981,7 +1029,7 @@ internal SignalROperations(SignalRManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -994,7 +1042,7 @@ internal SignalROperations(SignalRManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1014,7 +1062,8 @@ internal SignalROperations(SignalRManagementClient client) } /// - /// Create a new SignalR service and update an exiting SignalR service. + /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey + /// cannot be regenerated at the same time. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1024,30 +1073,7 @@ internal SignalROperations(SignalRManagementClient client) /// The name of the SignalR resource. /// /// - /// Parameters for the create or update operation - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Operation to delete a SignalR service. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the SignalR resource. + /// Parameter that describes the Regenerate Key Operation. /// /// /// The headers that will be added to request. @@ -1055,41 +1081,15 @@ internal SignalROperations(SignalRManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Operation to update an exiting SignalR service. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the SignalR resource. - /// - /// - /// Parameters for the update operation - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Operation to restart a SignalR service. + /// Operation to restart a resource. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1112,8 +1112,7 @@ internal SignalROperations(SignalRManagementClient client) } /// - /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot - /// be regenerated at the same time. + /// Create or update a resource. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1123,7 +1122,7 @@ internal SignalROperations(SignalRManagementClient client) /// The name of the SignalR resource. /// /// - /// Parameter that describes the Regenerate Key Operation. + /// Parameters for the create or update operation /// /// /// Headers that will be added to request. @@ -1146,8 +1145,12 @@ internal SignalROperations(SignalRManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (parameters != null) + { + parameters.Validate(); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -1175,11 +1178,11 @@ internal SignalROperations(SignalRManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("resourceName", resourceName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginRegenerateKey", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); @@ -1195,7 +1198,7 @@ internal SignalROperations(SignalRManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1252,7 +1255,7 @@ internal SignalROperations(SignalRManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201) + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1282,7 +1285,7 @@ internal SignalROperations(SignalRManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1290,12 +1293,30 @@ internal SignalROperations(SignalRManagementClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1315,7 +1336,7 @@ internal SignalROperations(SignalRManagementClient client) } /// - /// Create a new SignalR service and update an exiting SignalR service. + /// Operation to delete a resource. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1324,9 +1345,6 @@ internal SignalROperations(SignalRManagementClient client) /// /// The name of the SignalR resource. /// - /// - /// Parameters for the create or update operation - /// /// /// Headers that will be added to request. /// @@ -1336,9 +1354,6 @@ internal SignalROperations(SignalRManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -1348,12 +1363,8 @@ internal SignalROperations(SignalRManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (parameters != null) - { - parameters.Validate(); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -1377,11 +1388,10 @@ internal SignalROperations(SignalRManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("parameters", parameters); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("resourceName", resourceName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -1401,7 +1411,7 @@ internal SignalROperations(SignalRManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1432,12 +1442,6 @@ internal SignalROperations(SignalRManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -1458,7 +1462,7 @@ internal SignalROperations(SignalRManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + if ((int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1488,49 +1492,13 @@ internal SignalROperations(SignalRManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1539,7 +1507,7 @@ internal SignalROperations(SignalRManagementClient client) } /// - /// Operation to delete a SignalR service. + /// Operation to update an exiting resource. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1548,6 +1516,9 @@ internal SignalROperations(SignalRManagementClient client) /// /// The name of the SignalR resource. /// + /// + /// Parameters for the update operation + /// /// /// Headers that will be added to request. /// @@ -1557,6 +1528,9 @@ internal SignalROperations(SignalRManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -1566,7 +1540,7 @@ internal SignalROperations(SignalRManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1591,10 +1565,11 @@ internal SignalROperations(SignalRManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("resourceName", resourceName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -1614,7 +1589,7 @@ internal SignalROperations(SignalRManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1645,6 +1620,12 @@ internal SignalROperations(SignalRManagementClient client) // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -1665,7 +1646,7 @@ internal SignalROperations(SignalRManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 204) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1695,13 +1676,31 @@ internal SignalROperations(SignalRManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1710,7 +1709,8 @@ internal SignalROperations(SignalRManagementClient client) } /// - /// Operation to update an exiting SignalR service. + /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey + /// cannot be regenerated at the same time. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1720,7 +1720,7 @@ internal SignalROperations(SignalRManagementClient client) /// The name of the SignalR resource. /// /// - /// Parameters for the update operation + /// Parameter that describes the Regenerate Key Operation. /// /// /// Headers that will be added to request. @@ -1743,7 +1743,7 @@ internal SignalROperations(SignalRManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1772,11 +1772,11 @@ internal SignalROperations(SignalRManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("resourceName", resourceName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginRegenerateKey", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); @@ -1792,7 +1792,7 @@ internal SignalROperations(SignalRManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1849,7 +1849,7 @@ internal SignalROperations(SignalRManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 201) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1879,7 +1879,7 @@ internal SignalROperations(SignalRManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1887,12 +1887,12 @@ internal SignalROperations(SignalRManagementClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 200) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1912,7 +1912,7 @@ internal SignalROperations(SignalRManagementClient client) } /// - /// Operation to restart a SignalR service. + /// Operation to restart a resource. /// /// /// The name of the resource group that contains the resource. You can obtain diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperationsExtensions.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperationsExtensions.cs index 6719df4c8bbc0..68814c8cc4e70 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperationsExtensions.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/SignalROperationsExtensions.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.SignalR public static partial class SignalROperationsExtensions { /// - /// Checks that the SignalR name is valid and is not already in use. + /// Checks that the resource name is valid and is not already in use. /// /// /// The operations group for this extension method. @@ -39,7 +39,7 @@ public static partial class SignalROperationsExtensions } /// - /// Checks that the SignalR name is valid and is not already in use. + /// Checks that the resource name is valid and is not already in use. /// /// /// The operations group for this extension method. @@ -126,7 +126,7 @@ public static IPage ListByResourceGroup(this ISignalROperations } /// - /// Get the access keys of the SignalR resource. + /// Get the resource and its properties. /// /// /// The operations group for this extension method. @@ -138,13 +138,13 @@ public static IPage ListByResourceGroup(this ISignalROperations /// /// The name of the SignalR resource. /// - public static SignalRKeys ListKeys(this ISignalROperations operations, string resourceGroupName, string resourceName) + public static SignalRResource Get(this ISignalROperations operations, string resourceGroupName, string resourceName) { - return operations.ListKeysAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); } /// - /// Get the access keys of the SignalR resource. + /// Get the resource and its properties. /// /// /// The operations group for this extension method. @@ -159,17 +159,16 @@ public static SignalRKeys ListKeys(this ISignalROperations operations, string re /// /// The cancellation token. /// - public static async Task ListKeysAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListKeysWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot - /// be regenerated at the same time. + /// Create or update a resource. /// /// /// The operations group for this extension method. @@ -182,16 +181,15 @@ public static SignalRKeys ListKeys(this ISignalROperations operations, string re /// The name of the SignalR resource. /// /// - /// Parameter that describes the Regenerate Key Operation. + /// Parameters for the create or update operation /// - public static SignalRKeys RegenerateKey(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters)) + public static SignalRResource CreateOrUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource)) { - return operations.RegenerateKeyAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); } /// - /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot - /// be regenerated at the same time. + /// Create or update a resource. /// /// /// The operations group for this extension method. @@ -204,21 +202,21 @@ public static SignalRKeys ListKeys(this ISignalROperations operations, string re /// The name of the SignalR resource. /// /// - /// Parameter that describes the Regenerate Key Operation. + /// Parameters for the create or update operation /// /// /// The cancellation token. /// - public static async Task RegenerateKeyAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get the SignalR service and its properties. + /// Operation to delete a resource. /// /// /// The operations group for this extension method. @@ -230,13 +228,13 @@ public static SignalRKeys ListKeys(this ISignalROperations operations, string re /// /// The name of the SignalR resource. /// - public static SignalRResource Get(this ISignalROperations operations, string resourceGroupName, string resourceName) + public static void Delete(this ISignalROperations operations, string resourceGroupName, string resourceName) { - return operations.GetAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); } /// - /// Get the SignalR service and its properties. + /// Operation to delete a resource. /// /// /// The operations group for this extension method. @@ -251,16 +249,13 @@ public static SignalRResource Get(this ISignalROperations operations, string res /// /// The cancellation token. /// - public static async Task GetAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Create a new SignalR service and update an exiting SignalR service. + /// Operation to update an exiting resource. /// /// /// The operations group for this extension method. @@ -273,15 +268,15 @@ public static SignalRResource Get(this ISignalROperations operations, string res /// The name of the SignalR resource. /// /// - /// Parameters for the create or update operation + /// Parameters for the update operation /// - public static SignalRResource CreateOrUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource)) + public static SignalRResource Update(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource)) { - return operations.CreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); } /// - /// Create a new SignalR service and update an exiting SignalR service. + /// Operation to update an exiting resource. /// /// /// The operations group for this extension method. @@ -294,21 +289,21 @@ public static SignalRResource Get(this ISignalROperations operations, string res /// The name of the SignalR resource. /// /// - /// Parameters for the create or update operation + /// Parameters for the update operation /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Operation to delete a SignalR service. + /// Get the access keys of the resource. /// /// /// The operations group for this extension method. @@ -320,13 +315,13 @@ public static SignalRResource Get(this ISignalROperations operations, string res /// /// The name of the SignalR resource. /// - public static void Delete(this ISignalROperations operations, string resourceGroupName, string resourceName) + public static SignalRKeys ListKeys(this ISignalROperations operations, string resourceGroupName, string resourceName) { - operations.DeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); + return operations.ListKeysAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); } /// - /// Operation to delete a SignalR service. + /// Get the access keys of the resource. /// /// /// The operations group for this extension method. @@ -341,13 +336,17 @@ public static void Delete(this ISignalROperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task DeleteAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListKeysAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.ListKeysWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Operation to update an exiting SignalR service. + /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey + /// cannot be regenerated at the same time. /// /// /// The operations group for this extension method. @@ -360,15 +359,16 @@ public static void Delete(this ISignalROperations operations, string resourceGro /// The name of the SignalR resource. /// /// - /// Parameters for the update operation + /// Parameter that describes the Regenerate Key Operation. /// - public static SignalRResource Update(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource)) + public static SignalRKeys RegenerateKey(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters)) { - return operations.UpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); + return operations.RegenerateKeyAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); } /// - /// Operation to update an exiting SignalR service. + /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey + /// cannot be regenerated at the same time. /// /// /// The operations group for this extension method. @@ -381,21 +381,21 @@ public static void Delete(this ISignalROperations operations, string resourceGro /// The name of the SignalR resource. /// /// - /// Parameters for the update operation + /// Parameter that describes the Regenerate Key Operation. /// /// /// The cancellation token. /// - public static async Task UpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RegenerateKeyAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Operation to restart a SignalR service. + /// Operation to restart a resource. /// /// /// The operations group for this extension method. @@ -413,7 +413,7 @@ public static void Restart(this ISignalROperations operations, string resourceGr } /// - /// Operation to restart a SignalR service. + /// Operation to restart a resource. /// /// /// The operations group for this extension method. @@ -434,8 +434,7 @@ public static void Restart(this ISignalROperations operations, string resourceGr } /// - /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot - /// be regenerated at the same time. + /// Create or update a resource. /// /// /// The operations group for this extension method. @@ -448,16 +447,15 @@ public static void Restart(this ISignalROperations operations, string resourceGr /// The name of the SignalR resource. /// /// - /// Parameter that describes the Regenerate Key Operation. + /// Parameters for the create or update operation /// - public static SignalRKeys BeginRegenerateKey(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters)) + public static SignalRResource BeginCreateOrUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource)) { - return operations.BeginRegenerateKeyAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); + return operations.BeginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); } /// - /// Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot - /// be regenerated at the same time. + /// Create or update a resource. /// /// /// The operations group for this extension method. @@ -470,21 +468,21 @@ public static void Restart(this ISignalROperations operations, string resourceGr /// The name of the SignalR resource. /// /// - /// Parameter that describes the Regenerate Key Operation. + /// Parameters for the create or update operation /// /// /// The cancellation token. /// - public static async Task BeginRegenerateKeyAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateOrUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create a new SignalR service and update an exiting SignalR service. + /// Operation to delete a resource. /// /// /// The operations group for this extension method. @@ -496,16 +494,13 @@ public static void Restart(this ISignalROperations operations, string resourceGr /// /// The name of the SignalR resource. /// - /// - /// Parameters for the create or update operation - /// - public static SignalRResource BeginCreateOrUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource)) + public static void BeginDelete(this ISignalROperations operations, string resourceGroupName, string resourceName) { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); } /// - /// Create a new SignalR service and update an exiting SignalR service. + /// Operation to delete a resource. /// /// /// The operations group for this extension method. @@ -517,22 +512,16 @@ public static void Restart(this ISignalROperations operations, string resourceGr /// /// The name of the SignalR resource. /// - /// - /// Parameters for the create or update operation - /// /// /// The cancellation token. /// - public static async Task BeginCreateOrUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Operation to delete a SignalR service. + /// Operation to update an exiting resource. /// /// /// The operations group for this extension method. @@ -544,13 +533,16 @@ public static void Restart(this ISignalROperations operations, string resourceGr /// /// The name of the SignalR resource. /// - public static void BeginDelete(this ISignalROperations operations, string resourceGroupName, string resourceName) + /// + /// Parameters for the update operation + /// + public static SignalRResource BeginUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource)) { - operations.BeginDeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); + return operations.BeginUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); } /// - /// Operation to delete a SignalR service. + /// Operation to update an exiting resource. /// /// /// The operations group for this extension method. @@ -562,16 +554,23 @@ public static void BeginDelete(this ISignalROperations operations, string resour /// /// The name of the SignalR resource. /// + /// + /// Parameters for the update operation + /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Operation to update an exiting SignalR service. + /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey + /// cannot be regenerated at the same time. /// /// /// The operations group for this extension method. @@ -584,15 +583,16 @@ public static void BeginDelete(this ISignalROperations operations, string resour /// The name of the SignalR resource. /// /// - /// Parameters for the update operation + /// Parameter that describes the Regenerate Key Operation. /// - public static SignalRResource BeginUpdate(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource)) + public static SignalRKeys BeginRegenerateKey(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters)) { - return operations.BeginUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); + return operations.BeginRegenerateKeyAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult(); } /// - /// Operation to update an exiting SignalR service. + /// Regenerate the access key for the resource. PrimaryKey and SecondaryKey + /// cannot be regenerated at the same time. /// /// /// The operations group for this extension method. @@ -605,21 +605,21 @@ public static void BeginDelete(this ISignalROperations operations, string resour /// The name of the SignalR resource. /// /// - /// Parameters for the update operation + /// Parameter that describes the Regenerate Key Operation. /// /// /// The cancellation token. /// - public static async Task BeginUpdateAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, SignalRResource parameters = default(SignalRResource), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginRegenerateKeyAsync(this ISignalROperations operations, string resourceGroupName, string resourceName, RegenerateKeyParameters parameters = default(RegenerateKeyParameters), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Operation to restart a SignalR service. + /// Operation to restart a resource. /// /// /// The operations group for this extension method. @@ -637,7 +637,7 @@ public static void BeginRestart(this ISignalROperations operations, string resou } /// - /// Operation to restart a SignalR service. + /// Operation to restart a resource. /// /// /// The operations group for this extension method. diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/UsagesOperations.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/UsagesOperations.cs index 54b4cfc6e3b12..e5afdf1c39915 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/UsagesOperations.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/UsagesOperations.cs @@ -51,7 +51,7 @@ internal UsagesOperations(SignalRManagementClient client) public SignalRManagementClient Client { get; private set; } /// - /// List usage quotas for Azure SignalR service by location. + /// List resource usage quotas by location. /// /// /// the location like "eastus" @@ -233,7 +233,7 @@ internal UsagesOperations(SignalRManagementClient client) } /// - /// List usage quotas for Azure SignalR service by location. + /// List resource usage quotas by location. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/UsagesOperationsExtensions.cs b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/UsagesOperationsExtensions.cs index c2b9c0933047b..679cd53e53e86 100644 --- a/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/UsagesOperationsExtensions.cs +++ b/sdk/signalr/Microsoft.Azure.Management.SignalR/src/Generated/UsagesOperationsExtensions.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.SignalR public static partial class UsagesOperationsExtensions { /// - /// List usage quotas for Azure SignalR service by location. + /// List resource usage quotas by location. /// /// /// The operations group for this extension method. @@ -36,7 +36,7 @@ public static IPage List(this IUsagesOperations operations, string } /// - /// List usage quotas for Azure SignalR service by location. + /// List resource usage quotas by location. /// /// /// The operations group for this extension method. @@ -56,7 +56,7 @@ public static IPage List(this IUsagesOperations operations, string } /// - /// List usage quotas for Azure SignalR service by location. + /// List resource usage quotas by location. /// /// /// The operations group for this extension method. @@ -70,7 +70,7 @@ public static IPage ListNext(this IUsagesOperations operations, st } /// - /// List usage quotas for Azure SignalR service by location. + /// List resource usage quotas by location. /// /// /// The operations group for this extension method.