Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SDKs/SignalR/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>SignalRService_2018-03-01-preview;</AzureApiTag>
<AzureApiTag>SignalRService_2018-10-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public partial interface ISignalRManagementClient : System.IDisposable
ServiceClientCredentials Credentials { get; }

/// <summary>
/// Client Api Version.
/// Client Api Version. Possible values include: '2018-03-01-preview',
/// '2018-10-01'
/// </summary>
string ApiVersion { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,30 @@ public partial interface ISignalROperations
/// </exception>
Task<AzureOperationResponse<SignalRResource>> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRUpdateParameters parameters = default(SignalRUpdateParameters), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Operation to restart a SignalR service.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
/// </param>
/// <param name='resourceName'>
/// The name of the SignalR resource.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> RestartWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Regenerate SignalR service access key. PrimaryKey and SecondaryKey
/// cannot be regenerated at the same time.
/// </summary>
Expand Down Expand Up @@ -376,6 +400,30 @@ public partial interface ISignalROperations
/// </exception>
Task<AzureOperationResponse<SignalRResource>> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceName, SignalRUpdateParameters parameters = default(SignalRUpdateParameters), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Operation to restart a SignalR service.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
/// </param>
/// <param name='resourceName'>
/// The name of the SignalR resource.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> BeginRestartWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Handles requests to list all resources in a subscription.
/// </summary>
/// <param name='nextPageLink'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Resource()
/// </summary>
/// <param name="id">Fully qualified resource Id for the
/// resource.</param>
/// <param name="name">The name of the resouce.</param>
/// <param name="name">The name of the resource.</param>
/// <param name="type">The type of the service - e.g.
/// "Microsoft.SignalRService/SignalR"</param>
public Resource(string id = default(string), string name = default(string), string type = default(string))
Expand All @@ -56,7 +56,7 @@ public Resource()
public string Id { get; private set; }

/// <summary>
/// Gets the name of the resouce.
/// Gets the name of the resource.
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public ResourceSku()
/// + number code, such as A0 or P3. Required (if sku is
/// specified)</param>
/// <param name="tier">Optional tier of this particular SKU. `Basic` is
/// deprecated, use `Standard` instead for Basic tier. Possible values
/// include: 'Free', 'Basic', 'Standard', 'Premium'</param>
/// deprecated, use `Standard` instead. Possible values include:
/// 'Free', 'Basic', 'Standard', 'Premium'</param>
/// <param name="size">Optional, string. When the name field is the
/// combination of tier and some other value, this would be the
/// standalone code.</param>
Expand Down Expand Up @@ -70,8 +70,8 @@ public ResourceSku()

/// <summary>
/// Gets or sets optional tier of this particular SKU. `Basic` is
/// deprecated, use `Standard` instead for Basic tier. Possible values
/// include: 'Free', 'Basic', 'Standard', 'Premium'
/// deprecated, use `Standard` instead. Possible values include:
/// 'Free', 'Basic', 'Standard', 'Premium'
/// </summary>
[JsonProperty(PropertyName = "tier")]
public string Tier { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public SignalRResource()
/// </summary>
/// <param name="id">Fully qualified resource Id for the
/// resource.</param>
/// <param name="name">The name of the resouce.</param>
/// <param name="name">The name of the resource.</param>
/// <param name="type">The type of the service - e.g.
/// "Microsoft.SignalRService/SignalR"</param>
/// <param name="location">The GEO location of the SignalR service.
Expand All @@ -57,10 +57,10 @@ public SignalRResource()
/// service.</param>
/// <param name="hostName">FQDN of the SignalR service instance.
/// Format: xxx.service.signalr.net</param>
/// <param name="publicPort">The publicly accessibly port of the
/// <param name="publicPort">The publicly accessible port of the
/// SignalR service which is designed for browser/client side
/// usage.</param>
/// <param name="serverPort">The publicly accessibly port of the
/// <param name="serverPort">The publicly accessible port of the
/// SignalR service which is designed for customer server side
/// usage.</param>
/// <param name="version">Version of the SignalR resource. Probably you
Expand Down Expand Up @@ -121,14 +121,14 @@ public SignalRResource()
public string HostName { get; private set; }

/// <summary>
/// Gets the publicly accessibly port of the SignalR service which is
/// Gets the publicly accessible port of the SignalR service which is
/// designed for browser/client side usage.
/// </summary>
[JsonProperty(PropertyName = "properties.publicPort")]
public int? PublicPort { get; private set; }

/// <summary>
/// Gets the publicly accessibly port of the SignalR service which is
/// Gets the publicly accessible port of the SignalR service which is
/// designed for customer server side usage.
/// </summary>
[JsonProperty(PropertyName = "properties.serverPort")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public SignalRUsageName()
/// <summary>
/// Initializes a new instance of the SignalRUsageName class.
/// </summary>
/// <param name="value">The indentifier of the usage.</param>
/// <param name="value">The identifier of the usage.</param>
/// <param name="localizedValue">Localized name of the usage.</param>
public SignalRUsageName(string value = default(string), string localizedValue = default(string))
{
Expand All @@ -44,7 +44,7 @@ public SignalRUsageName()
partial void CustomInit();

/// <summary>
/// Gets or sets the indentifier of the usage.
/// Gets or sets the identifier of the usage.
/// </summary>
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public TrackedResource()
/// </summary>
/// <param name="id">Fully qualified resource Id for the
/// resource.</param>
/// <param name="name">The name of the resouce.</param>
/// <param name="name">The name of the resource.</param>
/// <param name="type">The type of the service - e.g.
/// "Microsoft.SignalRService/SignalR"</param>
/// <param name="location">The GEO location of the SignalR service.
Expand Down
12 changes: 11 additions & 1 deletion src/SDKs/SignalR/Management.SignalR/Generated/Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,21 @@ internal Operations(SignalRManagementClient client)
/// <exception cref="SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="ValidationException">
/// Thrown when a required parameter is null
/// </exception>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<IPage<Operation>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand All @@ -87,7 +97,7 @@ internal Operations(SignalRManagementClient client)
List<string> _queryParameters = new List<string>();
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.ApiVersion, Client.SerializationSettings).Trim('"'))));
}
if (_queryParameters.Count > 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_SignalRManageme
{
return new Tuple<string, string, string>[]
{
new Tuple<string, string, string>("SignalRService", "Operations", "2018-03-01-preview"),
new Tuple<string, string, string>("SignalRService", "SignalR", "2018-03-01-preview"),
new Tuple<string, string, string>("SignalRService", "Usages", "2018-03-01-preview"),
new Tuple<string, string, string>("SignalRService", "Operations", "2018-10-01"),
new Tuple<string, string, string>("SignalRService", "SignalR", "2018-10-01"),
new Tuple<string, string, string>("SignalRService", "Usages", "2018-10-01"),
}.AsEnumerable();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public partial class SignalRManagementClient : ServiceClient<SignalRManagementCl
public ServiceClientCredentials Credentials { get; private set; }

/// <summary>
/// Client Api Version.
/// Client Api Version. Possible values include: '2018-03-01-preview',
/// '2018-10-01'
/// </summary>
public string ApiVersion { get; private set; }

Expand Down Expand Up @@ -336,7 +337,7 @@ private void Initialize()
SignalR = new SignalROperations(this);
Usages = new UsagesOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2018-03-01-preview";
ApiVersion = 2018-10-01;
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down
Loading