Skip to content

Commit 59a899c

Browse files
[skip ci] Archive Schedule (Azure#28891)
1 parent cc96420 commit 59a899c

File tree

461 files changed

+58414
-7316
lines changed

Some content is hidden

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

461 files changed

+58414
-7316
lines changed

generated/Datadog/Datadog.Autorest/Az.Datadog.format.ps1xml

Lines changed: 659 additions & 57 deletions
Large diffs are not rendered by default.

generated/Datadog/Datadog.Autorest/Az.Datadog.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Datadog.private.dll'
1313
FormatsToProcess = './Az.Datadog.format.ps1xml'
14-
FunctionsToExport = 'Get-AzDatadogMarketplaceAgreement', 'Get-AzDatadogMonitor', 'Get-AzDatadogMonitorApiKey', 'Get-AzDatadogMonitorDefaultKey', 'Get-AzDatadogMonitorHost', 'Get-AzDatadogMonitorLinkedResource', 'Get-AzDatadogMonitorMonitoredResource', 'Get-AzDatadogSingleSignOnConfiguration', 'Get-AzDatadogTagRule', 'New-AzDatadogFilteringTagObject', 'New-AzDatadogMarketplaceAgreement', 'New-AzDatadogMonitor', 'New-AzDatadogSingleSignOnConfiguration', 'New-AzDatadogTagRule', 'Remove-AzDatadogMonitor', 'Set-AzDatadogMonitorDefaultKey', 'Update-AzDatadogMonitor', 'Update-AzDatadogMonitorSetPasswordLink', 'Update-AzDatadogSingleSignOnConfiguration', 'Update-AzDatadogTagRule'
14+
FunctionsToExport = 'Get-AzDatadogBillingInfo', 'Get-AzDatadogCreationSupported', 'Get-AzDatadogMarketplaceAgreement', 'Get-AzDatadogMonitor', 'Get-AzDatadogMonitorApiKey', 'Get-AzDatadogMonitorDefaultKey', 'Get-AzDatadogMonitoredSubscription', 'Get-AzDatadogMonitorHost', 'Get-AzDatadogMonitorLinkedResource', 'Get-AzDatadogMonitorMonitoredResource', 'Get-AzDatadogSingleSignOnConfiguration', 'Get-AzDatadogTagRule', 'Invoke-AzDatadogResubscribeOrganization', 'New-AzDatadogFilteringTagObject', 'New-AzDatadogMarketplaceAgreement', 'New-AzDatadogMonitor', 'New-AzDatadogSingleSignOnConfiguration', 'New-AzDatadogTagRule', 'Remove-AzDatadogMonitor', 'Remove-AzDatadogMonitoredSubscription', 'Set-AzDatadogMonitorDefaultKey', 'Set-AzDatadogMonitoredSubscriptionCreateor', 'Update-AzDatadogMonitor', 'Update-AzDatadogMonitoredSubscription', 'Update-AzDatadogMonitorSetPasswordLink', 'Update-AzDatadogSingleSignOnConfiguration', 'Update-AzDatadogTagRule'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Datadog'

generated/Datadog/Datadog.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Datadog")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-
Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
2+
# ----------------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
14+
# is regenerated.
15+
# ----------------------------------------------------------------------------------
16+
17+
<#
18+
.Synopsis
19+
Get marketplace and organization info mapped to the given monitor.
20+
.Description
21+
Get marketplace and organization info mapped to the given monitor.
22+
.Example
23+
Get-AzDatadogBillingInfo -ResourceGroupName datadog-rg-3eytki -MonitorName datadog-rhqz1v
24+
25+
.Inputs
26+
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity
27+
.Outputs
28+
Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IBillingInfoResponse
29+
.Notes
30+
COMPLEX PARAMETER PROPERTIES
31+
32+
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
33+
34+
INPUTOBJECT <IDatadogIdentity>: Identity Parameter
35+
[ConfigurationName <String>]: The configuration name. Only 'default' value is supported.
36+
[Id <String>]: Resource identity path
37+
[MonitorName <String>]: Monitor resource name
38+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
39+
[RuleSetName <String>]: Rule set name
40+
[SubscriptionId <String>]: The ID of the target subscription.
41+
.Link
42+
https://learn.microsoft.com/powershell/module/az.datadog/get-azdatadogbillinginfo
43+
#>
44+
function Get-AzDatadogBillingInfo {
45+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IBillingInfoResponse])]
46+
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
47+
param(
48+
[Parameter(ParameterSetName='Get', Mandatory)]
49+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
50+
[System.String]
51+
# Monitor resource name
52+
${MonitorName},
53+
54+
[Parameter(ParameterSetName='Get', Mandatory)]
55+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
56+
[System.String]
57+
# The name of the resource group.
58+
# The name is case insensitive.
59+
${ResourceGroupName},
60+
61+
[Parameter(ParameterSetName='Get')]
62+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
63+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
64+
[System.String[]]
65+
# The ID of the target subscription.
66+
${SubscriptionId},
67+
68+
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
69+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Path')]
70+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Models.IDatadogIdentity]
71+
# Identity Parameter
72+
${InputObject},
73+
74+
[Parameter()]
75+
[Alias('AzureRMContext', 'AzureCredential')]
76+
[ValidateNotNull()]
77+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Azure')]
78+
[System.Management.Automation.PSObject]
79+
# The DefaultProfile parameter is not functional.
80+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
81+
${DefaultProfile},
82+
83+
[Parameter(DontShow)]
84+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
85+
[System.Management.Automation.SwitchParameter]
86+
# Wait for .NET debugger to attach
87+
${Break},
88+
89+
[Parameter(DontShow)]
90+
[ValidateNotNull()]
91+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
92+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
93+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
94+
${HttpPipelineAppend},
95+
96+
[Parameter(DontShow)]
97+
[ValidateNotNull()]
98+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
99+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.SendAsyncStep[]]
100+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
101+
${HttpPipelinePrepend},
102+
103+
[Parameter(DontShow)]
104+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
105+
[System.Uri]
106+
# The URI for the proxy server to use
107+
${Proxy},
108+
109+
[Parameter(DontShow)]
110+
[ValidateNotNull()]
111+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
112+
[System.Management.Automation.PSCredential]
113+
# Credentials for a proxy server to use for the remote call
114+
${ProxyCredential},
115+
116+
[Parameter(DontShow)]
117+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Category('Runtime')]
118+
[System.Management.Automation.SwitchParameter]
119+
# Use the default credentials for the proxy
120+
${ProxyUseDefaultCredentials}
121+
)
122+
123+
begin {
124+
try {
125+
$outBuffer = $null
126+
if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
127+
$PSBoundParameters['OutBuffer'] = 1
128+
}
129+
$parameterSet = $PSCmdlet.ParameterSetName
130+
131+
$testPlayback = $false
132+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
133+
134+
$context = Get-AzContext
135+
if (-not $context -and -not $testPlayback) {
136+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
137+
exit
138+
}
139+
140+
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
141+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
142+
}
143+
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
144+
if ($preTelemetryId -eq '') {
145+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
146+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
147+
} else {
148+
$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
149+
if ($internalCalledCmdlets -eq '') {
150+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
151+
} else {
152+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
153+
}
154+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
155+
}
156+
157+
$mapping = @{
158+
Get = 'Az.Datadog.private\Get-AzDatadogBillingInfo_Get';
159+
GetViaIdentity = 'Az.Datadog.private\Get-AzDatadogBillingInfo_GetViaIdentity';
160+
}
161+
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
162+
if ($testPlayback) {
163+
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
164+
} else {
165+
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
166+
}
167+
}
168+
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
169+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
170+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
171+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
172+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
173+
}
174+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
175+
if ($wrappedCmd -eq $null) {
176+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
177+
}
178+
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
179+
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
180+
$steppablePipeline.Begin($PSCmdlet)
181+
} catch {
182+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
183+
throw
184+
}
185+
}
186+
187+
process {
188+
try {
189+
$steppablePipeline.Process($_)
190+
} catch {
191+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
192+
throw
193+
}
194+
195+
finally {
196+
$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
197+
$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
198+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
199+
}
200+
201+
}
202+
end {
203+
try {
204+
$steppablePipeline.End()
205+
206+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
207+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
208+
if ($preTelemetryId -eq '') {
209+
[Microsoft.Azure.PowerShell.Cmdlets.Datadog.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
210+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
211+
}
212+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
213+
214+
} catch {
215+
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
216+
throw
217+
}
218+
}
219+
}

0 commit comments

Comments
 (0)