Skip to content

Commit

Permalink
.NET SDK Resource Provider:'EventHub'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5351'
REST Spec PR Author 'v-Ajnava'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Mar 8, 2019
1 parent 4f4d633 commit 5abb7cd
Show file tree
Hide file tree
Showing 10 changed files with 874 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,59 @@ public partial interface INamespacesOperations
/// </exception>
Task<AzureOperationResponse<AccessKeys>> RegenerateKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string authorizationRuleName, RegenerateAccessKeyParameters parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Create or update NetworkRuleSet for a Namespace.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group within the azure subscription.
/// </param>
/// <param name='namespaceName'>
/// The Namespace name
/// </param>
/// <param name='parameters'>
/// The Namespace IpFilterRule.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<NetworkRuleSet>> CreateOrUpdateNetworkRuleSetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, NetworkRuleSet parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets NetworkRuleSet for a Namespace.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group within the azure subscription.
/// </param>
/// <param name='namespaceName'>
/// The Namespace name
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<NetworkRuleSet>> GetNetworkRuleSetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates or updates a namespace. Once created, this namespace's
/// resource manifest is immutable. This operation is idempotent.
/// </summary>
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>
/// 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; }

}
}
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; }

}
}
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 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 src/SDKs/EventHub/Management.EventHub/Generated/Models/Subnet.cs
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; }

}
}
Loading

0 comments on commit 5abb7cd

Please sign in to comment.