Skip to content

Commit d33f6bd

Browse files
kamboj-prjwlSantosh Lokarapukarthik-gumpuKarthik Gumpu (from Dev Box)
authored
Generated SDK for Network API version 2025-03-01 (#28866)
Co-authored-by: Santosh Lokarapu <[email protected]> Co-authored-by: Karthik Gumpu <[email protected]> Co-authored-by: Karthik Gumpu (from Dev Box) <[email protected]>
1 parent cd78e32 commit d33f6bd

File tree

84 files changed

+3321
-1686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3321
-1686
lines changed

src/Network/Network.Management.Sdk/Generated/IPublicIPAddressesOperations.cs

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,72 @@ public partial interface IPublicIPAddressesOperations
296296
/// </exception>
297297
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));
298298

299+
/// <summary>
300+
/// Reserves the specified Cloud Service Public IP by switching its allocation
301+
/// method to Static. If rollback is requested, reverts the allocation method
302+
/// to Dynamic.
303+
/// </summary>
304+
/// <remarks>
305+
/// Reserves the specified Cloud Service Public IP by switching its allocation
306+
/// method to Static. If rollback is requested, reverts the allocation method
307+
/// to Dynamic.
308+
/// </remarks>
309+
/// <param name='resourceGroupName'>
310+
/// The name of the resource group.
311+
/// </param>
312+
/// <param name='publicIpAddressName'>
313+
/// The name of the public IP address.
314+
/// </param>
315+
/// <param name='parameters'>
316+
/// Parameter that define which Public IP Address should be associated in place
317+
/// of given Public IP Address.
318+
/// </param>
319+
/// <param name='customHeaders'>
320+
/// The headers that will be added to request.
321+
/// </param>
322+
/// <param name='cancellationToken'>
323+
/// The cancellation token.
324+
/// </param>
325+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
326+
/// Thrown when the operation returned an invalid status code
327+
/// </exception>
328+
/// <exception cref="Microsoft.Rest.SerializationException">
329+
/// Thrown when unable to deserialize the response
330+
/// </exception>
331+
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));
332+
333+
/// <summary>
334+
/// Disassociates the Cloud Service reserved Public IP and associates the
335+
/// specified Standalone Public IP to the same Cloud Service frontend.
336+
/// </summary>
337+
/// <remarks>
338+
/// Disassociates the Cloud Service reserved Public IP and associates the
339+
/// specified Standalone Public IP to the same Cloud Service frontend.
340+
/// </remarks>
341+
/// <param name='resourceGroupName'>
342+
/// The name of the resource group.
343+
/// </param>
344+
/// <param name='publicIpAddressName'>
345+
/// The name of the public IP address.
346+
/// </param>
347+
/// <param name='parameters'>
348+
/// Parameter that define which Public IP Address should be associated in place
349+
/// of given Public IP Address.
350+
/// </param>
351+
/// <param name='customHeaders'>
352+
/// The headers that will be added to request.
353+
/// </param>
354+
/// <param name='cancellationToken'>
355+
/// The cancellation token.
356+
/// </param>
357+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
358+
/// Thrown when the operation returned an invalid status code
359+
/// </exception>
360+
/// <exception cref="Microsoft.Rest.SerializationException">
361+
/// Thrown when unable to deserialize the response
362+
/// </exception>
363+
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));
364+
299365
/// <summary>
300366
/// Gets information about all public IP addresses on a virtual machine scale
301367
/// set level.
@@ -480,6 +546,72 @@ public partial interface IPublicIPAddressesOperations
480546
/// </exception>
481547
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));
482548

549+
/// <summary>
550+
/// Reserves the specified Cloud Service Public IP by switching its allocation
551+
/// method to Static. If rollback is requested, reverts the allocation method
552+
/// to Dynamic.
553+
/// </summary>
554+
/// <remarks>
555+
/// Reserves the specified Cloud Service Public IP by switching its allocation
556+
/// method to Static. If rollback is requested, reverts the allocation method
557+
/// to Dynamic.
558+
/// </remarks>
559+
/// <param name='resourceGroupName'>
560+
/// The name of the resource group.
561+
/// </param>
562+
/// <param name='publicIpAddressName'>
563+
/// The name of the public IP address.
564+
/// </param>
565+
/// <param name='parameters'>
566+
/// Parameter that define which Public IP Address should be associated in place
567+
/// of given Public IP Address.
568+
/// </param>
569+
/// <param name='customHeaders'>
570+
/// The headers that will be added to request.
571+
/// </param>
572+
/// <param name='cancellationToken'>
573+
/// The cancellation token.
574+
/// </param>
575+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
576+
/// Thrown when the operation returned an invalid status code
577+
/// </exception>
578+
/// <exception cref="Microsoft.Rest.SerializationException">
579+
/// Thrown when unable to deserialize the response
580+
/// </exception>
581+
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));
582+
583+
/// <summary>
584+
/// Disassociates the Cloud Service reserved Public IP and associates the
585+
/// specified Standalone Public IP to the same Cloud Service frontend.
586+
/// </summary>
587+
/// <remarks>
588+
/// Disassociates the Cloud Service reserved Public IP and associates the
589+
/// specified Standalone Public IP to the same Cloud Service frontend.
590+
/// </remarks>
591+
/// <param name='resourceGroupName'>
592+
/// The name of the resource group.
593+
/// </param>
594+
/// <param name='publicIpAddressName'>
595+
/// The name of the public IP address.
596+
/// </param>
597+
/// <param name='parameters'>
598+
/// Parameter that define which Public IP Address should be associated in place
599+
/// of given Public IP Address.
600+
/// </param>
601+
/// <param name='customHeaders'>
602+
/// The headers that will be added to request.
603+
/// </param>
604+
/// <param name='cancellationToken'>
605+
/// The cancellation token.
606+
/// </param>
607+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
608+
/// Thrown when the operation returned an invalid status code
609+
/// </exception>
610+
/// <exception cref="Microsoft.Rest.SerializationException">
611+
/// Thrown when unable to deserialize the response
612+
/// </exception>
613+
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));
614+
483615
/// <summary>
484616
/// Gets information about all public IP addresses on a cloud service level.
485617
/// </summary>

src/Network/Network.Management.Sdk/Generated/Models/DdosCustomPolicy.cs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,21 @@ public DdosCustomPolicy()
5151
/// identifies the resource, even if the user changes its name or migrate the
5252
/// resource across subscriptions or resource groups.
5353
/// </param>
54-
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))
54+
55+
/// <param name="detectionRules">The list of DDoS detection rules associated with the custom policy.
56+
/// </param>
57+
58+
/// <param name="frontEndIPConfiguration">The list of frontend IP configurations associated with the custom policy.
59+
/// </param>
60+
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>))
5561

5662
: base(id, name, type, location, tags)
5763
{
5864
this.Etag = etag;
5965
this.ProvisioningState = provisioningState;
6066
this.ResourceGuid = resourceGuid;
67+
this.DetectionRules = detectionRules;
68+
this.FrontEndIPConfiguration = frontEndIPConfiguration;
6169
CustomInit();
6270
}
6371

@@ -87,5 +95,19 @@ public DdosCustomPolicy()
8795
/// </summary>
8896
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.resourceGuid")]
8997
public string ResourceGuid {get; private set; }
98+
99+
/// <summary>
100+
/// Gets or sets the list of DDoS detection rules associated with the custom
101+
/// policy.
102+
/// </summary>
103+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.detectionRules")]
104+
public System.Collections.Generic.IList<DdosDetectionRule> DetectionRules {get; set; }
105+
106+
/// <summary>
107+
/// Gets or sets the list of frontend IP configurations associated with the
108+
/// custom policy.
109+
/// </summary>
110+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.frontEndIpConfiguration")]
111+
public System.Collections.Generic.IList<SubResource> FrontEndIPConfiguration {get; set; }
90112
}
91113
}

src/Network/Network.Management.Sdk/Generated/Models/DdosCustomPolicyPropertiesFormat.cs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,19 @@ public DdosCustomPolicyPropertiesFormat()
3232
/// <param name="provisioningState">The provisioning state of the DDoS custom policy resource.
3333
/// Possible values include: &#39;Failed&#39;, &#39;Succeeded&#39;, &#39;Canceled&#39;, &#39;Creating&#39;,
3434
/// &#39;Updating&#39;, &#39;Deleting&#39;</param>
35-
public DdosCustomPolicyPropertiesFormat(string resourceGuid = default(string), string provisioningState = default(string))
35+
36+
/// <param name="detectionRules">The list of DDoS detection rules associated with the custom policy.
37+
/// </param>
38+
39+
/// <param name="frontEndIPConfiguration">The list of frontend IP configurations associated with the custom policy.
40+
/// </param>
41+
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>))
3642

3743
{
3844
this.ResourceGuid = resourceGuid;
3945
this.ProvisioningState = provisioningState;
46+
this.DetectionRules = detectionRules;
47+
this.FrontEndIPConfiguration = frontEndIPConfiguration;
4048
CustomInit();
4149
}
4250

@@ -59,5 +67,19 @@ public DdosCustomPolicyPropertiesFormat()
5967
/// </summary>
6068
[Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")]
6169
public string ProvisioningState {get; private set; }
70+
71+
/// <summary>
72+
/// Gets or sets the list of DDoS detection rules associated with the custom
73+
/// policy.
74+
/// </summary>
75+
[Newtonsoft.Json.JsonProperty(PropertyName = "detectionRules")]
76+
public System.Collections.Generic.IList<DdosDetectionRule> DetectionRules {get; set; }
77+
78+
/// <summary>
79+
/// Gets or sets the list of frontend IP configurations associated with the
80+
/// custom policy.
81+
/// </summary>
82+
[Newtonsoft.Json.JsonProperty(PropertyName = "frontEndIpConfiguration")]
83+
public System.Collections.Generic.IList<SubResource> FrontEndIPConfiguration {get; set; }
6284
}
6385
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
6+
namespace Microsoft.Azure.Management.Network.Models
7+
{
8+
9+
/// <summary>
10+
/// Defines values for DdosDetectionMode.
11+
/// </summary>
12+
13+
14+
public static class DdosDetectionMode
15+
{
16+
public const string TrafficThreshold = "TrafficThreshold";
17+
}
18+
}
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
6+
namespace Microsoft.Azure.Management.Network.Models
7+
{
8+
using System.Linq;
9+
10+
/// <summary>
11+
/// A DDoS detection rule resource.
12+
/// </summary>
13+
[Microsoft.Rest.Serialization.JsonTransformation]
14+
public partial class DdosDetectionRule : SubResource
15+
{
16+
/// <summary>
17+
/// Initializes a new instance of the DdosDetectionRule class.
18+
/// </summary>
19+
public DdosDetectionRule()
20+
{
21+
CustomInit();
22+
}
23+
24+
/// <summary>
25+
/// Initializes a new instance of the DdosDetectionRule class.
26+
/// </summary>
27+
28+
/// <param name="id">Resource ID.
29+
/// </param>
30+
31+
/// <param name="name">The name of the DDoS detection rule.
32+
/// </param>
33+
34+
/// <param name="etag">A unique read-only string that changes whenever the resource is updated.
35+
/// </param>
36+
37+
/// <param name="type">The resource type.
38+
/// </param>
39+
40+
/// <param name="provisioningState">The provisioning state of the DDoS detection rule.
41+
/// Possible values include: &#39;Failed&#39;, &#39;Succeeded&#39;, &#39;Canceled&#39;, &#39;Creating&#39;,
42+
/// &#39;Updating&#39;, &#39;Deleting&#39;</param>
43+
44+
/// <param name="detectionMode">The detection mode for the DDoS detection rule.
45+
/// Possible values include: &#39;TrafficThreshold&#39;</param>
46+
47+
/// <param name="trafficDetectionRule">The traffic detection rule details.
48+
/// </param>
49+
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))
50+
51+
: base(id)
52+
{
53+
this.Name = name;
54+
this.Etag = etag;
55+
this.Type = type;
56+
this.ProvisioningState = provisioningState;
57+
this.DetectionMode = detectionMode;
58+
this.TrafficDetectionRule = trafficDetectionRule;
59+
CustomInit();
60+
}
61+
62+
/// <summary>
63+
/// An initialization method that performs custom operations like setting defaults
64+
/// </summary>
65+
partial void CustomInit();
66+
67+
68+
/// <summary>
69+
/// Gets or sets the name of the DDoS detection rule.
70+
/// </summary>
71+
[Newtonsoft.Json.JsonProperty(PropertyName = "name")]
72+
public string Name {get; set; }
73+
74+
/// <summary>
75+
/// Gets a unique read-only string that changes whenever the resource is
76+
/// updated.
77+
/// </summary>
78+
[Newtonsoft.Json.JsonProperty(PropertyName = "etag")]
79+
public string Etag {get; private set; }
80+
81+
/// <summary>
82+
/// Gets the resource type.
83+
/// </summary>
84+
[Newtonsoft.Json.JsonProperty(PropertyName = "type")]
85+
public string Type {get; private set; }
86+
87+
/// <summary>
88+
/// 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;
89+
/// </summary>
90+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")]
91+
public string ProvisioningState {get; private set; }
92+
93+
/// <summary>
94+
/// Gets or sets the detection mode for the DDoS detection rule. Possible values include: &#39;TrafficThreshold&#39;
95+
/// </summary>
96+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.detectionMode")]
97+
public string DetectionMode {get; set; }
98+
99+
/// <summary>
100+
/// Gets or sets the traffic detection rule details.
101+
/// </summary>
102+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.trafficDetectionRule")]
103+
public TrafficDetectionRule TrafficDetectionRule {get; set; }
104+
}
105+
}

0 commit comments

Comments
 (0)