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
2 changes: 1 addition & 1 deletion generated/HealthBot/HealthBot.Autorest/Az.HealthBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<PropertyGroup>
<PsModuleName>HealthBot</PsModuleName>
<PsRootModuleName>HealthBot</PsRootModuleName>
<PsModuleFolder>HealthBot.Autorest</PsModuleFolder>
</PropertyGroup>

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

</Project>
130 changes: 68 additions & 62 deletions generated/HealthBot/HealthBot.Autorest/Az.HealthBot.format.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,9 @@
<Configuration>
<ViewDefinitions>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotIdentity</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotIdentity</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>BotName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>ResourceGroupName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SubscriptionId</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>BotName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>ResourceGroupName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SubscriptionId</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.AvailableOperations</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.AvailableOperations</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.AvailableOperations</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.AvailableOperations#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand All @@ -58,9 +24,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.BotResponseList</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.BotResponseList</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.BotResponseList</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.BotResponseList#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand All @@ -80,9 +46,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.ErrorAutoGenerated</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Error1</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.ErrorAutoGenerated</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Error1#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down Expand Up @@ -114,9 +80,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBot</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBot</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBot</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBot#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down Expand Up @@ -144,6 +110,9 @@
<TableColumnHeader>
<Label>SystemDataLastModifiedByType</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>ResourceGroupName</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
Expand Down Expand Up @@ -172,15 +141,52 @@
<TableColumnItem>
<PropertyName>SystemDataLastModifiedByType</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>ResourceGroupName</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotIdentity</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotIdentity#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>BotName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>ResourceGroupName</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>SubscriptionId</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>BotName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>ResourceGroupName</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>SubscriptionId</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBotProperties</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotProperties</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBotProperties</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotProperties#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand All @@ -206,9 +212,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBotUpdateParametersTags</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotUpdateParametersTags</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.HealthBotUpdateParametersTags</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.HealthBotUpdateParametersTags#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand All @@ -228,9 +234,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.OperationDetail</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.OperationDetail</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.OperationDetail</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.OperationDetail#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down Expand Up @@ -262,9 +268,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.OperationDisplay</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.OperationDisplay</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.OperationDisplay</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.OperationDisplay#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down Expand Up @@ -302,9 +308,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.Resource</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Resource</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.Resource</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Resource#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand All @@ -324,9 +330,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.Sku</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Sku</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.Sku</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Sku#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand All @@ -346,9 +352,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.SystemData</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.SystemData</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.SystemData</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.SystemData#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down Expand Up @@ -398,9 +404,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.TrackedResource</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.TrackedResource</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.TrackedResource</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.TrackedResource#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down Expand Up @@ -462,9 +468,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.TrackedResourceTags</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.TrackedResourceTags</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.TrackedResourceTags</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.TrackedResourceTags#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand All @@ -484,9 +490,9 @@
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.ValidationResult</Name>
<Name>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ValidationResult</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.ValidationResult</TypeName>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.ValidationResult#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down
3 changes: 1 addition & 2 deletions generated/HealthBot/HealthBot.Autorest/Az.HealthBot.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.HealthBot.private.dll'
FormatsToProcess = './Az.HealthBot.format.ps1xml'
FunctionsToExport = 'Get-AzHealthBot', 'New-AzHealthBot', 'Remove-AzHealthBot', 'Update-AzHealthBot', '*'
AliasesToExport = '*'
FunctionsToExport = 'Get-AzHealthBot', 'New-AzHealthBot', 'Remove-AzHealthBot', 'Update-AzHealthBot'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'HealthBot'
Expand Down
30 changes: 14 additions & 16 deletions generated/HealthBot/HealthBot.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 - HealthBot")]
[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("b9695b5d-c3f7-4953-a756-af80e7772759")]
[assembly: AssemblyVersion("0.1.2")]
[assembly: AssemblyFileVersion("0.1.2")]
[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 - HealthBot")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
6 changes: 3 additions & 3 deletions generated/HealthBot/HealthBot.Autorest/check-dependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
$ErrorActionPreference = 'Stop'

if(-not $Isolated) {
if(-not $NotIsolated) {
Write-Host -ForegroundColor Green 'Creating isolated process...'
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
return
}

Expand Down
21 changes: 15 additions & 6 deletions generated/HealthBot/HealthBot.Autorest/exports/Get-AzHealthBot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Get-AzHealthBot -InputObject $getAzHealthBot
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.IHealthBot
Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBot
.Notes
COMPLEX PARAMETER PROPERTIES

Expand All @@ -47,7 +47,7 @@ INPUTOBJECT <IHealthBotIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.healthbot/get-azhealthbot
#>
function Get-AzHealthBot {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.Api20201208.IHealthBot])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBot])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
Expand Down Expand Up @@ -77,7 +77,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Models.IHealthBotIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

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

$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthBot.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 @@ -160,9 +168,7 @@ begin {
List = 'Az.HealthBot.private\Get-AzHealthBot_List';
List1 = 'Az.HealthBot.private\Get-AzHealthBot_List1';
}
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.HealthBot.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
Expand All @@ -176,6 +182,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
Loading