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

[Event Hubs Client] Migrate Code into Central Repository (#5448) #5501

Merged
merged 2 commits into from
Mar 22, 2019
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
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$([MSBuild]::GetPathOfFileAbove('AzSdk.test.reference.props'))" />
<Import Project="$([MSBuild]::GetPathOfFileAbove('AzSdk.test.reference.props'))" />
<PropertyGroup>
<PackageId>EventHub.Tests</PackageId>
<Version>1.0.0</Version>
<Description>EventHub.Tests Class Library</Description>
<Authors>Microsoft Corporation</Authors>
<AssemblyName>EventHub.Tests</AssemblyName>
<AssemblyName>EventHub.Tests</AssemblyName>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<!-- <PackageReference Include="Microsoft.Azure.Management.EventHub" Version="1.2.0" /> -->
<ProjectReference Include="..\Management.EventHub\Microsoft.Azure.Management.EventHub.csproj" />
<ProjectReference Include="..\Management.EventHub\Management.EventHub.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="SessionRecords\**\*.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// <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.EventHub.Models
{

/// <summary>
/// Defines values for DefaultAction.
/// </summary>
public static class DefaultAction
{
public const string Allow = "Allow";
public const string Deny = "Deny";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// <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.EventHub.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Description of NetWorkRuleSet - IpRules resource.
/// </summary>
public partial class NWRuleSetIpRules
{
/// <summary>
/// Initializes a new instance of the NWRuleSetIpRules class.
/// </summary>
public NWRuleSetIpRules()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the NWRuleSetIpRules class.
/// </summary>
/// <param name="ipMask">IP Mask</param>
/// <param name="action">The IP Filter Action. Possible values include:
/// 'Allow'</param>
public NWRuleSetIpRules(string ipMask = default(string), string action = default(string))
{
IpMask = ipMask;
Action = action;
CustomInit();
}

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

/// <summary>
/// Gets or sets IP Mask
/// </summary>
[JsonProperty(PropertyName = "ipMask")]
public string IpMask { get; set; }

/// <summary>
/// Gets or sets the IP Filter Action. Possible values include: 'Allow'
/// </summary>
[JsonProperty(PropertyName = "action")]
public string Action { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// <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.EventHub.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Description of VirtualNetworkRules - NetworkRules resource.
/// </summary>
public partial class NWRuleSetVirtualNetworkRules
{
/// <summary>
/// Initializes a new instance of the NWRuleSetVirtualNetworkRules
/// class.
/// </summary>
public NWRuleSetVirtualNetworkRules()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the NWRuleSetVirtualNetworkRules
/// class.
/// </summary>
/// <param name="subnet">Subnet properties</param>
/// <param name="ignoreMissingVnetServiceEndpoint">Value that indicates
/// whether to ignore missing VNet Service Endpoint</param>
public NWRuleSetVirtualNetworkRules(Subnet subnet = default(Subnet), bool? ignoreMissingVnetServiceEndpoint = default(bool?))
{
Subnet = subnet;
IgnoreMissingVnetServiceEndpoint = ignoreMissingVnetServiceEndpoint;
CustomInit();
}

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

/// <summary>
/// Gets or sets subnet properties
/// </summary>
[JsonProperty(PropertyName = "subnet")]
public Subnet Subnet { get; set; }

/// <summary>
/// Gets or sets value that indicates whether to ignore missing VNet
/// Service Endpoint
/// </summary>
[JsonProperty(PropertyName = "ignoreMissingVnetServiceEndpoint")]
public bool? IgnoreMissingVnetServiceEndpoint { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Subnet != null)
{
Subnet.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// <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.EventHub.Models
{

/// <summary>
/// Defines values for NetworkRuleIPAction.
/// </summary>
public static class NetworkRuleIPAction
{
public const string Allow = "Allow";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// <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.EventHub.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
/// Description of NetworkRuleSet resource.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class NetworkRuleSet : Resource
{
/// <summary>
/// Initializes a new instance of the NetworkRuleSet class.
/// </summary>
public NetworkRuleSet()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the NetworkRuleSet class.
/// </summary>
/// <param name="id">Resource Id</param>
/// <param name="name">Resource name</param>
/// <param name="type">Resource type</param>
/// <param name="defaultAction">Default Action for Network Rule Set.
/// Possible values include: 'Allow', 'Deny'</param>
/// <param name="virtualNetworkRules">List VirtualNetwork Rules</param>
/// <param name="ipRules">List of IpRules</param>
public NetworkRuleSet(string id = default(string), string name = default(string), string type = default(string), string defaultAction = default(string), IList<NWRuleSetVirtualNetworkRules> virtualNetworkRules = default(IList<NWRuleSetVirtualNetworkRules>), IList<NWRuleSetIpRules> ipRules = default(IList<NWRuleSetIpRules>))
: base(id, name, type)
{
DefaultAction = defaultAction;
VirtualNetworkRules = virtualNetworkRules;
IpRules = ipRules;
CustomInit();
}

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

/// <summary>
/// Gets or sets default Action for Network Rule Set. Possible values
/// include: 'Allow', 'Deny'
/// </summary>
[JsonProperty(PropertyName = "properties.defaultAction")]
public string DefaultAction { get; set; }

/// <summary>
/// Gets or sets list VirtualNetwork Rules
/// </summary>
[JsonProperty(PropertyName = "properties.virtualNetworkRules")]
public IList<NWRuleSetVirtualNetworkRules> VirtualNetworkRules { get; set; }

/// <summary>
/// Gets or sets list of IpRules
/// </summary>
[JsonProperty(PropertyName = "properties.ipRules")]
public IList<NWRuleSetIpRules> IpRules { get; set; }

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

/// <summary>
/// Properties supplied for Subnet
/// </summary>
public partial class Subnet
{
/// <summary>
/// Initializes a new instance of the Subnet class.
/// </summary>
public Subnet()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the Subnet class.
/// </summary>
/// <param name="id">Resource ID of Virtual Network Subnet</param>
public Subnet(string id)
{
Id = id;
CustomInit();
}

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

/// <summary>
/// Gets or sets resource ID of Virtual Network Subnet
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Id == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Id");
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EventHub.Tests", "EventHub.Tests\EventHub.Tests.csproj", "{90FE65CB-D848-4ED8-97F5-7C967102CEAF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EventHub.Tests", "EventHub.Tests\Management.EventHub.Tests.csproj", "{90FE65CB-D848-4ED8-97F5-7C967102CEAF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.EventHub", "Management.EventHub\Microsoft.Azure.Management.EventHub.csproj", "{7E47289A-E72B-4F7E-86D2-354E21FA25C4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.EventHub", "Management.EventHub\Management.EventHub.csproj", "{7E47289A-E72B-4F7E-86D2-354E21FA25C4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.