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
26 changes: 26 additions & 0 deletions src/BotService/BotService.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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,
// 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: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - BotService")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.5.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.5.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
9 changes: 4 additions & 5 deletions src/BotService/BotService.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ input-file:
- $(repo)/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/botservice.json
title: BotService
module-version: 0.1.0
identity-correction-for-post: true
subject-prefix: 'BotService'
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
- from: botservice.json
Expand All @@ -98,7 +94,10 @@ directive:
where: $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}"]
transform: delete $["get"]
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^RegenerateViaIdentity$|^RegenerateViaIdentityExpanded$
variant: ^(Create|Update|Regenerate)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^UpdateViaIdentity$|^RegenerateViaIdentity$|^RegenerateViaIdentityExpanded$|^RegenerateViaIdentityBotServiceExpanded$
remove: true
- where:
subject: Bot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Returns a BotService specified by the parameters.
https://learn.microsoft.com/powershell/module/az.botservice/export-azbotserviceapp
#>
function Export-AzBotServiceApp {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Returns a BotService specified by the parameters.
https://learn.microsoft.com/powershell/module/az.botservice/initialize-azbotservicepreparedeploy
#>
function Initialize-AzBotServicePrepareDeploy {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Returns a BotService specified by the parameters.
https://learn.microsoft.com/powershell/module/az.botservice/new-azbotservice
#>
function New-AzBotService {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
Expand Down
4 changes: 2 additions & 2 deletions src/BotService/BotService.Autorest/docs/Az.BotService.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.BotService
Module Guid: 0fbff4fb-215b-4aca-b867-d1acfecab531
Module Guid: 30262aa0-2203-409b-8e89-92c02e07022d
Download Help Link: https://learn.microsoft.com/powershell/module/az.botservice
Help Version: 1.0.0.0
Locale: en-US
Expand Down Expand Up @@ -36,5 +36,5 @@ Returns a BotService specified by the parameters.
Deletes a Bot Service from the resource group.

### [Update-AzBotService](Update-AzBotService.md)
Updates a Bot Service
update a Bot Service

Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot

## NOTES

Expand Down
3 changes: 1 addition & 2 deletions src/BotService/BotService.Autorest/docs/Get-AzBotService.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBotServiceIdentity
Expand Down Expand Up @@ -183,7 +182,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IHostSettingsResponse
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IHostSettingsResponse

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBot
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBot

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,25 @@ Regenerates secret keys and returns them for the DirectLine Channel of a particu

## SYNTAX

### RegenerateExpanded (Default)
```
New-AzBotServiceDirectLineKey -ChannelName <RegenerateKeysChannelName> -ResourceGroupName <String>
-ResourceName <String> -Key <Key> -SiteName <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
[-Confirm] [-WhatIf] [<CommonParameters>]
New-AzBotServiceDirectLineKey -ChannelName <String> -ResourceGroupName <String> -ResourceName <String>
-Key <String> -SiteName <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### RegenerateViaJsonFilePath
```
New-AzBotServiceDirectLineKey -ChannelName <String> -ResourceGroupName <String> -ResourceName <String>
-JsonFilePath <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### RegenerateViaJsonString
```
New-AzBotServiceDirectLineKey -ChannelName <String> -ResourceGroupName <String> -ResourceName <String>
-JsonString <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

## DESCRIPTION
Expand All @@ -36,7 +51,7 @@ Regenerates secret keys and returns them for the DirectLine Channel of a particu
The name of the Channel resource for which keys are to be regenerated.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.RegenerateKeysChannelName
Type: System.String
Parameter Sets: (All)
Aliases:

Expand All @@ -63,12 +78,42 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonFilePath
Path of Json file supplied to the Regenerate operation

```yaml
Type: System.String
Parameter Sets: RegenerateViaJsonFilePath
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonString
Json string supplied to the Regenerate operation

```yaml
Type: System.String
Parameter Sets: RegenerateViaJsonString
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Key
Determines which key is to be regenerated

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.BotService.Support.Key
Parameter Sets: (All)
Type: System.String
Parameter Sets: RegenerateExpanded
Aliases:

Required: True
Expand Down Expand Up @@ -113,7 +158,7 @@ The site name

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: RegenerateExpanded
Aliases:

Required: True
Expand Down Expand Up @@ -176,7 +221,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20220615Preview.IBotChannel
### Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBotChannel

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.IBotServiceIdentity
Expand Down
Loading