Skip to content

Commit e4db257

Browse files
authored
[Az.BotService] Update generation tool version: autorest.powershell v3->v4 (Azure#27546)
1 parent b5e753b commit e4db257

28 files changed

+421
-239
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 - BotService")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.5.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.5.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/BotService/BotService.Autorest/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ input-file:
7676
- $(repo)/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/botservice.json
7777
title: BotService
7878
module-version: 0.1.0
79-
identity-correction-for-post: true
8079
subject-prefix: 'BotService'
81-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
82-
use-extension:
83-
"@autorest/powershell": "3.x"
8480

8581
directive:
8682
- from: botservice.json
@@ -98,7 +94,10 @@ directive:
9894
where: $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}"]
9995
transform: delete $["get"]
10096
- where:
101-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^RegenerateViaIdentity$|^RegenerateViaIdentityExpanded$
97+
variant: ^(Create|Update|Regenerate)(?!.*?(Expanded|JsonFilePath|JsonString))
98+
remove: true
99+
- where:
100+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^UpdateViaIdentity$|^RegenerateViaIdentity$|^RegenerateViaIdentityExpanded$|^RegenerateViaIdentityBotServiceExpanded$
102101
remove: true
103102
- where:
104103
subject: Bot

src/BotService/BotService.Autorest/custom/Export-AzBotServiceApp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Returns a BotService specified by the parameters.
2222
https://learn.microsoft.com/powershell/module/az.botservice/export-azbotserviceapp
2323
#>
2424
function Export-AzBotServiceApp {
25-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot])]
25+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot])]
2626
[CmdletBinding(PositionalBinding=$false)]
2727
param(
2828
[Parameter()]

src/BotService/BotService.Autorest/custom/Initialize-AzBotServicePrepareDeploy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Returns a BotService specified by the parameters.
2222
https://learn.microsoft.com/powershell/module/az.botservice/initialize-azbotservicepreparedeploy
2323
#>
2424
function Initialize-AzBotServicePrepareDeploy {
25-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot])]
25+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot])]
2626
[CmdletBinding(PositionalBinding=$false)]
2727
param(
2828
[Parameter()]

src/BotService/BotService.Autorest/custom/New-AzBotService.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Returns a BotService specified by the parameters.
2222
https://learn.microsoft.com/powershell/module/az.botservice/new-azbotservice
2323
#>
2424
function New-AzBotService {
25-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot])]
25+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot])]
2626
[CmdletBinding(PositionalBinding=$false)]
2727
param(
2828
[Parameter(Mandatory)]

src/BotService/BotService.Autorest/docs/Az.BotService.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.BotService
3-
Module Guid: 0fbff4fb-215b-4aca-b867-d1acfecab531
3+
Module Guid: 30262aa0-2203-409b-8e89-92c02e07022d
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.botservice
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -36,5 +36,5 @@ Returns a BotService specified by the parameters.
3636
Deletes a Bot Service from the resource group.
3737

3838
### [Update-AzBotService](Update-AzBotService.md)
39-
Updates a Bot Service
39+
update a Bot Service
4040

src/BotService/BotService.Autorest/docs/Export-AzBotServiceApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
123123
124124
## OUTPUTS
125125
126-
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot
126+
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot
127127
128128
## NOTES
129129

src/BotService/BotService.Autorest/docs/Get-AzBotService.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ Accept wildcard characters: False
115115
116116
### -InputObject
117117
Identity Parameter
118-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
119118
120119
```yaml
121120
Type: Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBotServiceIdentity
@@ -183,7 +182,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
183182
184183
## OUTPUTS
185184
186-
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot
185+
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot
187186
188187
## NOTES
189188

src/BotService/BotService.Autorest/docs/Get-AzBotServiceHostSetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
7373
7474
## OUTPUTS
7575
76-
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IHostSettingsResponse
76+
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IHostSettingsResponse
7777
7878
## NOTES
7979

src/BotService/BotService.Autorest/docs/Initialize-AzBotServicePrepareDeploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
113113
114114
## OUTPUTS
115115
116-
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot
116+
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot
117117
118118
## NOTES
119119

0 commit comments

Comments
 (0)