This directory contains the PowerShell module for the BotService service.
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes
This module was primarily generated via AutoRest using the PowerShell extension.
- Az.Accounts module, version 2.7.5 or greater
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
For information on how to develop for Az.BotService
, see how-to.md.
region Generated
This directory contains the PowerShell module for the BotService service.
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes
This module was primarily generated via AutoRest using the PowerShell extension.
- Az.Accounts module, version 2.7.5 or greater
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
For information on how to develop for Az.BotService
, see how-to.md.
Use of the beta version of autorest.powershell
generator requires the following:
- NodeJS LTS (10.15.x LTS preferred)
- Note: It will not work with Node < 10.x. Using 11.x builds may cause issues as they may introduce instability or breaking changes.
If you want an easy way to install and update Node, NVS - Node Version Switcher or NVM - Node Version Manager is recommended.
- AutoRest v3 beta
npm install -g autorest@beta
- PowerShell 6.0 or greater
- If you don't have it installed, you can use the cross-platform npm package
npm install -g pwsh
- If you don't have it installed, you can use the cross-platform npm package
- .NET Core SDK 2.0 or greater
- If you don't have it installed, you can use the cross-platform npm package
npm install -g dotnet-sdk-2.2
- If you don't have it installed, you can use the cross-platform npm package
In this directory, run AutoRest:
autorest
commit: 827a487dc10fb666baa2d2b261c9264ea710f1b4
require:
- $(this-folder)/../../readme.azure.noprofile.md
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
where: $.definitions.EmailChannelAuthMethod
transform: >-
return {
"type": "number",
"description": "Email channel auth method. 0 Password (Default); 1 Graph.",
"enum": [
0,
1
]
}
- from: botservice.json
where: $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}"]
transform: delete $["get"]
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^RegenerateViaIdentity$|^RegenerateViaIdentityExpanded$
remove: true
- where:
subject: Bot
set:
subject: BotService
- where:
subject: BotService
verb: New
hide: true
- where:
subject: Channel|EnterpriseChannel|BotConnectionServiceProvider|BotConnection
remove: true
- where:
subject: BotCheckNameAvailability
hide: true
- where:
subject: BotService
parameter-name: ResourceName
set:
parameter-name: Name
alias: BotName
- where:
model-name: BotChannel
property-name: ProvisioningState
set:
property-name: PropertiesProvisioningState
- where:
subject: PrivateEndpointConnection
hide: true
- where:
verb: Get
subject: PrivateLinkResource
hide: true
- where:
subject: BotService
set:
subject-prefix: ''
- where:
verb: Get
subject: HostSetting
variant: GetViaIdentity
hide: true
- where:
verb: Get
subject: QnAMakerEndpointKey
hide: true
- where:
subject: BotCheckNameAvailability
set:
subject: CheckNameAvailability
- where:
verb: New
subject: DirectLineKey
variant: Regenerate
hide: true