forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET SDK Resource Provider:'EventHub'
REST Spec PR 'Azure/azure-rest-api-specs#5360' REST Spec PR Author 'v-Ajnava' REST Spec PR Last commit
- Loading branch information
Showing
10 changed files
with
874 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/SDKs/EventHub/Management.EventHub/Generated/Models/DefaultAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
src/SDKs/EventHub/Management.EventHub/Generated/Models/NWRuleSetIpRules.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
/// The response from the List namespace operation. | ||
/// </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; } | ||
|
||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
src/SDKs/EventHub/Management.EventHub/Generated/Models/NWRuleSetVirtualNetworkRules.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// <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> | ||
/// The response from the List namespace operation. | ||
/// </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; } | ||
|
||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/SDKs/EventHub/Management.EventHub/Generated/Models/NetworkRuleIPAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
src/SDKs/EventHub/Management.EventHub/Generated/Models/NetworkRuleSet.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 topic 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; } | ||
|
||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
src/SDKs/EventHub/Management.EventHub/Generated/Models/Subnet.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// <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> | ||
/// 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 = default(string)) | ||
{ | ||
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; } | ||
|
||
} | ||
} |
Oops, something went wrong.