From b0827123c439d704ee8fd7bda1adc09cdfd368c7 Mon Sep 17 00:00:00 2001 From: "Yuzhi Chen (Wicresoft)" Date: Tue, 21 Jun 2022 19:00:49 +0800 Subject: [PATCH 1/2] Fix Az.Peering XML Comments --- src/Peering/Peering/Common/HelperExtensionMethods.cs | 2 +- src/Peering/Peering/Common/PeeringBaseCmdlet.cs | 4 ++-- .../Direct/SetAzureDirectPeeringConnectionCommand.cs | 1 + .../Exchange/SetAzureExchangePeeringConnectionCommand.cs | 1 + src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs | 2 +- src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs | 4 +--- src/Peering/Peering/Peering/NewAzurePeeringCommand.cs | 8 ++++---- .../RegisteredAsn/NewPeeringRegisteredAsnCommand.cs | 6 +++--- .../RegisteredAsn/SetPeeringRegisteredAsnCommand.cs | 8 ++++---- .../NewAzPeeringRegisteredPrefixCommand.cs | 6 +++--- .../SetAzPeeringRegisteredPrefixCommand.cs | 8 ++++---- src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs | 6 +++--- .../GetAzurePeeringServiceCountryCommand.cs | 2 +- .../GetAzurePeeringServiceLocationCommand.cs | 2 +- .../GetAzurePeeringServiceProviderCommand.cs | 2 +- 15 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/Peering/Peering/Common/HelperExtensionMethods.cs b/src/Peering/Peering/Common/HelperExtensionMethods.cs index 251c9a65b17b..8261b374aa14 100644 --- a/src/Peering/Peering/Common/HelperExtensionMethods.cs +++ b/src/Peering/Peering/Common/HelperExtensionMethods.cs @@ -113,7 +113,7 @@ public static IPAddress ToIpAddress(this BitArray self) /// The Type parameter /// /// - /// The . + /// The . /// public static List DetailedCompare(this T val1, T val2) { diff --git a/src/Peering/Peering/Common/PeeringBaseCmdlet.cs b/src/Peering/Peering/Common/PeeringBaseCmdlet.cs index c0ec15a984a5..ae8507f485bb 100644 --- a/src/Peering/Peering/Common/PeeringBaseCmdlet.cs +++ b/src/Peering/Peering/Common/PeeringBaseCmdlet.cs @@ -510,7 +510,7 @@ public virtual void Execute() /// /// Base Cmdlet execute. /// - /// + /// public override void ExecuteCmdlet() { base.ExecuteCmdlet(); @@ -520,7 +520,7 @@ public override void ExecuteCmdlet() /// /// The get azure region. /// - /// + /// /// The InputObject location. /// /// diff --git a/src/Peering/Peering/Direct/SetAzureDirectPeeringConnectionCommand.cs b/src/Peering/Peering/Direct/SetAzureDirectPeeringConnectionCommand.cs index a37a0f6feacd..11dd52139e14 100644 --- a/src/Peering/Peering/Direct/SetAzureDirectPeeringConnectionCommand.cs +++ b/src/Peering/Peering/Direct/SetAzureDirectPeeringConnectionCommand.cs @@ -35,6 +35,7 @@ public class SetAzureDirectPeeringConnectionCommand : PeeringBaseCmdlet { /// /// Gets or sets the legacy InputObject. + /// [Parameter( Mandatory = true, ValueFromPipeline = true, diff --git a/src/Peering/Peering/Exchange/SetAzureExchangePeeringConnectionCommand.cs b/src/Peering/Peering/Exchange/SetAzureExchangePeeringConnectionCommand.cs index eb01e9fda1bd..642ced1d02ca 100644 --- a/src/Peering/Peering/Exchange/SetAzureExchangePeeringConnectionCommand.cs +++ b/src/Peering/Peering/Exchange/SetAzureExchangePeeringConnectionCommand.cs @@ -34,6 +34,7 @@ public class SetAzureExchangePeeringConnectionCommand : PeeringBaseCmdlet { /// /// Gets or sets the legacy InputObject. + /// [Parameter( Mandatory = true, ValueFromPipeline = true, diff --git a/src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs b/src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs index 6fae2ca3e4f2..56c30568520f 100644 --- a/src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs +++ b/src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs @@ -103,7 +103,7 @@ private object GetPeerAsn(string peerName) /// The list peer asn. /// /// - /// The . + /// The . /// private List ListPeerAsn() { diff --git a/src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs b/src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs index 0f681ebbd815..ac493fcf44c8 100644 --- a/src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs +++ b/src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs @@ -101,8 +101,6 @@ public override void Execute() /// /// /// - /// - /// /// /// private PSPeerAsn CreatePeerInfo() @@ -118,7 +116,7 @@ private PSPeerAsn CreatePeerInfo() /// /// The put new InputObject. /// - /// + /// /// The new InputObject. /// /// diff --git a/src/Peering/Peering/Peering/NewAzurePeeringCommand.cs b/src/Peering/Peering/Peering/NewAzurePeeringCommand.cs index 04b5208fac2a..da38cd09200f 100644 --- a/src/Peering/Peering/Peering/NewAzurePeeringCommand.cs +++ b/src/Peering/Peering/Peering/NewAzurePeeringCommand.cs @@ -239,7 +239,7 @@ public override void ExecuteCmdlet() /// /// /// - /// + /// /// /// /// @@ -318,7 +318,7 @@ private PSPeering CreateDirectPeering() /// /// /// - /// + /// /// /// /// @@ -392,7 +392,7 @@ private object PutNewPeering(PSPeering newPeering) /// The convert classic to Exchange peering. /// /// The classic peering. - /// + /// /// /// The . /// @@ -437,7 +437,7 @@ private PSPeering ConvertClassicToExchangePeering(PSExchangePeeringModelView pee /// /// The convert classic to direct peering. /// - /// + /// /// The classic peering. /// /// diff --git a/src/Peering/Peering/Peering/RegisteredAsn/NewPeeringRegisteredAsnCommand.cs b/src/Peering/Peering/Peering/RegisteredAsn/NewPeeringRegisteredAsnCommand.cs index 58fcb013f3ac..51f8222af026 100644 --- a/src/Peering/Peering/Peering/RegisteredAsn/NewPeeringRegisteredAsnCommand.cs +++ b/src/Peering/Peering/Peering/RegisteredAsn/NewPeeringRegisteredAsnCommand.cs @@ -158,7 +158,7 @@ public override void ExecuteCmdlet() /// /// /// - /// + /// /// /// /// @@ -187,7 +187,7 @@ private PSPeeringRegisteredAsn CreateParameterSetNameByResourceAndName() /// /// /// - /// + /// /// /// /// @@ -217,7 +217,7 @@ private PSPeeringRegisteredAsn CreateParameterSetNameByResourceId() /// /// /// - /// + /// /// /// /// diff --git a/src/Peering/Peering/Peering/RegisteredAsn/SetPeeringRegisteredAsnCommand.cs b/src/Peering/Peering/Peering/RegisteredAsn/SetPeeringRegisteredAsnCommand.cs index 9a6066b595be..8abd7ffa3eee 100644 --- a/src/Peering/Peering/Peering/RegisteredAsn/SetPeeringRegisteredAsnCommand.cs +++ b/src/Peering/Peering/Peering/RegisteredAsn/SetPeeringRegisteredAsnCommand.cs @@ -13,7 +13,7 @@ // ---------------------------------------------------------------------------------- using System; using System.Management.Automation; - +using System.Net.Http; using Microsoft.Azure.Commands.Peering.Properties; using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; @@ -156,7 +156,7 @@ public override void ExecuteCmdlet() /// /// /// - /// + /// /// /// /// @@ -185,7 +185,7 @@ private PSPeeringRegisteredAsn CreateParameterSetNameByResourceAndName() /// /// /// - /// + /// /// /// /// @@ -215,7 +215,7 @@ private PSPeeringRegisteredAsn CreateParameterSetNameByResourceId() /// /// /// - /// + /// /// /// /// diff --git a/src/Peering/Peering/Peering/RegisteredPrefix/NewAzPeeringRegisteredPrefixCommand.cs b/src/Peering/Peering/Peering/RegisteredPrefix/NewAzPeeringRegisteredPrefixCommand.cs index fdf3bd372ab5..d12743cd2912 100644 --- a/src/Peering/Peering/Peering/RegisteredPrefix/NewAzPeeringRegisteredPrefixCommand.cs +++ b/src/Peering/Peering/Peering/RegisteredPrefix/NewAzPeeringRegisteredPrefixCommand.cs @@ -161,7 +161,7 @@ public override void ExecuteCmdlet() /// /// /// - /// + /// /// /// /// @@ -190,7 +190,7 @@ private PSPeeringRegisteredPrefix CreateParameterSetNameByResourceAndName() /// /// /// - /// + /// /// /// /// @@ -220,7 +220,7 @@ private PSPeeringRegisteredPrefix CreateParameterSetNameByResourceId() /// /// /// - /// + /// /// /// /// diff --git a/src/Peering/Peering/Peering/RegisteredPrefix/SetAzPeeringRegisteredPrefixCommand.cs b/src/Peering/Peering/Peering/RegisteredPrefix/SetAzPeeringRegisteredPrefixCommand.cs index 959f875fc604..e5b65b20180a 100644 --- a/src/Peering/Peering/Peering/RegisteredPrefix/SetAzPeeringRegisteredPrefixCommand.cs +++ b/src/Peering/Peering/Peering/RegisteredPrefix/SetAzPeeringRegisteredPrefixCommand.cs @@ -13,7 +13,7 @@ // ---------------------------------------------------------------------------------- using System; using System.Management.Automation; - +using System.Net.Http; using Microsoft.Azure.Commands.Peering.Properties; using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; @@ -159,7 +159,7 @@ public override void ExecuteCmdlet() /// /// /// - /// + /// /// /// /// @@ -188,7 +188,7 @@ private PSPeeringRegisteredPrefix CreateParameterSetNameByResourceAndName() /// /// /// - /// + /// /// /// /// @@ -218,7 +218,7 @@ private PSPeeringRegisteredPrefix CreateParameterSetNameByResourceId() /// /// /// - /// + /// /// /// /// diff --git a/src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs b/src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs index 4f767027b0c1..b90a94255560 100644 --- a/src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs +++ b/src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs @@ -352,6 +352,8 @@ private PSDirectPeeringModelView GetAndUpdateDirectPeering() /// /// The direct peering. /// + /// + /// /// /// The . /// @@ -399,9 +401,7 @@ private PSExchangePeeringModelView GetAndUpdateExchangePeering() /// /// The update exchange peering. /// - /// - /// The ps exchange. - /// + /// /// /// The resource group name. /// diff --git a/src/Peering/Peering/PeeringService/GetAzurePeeringServiceCountryCommand.cs b/src/Peering/Peering/PeeringService/GetAzurePeeringServiceCountryCommand.cs index 0af1ab1841a5..93ade81d4d41 100644 --- a/src/Peering/Peering/PeeringService/GetAzurePeeringServiceCountryCommand.cs +++ b/src/Peering/Peering/PeeringService/GetAzurePeeringServiceCountryCommand.cs @@ -44,7 +44,7 @@ public override void Execute() /// The get peering service location. /// /// - /// The . + /// The . /// /// /// diff --git a/src/Peering/Peering/PeeringService/GetAzurePeeringServiceLocationCommand.cs b/src/Peering/Peering/PeeringService/GetAzurePeeringServiceLocationCommand.cs index 6958feb30ae7..ad48001b97a2 100644 --- a/src/Peering/Peering/PeeringService/GetAzurePeeringServiceLocationCommand.cs +++ b/src/Peering/Peering/PeeringService/GetAzurePeeringServiceLocationCommand.cs @@ -50,7 +50,7 @@ public override void Execute() /// The get peering service location. /// /// - /// The . + /// The . /// /// /// diff --git a/src/Peering/Peering/PeeringService/GetAzurePeeringServiceProviderCommand.cs b/src/Peering/Peering/PeeringService/GetAzurePeeringServiceProviderCommand.cs index 68e528be822b..6d6f19c9c0ae 100644 --- a/src/Peering/Peering/PeeringService/GetAzurePeeringServiceProviderCommand.cs +++ b/src/Peering/Peering/PeeringService/GetAzurePeeringServiceProviderCommand.cs @@ -44,7 +44,7 @@ public override void Execute() /// The get peering service provider. /// /// - /// The . + /// The . /// /// /// From e7138f177c333041f1baff9f5f2e23f11d17c54b Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Wed, 22 Jun 2022 11:42:20 +0800 Subject: [PATCH 2/2] Fix Az.Peering XML Comments --- src/Peering/Peering/Common/PeeringBaseCmdlet.cs | 6 +++--- .../Peering/PeerAsn/GetAzurePeerAsnCommand.cs | 2 +- .../Peering/PeerAsn/NewAzurePeerAsnCommand.cs | 2 ++ .../Peering/Peering/NewAzurePeeringCommand.cs | 9 +++++---- .../Peering/Peering/UpdateAzurePeeringCommand.cs | 12 +++++++++--- 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/Peering/Peering/Common/PeeringBaseCmdlet.cs b/src/Peering/Peering/Common/PeeringBaseCmdlet.cs index ae8507f485bb..738c5de956c5 100644 --- a/src/Peering/Peering/Common/PeeringBaseCmdlet.cs +++ b/src/Peering/Peering/Common/PeeringBaseCmdlet.cs @@ -159,7 +159,7 @@ public PeeringModel ToPeering(object pSPeering) /// The peering. /// /// - /// The . + /// The . /// public PSPeering ToPeeringPs(object peering) { @@ -510,7 +510,7 @@ public virtual void Execute() /// /// Base Cmdlet execute. /// - /// + /// public override void ExecuteCmdlet() { base.ExecuteCmdlet(); @@ -529,7 +529,7 @@ public override void ExecuteCmdlet() /// /// The . /// - /// + /// /// public string GetAzureRegion(string peeringLocation, string kind) { diff --git a/src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs b/src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs index 56c30568520f..a3aa6636f6e6 100644 --- a/src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs +++ b/src/Peering/Peering/PeerAsn/GetAzurePeerAsnCommand.cs @@ -103,7 +103,7 @@ private object GetPeerAsn(string peerName) /// The list peer asn. /// /// - /// The . + /// The . /// private List ListPeerAsn() { diff --git a/src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs b/src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs index ac493fcf44c8..d4dfa971c365 100644 --- a/src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs +++ b/src/Peering/Peering/PeerAsn/NewAzurePeerAsnCommand.cs @@ -101,6 +101,8 @@ public override void Execute() /// /// /// + /// + /// /// /// private PSPeerAsn CreatePeerInfo() diff --git a/src/Peering/Peering/Peering/NewAzurePeeringCommand.cs b/src/Peering/Peering/Peering/NewAzurePeeringCommand.cs index da38cd09200f..59febee14f43 100644 --- a/src/Peering/Peering/Peering/NewAzurePeeringCommand.cs +++ b/src/Peering/Peering/Peering/NewAzurePeeringCommand.cs @@ -239,7 +239,7 @@ public override void ExecuteCmdlet() /// /// /// - /// + /// /// /// /// @@ -391,10 +391,11 @@ private object PutNewPeering(PSPeering newPeering) /// /// The convert classic to Exchange peering. /// + /// /// The classic peering. - /// + /// /// - /// The . + /// The . /// private PSPeering ConvertClassicToExchangePeering(PSExchangePeeringModelView peering) { @@ -441,7 +442,7 @@ private PSPeering ConvertClassicToExchangePeering(PSExchangePeeringModelView pee /// The classic peering. /// /// - /// The . + /// The . /// private PSPeering ConvertClassicToDirectPeering(PSDirectPeeringModelView peering) { diff --git a/src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs b/src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs index b90a94255560..a372b40a9f74 100644 --- a/src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs +++ b/src/Peering/Peering/Peering/UpdateAzurePeeringCommand.cs @@ -352,8 +352,12 @@ private PSDirectPeeringModelView GetAndUpdateDirectPeering() /// /// The direct peering. /// - /// - /// + /// + /// The resource group name. + /// + /// + /// The name. + /// /// /// The . /// @@ -401,7 +405,9 @@ private PSExchangePeeringModelView GetAndUpdateExchangePeering() /// /// The update exchange peering. /// - /// + /// + /// The ps exchange. + /// /// /// The resource group name. ///