Skip to content

Commit 693a37f

Browse files
[skip ci] Archive a8ab243 (#28331)
Co-authored-by: azure-powershell-bot <[email protected]>
1 parent b7e2a55 commit 693a37f

File tree

768 files changed

+197856
-1871
lines changed

Some content is hidden

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

768 files changed

+197856
-1871
lines changed

generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml

Lines changed: 3636 additions & 182 deletions
Large diffs are not rendered by default.

generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.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.DeviceRegistry.private.dll'
1313
FormatsToProcess = './Az.DeviceRegistry.format.ps1xml'
14-
FunctionsToExport = 'Get-AzDeviceRegistryAsset', 'Get-AzDeviceRegistryAssetEndpointProfile', 'Get-AzDeviceRegistryBillingContainer', 'New-AzDeviceRegistryAsset', 'New-AzDeviceRegistryAssetEndpointProfile', 'Remove-AzDeviceRegistryAsset', 'Remove-AzDeviceRegistryAssetEndpointProfile', 'Update-AzDeviceRegistryAsset', 'Update-AzDeviceRegistryAssetEndpointProfile'
14+
FunctionsToExport = 'Get-AzDeviceRegistryAsset', 'Get-AzDeviceRegistryAssetEndpointProfile', 'Get-AzDeviceRegistryBillingContainer', 'Get-AzDeviceRegistryNamespace', 'Get-AzDeviceRegistryNamespaceAsset', 'Get-AzDeviceRegistryNamespaceDevice', 'Get-AzDeviceRegistryNamespaceDiscoveredAsset', 'Get-AzDeviceRegistryNamespaceDiscoveredDevice', 'Get-AzDeviceRegistrySchema', 'Get-AzDeviceRegistrySchemaRegistry', 'Get-AzDeviceRegistrySchemaVersion', 'Move-AzDeviceRegistryNamespace', 'New-AzDeviceRegistryAsset', 'New-AzDeviceRegistryAssetEndpointProfile', 'New-AzDeviceRegistryNamespace', 'New-AzDeviceRegistryNamespaceAsset', 'New-AzDeviceRegistryNamespaceDevice', 'New-AzDeviceRegistryNamespaceDiscoveredAsset', 'New-AzDeviceRegistryNamespaceDiscoveredDevice', 'New-AzDeviceRegistrySchema', 'New-AzDeviceRegistrySchemaRegistry', 'New-AzDeviceRegistrySchemaVersion', 'Remove-AzDeviceRegistryAsset', 'Remove-AzDeviceRegistryAssetEndpointProfile', 'Remove-AzDeviceRegistryNamespace', 'Remove-AzDeviceRegistryNamespaceAsset', 'Remove-AzDeviceRegistryNamespaceDevice', 'Remove-AzDeviceRegistryNamespaceDiscoveredAsset', 'Remove-AzDeviceRegistryNamespaceDiscoveredDevice', 'Remove-AzDeviceRegistrySchema', 'Remove-AzDeviceRegistrySchemaRegistry', 'Remove-AzDeviceRegistrySchemaVersion', 'Update-AzDeviceRegistryAsset', 'Update-AzDeviceRegistryAssetEndpointProfile', 'Update-AzDeviceRegistryNamespace', 'Update-AzDeviceRegistryNamespaceAsset', 'Update-AzDeviceRegistryNamespaceDevice', 'Update-AzDeviceRegistryNamespaceDiscoveredAsset', 'Update-AzDeviceRegistryNamespaceDiscoveredDevice', 'Update-AzDeviceRegistrySchema', 'Update-AzDeviceRegistrySchemaRegistry', 'Update-AzDeviceRegistrySchemaVersion'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DeviceRegistry'
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DeviceRegistry")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+
28+
29+

generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAsset.ps1

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,17 @@ INPUTOBJECT <IDeviceRegistryIdentity>: Identity Parameter
4242
[AssetEndpointProfileName <String>]: Asset Endpoint Profile name parameter.
4343
[AssetName <String>]: Asset name parameter.
4444
[BillingContainerName <String>]: Name of the billing container.
45+
[DeviceName <String>]: The name of the device.
46+
[DiscoveredAssetName <String>]: The name of the discovered asset.
47+
[DiscoveredDeviceName <String>]: The name of the discovered device.
4548
[Id <String>]: Resource identity path
4649
[Location <String>]: The name of the Azure region.
50+
[NamespaceName <String>]: The name of the namespace.
4751
[OperationId <String>]: The ID of an ongoing async operation.
4852
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
53+
[SchemaName <String>]: Schema name parameter.
54+
[SchemaRegistryName <String>]: Schema registry name parameter.
55+
[SchemaVersionName <String>]: Schema version name parameter.
4956
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
5057
.Link
5158
https://learn.microsoft.com/powershell/module/az.deviceregistry/get-azdeviceregistryasset
@@ -141,6 +148,15 @@ begin {
141148
$PSBoundParameters['OutBuffer'] = 1
142149
}
143150
$parameterSet = $PSCmdlet.ParameterSetName
151+
152+
$testPlayback = $false
153+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
154+
155+
$context = Get-AzContext
156+
if (-not $context -and -not $testPlayback) {
157+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
158+
exit
159+
}
144160

145161
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
146162
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -166,8 +182,6 @@ begin {
166182
List1 = 'Az.DeviceRegistry.private\Get-AzDeviceRegistryAsset_List1';
167183
}
168184
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
169-
$testPlayback = $false
170-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
171185
if ($testPlayback) {
172186
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
173187
} else {
@@ -181,6 +195,9 @@ begin {
181195
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
182196
}
183197
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
198+
if ($wrappedCmd -eq $null) {
199+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
200+
}
184201
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
185202
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
186203
$steppablePipeline.Begin($PSCmdlet)

generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryAssetEndpointProfile.ps1

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,17 @@ INPUTOBJECT <IDeviceRegistryIdentity>: Identity Parameter
4242
[AssetEndpointProfileName <String>]: Asset Endpoint Profile name parameter.
4343
[AssetName <String>]: Asset name parameter.
4444
[BillingContainerName <String>]: Name of the billing container.
45+
[DeviceName <String>]: The name of the device.
46+
[DiscoveredAssetName <String>]: The name of the discovered asset.
47+
[DiscoveredDeviceName <String>]: The name of the discovered device.
4548
[Id <String>]: Resource identity path
4649
[Location <String>]: The name of the Azure region.
50+
[NamespaceName <String>]: The name of the namespace.
4751
[OperationId <String>]: The ID of an ongoing async operation.
4852
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
53+
[SchemaName <String>]: Schema name parameter.
54+
[SchemaRegistryName <String>]: Schema registry name parameter.
55+
[SchemaVersionName <String>]: Schema version name parameter.
4956
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
5057
.Link
5158
https://learn.microsoft.com/powershell/module/az.deviceregistry/get-azdeviceregistryassetendpointprofile
@@ -141,6 +148,15 @@ begin {
141148
$PSBoundParameters['OutBuffer'] = 1
142149
}
143150
$parameterSet = $PSCmdlet.ParameterSetName
151+
152+
$testPlayback = $false
153+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
154+
155+
$context = Get-AzContext
156+
if (-not $context -and -not $testPlayback) {
157+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
158+
exit
159+
}
144160

145161
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
146162
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -166,8 +182,6 @@ begin {
166182
List1 = 'Az.DeviceRegistry.private\Get-AzDeviceRegistryAssetEndpointProfile_List1';
167183
}
168184
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
169-
$testPlayback = $false
170-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
171185
if ($testPlayback) {
172186
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
173187
} else {
@@ -181,6 +195,9 @@ begin {
181195
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
182196
}
183197
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
198+
if ($wrappedCmd -eq $null) {
199+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
200+
}
184201
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
185202
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
186203
$steppablePipeline.Begin($PSCmdlet)

generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Get-AzDeviceRegistryBillingContainer.ps1

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,17 @@ INPUTOBJECT <IDeviceRegistryIdentity>: Identity Parameter
4343
[AssetEndpointProfileName <String>]: Asset Endpoint Profile name parameter.
4444
[AssetName <String>]: Asset name parameter.
4545
[BillingContainerName <String>]: Name of the billing container.
46+
[DeviceName <String>]: The name of the device.
47+
[DiscoveredAssetName <String>]: The name of the discovered asset.
48+
[DiscoveredDeviceName <String>]: The name of the discovered device.
4649
[Id <String>]: Resource identity path
4750
[Location <String>]: The name of the Azure region.
51+
[NamespaceName <String>]: The name of the namespace.
4852
[OperationId <String>]: The ID of an ongoing async operation.
4953
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
54+
[SchemaName <String>]: Schema name parameter.
55+
[SchemaRegistryName <String>]: Schema registry name parameter.
56+
[SchemaVersionName <String>]: Schema version name parameter.
5057
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
5158
.Link
5259
https://learn.microsoft.com/powershell/module/az.deviceregistry/get-azdeviceregistrybillingcontainer
@@ -133,6 +140,15 @@ begin {
133140
$PSBoundParameters['OutBuffer'] = 1
134141
}
135142
$parameterSet = $PSCmdlet.ParameterSetName
143+
144+
$testPlayback = $false
145+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
146+
147+
$context = Get-AzContext
148+
if (-not $context -and -not $testPlayback) {
149+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
150+
exit
151+
}
136152

137153
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
138154
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -157,8 +173,6 @@ begin {
157173
List = 'Az.DeviceRegistry.private\Get-AzDeviceRegistryBillingContainer_List';
158174
}
159175
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
160-
$testPlayback = $false
161-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
162176
if ($testPlayback) {
163177
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
164178
} else {
@@ -172,6 +186,9 @@ begin {
172186
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
173187
}
174188
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
189+
if ($wrappedCmd -eq $null) {
190+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
191+
}
175192
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
176193
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
177194
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)