BotService class
Defines an Azure Bot Service connection.
- Extends
Constructors
Bot |
Creates a new BotService instance. |
Properties
app |
MSA App ID for the bot. |
Inherited Properties
id | Unique Id for the service. |
name | Friendly name for the service. |
resource |
Resource group for azure. |
service |
Name of the service. |
subscription |
Subscription ID for azure. |
tenant |
Tenant ID for azure. |
type |
Methods
decrypt(string, (value: string, secret: string) => string) | Decrypt properties on this service. |
encrypt(string, (value: string, secret: string) => string) | Encrypt properties on this service. |
Inherited Methods
toJSON() | Creates a JSON based version of the model for saving to disk. |
Constructor Details
BotService(IBotService)
Creates a new BotService instance.
new BotService(source?: IBotService)
Parameters
- source
- IBotService
(Optional) JSON based service definition.
Property Details
appId
MSA App ID for the bot.
appId: string
Property Value
string
Inherited Property Details
id
name
Friendly name for the service.
name: string
Property Value
string
Inherited From ConnectedService.name
resourceGroup
Resource group for azure.
resourceGroup: string
Property Value
string
Inherited From AzureService.resourceGroup
serviceName
Name of the service.
serviceName: string
Property Value
string
Inherited From AzureService.serviceName
subscriptionId
Subscription ID for azure.
subscriptionId: string
Property Value
string
Inherited From AzureService.subscriptionId
tenantId
type
Method Details
decrypt(string, (value: string, secret: string) => string)
Decrypt properties on this service.
function decrypt(_secret: string, _decryptString: (value: string, secret: string) => string)
Parameters
- _secret
-
string
Secret to use to decrypt.
- _decryptString
-
(value: string, secret: string) => string
Function called to decrypt an individual value.
encrypt(string, (value: string, secret: string) => string)
Encrypt properties on this service.
function encrypt(_secret: string, _encryptString: (value: string, secret: string) => string)
Parameters
- _secret
-
string
Secret to use to encrypt.
- _encryptString
-
(value: string, secret: string) => string
Function called to encrypt an individual value.
Inherited Method Details
toJSON()
Creates a JSON based version of the model for saving to disk.
function toJSON(): IConnectedService
Returns
An IConnectedService JSON.
Inherited From ConnectedService.toJSON