Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Network changes into AutoRest #2999

Merged
merged 39 commits into from
Mar 28, 2017
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
dd1bf69
Virtual Network Gateway Connection tests for Ipsec Policy
henry416 Mar 13, 2017
af97a84
Generated code for network new 2017-03-01 api-version (only Ipsec Pol…
henry416 Mar 16, 2017
3e92d91
package version incremented
henry416 Mar 16, 2017
d8f24c6
#WAF added autogenerated files
jobatzil Mar 17, 2017
4d7bbbc
#WAF changed version in rest API calls of Network/SessionRecords.
jobatzil Mar 17, 2017
678613c
#WAF changed version in rest API calls of Compute/SessionRecords.
jobatzil Mar 17, 2017
c95c199
Merge remote-tracking branch 'upstream/AutoRest' into AutoRest
henry416 Mar 17, 2017
c8288be
#WAF set x-ms-flatten to true for ApplicationGatewayFirewallRuleSet.
jobatzil Mar 18, 2017
a245f83
Using proper rest api spec for 2017-03-01 generation
henry416 Mar 20, 2017
8aeba43
#WAF Added web application firewall related tests and rerecorded agw …
jobatzil Mar 21, 2017
86b2b89
#WAF removed unneccessary file ending changes created by the PS scrip…
jobatzil Mar 21, 2017
ae21523
#WAF updated comment for ApplicationGatewayFirewallDisabledRuleGroup.…
jobatzil Mar 21, 2017
91ea4b3
#WAF incremented assembly version.
jobatzil Mar 21, 2017
86f6cd3
Update Network test versions to 2017-03-01
henry416 Mar 21, 2017
9cac289
corrected Assembly version for 2017-03-01
henry416 Mar 21, 2017
35f83bd
#WAF removed redundancy in description of enums.
jobatzil Mar 21, 2017
354816e
#WAF updated required fields for getBackendHealth Api result.
jobatzil Mar 21, 2017
dce29a7
#INIT updated the api-version to 2016-03-01 in the Network *Operation…
jobatzil Mar 22, 2017
f916094
#INIT Updated Version number to 10.0.0 (next major version) since the…
jobatzil Mar 22, 2017
b0ec565
#INIT Changed version number to 2017-03-01 in Network/SessionRecordings.
jobatzil Mar 22, 2017
d6151b3
#INIT Changed version number to 2017-03-01 in Compute/SessionRecordings.
jobatzil Mar 22, 2017
34fd7c6
#INIT Removed unneccessary changes where only end of file chagned.
jobatzil Mar 22, 2017
ccbc38e
Merge remote-tracking branch 'upstream/network-changes' into AutoRest
henry416 Mar 22, 2017
05e52a9
AssemblyInfo revert AssemblyVersion to original as requested
henry416 Mar 22, 2017
4d44fec
#WAF Renamed GetAvailableWafRuleSets to ListAvailableWafRuleSets.
jobatzil Mar 22, 2017
89cd77f
Merge pull request #2958 from jobatzil/feature/jobatzil/waf
cormacpayne Mar 22, 2017
8af95e9
merge with network-changes branch
henry416 Mar 22, 2017
2108694
removed EOF-only changes
henry416 Mar 22, 2017
3704f56
Merge remote-tracking branch 'upstream/network-changes' into feature/…
jobatzil Mar 22, 2017
a007d57
Merge remote-tracking branch 'upstream/network-changes' into feature/…
jobatzil Mar 22, 2017
97c5852
Merge pull request #2943 from henry416/AutoRest
cormacpayne Mar 23, 2017
d9b1aa8
Merge remote-tracking branch 'upstream/network-changes' into feature/…
jobatzil Mar 23, 2017
ed4e0c0
Merge pull request #2976 from jobatzil/feature/jobatzil/plain201703
cormacpayne Mar 23, 2017
0baef6d
#12345: Updating generated files after fixing virtualNetworkGateway r…
Nilambari Mar 24, 2017
d51092b
#WAF improved tests.
jobatzil Mar 24, 2017
35bdd3f
Merge branch 'feature/jobatzil/plain201703' into feature/jobatzil/waf
jobatzil Mar 24, 2017
10b0785
#WAF Recorded new ApplicationGateway tests.
jobatzil Mar 27, 2017
502ca16
Merge pull request #2986 from Nilambari/network-changes
cormacpayne Mar 27, 2017
62bced7
Merge pull request #2992 from jobatzil/feature/jobatzil/waf2
cormacpayne Mar 28, 2017
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 @@ -14,6 +14,9 @@ namespace Microsoft.Azure.Management.Network.Models
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// BGP peer status details
/// </summary>
public partial class BgpPeerStatus
{
/// <summary>
Expand All @@ -38,7 +41,7 @@ public BgpPeerStatus() { }
/// <param name="messagesSent">The number of BGP messages sent</param>
/// <param name="messagesReceived">The number of BGP messages
/// received</param>
public BgpPeerStatus(string localAddress = default(string), string neighbor = default(string), int? asn = default(int?), string state = default(string), string connectedDuration = default(string), long? routesReceived = default(long?), long? messagesSent = default(long?), int? messagesReceived = default(int?))
public BgpPeerStatus(string localAddress = default(string), string neighbor = default(string), int? asn = default(int?), string state = default(string), string connectedDuration = default(string), long? routesReceived = default(long?), long? messagesSent = default(long?), long? messagesReceived = default(long?))
{
LocalAddress = localAddress;
Neighbor = neighbor;
Expand Down Expand Up @@ -97,7 +100,7 @@ public BgpPeerStatus() { }
/// Gets the number of BGP messages received
/// </summary>
[JsonProperty(PropertyName = "messagesReceived")]
public int? MessagesReceived { get; protected set; }
public long? MessagesReceived { get; protected set; }

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ namespace Microsoft.Azure.Management.Network.Models
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// BGP settings details
/// </summary>
public partial class BgpSettings
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ namespace Microsoft.Azure.Management.Network.Models
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The virtual network connection reset shared key
/// </summary>
public partial class ConnectionResetSharedKey
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// 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;

/// <summary>
/// Defines values for DhGroup.
/// </summary>
public static class DhGroup
{
public const string None = "None";
public const string DHGroup1 = "DHGroup1";
public const string DHGroup2 = "DHGroup2";
public const string DHGroup14 = "DHGroup14";
public const string DHGroup2048 = "DHGroup2048";
public const string ECP256 = "ECP256";
public const string ECP384 = "ECP384";
public const string DHGroup24 = "DHGroup24";
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ namespace Microsoft.Azure.Management.Network.Models
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Gateway routing details
/// </summary>
public partial class GatewayRoute
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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;

/// <summary>
/// Defines values for IkeEncryption.
/// </summary>
public static class IkeEncryption
{
public const string DES = "DES";
public const string DES3 = "DES3";
public const string AES128 = "AES128";
public const string AES192 = "AES192";
public const string AES256 = "AES256";
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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;

/// <summary>
/// Defines values for IkeIntegrity.
/// </summary>
public static class IkeIntegrity
{
public const string MD5 = "MD5";
public const string SHA1 = "SHA1";
public const string SHA256 = "SHA256";
public const string SHA384 = "SHA384";
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// 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;

/// <summary>
/// Defines values for IpsecEncryption.
/// </summary>
public static class IpsecEncryption
{
public const string None = "None";
public const string DES = "DES";
public const string DES3 = "DES3";
public const string AES128 = "AES128";
public const string AES192 = "AES192";
public const string AES256 = "AES256";
public const string GCMAES128 = "GCMAES128";
public const string GCMAES192 = "GCMAES192";
public const string GCMAES256 = "GCMAES256";
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// 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;

/// <summary>
/// Defines values for IpsecIntegrity.
/// </summary>
public static class IpsecIntegrity
{
public const string MD5 = "MD5";
public const string SHA1 = "SHA1";
public const string SHA256 = "SHA256";
public const string GCMAES128 = "GCMAES128";
public const string GCMAES192 = "GCMAES192";
public const string GCMAES256 = "GCMAES256";
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
// 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 Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// An IPSec Policy configuration for a virtual network gateway connection
/// </summary>
public partial class IpsecPolicy
{
/// <summary>
/// Initializes a new instance of the IpsecPolicy class.
/// </summary>
public IpsecPolicy() { }

/// <summary>
/// Initializes a new instance of the IpsecPolicy class.
/// </summary>
/// <param name="saLifeTimeSeconds">The IPSec Security Association
/// (also called Quick Mode or Phase 2 SA) lifetime in seconds for a
/// site to site VPN tunnel.</param>
/// <param name="saDataSizeKilobytes">The IPSec Security Association
/// (also called Quick Mode or Phase 2 SA) payload size in KB for a
/// site to site VPN tunnel.</param>
/// <param name="ipsecEncryption">The IPSec encryption algorithm (IKE
/// phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128',
/// 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'</param>
/// <param name="ipsecIntegrity">The IPSec integrity algorithm (IKE
/// phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256',
/// 'GCMAES128', 'GCMAES192', 'GCMAES256'</param>
/// <param name="ikeEncryption">The IKE encryption algorithm (IKE phase
/// 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192',
/// 'AES256'</param>
/// <param name="ikeIntegrity">The IKE integrity algorithm (IKE phase
/// 2). Possible values include: 'MD5', 'SHA1', 'SHA256',
/// 'SHA384'</param>
/// <param name="dhGroup">The DH Groups used in IKE Phase 1 for initial
/// SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2',
/// 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'</param>
/// <param name="pfsGroup">The DH Groups used in IKE Phase 2 for new
/// child SA. Possible values include: 'None', 'PFS1', 'PFS2',
/// 'PFS2048', 'ECP256', 'ECP384', 'PFS24'</param>
public IpsecPolicy(int saLifeTimeSeconds, int saDataSizeKilobytes, string ipsecEncryption, string ipsecIntegrity, string ikeEncryption, string ikeIntegrity, string dhGroup, string pfsGroup)
{
SaLifeTimeSeconds = saLifeTimeSeconds;
SaDataSizeKilobytes = saDataSizeKilobytes;
IpsecEncryption = ipsecEncryption;
IpsecIntegrity = ipsecIntegrity;
IkeEncryption = ikeEncryption;
IkeIntegrity = ikeIntegrity;
DhGroup = dhGroup;
PfsGroup = pfsGroup;
}

/// <summary>
/// Gets or sets the IPSec Security Association (also called Quick Mode
/// or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.
/// </summary>
[JsonProperty(PropertyName = "saLifeTimeSeconds")]
public int SaLifeTimeSeconds { get; set; }

/// <summary>
/// Gets or sets the IPSec Security Association (also called Quick Mode
/// or Phase 2 SA) payload size in KB for a site to site VPN tunnel.
/// </summary>
[JsonProperty(PropertyName = "saDataSizeKilobytes")]
public int SaDataSizeKilobytes { get; set; }

/// <summary>
/// Gets or sets the IPSec encryption algorithm (IKE phase 1). Possible
/// values include: 'None', 'DES', 'DES3', 'AES128', 'AES192',
/// 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'
/// </summary>
[JsonProperty(PropertyName = "ipsecEncryption")]
public string IpsecEncryption { get; set; }

/// <summary>
/// Gets or sets the IPSec integrity algorithm (IKE phase 1). Possible
/// values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192',
/// 'GCMAES256'
/// </summary>
[JsonProperty(PropertyName = "ipsecIntegrity")]
public string IpsecIntegrity { get; set; }

/// <summary>
/// Gets or sets the IKE encryption algorithm (IKE phase 2). Possible
/// values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256'
/// </summary>
[JsonProperty(PropertyName = "ikeEncryption")]
public string IkeEncryption { get; set; }

/// <summary>
/// Gets or sets the IKE integrity algorithm (IKE phase 2). Possible
/// values include: 'MD5', 'SHA1', 'SHA256', 'SHA384'
/// </summary>
[JsonProperty(PropertyName = "ikeIntegrity")]
public string IkeIntegrity { get; set; }

/// <summary>
/// Gets or sets the DH Groups used in IKE Phase 1 for initial SA.
/// Possible values include: 'None', 'DHGroup1', 'DHGroup2',
/// 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'
/// </summary>
[JsonProperty(PropertyName = "dhGroup")]
public string DhGroup { get; set; }

/// <summary>
/// Gets or sets the DH Groups used in IKE Phase 2 for new child SA.
/// Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048',
/// 'ECP256', 'ECP384', 'PFS24'
/// </summary>
[JsonProperty(PropertyName = "pfsGroup")]
public string PfsGroup { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (IpsecEncryption == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "IpsecEncryption");
}
if (IpsecIntegrity == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "IpsecIntegrity");
}
if (IkeEncryption == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "IkeEncryption");
}
if (IkeIntegrity == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "IkeIntegrity");
}
if (DhGroup == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "DhGroup");
}
if (PfsGroup == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "PfsGroup");
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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;

/// <summary>
/// Defines values for PfsGroup.
/// </summary>
public static class PfsGroup
{
public const string None = "None";
public const string PFS1 = "PFS1";
public const string PFS2 = "PFS2";
public const string PFS2048 = "PFS2048";
public const string ECP256 = "ECP256";
public const string ECP384 = "ECP384";
public const string PFS24 = "PFS24";
}
}

Loading