Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,20 @@ public partial interface ISignalRManagementClient : System.IDisposable
string SubscriptionId { get; set; }

/// <summary>
/// Gets or sets the preferred language for the response.
/// The preferred language for the response.
/// </summary>
string AcceptLanguage { get; set; }

/// <summary>
/// Gets or sets the retry timeout in seconds for Long Running
/// Operations. Default value is 30.
/// The retry timeout in seconds for Long Running Operations. Default
/// value is 30.
/// </summary>
int? LongRunningOperationRetryTimeout { get; set; }

/// <summary>
/// When set to true a unique x-ms-client-request-id value is generated
/// and included in each request. Default is true.
/// Whether a unique x-ms-client-request-id should be generated. When
/// set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// </summary>
bool? GenerateClientRequestId { get; set; }

Expand All @@ -80,5 +81,10 @@ public partial interface ISignalRManagementClient : System.IDisposable
/// </summary>
ISignalROperations SignalR { get; }

/// <summary>
/// Gets the IUsagesOperations.
/// </summary>
IUsagesOperations Usages { get; }

}
}
71 changes: 71 additions & 0 deletions src/SDKs/SignalR/Management.SignalR/Generated/IUsagesOperations.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.SignalR
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// UsagesOperations operations.
/// </summary>
public partial interface IUsagesOperations
{
/// <summary>
/// List usage quotas for Azure SignalR service by location.
/// </summary>
/// <param name='location'>
/// the location like "eastus"
/// </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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<SignalRUsage>>> ListWithHttpMessagesAsync(string location, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// List usage quotas for Azure SignalR service by location.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<SignalRUsage>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
80 changes: 80 additions & 0 deletions src/SDKs/SignalR/Management.SignalR/Generated/Models/Dimension.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.SignalR.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Specifications of the Dimension of metrics.
/// </summary>
public partial class Dimension
{
/// <summary>
/// Initializes a new instance of the Dimension class.
/// </summary>
public Dimension()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the Dimension class.
/// </summary>
/// <param name="name">The public facing name of the dimension.</param>
/// <param name="displayName">Localized friendly display name of the
/// dimension.</param>
/// <param name="internalName">Name of the dimension as it appears in
/// MDM.</param>
/// <param name="toBeExportedForShoebox">A Boolean flag indicating
/// whether this dimension should be included for the shoebox export
/// scenario.</param>
public Dimension(string name = default(string), string displayName = default(string), string internalName = default(string), bool? toBeExportedForShoebox = default(bool?))
{
Name = name;
DisplayName = displayName;
InternalName = internalName;
ToBeExportedForShoebox = toBeExportedForShoebox;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the public facing name of the dimension.
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

/// <summary>
/// Gets or sets localized friendly display name of the dimension.
/// </summary>
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }

/// <summary>
/// Gets or sets name of the dimension as it appears in MDM.
/// </summary>
[JsonProperty(PropertyName = "internalName")]
public string InternalName { get; set; }

/// <summary>
/// Gets or sets a Boolean flag indicating whether this dimension
/// should be included for the shoebox export scenario.
/// </summary>
[JsonProperty(PropertyName = "toBeExportedForShoebox")]
public bool? ToBeExportedForShoebox { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
namespace Microsoft.Azure.Management.SignalR.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
Expand Down Expand Up @@ -49,7 +51,8 @@ public MetricSpecification()
/// <param name="category">The name of the metric category that the
/// metric belongs to. A metric can only belong to a single
/// category.</param>
public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), string unit = default(string), string aggregationType = default(string), string fillGapWithZero = default(string), string category = default(string))
/// <param name="dimensions">The dimensions of the metrics.</param>
public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), string unit = default(string), string aggregationType = default(string), string fillGapWithZero = default(string), string category = default(string), IList<Dimension> dimensions = default(IList<Dimension>))
{
Name = name;
DisplayName = displayName;
Expand All @@ -58,6 +61,7 @@ public MetricSpecification()
AggregationType = aggregationType;
FillGapWithZero = fillGapWithZero;
Category = category;
Dimensions = dimensions;
CustomInit();
}

Expand Down Expand Up @@ -115,5 +119,11 @@ public MetricSpecification()
[JsonProperty(PropertyName = "category")]
public string Category { get; set; }

/// <summary>
/// Gets or sets the dimensions of the metrics.
/// </summary>
[JsonProperty(PropertyName = "dimensions")]
public IList<Dimension> Dimensions { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ public ResourceSku()
/// <param name="name">The name of the SKU. This is typically a letter
/// + number code, such as A0 or P3. Required (if sku is
/// specified)</param>
/// <param name="tier">The tier of this particular SKU. Optional.
/// Possible values include: 'Free', 'Basic', 'Premium'</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>
/// <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 @@ -68,8 +69,9 @@ public ResourceSku()
public string Name { get; set; }

/// <summary>
/// Gets or sets the tier of this particular SKU. Optional. Possible
/// values include: 'Free', 'Basic', 'Premium'
/// 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'
/// </summary>
[JsonProperty(PropertyName = "tier")]
public string Tier { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ public SignalRKeys()
/// </summary>
/// <param name="primaryKey">The primary access key.</param>
/// <param name="secondaryKey">The secondary access key.</param>
public SignalRKeys(string primaryKey = default(string), string secondaryKey = default(string))
/// <param name="primaryConnectionString">SignalR connection string
/// constructed via the primaryKey</param>
/// <param name="secondaryConnectionString">SignalR connection string
/// constructed via the secondaryKey</param>
public SignalRKeys(string primaryKey = default(string), string secondaryKey = default(string), string primaryConnectionString = default(string), string secondaryConnectionString = default(string))
{
PrimaryKey = primaryKey;
SecondaryKey = secondaryKey;
PrimaryConnectionString = primaryConnectionString;
SecondaryConnectionString = secondaryConnectionString;
CustomInit();
}

Expand All @@ -55,5 +61,19 @@ public SignalRKeys()
[JsonProperty(PropertyName = "secondaryKey")]
public string SecondaryKey { get; set; }

/// <summary>
/// Gets or sets signalR connection string constructed via the
/// primaryKey
/// </summary>
[JsonProperty(PropertyName = "primaryConnectionString")]
public string PrimaryConnectionString { get; set; }

/// <summary>
/// Gets or sets signalR connection string constructed via the
/// secondaryKey
/// </summary>
[JsonProperty(PropertyName = "secondaryConnectionString")]
public string SecondaryConnectionString { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ public SignalRResource()
/// <param name="serverPort">The publicly accessibly port of the
/// SignalR service which is designed for customer server side
/// usage.</param>
public SignalRResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), ResourceSku sku = default(ResourceSku), string hostNamePrefix = default(string), string provisioningState = default(string), string externalIP = default(string), string hostName = default(string), int? publicPort = default(int?), int? serverPort = default(int?))
/// <param name="version">Version of the SignalR resource. Probably you
/// need the same or higher version of client SDKs.</param>
public SignalRResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), ResourceSku sku = default(ResourceSku), string hostNamePrefix = default(string), string provisioningState = default(string), string externalIP = default(string), string hostName = default(string), int? publicPort = default(int?), int? serverPort = default(int?), string version = default(string))
: base(id, name, type, location, tags)
{
Sku = sku;
Expand All @@ -73,6 +75,7 @@ public SignalRResource()
HostName = hostName;
PublicPort = publicPort;
ServerPort = serverPort;
Version = version;
CustomInit();
}

Expand Down Expand Up @@ -131,6 +134,13 @@ public SignalRResource()
[JsonProperty(PropertyName = "properties.serverPort")]
public int? ServerPort { get; private set; }

/// <summary>
/// Gets or sets version of the SignalR resource. Probably you need the
/// same or higher version of client SDKs.
/// </summary>
[JsonProperty(PropertyName = "properties.version")]
public string Version { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public static class SignalRSkuTier
{
public const string Free = "Free";
public const string Basic = "Basic";
public const string Standard = "Standard";
public const string Premium = "Premium";
}
}
Loading