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 @@ -173,6 +173,31 @@ public partial interface IVirtualNetworksOperations
/// </exception>
Task<AzureOperationResponse<IPAddressAvailabilityResult>> CheckIPAddressAvailabilityWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string ipAddress = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists usage stats.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='virtualNetworkName'>
/// The name of the virtual network.
/// </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<VirtualNetworkUsage>>> ListUsageWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes the specified virtual network.
/// </summary>
/// <param name='resourceGroupName'>
Expand Down Expand Up @@ -268,6 +293,28 @@ public partial interface IVirtualNetworksOperations
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<VirtualNetwork>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists usage stats.
/// </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<VirtualNetworkUsage>>> ListUsageNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "localNetworkGatewayName");
}
if (localNetworkGatewayName != null)
{
if (localNetworkGatewayName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "localNetworkGatewayName", 1);
}
}
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
Expand Down Expand Up @@ -521,6 +528,13 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "localNetworkGatewayName");
}
if (localNetworkGatewayName != null)
{
if (localNetworkGatewayName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "localNetworkGatewayName", 1);
}
}
if (parameters == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
Expand Down Expand Up @@ -741,6 +755,13 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "localNetworkGatewayName");
}
if (localNetworkGatewayName != null)
{
if (localNetworkGatewayName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "localNetworkGatewayName", 1);
}
}
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ public ExpressRouteCircuitPeering() { }
/// <param name="gatewayManagerEtag">The GatewayManager Etag.</param>
/// <param name="lastModifiedBy">Gets whether the provider or the
/// customer last modified the peering.</param>
/// <param name="routeFilter">The reference of the RouteFilter
/// resource.</param>
/// <param name="name">Gets name of the resource that is unique within
/// a resource group. This name can be used to access the
/// resource.</param>
/// <param name="etag">A unique read-only string that changes whenever
/// the resource is updated.</param>
/// <param name="routeFilter">The reference of the RouteFilter
/// resource.</param>
public ExpressRouteCircuitPeering(string id = default(string), string peeringType = default(string), string state = default(string), int? azureASN = default(int?), int? peerASN = default(int?), string primaryPeerAddressPrefix = default(string), string secondaryPeerAddressPrefix = default(string), string primaryAzurePort = default(string), string secondaryAzurePort = default(string), string sharedKey = default(string), int? vlanId = default(int?), ExpressRouteCircuitPeeringConfig microsoftPeeringConfig = default(ExpressRouteCircuitPeeringConfig), ExpressRouteCircuitStats stats = default(ExpressRouteCircuitStats), string provisioningState = default(string), string gatewayManagerEtag = default(string), string lastModifiedBy = default(string), string name = default(string), string etag = default(string), RouteFilter routeFilter = default(RouteFilter))
public ExpressRouteCircuitPeering(string id = default(string), string peeringType = default(string), string state = default(string), int? azureASN = default(int?), int? peerASN = default(int?), string primaryPeerAddressPrefix = default(string), string secondaryPeerAddressPrefix = default(string), string primaryAzurePort = default(string), string secondaryAzurePort = default(string), string sharedKey = default(string), int? vlanId = default(int?), ExpressRouteCircuitPeeringConfig microsoftPeeringConfig = default(ExpressRouteCircuitPeeringConfig), ExpressRouteCircuitStats stats = default(ExpressRouteCircuitStats), string provisioningState = default(string), string gatewayManagerEtag = default(string), string lastModifiedBy = default(string), RouteFilter routeFilter = default(RouteFilter), string name = default(string), string etag = default(string))
: base(id)
{
PeeringType = peeringType;
Expand All @@ -82,9 +82,9 @@ public ExpressRouteCircuitPeering() { }
ProvisioningState = provisioningState;
GatewayManagerEtag = gatewayManagerEtag;
LastModifiedBy = lastModifiedBy;
RouteFilter = routeFilter;
Name = name;
Etag = etag;
RouteFilter = routeFilter;
}

/// <summary>
Expand Down Expand Up @@ -183,6 +183,12 @@ public ExpressRouteCircuitPeering() { }
[JsonProperty(PropertyName = "properties.lastModifiedBy")]
public string LastModifiedBy { get; set; }

/// <summary>
/// Gets or sets the reference of the RouteFilter resource.
/// </summary>
[JsonProperty(PropertyName = "properties.routeFilter")]
public RouteFilter RouteFilter { get; set; }

/// <summary>
/// Gets name of the resource that is unique within a resource group.
/// This name can be used to access the resource.
Expand All @@ -196,11 +202,7 @@ public ExpressRouteCircuitPeering() { }
/// </summary>
[JsonProperty(PropertyName = "etag")]
public string Etag { get; protected set; }

/// <summary>
/// Gets or sets the reference of the RouteFilter resource.
/// </summary>
[JsonProperty(PropertyName = "properties.routeFilter")]
public RouteFilter RouteFilter { get; set; }

}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

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

/// <summary>
/// Usage details for subnet.
/// </summary>
public partial class VirtualNetworkUsage
{
/// <summary>
/// Initializes a new instance of the VirtualNetworkUsage class.
/// </summary>
public VirtualNetworkUsage() { }

/// <summary>
/// Initializes a new instance of the VirtualNetworkUsage class.
/// </summary>
/// <param name="currentValue">Indicates number of IPs used from the
/// Subnet.</param>
/// <param name="id">Subnet identifier.</param>
/// <param name="limit">Indicates the size of the subnet.</param>
/// <param name="name">The name containing common and localized value
/// for usage.</param>
/// <param name="unit">Usage units. Returns 'Count'</param>
public VirtualNetworkUsage(double? currentValue = default(double?), string id = default(string), double? limit = default(double?), VirtualNetworkUsageName name = default(VirtualNetworkUsageName), string unit = default(string))
{
CurrentValue = currentValue;
Id = id;
Limit = limit;
Name = name;
Unit = unit;
}

/// <summary>
/// Gets indicates number of IPs used from the Subnet.
/// </summary>
[JsonProperty(PropertyName = "currentValue")]
public double? CurrentValue { get; protected set; }

/// <summary>
/// Gets subnet identifier.
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; protected set; }

/// <summary>
/// Gets indicates the size of the subnet.
/// </summary>
[JsonProperty(PropertyName = "limit")]
public double? Limit { get; protected set; }

/// <summary>
/// Gets the name containing common and localized value for usage.
/// </summary>
[JsonProperty(PropertyName = "name")]
public VirtualNetworkUsageName Name { get; protected set; }

/// <summary>
/// Gets usage units. Returns 'Count'
/// </summary>
[JsonProperty(PropertyName = "unit")]
public string Unit { get; protected set; }

}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// 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 1.0.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

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

/// <summary>
/// Usage strings container.
/// </summary>
public partial class VirtualNetworkUsageName
{
/// <summary>
/// Initializes a new instance of the VirtualNetworkUsageName class.
/// </summary>
public VirtualNetworkUsageName() { }

/// <summary>
/// Initializes a new instance of the VirtualNetworkUsageName class.
/// </summary>
/// <param name="localizedValue">Localized subnet size and usage
/// string.</param>
/// <param name="value">Subnet size and usage string.</param>
public VirtualNetworkUsageName(string localizedValue = default(string), string value = default(string))
{
LocalizedValue = localizedValue;
Value = value;
}

/// <summary>
/// Gets localized subnet size and usage string.
/// </summary>
[JsonProperty(PropertyName = "localizedValue")]
public string LocalizedValue { get; protected set; }

/// <summary>
/// Gets subnet size and usage string.
/// </summary>
[JsonProperty(PropertyName = "value")]
public string Value { get; protected set; }

}
}

Loading