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 @@ -296,6 +296,72 @@ public partial interface IPublicIPAddressesOperations
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<PublicIpDdosProtectionStatusResult,PublicIPAddressesDdosProtectionStatusHeaders>> DdosProtectionStatusWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Reserves the specified Cloud Service Public IP by switching its allocation
/// method to Static. If rollback is requested, reverts the allocation method
/// to Dynamic.
/// </summary>
/// <remarks>
/// Reserves the specified Cloud Service Public IP by switching its allocation
/// method to Static. If rollback is requested, reverts the allocation method
/// to Dynamic.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='publicIpAddressName'>
/// The name of the public IP address.
/// </param>
/// <param name='parameters'>
/// Parameter that define which Public IP Address should be associated in place
/// of given Public IP Address.
/// </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>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<PublicIPAddress,PublicIPAddressesReserveCloudServicePublicIPAddressHeaders>> ReserveCloudServicePublicIpAddressWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, ReserveCloudServicePublicIpAddressRequest parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Disassociates the Cloud Service reserved Public IP and associates the
/// specified Standalone Public IP to the same Cloud Service frontend.
/// </summary>
/// <remarks>
/// Disassociates the Cloud Service reserved Public IP and associates the
/// specified Standalone Public IP to the same Cloud Service frontend.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='publicIpAddressName'>
/// The name of the public IP address.
/// </param>
/// <param name='parameters'>
/// Parameter that define which Public IP Address should be associated in place
/// of given Public IP Address.
/// </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>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<PublicIPAddress,PublicIPAddressesDisassociateCloudServiceReservedPublicIPHeaders>> DisassociateCloudServiceReservedPublicIpWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, DisassociateCloudServicePublicIpRequest parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Gets information about all public IP addresses on a virtual machine scale
/// set level.
Expand Down Expand Up @@ -480,6 +546,72 @@ public partial interface IPublicIPAddressesOperations
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<PublicIpDdosProtectionStatusResult,PublicIPAddressesDdosProtectionStatusHeaders>> BeginDdosProtectionStatusWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Reserves the specified Cloud Service Public IP by switching its allocation
/// method to Static. If rollback is requested, reverts the allocation method
/// to Dynamic.
/// </summary>
/// <remarks>
/// Reserves the specified Cloud Service Public IP by switching its allocation
/// method to Static. If rollback is requested, reverts the allocation method
/// to Dynamic.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='publicIpAddressName'>
/// The name of the public IP address.
/// </param>
/// <param name='parameters'>
/// Parameter that define which Public IP Address should be associated in place
/// of given Public IP Address.
/// </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>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<PublicIPAddress,PublicIPAddressesReserveCloudServicePublicIPAddressHeaders>> BeginReserveCloudServicePublicIpAddressWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, ReserveCloudServicePublicIpAddressRequest parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Disassociates the Cloud Service reserved Public IP and associates the
/// specified Standalone Public IP to the same Cloud Service frontend.
/// </summary>
/// <remarks>
/// Disassociates the Cloud Service reserved Public IP and associates the
/// specified Standalone Public IP to the same Cloud Service frontend.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='publicIpAddressName'>
/// The name of the public IP address.
/// </param>
/// <param name='parameters'>
/// Parameter that define which Public IP Address should be associated in place
/// of given Public IP Address.
/// </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>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<PublicIPAddress,PublicIPAddressesDisassociateCloudServiceReservedPublicIPHeaders>> BeginDisassociateCloudServiceReservedPublicIpWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, DisassociateCloudServicePublicIpRequest parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Gets information about all public IP addresses on a cloud service level.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,21 @@ public DdosCustomPolicy()
/// identifies the resource, even if the user changes its name or migrate the
/// resource across subscriptions or resource groups.
/// </param>
public DdosCustomPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string etag = default(string), string provisioningState = default(string), string resourceGuid = default(string))

/// <param name="detectionRules">The list of DDoS detection rules associated with the custom policy.
/// </param>

/// <param name="frontEndIPConfiguration">The list of frontend IP configurations associated with the custom policy.
/// </param>
public DdosCustomPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string etag = default(string), string provisioningState = default(string), string resourceGuid = default(string), System.Collections.Generic.IList<DdosDetectionRule> detectionRules = default(System.Collections.Generic.IList<DdosDetectionRule>), System.Collections.Generic.IList<SubResource> frontEndIPConfiguration = default(System.Collections.Generic.IList<SubResource>))

: base(id, name, type, location, tags)
{
this.Etag = etag;
this.ProvisioningState = provisioningState;
this.ResourceGuid = resourceGuid;
this.DetectionRules = detectionRules;
this.FrontEndIPConfiguration = frontEndIPConfiguration;
CustomInit();
}

Expand Down Expand Up @@ -87,5 +95,19 @@ public DdosCustomPolicy()
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceGuid")]
public string ResourceGuid {get; private set; }

/// <summary>
/// Gets or sets the list of DDoS detection rules associated with the custom
/// policy.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.detectionRules")]
public System.Collections.Generic.IList<DdosDetectionRule> DetectionRules {get; set; }

/// <summary>
/// Gets or sets the list of frontend IP configurations associated with the
/// custom policy.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.frontEndIpConfiguration")]
public System.Collections.Generic.IList<SubResource> FrontEndIPConfiguration {get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ public DdosCustomPolicyPropertiesFormat()
/// <param name="provisioningState">The provisioning state of the DDoS custom policy resource.
/// Possible values include: &#39;Failed&#39;, &#39;Succeeded&#39;, &#39;Canceled&#39;, &#39;Creating&#39;,
/// &#39;Updating&#39;, &#39;Deleting&#39;</param>
public DdosCustomPolicyPropertiesFormat(string resourceGuid = default(string), string provisioningState = default(string))

/// <param name="detectionRules">The list of DDoS detection rules associated with the custom policy.
/// </param>

/// <param name="frontEndIPConfiguration">The list of frontend IP configurations associated with the custom policy.
/// </param>
public DdosCustomPolicyPropertiesFormat(string resourceGuid = default(string), string provisioningState = default(string), System.Collections.Generic.IList<DdosDetectionRule> detectionRules = default(System.Collections.Generic.IList<DdosDetectionRule>), System.Collections.Generic.IList<SubResource> frontEndIPConfiguration = default(System.Collections.Generic.IList<SubResource>))

{
this.ResourceGuid = resourceGuid;
this.ProvisioningState = provisioningState;
this.DetectionRules = detectionRules;
this.FrontEndIPConfiguration = frontEndIPConfiguration;
CustomInit();
}

Expand All @@ -59,5 +67,19 @@ public DdosCustomPolicyPropertiesFormat()
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")]
public string ProvisioningState {get; private set; }

/// <summary>
/// Gets or sets the list of DDoS detection rules associated with the custom
/// policy.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "detectionRules")]
public System.Collections.Generic.IList<DdosDetectionRule> DetectionRules {get; set; }

/// <summary>
/// Gets or sets the list of frontend IP configurations associated with the
/// custom policy.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "frontEndIpConfiguration")]
public System.Collections.Generic.IList<SubResource> FrontEndIPConfiguration {get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.Network.Models
{

/// <summary>
/// Defines values for DdosDetectionMode.
/// </summary>


public static class DdosDetectionMode
{
public const string TrafficThreshold = "TrafficThreshold";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

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

/// <summary>
/// A DDoS detection rule resource.
/// </summary>
[Microsoft.Rest.Serialization.JsonTransformation]
public partial class DdosDetectionRule : SubResource
{
/// <summary>
/// Initializes a new instance of the DdosDetectionRule class.
/// </summary>
public DdosDetectionRule()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DdosDetectionRule class.
/// </summary>

/// <param name="id">Resource ID.
/// </param>

/// <param name="name">The name of the DDoS detection rule.
/// </param>

/// <param name="etag">A unique read-only string that changes whenever the resource is updated.
/// </param>

/// <param name="type">The resource type.
/// </param>

/// <param name="provisioningState">The provisioning state of the DDoS detection rule.
/// Possible values include: &#39;Failed&#39;, &#39;Succeeded&#39;, &#39;Canceled&#39;, &#39;Creating&#39;,
/// &#39;Updating&#39;, &#39;Deleting&#39;</param>

/// <param name="detectionMode">The detection mode for the DDoS detection rule.
/// Possible values include: &#39;TrafficThreshold&#39;</param>

/// <param name="trafficDetectionRule">The traffic detection rule details.
/// </param>
public DdosDetectionRule(string id = default(string), string name = default(string), string etag = default(string), string type = default(string), string provisioningState = default(string), string detectionMode = default(string), TrafficDetectionRule trafficDetectionRule = default(TrafficDetectionRule))

: base(id)
{
this.Name = name;
this.Etag = etag;
this.Type = type;
this.ProvisioningState = provisioningState;
this.DetectionMode = detectionMode;
this.TrafficDetectionRule = trafficDetectionRule;
CustomInit();
}

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


/// <summary>
/// Gets or sets the name of the DDoS detection rule.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "name")]
public string Name {get; set; }

/// <summary>
/// Gets a unique read-only string that changes whenever the resource is
/// updated.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "etag")]
public string Etag {get; private set; }

/// <summary>
/// Gets the resource type.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "type")]
public string Type {get; private set; }

/// <summary>
/// Gets the provisioning state of the DDoS detection rule. Possible values include: &#39;Failed&#39;, &#39;Succeeded&#39;, &#39;Canceled&#39;, &#39;Creating&#39;, &#39;Updating&#39;, &#39;Deleting&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState {get; private set; }

/// <summary>
/// Gets or sets the detection mode for the DDoS detection rule. Possible values include: &#39;TrafficThreshold&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.detectionMode")]
public string DetectionMode {get; set; }

/// <summary>
/// Gets or sets the traffic detection rule details.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.trafficDetectionRule")]
public TrafficDetectionRule TrafficDetectionRule {get; set; }
}
}
Loading
Loading