Skip to content

Commit

Permalink
Migrate Monitor from generation to main (Azure#26243)
Browse files Browse the repository at this point in the history
* Move Monitor to main

* Update ChangeLog.md

---------

Co-authored-by: azure-powershell-bot <[email protected]>
Co-authored-by: NanxiangLiu <[email protected]>
  • Loading branch information
3 people authored Oct 22, 2024
1 parent d80f152 commit b057e93
Show file tree
Hide file tree
Showing 569 changed files with 75,974 additions and 370 deletions.
7 changes: 4 additions & 3 deletions src/Monitor/ActionGroup.Autorest/build-module.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ if(-not $NotIsolated -and -not $Debugger) {
$binFolder = Join-Path $PSScriptRoot 'bin'
$objFolder = Join-Path $PSScriptRoot 'obj'

$isAzure = [System.Convert]::ToBoolean('true')

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

Expand Down Expand Up @@ -186,5 +188,4 @@ if (-not $DisableAfterBuildTasks){
}
}


Write-Host -ForegroundColor Green '-------------Done-------------'
Write-Host -ForegroundColor Green '-------------Done-------------'
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<#
.Synopsis
Create a new action group or update an existing one.
create a new action group or create an existing one.
.Description
Create a new action group or update an existing one.
create a new action group or create an existing one.
.Example
$email1 = New-AzActionGroupEmailReceiverObject -EmailAddress [email protected] -Name user1
$sms1 = New-AzActionGroupSmsReceiverObject -CountryCode '{countrycode}' -Name user2 -PhoneNumber '{phonenumber}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ end {

<#
.Synopsis
Create a new action group or update an existing one.
create a new action group or create an existing one.
.Description
Create a new action group or update an existing one.
create a new action group or create an existing one.
.Example
$email1 = New-AzActionGroupEmailReceiverObject -EmailAddress [email protected] -Name user1
$sms1 = New-AzActionGroupSmsReceiverObject -CountryCode '{countrycode}' -Name user2 -PhoneNumber '{phonenumber}'
Expand Down Expand Up @@ -1056,9 +1056,9 @@ end {

<#
.Synopsis
Update a new action group or update an existing one.
update a new action group or update an existing one.
.Description
Update a new action group or update an existing one.
update a new action group or update an existing one.
.Example
$enventhub = New-AzActionGroupEventHubReceiverObject -EventHubName "testEventHub" -EventHubNameSpace "actiongrouptest" -Name "sample eventhub" -SubscriptionId '{subid}'
Update-AzActionGroup -Name actiongroup1 -ResourceGroupName monitor-action -EventHubReceiver $enventhub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<#
.Synopsis
Update a new action group or update an existing one.
update a new action group or update an existing one.
.Description
Update a new action group or update an existing one.
update a new action group or update an existing one.
.Example
$enventhub = New-AzActionGroupEventHubReceiverObject -EventHubName "testEventHub" -EventHubNameSpace "actiongrouptest" -Name "sample eventhub" -SubscriptionId '{subid}'
Update-AzActionGroup -Name actiongroup1 -ResourceGroupName monitor-action -EventHubReceiver $enventhub
Expand Down
12 changes: 6 additions & 6 deletions src/Monitor/ActionGroup.Autorest/generated/api/ActionGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public partial class ActionGroup
}
}

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

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

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

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

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

/// <summary>Update a new action group or update an existing one.</summary>
/// <summary>update a new action group or update an existing one.</summary>
/// <param name="subscriptionId">The ID of the target subscription.</param>
/// <param name="resourceGroupName">The name of the resource group. The name is case insensitive.</param>
/// <param name="actionGroupName">The name of the action group.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
using System;

/// <summary>Create a new action group or update an existing one.</summary>
/// <summary>create a new action group or create an existing one.</summary>
/// <remarks>
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// </remarks>
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzActionGroup_CreateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Create a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"create a new action group or create an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
public partial class NewAzActionGroup_CreateExpanded : global::System.Management.Automation.PSCmdlet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
using System;

/// <summary>Create a new action group or update an existing one.</summary>
/// <summary>create a new action group or create an existing one.</summary>
/// <remarks>
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// </remarks>
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzActionGroup_CreateViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Create a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"create a new action group or create an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
public partial class NewAzActionGroup_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
using System;

/// <summary>Create a new action group or update an existing one.</summary>
/// <summary>create a new action group or create an existing one.</summary>
/// <remarks>
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// </remarks>
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzActionGroup_CreateViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Create a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"create a new action group or create an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.NotSuggestDefaultParameterSet]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
using System;

/// <summary>Create a new action group or update an existing one.</summary>
/// <summary>create a new action group or create an existing one.</summary>
/// <remarks>
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// </remarks>
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzActionGroup_CreateViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Create a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"create a new action group or create an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.NotSuggestDefaultParameterSet]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
using System;

/// <summary>Update a new action group or update an existing one.</summary>
/// <summary>update a new action group or update an existing one.</summary>
/// <remarks>
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// </remarks>
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.InternalExport]
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzActionGroup_UpdateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Update a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"update a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
public partial class SetAzActionGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
using System;

/// <summary>Update a new action group or update an existing one.</summary>
/// <summary>update a new action group or update an existing one.</summary>
/// <remarks>
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// </remarks>
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.InternalExport]
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzActionGroup_UpdateViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Update a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"update a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.NotSuggestDefaultParameterSet]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
using System;

/// <summary>Update a new action group or update an existing one.</summary>
/// <summary>update a new action group or update an existing one.</summary>
/// <remarks>
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// </remarks>
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.InternalExport]
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzActionGroup_UpdateViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Update a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"update a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", ApiVersion = "2023-01-01")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.NotSuggestDefaultParameterSet]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Cmdlets
using Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.Cmdlets;
using System;

/// <summary>Update a new action group or update an existing one.</summary>
/// <summary>update a new action group or update an existing one.</summary>
/// <remarks>
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}"
/// </remarks>
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzActionGroup_UpdateExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupResource))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"Update a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Description(@"update a new action group or update an existing one.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Generated]
public partial class UpdateAzActionGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet,
Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Runtime.IEventListener,
Expand Down
Loading

0 comments on commit b057e93

Please sign in to comment.