From 71db1c8f068f0d529abaf95c135bfab4590f2a14 Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Thu, 16 Jun 2022 10:21:21 +0800 Subject: [PATCH] Fix Az.SqlVirtualMachine XML comments --- .../Cmdlet/UpdateAzureAvailabilityGroupListener.cs | 2 +- .../SqlVirtualMachine/Cmdlet/UpdateAzureSqlVM.cs | 4 ++-- .../SqlVirtualMachine/Services/AzureSqlVMAdapter.cs | 6 ++---- .../Cmdlet/AzureSqlVMGroupCmdletBase.cs | 6 +++--- .../SqlVirtualMachineGroup/Cmdlet/UpdateAzureSqlVMGroup.cs | 2 +- .../Services/AzureSqlVMGroupAdapter.cs | 6 ++---- 6 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/SqlVirtualMachine/SqlVirtualMachine/AvailabilityGroupListener/Cmdlet/UpdateAzureAvailabilityGroupListener.cs b/src/SqlVirtualMachine/SqlVirtualMachine/AvailabilityGroupListener/Cmdlet/UpdateAzureAvailabilityGroupListener.cs index 0883e0f8bcda..4074209d539c 100644 --- a/src/SqlVirtualMachine/SqlVirtualMachine/AvailabilityGroupListener/Cmdlet/UpdateAzureAvailabilityGroupListener.cs +++ b/src/SqlVirtualMachine/SqlVirtualMachine/AvailabilityGroupListener/Cmdlet/UpdateAzureAvailabilityGroupListener.cs @@ -103,7 +103,7 @@ protected override IEnumerable GetEntity() /// /// Apply user input to the retrieved Availability Group Listener /// - /// The Availability Group Listener that will be updated + /// The Availability Group Listener that will be updated /// The model to send to the update protected override IEnumerable ApplyUserInputToModel(IEnumerable model) { diff --git a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachine/Cmdlet/UpdateAzureSqlVM.cs b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachine/Cmdlet/UpdateAzureSqlVM.cs index 6ca08b78cb3b..a5425d563bac 100644 --- a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachine/Cmdlet/UpdateAzureSqlVM.cs +++ b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachine/Cmdlet/UpdateAzureSqlVM.cs @@ -186,7 +186,7 @@ protected override IEnumerable GetEntity() /// /// Apply user input to the retrieved sql virtual machine. /// - /// The sql virtual machine that will be updated + /// The sql virtual machine that will be updated /// The model to send to the update protected override IEnumerable ApplyUserInputToModel(IEnumerable model) { @@ -194,7 +194,7 @@ protected override IEnumerable ApplyUserInputToModel(IEnumerabl AzureSqlVMModel sqlVM = model.FirstOrDefault(); if (ParameterSetName.EndsWith(ParameterSet.InputObject)) { - sqlVM.Offer = InputObject.Offer ?? sqlVM.Offer; + sqlVM.Offer = InputObject.Offer ?? sqlVM.Offer; sqlVM.Sku = InputObject.Sku ?? sqlVM.Sku; sqlVM.LicenseType = InputObject.LicenseType ?? sqlVM.LicenseType; sqlVM.SqlManagementType = InputObject.SqlManagementType ?? sqlVM.SqlManagementType; diff --git a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachine/Services/AzureSqlVMAdapter.cs b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachine/Services/AzureSqlVMAdapter.cs index 01873a0044b2..24f12ff9009b 100644 --- a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachine/Services/AzureSqlVMAdapter.cs +++ b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachine/Services/AzureSqlVMAdapter.cs @@ -77,7 +77,7 @@ public AzureSqlVMModel UpsertSqlVirtualMachine(AzureSqlVMModel model) /// Deletes a sql virtual machine /// /// The resource group the sql virtual machine is in - /// The name of the sql virtual machine to delete + /// The name of the sql virtual machine to delete public void RemoveSqlVirtualMachine(string resourceGroupName, string sqlVirtualMachineName) { Communicator.Delete(resourceGroupName, sqlVirtualMachineName); @@ -86,7 +86,6 @@ public void RemoveSqlVirtualMachine(string resourceGroupName, string sqlVirtualM /// /// Gets a list of all the sql virtual machines in a subscription /// - /// The name of the resource group /// A list of all the sql virtual machines public List ListSqlVirtualMachine() { @@ -115,7 +114,7 @@ public List ListSqlVirtualMachineByResourceGroup(string resourc /// Gets a sql virtual machine in a resource group /// /// The name of the resource group - /// The name of the sql virtual machine + /// The name of the sql virtual machine /// The sql virtual machine public AzureSqlVMModel GetSqlVirtualMachine(string resourceGroupName, string sqlVirtualMachineName) { @@ -126,7 +125,6 @@ public AzureSqlVMModel GetSqlVirtualMachine(string resourceGroupName, string sql /// /// Convert a Management.SqlVirtualMachine.Models.SqlVirtualMachineModel to AzureSqlVirtualMachineModel /// - /// The resource group the sql virtual machine is in /// The management client sql virtual machine response to convert /// The converted sql virtual machine model private AzureSqlVMModel CreateSqlVirtualMachineModelFromResponse(SqlVirtualMachineModel resp) diff --git a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Cmdlet/AzureSqlVMGroupCmdletBase.cs b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Cmdlet/AzureSqlVMGroupCmdletBase.cs index 1dd6ba711752..c8b4b80007cc 100644 --- a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Cmdlet/AzureSqlVMGroupCmdletBase.cs +++ b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Cmdlet/AzureSqlVMGroupCmdletBase.cs @@ -59,7 +59,7 @@ protected override AzureSqlVMGroupAdapter InitModelAdapter() /// /// Validate the resource id of a sql virtual machine group /// - /// Resource id to be validated + /// Resource id to be validated /// True if the resource id is valid, false otherwise public bool ValidateSqlVirtualMachineGroupId(string sqlVirtualMachineGroupId) { @@ -70,7 +70,7 @@ public bool ValidateSqlVirtualMachineGroupId(string sqlVirtualMachineGroupId) /// /// Get the resource group name of a sql virtual machine group from its resource id /// - /// Resource id of the sql virtual machine + /// Resource id of the sql virtual machine /// Resource group name contained in the resource id public string GetResourceGroupNameFromId(string sqlVirtualMachineGroupId) { @@ -80,7 +80,7 @@ public string GetResourceGroupNameFromId(string sqlVirtualMachineGroupId) /// /// Get the name of a sql virtual machine from its resource id /// - /// Resource id of the sql virtual machine + /// Resource id of the sql virtual machine /// Resource name contained in the resource id public string GetResourceNameFromId(string sqlVirtualMachineGroupId) { diff --git a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Cmdlet/UpdateAzureSqlVMGroup.cs b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Cmdlet/UpdateAzureSqlVMGroup.cs index 9425cd9c4d90..c8dfcdd28858 100644 --- a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Cmdlet/UpdateAzureSqlVMGroup.cs +++ b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Cmdlet/UpdateAzureSqlVMGroup.cs @@ -91,7 +91,7 @@ protected override IEnumerable GetEntity() /// /// Apply user input to the retrieved sql virtual machine group /// - /// The sql virtual machine group that will be updated + /// The sql virtual machine group that will be updated /// The model to send to the update protected override IEnumerable ApplyUserInputToModel(IEnumerable model) { diff --git a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Services/AzureSqlVMGroupAdapter.cs b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Services/AzureSqlVMGroupAdapter.cs index 99bc5738d4b7..b213aef60215 100644 --- a/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Services/AzureSqlVMGroupAdapter.cs +++ b/src/SqlVirtualMachine/SqlVirtualMachine/SqlVirtualMachineGroup/Services/AzureSqlVMGroupAdapter.cs @@ -71,7 +71,7 @@ public AzureSqlVMGroupModel UpsertSqlVirtualMachineGroup(AzureSqlVMGroupModel mo /// Deletes a sql virtual machine group /// /// The resource group the sql virtual machine goup is in - /// The name of the sql virtual machine group to delete + /// The name of the sql virtual machine group to delete public void RemoveSqlVirtualMachine(string resourceGroupName, string sqlVirtualMachineName) { Communicator.Delete(resourceGroupName, sqlVirtualMachineName); @@ -80,7 +80,6 @@ public void RemoveSqlVirtualMachine(string resourceGroupName, string sqlVirtualM /// /// Gets a list of all the sql virtual machine groups in a subscription /// - /// The name of the resource group /// A list of all the sql virtual machine groups public List ListSqlVirtualMachineGroup() { @@ -109,7 +108,7 @@ public List ListSqlVirtualMachineGroupByResourceGroup(stri /// Gets a sql virtual machine group in a resource group /// /// The name of the resource group - /// The name of the sql virtual machine group + /// The name of the sql virtual machine group /// The sql virtual machine group public AzureSqlVMGroupModel GetSqlVirtualMachineGroup(string resourceGroupName, string groupName) { @@ -120,7 +119,6 @@ public AzureSqlVMGroupModel GetSqlVirtualMachineGroup(string resourceGroupName, /// /// Convert a Management.SqlVirtualMachine.Models.SqlVirtualMachineGroupModel to AzureSqlVirtualMachineGroupModel /// - /// The resource group the sql virtual machine group is in /// The management client sql virtual machine group response to convert /// The converted sql virtual machine group model private static AzureSqlVMGroupModel CreateSqlVirtualMachineGroupModelFromResponse(SqlVirtualMachineGroup resp)