Skip to content

Commit

Permalink
PS Development for UDR and NSG Management (#25810)
Browse files Browse the repository at this point in the history
* Base commit

* Update to the base commit

* Support for MemberType in NG cmdlet

* Resolving comments

* Cleanup help files

* Readme file changes for Routing and NSG

* Update README.md

* Resolving PR comments

* Update NetworkManagerTests.ps1

* Update NetworkManagerTests.ps1

* Update NetworkManagerTests.ps1

* Update README.md

* Committing generated files

* Commit more gen files

* Commit more gen files

* Yet more gen files

* Update NetworkManagementClient.cs

* Update

* Help file updates

* Help file updates

* Fix for failing checks

* Commit recording files

* Update to fix checks

* Update New-AzNetworkManagerRoutingRuleNextHop.md

* Update

* Update SignatureIssues.csv

* Update SignatureIssues.csv

* Update New-AzNetworkManagerRoutingRuleNextHop.md

* Update collection property

* Update session recording files

* Update to test file

* Updating session record files

* Update

* Update ChangeLog.md

* Resolving routing related PR comments

* Resolving PR comments for NSG

* Update test file

* Update help docs of Az.Network

* Update

* Reverting the previous change

* Update to Get- and Set- cmdlets for Routing

* Update to routing commands

* Updating routing cmdlets with Description

* Security User command updates

* Update security user command

* Minor update

* Update with additional options and parameter set

* Update the help doc of Az.Network

---------

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
Co-authored-by: Lei Jin <leijin@microsoft.com>
  • Loading branch information
3 people authored Sep 30, 2024
1 parent 513d6c0 commit c0731e4
Show file tree
Hide file tree
Showing 145 changed files with 43,113 additions and 3,385 deletions.
27 changes: 27 additions & 0 deletions src/Accounts/Accounts/Utilities/CommandMappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4600,6 +4600,12 @@
"Get-AzNetworkManagerSecurityAdminConfiguration": {},
"Get-AzNetworkManagerSecurityAdminRule": {},
"Get-AzNetworkManagerSecurityAdminRuleCollection": {},
"Get-AzNetworkManagerRoutingConfiguration": {},
"Get-AzNetworkManagerRoutingRule": {},
"Get-AzNetworkManagerRoutingRuleCollection": {},
"Get-AzNetworkManagerSecurityUserConfiguration": {},
"Get-AzNetworkManagerSecurityUserRule": {},
"Get-AzNetworkManagerSecurityUserRuleCollection": {},
"Get-AzNetworkManagerStaticMember": {},
"Get-AzNetworkManagerSubscriptionConnection": {},
"Get-AzNetworkProfile": {},
Expand Down Expand Up @@ -4820,6 +4826,8 @@
"New-AzNetworkInterfaceIpConfig": {},
"New-AzNetworkManager": {},
"New-AzNetworkManagerAddressPrefixItem": {},
"New-AzNetworkManagerRoutingRuleDestination": {},
"New-AzNetworkManagerRoutingRuleNextHop": {},
"New-AzNetworkManagerConnectivityConfiguration": {},
"New-AzNetworkManagerConnectivityGroupItem": {},
"New-AzNetworkManagerGroup": {},
Expand All @@ -4830,7 +4838,14 @@
"New-AzNetworkManagerSecurityAdminConfiguration": {},
"New-AzNetworkManagerSecurityAdminRule": {},
"New-AzNetworkManagerSecurityAdminRuleCollection": {},
"New-AzNetworkManagerRoutingConfiguration": {},
"New-AzNetworkManagerRoutingRule": {},
"New-AzNetworkManagerRoutingRuleCollection": {},
"New-AzNetworkManagerSecurityGroupItem": {},
"New-AzNetworkManagerSecurityUserConfiguration": {},
"New-AzNetworkManagerSecurityUserRule": {},
"New-AzNetworkManagerSecurityUserRuleCollection": {},
"New-AzNetworkManagerSecurityUserGroupItem": {},
"New-AzNetworkManagerStaticMember": {},
"New-AzNetworkManagerSubscriptionConnection": {},
"New-AzNetworkProfile": {},
Expand Down Expand Up @@ -4997,6 +5012,12 @@
"Remove-AzNetworkManagerSecurityAdminConfiguration": {},
"Remove-AzNetworkManagerSecurityAdminRule": {},
"Remove-AzNetworkManagerSecurityAdminRuleCollection": {},
"Remove-AzNetworkManagerRoutingConfiguration": {},
"Remove-AzNetworkManagerRoutingRule": {},
"Remove-AzNetworkManagerRoutingRuleCollection": {},
"Remove-AzNetworkManagerSecurityUserConfiguration": {},
"Remove-AzNetworkManagerSecurityUserRule": {},
"Remove-AzNetworkManagerSecurityUserRuleCollection": {},
"Remove-AzNetworkManagerStaticMember": {},
"Remove-AzNetworkManagerSubscriptionConnection": {},
"Remove-AzNetworkProfile": {},
Expand Down Expand Up @@ -5131,6 +5152,12 @@
"Set-AzNetworkManagerSecurityAdminConfiguration": {},
"Set-AzNetworkManagerSecurityAdminRule": {},
"Set-AzNetworkManagerSecurityAdminRuleCollection": {},
"Set-AzNetworkManagerRoutingConfiguration": {},
"Set-AzNetworkManagerRoutingRule": {},
"Set-AzNetworkManagerRoutingRuleCollection": {},
"Set-AzNetworkManagerSecurityUserConfiguration": {},
"Set-AzNetworkManagerSecurityUserRule": {},
"Set-AzNetworkManagerSecurityUserRuleCollection": {},
"Set-AzNetworkManagerSubscriptionConnection": {},
"Set-AzNetworkProfile": {},
"Set-AzNetworkSecurityGroup": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,36 @@ public partial interface INetworkManagementClient : System.IDisposable
/// </summary>
IAdminRulesOperations AdminRules { get; }

/// <summary>
/// Gets the INetworkManagerRoutingConfigurationsOperations
/// </summary>
INetworkManagerRoutingConfigurationsOperations NetworkManagerRoutingConfigurations { get; }

/// <summary>
/// Gets the IRoutingRuleCollectionsOperations
/// </summary>
IRoutingRuleCollectionsOperations RoutingRuleCollections { get; }

/// <summary>
/// Gets the IRoutingRulesOperations
/// </summary>
IRoutingRulesOperations RoutingRules { get; }

/// <summary>
/// Gets the ISecurityUserConfigurationsOperations
/// </summary>
ISecurityUserConfigurationsOperations SecurityUserConfigurations { get; }

/// <summary>
/// Gets the ISecurityUserRuleCollectionsOperations
/// </summary>
ISecurityUserRuleCollectionsOperations SecurityUserRuleCollections { get; }

/// <summary>
/// Gets the ISecurityUserRulesOperations
/// </summary>
ISecurityUserRulesOperations SecurityUserRules { get; }

/// <summary>
/// Gets the INetworkProfilesOperations
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
// 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.

namespace Microsoft.Azure.Management.Network
{
using Microsoft.Rest.Azure;
using Models;

/// <summary>
/// NetworkManagerRoutingConfigurationsOperations operations.
/// </summary>
public partial interface INetworkManagerRoutingConfigurationsOperations
{
/// <summary>
/// Lists all the network manager routing configurations in a network manager,
/// in a paginated format.
/// </summary>
/// <remarks>
/// Lists all the network manager routing configurations in a network manager,
/// in a paginated format.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='networkManagerName'>
/// The name of the network manager.
/// </param>
/// <param name='top'>
/// An optional query parameter which specifies the maximum number of records
/// to be returned by the server.
/// </param>
/// <param name='skipToken'>
/// SkipToken is only used if a previous operation returned a partial result.
/// If a previous response contains a nextLink element, the value of the
/// nextLink element will include a skipToken parameter that specifies a
/// starting point to use for subsequent calls.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<NetworkManagerRoutingConfiguration>>> ListWithHttpMessagesAsync(string resourceGroupName, string networkManagerName, int? top = default(int?), string skipToken = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Retrieves a network manager routing configuration.
/// </summary>
/// <remarks>
/// Retrieves a network manager routing configuration.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='networkManagerName'>
/// The name of the network manager.
/// </param>
/// <param name='configurationName'>
/// The name of the network manager Routing Configuration.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<NetworkManagerRoutingConfiguration>> GetWithHttpMessagesAsync(string resourceGroupName, string networkManagerName, string configurationName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Creates or updates a network manager routing configuration.
/// </summary>
/// <remarks>
/// Creates or updates a network manager routing configuration.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='networkManagerName'>
/// The name of the network manager.
/// </param>
/// <param name='configurationName'>
/// The name of the network manager Routing Configuration.
/// </param>
/// <param name='routingConfiguration'>
/// The routing configuration to create or update
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<NetworkManagerRoutingConfiguration>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkManagerName, string configurationName, NetworkManagerRoutingConfiguration routingConfiguration, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Deletes a network manager routing configuration.
/// </summary>
/// <remarks>
/// Deletes a network manager routing configuration.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='networkManagerName'>
/// The name of the network manager.
/// </param>
/// <param name='configurationName'>
/// The name of the network manager Routing Configuration.
/// </param>
/// <param name='force'>
/// Deletes the resource even if it is part of a deployed configuration. If the
/// configuration has been deployed, the service will do a cleanup deployment
/// in the background, prior to the delete.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<NetworkManagerRoutingConfigurationsDeleteHeaders>> DeleteWithHttpMessagesAsync(string resourceGroupName, string networkManagerName, string configurationName, bool? force = default(bool?), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Deletes a network manager routing configuration.
/// </summary>
/// <remarks>
/// Deletes a network manager routing configuration.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='networkManagerName'>
/// The name of the network manager.
/// </param>
/// <param name='configurationName'>
/// The name of the network manager Routing Configuration.
/// </param>
/// <param name='force'>
/// Deletes the resource even if it is part of a deployed configuration. If the
/// configuration has been deployed, the service will do a cleanup deployment
/// in the background, prior to the delete.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<NetworkManagerRoutingConfigurationsDeleteHeaders>> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string networkManagerName, string configurationName, bool? force = default(bool?), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Lists all the network manager routing configurations in a network manager,
/// in a paginated format.
/// </summary>
/// <remarks>
/// Lists all the network manager routing configurations in a network manager,
/// in a paginated format.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<NetworkManagerRoutingConfiguration>>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

}
}
Loading

0 comments on commit c0731e4

Please sign in to comment.