Skip to content

Commit b057e93

Browse files
azure-pipelines[bot]azure-powershell-botNickcandy
authored
Migrate Monitor from generation to main (#26243)
* Move Monitor to main * Update ChangeLog.md --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: NanxiangLiu <[email protected]>
1 parent d80f152 commit b057e93

File tree

569 files changed

+75974
-370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

569 files changed

+75974
-370
lines changed

src/Monitor/ActionGroup.Autorest/build-module.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ if(-not $NotIsolated -and -not $Debugger) {
7575
$binFolder = Join-Path $PSScriptRoot 'bin'
7676
$objFolder = Join-Path $PSScriptRoot 'obj'
7777

78+
$isAzure = [System.Convert]::ToBoolean('true')
79+
7880
if(-not $Debugger) {
7981
Write-Host -ForegroundColor Green 'Cleaning build folders...'
8082
$null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
@@ -151,7 +153,7 @@ if($NoDocs) {
151153
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
152154
}
153155
$null = New-Item -ItemType Directory -Force -Path $docsFolder
154-
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
156+
$addComplexInterfaceInfo = !$isAzure
155157
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
156158
}
157159

@@ -186,5 +188,4 @@ if (-not $DisableAfterBuildTasks){
186188
}
187189
}
188190

189-
190-
Write-Host -ForegroundColor Green '-------------Done-------------'
191+
Write-Host -ForegroundColor Green '-------------Done-------------'

src/Monitor/ActionGroup.Autorest/exports/New-AzActionGroup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
Create a new action group or update an existing one.
19+
create a new action group or create an existing one.
2020
.Description
21-
Create a new action group or update an existing one.
21+
create a new action group or create an existing one.
2222
.Example
2323
$email1 = New-AzActionGroupEmailReceiverObject -EmailAddress [email protected] -Name user1
2424
$sms1 = New-AzActionGroupSmsReceiverObject -CountryCode '{countrycode}' -Name user2 -PhoneNumber '{phonenumber}'

src/Monitor/ActionGroup.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ end {
447447

448448
<#
449449
.Synopsis
450-
Create a new action group or update an existing one.
450+
create a new action group or create an existing one.
451451
.Description
452-
Create a new action group or update an existing one.
452+
create a new action group or create an existing one.
453453
.Example
454454
$email1 = New-AzActionGroupEmailReceiverObject -EmailAddress [email protected] -Name user1
455455
$sms1 = New-AzActionGroupSmsReceiverObject -CountryCode '{countrycode}' -Name user2 -PhoneNumber '{phonenumber}'
@@ -1056,9 +1056,9 @@ end {
10561056

10571057
<#
10581058
.Synopsis
1059-
Update a new action group or update an existing one.
1059+
update a new action group or update an existing one.
10601060
.Description
1061-
Update a new action group or update an existing one.
1061+
update a new action group or update an existing one.
10621062
.Example
10631063
$enventhub = New-AzActionGroupEventHubReceiverObject -EventHubName "testEventHub" -EventHubNameSpace "actiongrouptest" -Name "sample eventhub" -SubscriptionId '{subid}'
10641064
Update-AzActionGroup -Name actiongroup1 -ResourceGroupName monitor-action -EventHubReceiver $enventhub

src/Monitor/ActionGroup.Autorest/exports/Update-AzActionGroup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
Update a new action group or update an existing one.
19+
update a new action group or update an existing one.
2020
.Description
21-
Update a new action group or update an existing one.
21+
update a new action group or update an existing one.
2222
.Example
2323
$enventhub = New-AzActionGroupEventHubReceiverObject -EventHubName "testEventHub" -EventHubNameSpace "actiongrouptest" -Name "sample eventhub" -SubscriptionId '{subid}'
2424
Update-AzActionGroup -Name actiongroup1 -ResourceGroupName monitor-action -EventHubReceiver $enventhub

src/Monitor/ActionGroup.Autorest/generated/api/ActionGroup.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public partial class ActionGroup
652652
}
653653
}
654654

655-
/// <summary>Update a new action group or update an existing one.</summary>
655+
/// <summary>update a new action group or update an existing one.</summary>
656656
/// <param name="subscriptionId">The ID of the target subscription.</param>
657657
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
658658
/// <param name="actionGroupName">The name of the action group.</param>
@@ -702,7 +702,7 @@ public partial class ActionGroup
702702
}
703703
}
704704

705-
/// <summary>Update a new action group or update an existing one.</summary>
705+
/// <summary>update a new action group or update an existing one.</summary>
706706
/// <param name="viaIdentity"></param>
707707
/// <param name="body">The action group to create or use for the update.</param>
708708
/// <param name="onOk">a delegate that is called when the remote service returns 200 (OK).</param>
@@ -762,7 +762,7 @@ public partial class ActionGroup
762762
}
763763
}
764764

765-
/// <summary>Update a new action group or update an existing one.</summary>
765+
/// <summary>update a new action group or update an existing one.</summary>
766766
/// <param name="viaIdentity"></param>
767767
/// <param name="body">The action group to create or use for the update.</param>
768768
/// <param name="eventListener">an <see cref="Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.IEventListener" /> instance that will receive events.</param>
@@ -819,7 +819,7 @@ public partial class ActionGroup
819819
}
820820
}
821821

822-
/// <summary>Update a new action group or update an existing one.</summary>
822+
/// <summary>update a new action group or update an existing one.</summary>
823823
/// <param name="subscriptionId">The ID of the target subscription.</param>
824824
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
825825
/// <param name="actionGroupName">The name of the action group.</param>
@@ -868,7 +868,7 @@ public partial class ActionGroup
868868
}
869869
}
870870

871-
/// <summary>Update a new action group or update an existing one.</summary>
871+
/// <summary>update a new action group or update an existing one.</summary>
872872
/// <param name="subscriptionId">The ID of the target subscription.</param>
873873
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
874874
/// <param name="actionGroupName">The name of the action group.</param>
@@ -914,7 +914,7 @@ public partial class ActionGroup
914914
}
915915
}
916916

917-
/// <summary>Update a new action group or update an existing one.</summary>
917+
/// <summary>update a new action group or update an existing one.</summary>
918918
/// <param name="subscriptionId">The ID of the target subscription.</param>
919919
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
920920
/// <param name="actionGroupName">The name of the action group.</param>

src/Monitor/ActionGroup.Autorest/generated/cmdlets/NewAzActionGroup_CreateExpanded.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
1010
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
1111
using System;
1212

13-
/// <summary>Create a new action group or update an existing one.</summary>
13+
/// <summary>create a new action group or create an existing one.</summary>
1414
/// <remarks>
1515
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
1616
/// </remarks>
1717
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzActionGroup_CreateExpanded", SupportsShouldProcess = true)]
1818
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
19-
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Create a new action group or update an existing one.")]
19+
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"create a new action group or create an existing one.")]
2020
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
2121
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
2222
public partial class NewAzActionGroup_CreateExpanded : global::System.Management.Automation.PSCmdlet,

src/Monitor/ActionGroup.Autorest/generated/cmdlets/NewAzActionGroup_CreateViaIdentityExpanded.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
1010
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
1111
using System;
1212

13-
/// <summary>Create a new action group or update an existing one.</summary>
13+
/// <summary>create a new action group or create an existing one.</summary>
1414
/// <remarks>
1515
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
1616
/// </remarks>
1717
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzActionGroup_CreateViaIdentityExpanded", SupportsShouldProcess = true)]
1818
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
19-
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Create a new action group or update an existing one.")]
19+
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"create a new action group or create an existing one.")]
2020
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
2121
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
2222
public partial class NewAzActionGroup_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,

src/Monitor/ActionGroup.Autorest/generated/cmdlets/NewAzActionGroup_CreateViaJsonFilePath.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
1010
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
1111
using System;
1212

13-
/// <summary>Create a new action group or update an existing one.</summary>
13+
/// <summary>create a new action group or create an existing one.</summary>
1414
/// <remarks>
1515
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
1616
/// </remarks>
1717
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzActionGroup_CreateViaJsonFilePath", SupportsShouldProcess = true)]
1818
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
19-
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Create a new action group or update an existing one.")]
19+
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"create a new action group or create an existing one.")]
2020
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
2121
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
2222
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.NotSuggestDefaultParameterSet]

src/Monitor/ActionGroup.Autorest/generated/cmdlets/NewAzActionGroup_CreateViaJsonString.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
1010
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
1111
using System;
1212

13-
/// <summary>Create a new action group or update an existing one.</summary>
13+
/// <summary>create a new action group or create an existing one.</summary>
1414
/// <remarks>
1515
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
1616
/// </remarks>
1717
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzActionGroup_CreateViaJsonString", SupportsShouldProcess = true)]
1818
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
19-
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Create a new action group or update an existing one.")]
19+
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"create a new action group or create an existing one.")]
2020
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
2121
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
2222
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.NotSuggestDefaultParameterSet]

src/Monitor/ActionGroup.Autorest/generated/cmdlets/SetAzActionGroup_UpdateExpanded.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
1010
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
1111
using System;
1212

13-
/// <summary>Update a new action group or update an existing one.</summary>
13+
/// <summary>update a new action group or update an existing one.</summary>
1414
/// <remarks>
1515
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
1616
/// </remarks>
1717
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.InternalExport]
1818
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzActionGroup_UpdateExpanded", SupportsShouldProcess = true)]
1919
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
20-
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Update a new action group or update an existing one.")]
20+
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"update a new action group or update an existing one.")]
2121
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
2222
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
2323
public partial class SetAzActionGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet,

0 commit comments

Comments
 (0)