Skip to content

Commit

Permalink
CodeGen from PR 16012 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.BotService to add version preview/2021-05-01-preview (Azure#16012)

* fix some error

* update

* update

* update example
  • Loading branch information
SDKAuto committed Oct 19, 2021
1 parent 008ed54 commit 97803ba
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdk/botservice/arm-botservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/botservice/arm-botservice",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/botservice/arm-botservice",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
124 changes: 123 additions & 1 deletion sdk/botservice/arm-botservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export interface Resource extends BaseResource {
* Entity Tag
*/
etag?: string;
/**
* Entity zones
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly zones?: string[];
}

/**
Expand Down Expand Up @@ -227,6 +232,15 @@ export interface BotProperties {
* Whether the bot is in an isolated network
*/
isIsolated?: boolean;
/**
* Whether the bot is developerAppInsightsApiKey set
*/
isDeveloperAppInsightsApiKeySet?: boolean;
/**
* Token used to migrate non Azure bot to azure subscription
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly migrationToken?: string;
/**
* Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for
* authentication.
Expand Down Expand Up @@ -274,6 +288,10 @@ export interface Channel {
* Polymorphic Discriminator
*/
channelName: "Channel";
/**
* Entity Tag of the resource
*/
etag?: string;
}

/**
Expand Down Expand Up @@ -318,6 +336,10 @@ export interface AlexaChannel {
* Polymorphic Discriminator
*/
channelName: "AlexaChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Alexa channel resource
*/
Expand Down Expand Up @@ -381,10 +403,22 @@ export interface FacebookChannel {
* Polymorphic Discriminator
*/
channelName: "FacebookChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to bot facebook channel
*/
properties?: FacebookChannelProperties;
/**
* Provisioning state of the resource
*/
provisioningState?: string;
/**
* Location of the resource
*/
location?: string;
}

/**
Expand Down Expand Up @@ -414,10 +448,18 @@ export interface EmailChannel {
* Polymorphic Discriminator
*/
channelName: "EmailChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to email channel resource
*/
properties?: EmailChannelProperties;
/**
* Provisioning state of the resource
*/
provisioningState?: string;
}

/**
Expand All @@ -436,6 +478,10 @@ export interface MsTeamsChannelProperties {
* Whether this channel is enabled for the bot
*/
isEnabled: boolean;
/**
* Webhook for Microsoft Teams channel calls
*/
incomingCallRoute?: string;
}

/**
Expand All @@ -446,10 +492,18 @@ export interface MsTeamsChannel {
* Polymorphic Discriminator
*/
channelName: "MsTeamsChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Microsoft Teams channel resource
*/
properties?: MsTeamsChannelProperties;
/**
* Provisioning state of the resource
*/
provisioningState?: string;
}

/**
Expand Down Expand Up @@ -488,6 +542,10 @@ export interface SkypeChannelProperties {
* Calling web hook for Skype channel
*/
callingWebHook?: string;
/**
* Incoming call route for Skype channel
*/
incomingCallRoute?: string;
/**
* Whether this channel is enabled for the bot
*/
Expand All @@ -502,6 +560,10 @@ export interface SkypeChannel {
* Polymorphic Discriminator
*/
channelName: "SkypeChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Skype channel resource
*/
Expand Down Expand Up @@ -538,6 +600,10 @@ export interface KikChannel {
* Polymorphic Discriminator
*/
channelName: "KikChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Kik channel resource
*/
Expand Down Expand Up @@ -575,7 +641,7 @@ export interface WebChatSite {
/**
* Whether this site is enabled for preview versions of Webchat
*/
enablePreview: boolean;
isWebchatPreviewEnabled: boolean;
}

/**
Expand All @@ -601,10 +667,18 @@ export interface WebChatChannel {
* Polymorphic Discriminator
*/
channelName: "WebChatChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Web Chat channel resource
*/
properties?: WebChatChannelProperties;
/**
* Location of the resource
*/
location?: string;
}

/**
Expand Down Expand Up @@ -647,6 +721,10 @@ export interface DirectLineSite {
* Whether this site is enabled for authentication with Bot Framework.
*/
isSecureSiteEnabled?: boolean;
/**
* Whether this site is enabled for block user upload.
*/
isBlockUserUploadEnabled?: boolean;
/**
* List of Trusted Origin URLs for this site. This field is applicable only if
* isSecureSiteEnabled is True.
Expand All @@ -662,6 +740,10 @@ export interface DirectLineChannelProperties {
* The list of Direct Line sites
*/
sites?: DirectLineSite[];
/**
* Direct Line embed code of the resource
*/
directLineEmbedCode?: string;
}

/**
Expand All @@ -672,10 +754,18 @@ export interface DirectLineChannel {
* Polymorphic Discriminator
*/
channelName: "DirectLineChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Direct Line channel resource
*/
properties?: DirectLineChannelProperties;
/**
* Provisioning state of the resource
*/
provisioningState?: string;
}

/**
Expand Down Expand Up @@ -705,10 +795,18 @@ export interface TelegramChannel {
* Polymorphic Discriminator
*/
channelName: "TelegramChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Telegram channel resource
*/
properties?: TelegramChannelProperties;
/**
* Provisioning state of the resource
*/
provisioningState?: string;
}

/**
Expand Down Expand Up @@ -747,6 +845,10 @@ export interface SmsChannel {
* Polymorphic Discriminator
*/
channelName: "SmsChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Sms channel resource
*/
Expand Down Expand Up @@ -817,10 +919,18 @@ export interface SlackChannel {
* Polymorphic Discriminator
*/
channelName: "SlackChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to Slack channel resource
*/
properties?: SlackChannelProperties;
/**
* Location of the resource
*/
location?: string;
}

/**
Expand Down Expand Up @@ -870,6 +980,10 @@ export interface LineChannel {
* Polymorphic Discriminator
*/
channelName: "LineChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to line channel resource
*/
Expand Down Expand Up @@ -914,10 +1028,18 @@ export interface DirectLineSpeechChannel {
* Polymorphic Discriminator
*/
channelName: "DirectLineSpeechChannel";
/**
* Entity Tag of the resource
*/
etag?: string;
/**
* The set of properties specific to DirectLine Speech channel resource
*/
properties?: DirectLineSpeechChannelProperties;
/**
* Provisioning state of the resource
*/
provisioningState?: string;
}

/**
Expand Down
Loading

0 comments on commit 97803ba

Please sign in to comment.