Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
218 changes: 218 additions & 0 deletions generated/NewRelic/NewRelic.Autorest/Az.NewRelic.format.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,34 @@
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.ActivateSaaSParameterRequest</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.ActivateSaaSParameterRequest#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>PublisherId</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SaasGuid</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>PublisherId</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SaasGuid</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.AppServiceInfo</Name>
<ViewSelectedBy>
Expand Down Expand Up @@ -361,6 +389,34 @@
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.LatestLinkedSaaSResponse</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.LatestLinkedSaaSResponse#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>IsHiddenSaaS</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SaaSResourceId</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>IsHiddenSaaS</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SaaSResourceId</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.LinkedResourceListResponse</Name>
<ViewSelectedBy>
Expand Down Expand Up @@ -467,6 +523,12 @@
<TableColumnHeader>
<Label>MarketplaceSubscriptionName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>OfferId</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>PublisherId</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
Expand All @@ -486,6 +548,12 @@
<TableColumnItem>
<PropertyName>MarketplaceSubscriptionName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>OfferId</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>PublisherId</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
Expand Down Expand Up @@ -1521,6 +1589,156 @@
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.ResubscribeProperties</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.ResubscribeProperties#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>OfferId</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>OrganizationId</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>PlanId</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>PublisherId</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>ResourceGroup</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SubscriptionId</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>TermId</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>OfferId</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>OrganizationId</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>PlanId</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>PublisherId</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>ResourceGroup</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SubscriptionId</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>TermId</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.SaaSData</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.SaaSData#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>SaaSResourceId</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>SaaSResourceId</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.SaaSResourceDetailsResponse</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.SaaSResourceDetailsResponse#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>Name</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SystemDataCreatedAt</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SystemDataCreatedBy</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SystemDataCreatedByType</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SystemDataLastModifiedAt</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SystemDataLastModifiedBy</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SystemDataLastModifiedByType</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>ResourceGroupName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SaasId</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>Name</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SystemDataCreatedAt</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SystemDataCreatedBy</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SystemDataCreatedByType</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SystemDataLastModifiedAt</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SystemDataLastModifiedBy</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SystemDataLastModifiedByType</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>ResourceGroupName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SaasId</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.SubscriptionList</Name>
<ViewSelectedBy>
Expand Down
2 changes: 1 addition & 1 deletion generated/NewRelic/NewRelic.Autorest/Az.NewRelic.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.NewRelic.private.dll'
FormatsToProcess = './Az.NewRelic.format.ps1xml'
FunctionsToExport = 'Get-AzNewRelicAccount', 'Get-AzNewRelicBillingInfo', 'Get-AzNewRelicConnectedPartnerResource', 'Get-AzNewRelicMonitor', 'Get-AzNewRelicMonitoredAppService', 'Get-AzNewRelicMonitoredHost', 'Get-AzNewRelicMonitoredSubscription', 'Get-AzNewRelicMonitorMetricRule', 'Get-AzNewRelicMonitorMetricStatus', 'Get-AzNewRelicMonitorMonitoredResource', 'Get-AzNewRelicMonitorTagRule', 'Get-AzNewRelicOrganization', 'Get-AzNewRelicPlan', 'Invoke-AzNewRelicHostMonitor', 'New-AzNewRelicFilteringTagObject', 'New-AzNewRelicMonitor', 'New-AzNewRelicMonitoredSubscription', 'New-AzNewRelicMonitoredSubscriptionObject', 'New-AzNewRelicMonitorTagRule', 'Remove-AzNewRelicMonitor', 'Remove-AzNewRelicMonitoredSubscription', 'Remove-AzNewRelicMonitorTagRule', 'Switch-AzNewRelicMonitorBilling', 'Update-AzNewRelicMonitoredSubscription', 'Update-AzNewRelicMonitorTagRule'
FunctionsToExport = 'Get-AzNewRelicAccount', 'Get-AzNewRelicBillingInfo', 'Get-AzNewRelicConnectedPartnerResource', 'Get-AzNewRelicMonitor', 'Get-AzNewRelicMonitoredAppService', 'Get-AzNewRelicMonitoredHost', 'Get-AzNewRelicMonitoredSubscription', 'Get-AzNewRelicMonitorMetricRule', 'Get-AzNewRelicMonitorMetricStatus', 'Get-AzNewRelicMonitorMonitoredResource', 'Get-AzNewRelicMonitorTagRule', 'Get-AzNewRelicOrganization', 'Get-AzNewRelicPlan', 'Initialize-AzNewRelicSaaSResource', 'Invoke-AzNewRelicHostMonitor', 'Invoke-AzNewRelicLatestMonitorLinkedSaaS', 'Invoke-AzNewRelicLinkMonitorSaaS', 'Invoke-AzNewRelicResubscribeMonitor', 'New-AzNewRelicFilteringTagObject', 'New-AzNewRelicMonitor', 'New-AzNewRelicMonitoredSubscription', 'New-AzNewRelicMonitoredSubscriptionObject', 'New-AzNewRelicMonitorTagRule', 'Remove-AzNewRelicMonitor', 'Remove-AzNewRelicMonitoredSubscription', 'Remove-AzNewRelicMonitorTagRule', 'Switch-AzNewRelicMonitorBilling', 'Update-AzNewRelicMonitoredSubscription', 'Update-AzNewRelicMonitorIngestionKey', 'Update-AzNewRelicMonitorTagRule'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'NewRelic'
Expand Down
30 changes: 14 additions & 16 deletions generated/NewRelic/NewRelic.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("Microsoft Azure Powershell - NewRelic")]
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]

[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("17c45a69-a1c9-4596-9c12-1c84e0fe19b4")]
[assembly: AssemblyVersion("0.2.1")]
[assembly: AssemblyFileVersion("0.2.1")]
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - NewRelic")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<#
.Synopsis
List all the existing accounts
Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created
.Description
List all the existing accounts
Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created
.Example
Get-AzNewRelicAccount -Location eastus -UserEmail user1@outlook.com

Expand Down Expand Up @@ -106,6 +106,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName

$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
Expand All @@ -128,8 +137,6 @@ begin {
List = 'Az.NewRelic.private\Get-AzNewRelicAccount_List';
}
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
Expand All @@ -143,6 +150,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
if ($wrappedCmd -eq $null) {
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
}
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<#
.Synopsis
Get marketplace info mapped to the given monitor.
Retrieves marketplace and organization information mapped to the given New Relic monitor resource
.Description
Get marketplace info mapped to the given monitor.
Retrieves marketplace and organization information mapped to the given New Relic monitor resource
.Example
Get-AzNewRelicBillingInfo -MonitorName test-01 -ResourceGroupName group-test

Expand Down Expand Up @@ -127,6 +127,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName

$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
exit
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
Expand All @@ -150,8 +159,6 @@ begin {
GetViaIdentity = 'Az.NewRelic.private\Get-AzNewRelicBillingInfo_GetViaIdentity';
}
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
Expand All @@ -165,6 +172,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
if ($wrappedCmd -eq $null) {
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
}
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
Expand Down
Loading