diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 3bfd955bd44a..71fc7a0b2b4e 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -8000,6 +8000,12 @@ packages: hasBin: true dev: false + /mkdirp@2.1.6: + resolution: {integrity: sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==} + engines: {node: '>=10'} + hasBin: true + dev: false + /mkdirp@3.0.1: resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} engines: {node: '>=10'} @@ -12296,7 +12302,7 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-147xXSwgZaTrVjH56KouUjgso03Z6u0SNJo5q0clHJxLYRNg1Qx/8I3vYUh17iX3ZhL2sF1TF63DqsjnctogYg==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-SUyJWTgb369ziyQvclZ6ZU35EkBBbxYMQCCULgdzv9+Ftr2I+gvo26vU8WbzFdENlGnXeMuI76ULueUmcOMK7w==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: @@ -12310,12 +12316,13 @@ packages: chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 - mkdirp: 3.0.1 + esm: 3.2.25 + mkdirp: 2.1.6 mocha: 10.4.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.31)(typescript@5.4.5) + ts-node: 10.9.2(@types/node@18.19.31)(typescript@5.3.3) tslib: 2.6.2 - typescript: 5.4.5 + typescript: 5.3.3 uglify-js: 3.17.4 transitivePeerDependencies: - '@swc/core' @@ -18246,7 +18253,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-HSKnQ8WCb5ATYUnuvHKfe4oqTPhigVznnjP5GLKwr8dT/3/33tz47mERXvn98FnIET3IkMbGUjVGWZaF+ptilw==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-nUyHpUX+KZ9fB73If5obm9HeKcEd8SDw3NJTviS+rZtYlg7NR6jkpBEYp+YMzq/eIhCTWK1xUYYziLiEhW+gYQ==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -19051,7 +19058,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-x1BGAnFJ7U+Sql8tAruxzEo0Z1ZK3vJVkW0YAxMIrtS2D2EcVvthAUgciwDA2lRM0gwGQgMCT2LaiaAsp0AwJg==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-ClNrE1AVjNg9sJ+vXsV0x7t7q2SfzT/+4LayM8IF/0d5xUS0cbQkLx6H/+apMU6XNZcyKEofncf9QK31cGXXDA==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -20911,7 +20918,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-C+nIR7ErkNg8p/U8troHdXhdmPQOLJdQpvEZapicAeAjeZ9UqxY/N4U43uY2IZURyASpcnZxSiDb4YagxXcGcQ==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-5Zavq9MkfFVlmPJWE22le3NCPuP4kaK67e9QIEtcmVdjcL6Z9H2e4RyKKY6ejOO4YFD+y+eLxIwJ/PqMQ4iVTQ==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -20957,7 +20964,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-qhJ09fwX+sw2L8MGjYL+phAWFKi2Q1cck0xXlcQo5Zu03tW4okRJ53Oa5AnyhLaD7D53vNrMQ99JZZVQWCtSfg==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-mLcOvs6TSai6nVkn6uXk5KFjVJBTvykMtWI0k9rc4H8m8iLOObIAcKegeAOGMeULoYSANE5jB4SMCz1NU9+QtQ==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -21470,7 +21477,7 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-yQRbYhfNZ51zmExqjIc0RIUOH1paTiR2eGdTYqJRBAvl+1NLq1AlkzACQt01R0kIVl65F9TlRYJ2yQ1f+Ipb7Q==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-mRqF7edxY/hxArY862viK7MZ6D/OludZydiaryakA+5lyEuICMzotxxOpDhOKhg02Jm5wyp+oRkpveIVfZK8/w==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: diff --git a/sdk/botservice/arm-botservice/CHANGELOG.md b/sdk/botservice/arm-botservice/CHANGELOG.md index 61b58b5db40c..4e0c4b539ad2 100644 --- a/sdk/botservice/arm-botservice/CHANGELOG.md +++ b/sdk/botservice/arm-botservice/CHANGELOG.md @@ -1,15 +1,51 @@ # Release History - -## 4.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 5.0.0-beta.1 (2024-04-18) + +**Features** + + - Added operation group NetworkSecurityPerimeterConfigurations + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponse + - Added Interface NetworkSecurityPerimeter + - Added Interface NetworkSecurityPerimeterConfiguration + - Added Interface NetworkSecurityPerimeterConfigurationList + - Added Interface NetworkSecurityPerimeterConfigurationProperties + - Added Interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListNextOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileHeaders + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + - Added Interface NspAccessRule + - Added Interface NspAccessRuleProperties + - Added Interface NspAccessRulePropertiesSubscriptionsItem + - Added Interface Profile + - Added Interface ProvisioningIssue + - Added Interface ProvisioningIssueProperties + - Added Interface ResourceAssociation + - Added Type Alias AccessMode + - Added Type Alias NetworkSecurityPerimeterConfigurationsGetResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListNextResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsReconcileResponse + - Added Type Alias NspAccessRuleDirection + - Added Type Alias ProvisioningState + - Added Type Alias Severity + - Interface BotProperties has a new optional parameter networkSecurityPerimeterConfigurations + - Interface ConnectionSettingProperties has a new optional parameter id + - Interface ConnectionSettingProperties has a new optional parameter name + - Added Enum KnownAccessMode + - Added Enum KnownNspAccessRuleDirection + - Added Enum KnownProvisioningState + - Added Enum KnownSeverity + - Enum KnownPublicNetworkAccess has a new value SecuredByPerimeter + +**Breaking Changes** + + - Class AzureBotService has a new signature + + ## 4.0.0 (2023-01-16) The package of @azure/arm-botservice is using our next generation design principles since version 4.0.0, which contains breaking changes. @@ -18,4 +54,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/botservice/arm-botservice/LICENSE b/sdk/botservice/arm-botservice/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/botservice/arm-botservice/LICENSE +++ b/sdk/botservice/arm-botservice/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/botservice/arm-botservice/README.md b/sdk/botservice/arm-botservice/README.md index 09fd84a297d1..f02be5d43a4d 100644 --- a/sdk/botservice/arm-botservice/README.md +++ b/sdk/botservice/arm-botservice/README.md @@ -6,7 +6,7 @@ Azure Bot Service is a platform for creating smart conversational agents. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/botservice/arm-botservice) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-botservice) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-botservice) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-botservice?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/botservice/arm-botservice/_meta.json b/sdk/botservice/arm-botservice/_meta.json index 5f4183a3e861..4f4efbcda3ac 100644 --- a/sdk/botservice/arm-botservice/_meta.json +++ b/sdk/botservice/arm-botservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "4359ee079cc0f0d7c596cafeb8b363466d2d95f6", + "commit": "ccaebf73fe9fbcfdf16d72c713077f795c5a08fe", "readme": "specification/botservice/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\botservice\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/botservice/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.7" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.5", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/botservice/arm-botservice/package.json b/sdk/botservice/arm-botservice/package.json index 362bd08aadb0..09f4f0743741 100644 --- a/sdk/botservice/arm-botservice/package.json +++ b/sdk/botservice/arm-botservice/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureBotService.", - "version": "4.0.1", + "version": "5.0.0-beta.1", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -29,22 +29,23 @@ "types": "./types/arm-botservice.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^3.0.1", - "typescript": "~5.4.5", + "mkdirp": "^2.1.2", + "typescript": "~5.3.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/botservice/arm-botservice", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-botservice?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/botservice/arm-botservice" +} \ No newline at end of file diff --git a/sdk/botservice/arm-botservice/review/arm-botservice.api.md b/sdk/botservice/arm-botservice/review/arm-botservice.api.md index a3d98757957e..105901dcdada 100644 --- a/sdk/botservice/arm-botservice/review/arm-botservice.api.md +++ b/sdk/botservice/arm-botservice/review/arm-botservice.api.md @@ -6,9 +6,12 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; + +// @public +export type AccessMode = string; // @public export interface AcsChatChannel extends Channel { @@ -34,6 +37,7 @@ export class AzureBotService extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureBotServiceOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: AzureBotServiceOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -49,6 +53,8 @@ export class AzureBotService extends coreClient.ServiceClient { // (undocumented) hostSettings: HostSettings; // (undocumented) + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; + // (undocumented) operationResults: OperationResults; // (undocumented) operations: Operations; @@ -59,7 +65,7 @@ export class AzureBotService extends coreClient.ServiceClient { // (undocumented) qnAMakerEndpointKeys: QnAMakerEndpointKeys; // (undocumented) - subscriptionId: string; + subscriptionId?: string; } // @public @@ -173,6 +179,7 @@ export interface BotProperties { msaAppMSIResourceId?: string; msaAppTenantId?: string; msaAppType?: MsaAppType; + readonly networkSecurityPerimeterConfigurations?: NetworkSecurityPerimeterConfiguration[]; openWithHint?: string; parameters?: { [propertyName: string]: string; @@ -402,6 +409,8 @@ export interface ConnectionSettingParameter { export interface ConnectionSettingProperties { clientId?: string; clientSecret?: string; + id?: string; + name?: string; parameters?: ConnectionSettingParameter[]; provisioningState?: string; scopes?: string; @@ -505,17 +514,37 @@ export interface EmailCreateSignInUrlOptionalParams extends coreClient.Operation // @public export type EmailCreateSignInUrlResponse = CreateEmailSignInUrlResponse; +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + // @public export interface ErrorBody { code: string; message: string; } +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorModel { error?: ErrorBody; } +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + // @public export interface FacebookChannel extends Channel { channelName: "FacebookChannel"; @@ -585,6 +614,13 @@ export interface KikChannelProperties { // @public export type Kind = string; +// @public +export enum KnownAccessMode { + Audit = "Audit", + Enforced = "Enforced", + Learning = "Learning" +} + // @public export enum KnownKind { Azurebot = "azurebot", @@ -601,6 +637,12 @@ export enum KnownMsaAppType { UserAssignedMSI = "UserAssignedMSI" } +// @public +export enum KnownNspAccessRuleDirection { + Inbound = "Inbound", + Outbound = "Outbound" +} + // @public export enum KnownOperationResultStatus { Canceled = "Canceled", @@ -625,10 +667,27 @@ export enum KnownPrivateEndpointServiceConnectionStatus { Rejected = "Rejected" } +// @public +export enum KnownProvisioningState { + Accepted = "Accepted", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownPublicNetworkAccess { Disabled = "Disabled", - Enabled = "Enabled" + Enabled = "Enabled", + SecuredByPerimeter = "SecuredByPerimeter" +} + +// @public +export enum KnownSeverity { + Error = "Error", + Warning = "Warning" } // @public @@ -696,6 +755,106 @@ export interface MsTeamsChannelProperties { isEnabled: boolean; } +// @public +export interface NetworkSecurityPerimeter { + readonly id?: string; + location?: string; + perimeterGuid?: string; +} + +// @public +export interface NetworkSecurityPerimeterConfiguration { + id?: string; + name?: string; + readonly properties?: NetworkSecurityPerimeterConfigurationProperties; + type?: string; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationList { + readonly nextLink?: string; + readonly value?: NetworkSecurityPerimeterConfiguration[]; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationProperties { + readonly networkSecurityPerimeter?: NetworkSecurityPerimeter; + readonly profile?: Profile; + provisioningIssues?: ProvisioningIssue[]; + // (undocumented) + provisioningState?: ProvisioningState; + readonly resourceAssociation?: ResourceAssociation; +} + +// @public +export interface NetworkSecurityPerimeterConfigurations { + beginReconcile(resourceGroupName: string, resourceName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise, NetworkSecurityPerimeterConfigurationsReconcileResponse>>; + beginReconcileAndWait(resourceGroupName: string, resourceName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise; + get(resourceGroupName: string, resourceName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams): Promise; + list(resourceGroupName: string, resourceName: string, options?: NetworkSecurityPerimeterConfigurationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsListNextResponse = NetworkSecurityPerimeterConfigurationList; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsListResponse = NetworkSecurityPerimeterConfigurationList; + +// @public +export interface NetworkSecurityPerimeterConfigurationsReconcileHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfiguration; + +// @public +export interface NspAccessRule { + name?: string; + readonly properties?: NspAccessRuleProperties; +} + +// @public +export type NspAccessRuleDirection = string; + +// @public +export interface NspAccessRuleProperties { + addressPrefixes?: string[]; + direction?: NspAccessRuleDirection; + readonly emailAddresses?: string[]; + readonly fullyQualifiedDomainNames?: string[]; + readonly networkSecurityPerimeters?: NetworkSecurityPerimeter[]; + readonly phoneNumbers?: string[]; + subscriptions?: NspAccessRulePropertiesSubscriptionsItem[]; +} + +// @public +export interface NspAccessRulePropertiesSubscriptionsItem { + id?: string; +} + // @public export interface Omnichannel extends Channel { channelName: "Omnichannel"; @@ -725,7 +884,7 @@ export interface OperationEntityListResult { // @public export interface OperationResults { - beginGet(operationResultId: string, options?: OperationResultsGetOptionalParams): Promise, OperationResultsGetResponse>>; + beginGet(operationResultId: string, options?: OperationResultsGetOptionalParams): Promise, OperationResultsGetResponse>>; beginGetAndWait(operationResultId: string, options?: OperationResultsGetOptionalParams): Promise; } @@ -868,6 +1027,33 @@ export interface PrivateLinkServiceConnectionState { status?: PrivateEndpointServiceConnectionStatus; } +// @public +export interface Profile { + accessRules?: NspAccessRule[]; + accessRulesVersion?: number; + diagnosticSettingsVersion?: number; + readonly enabledLogCategories?: string[]; + name?: string; +} + +// @public +export interface ProvisioningIssue { + name?: string; + readonly properties?: ProvisioningIssueProperties; +} + +// @public +export interface ProvisioningIssueProperties { + description?: string; + issueType?: string; + severity?: Severity; + suggestedAccessRules?: NspAccessRule[]; + readonly suggestedResourceIds?: string[]; +} + +// @public +export type ProvisioningState = string; + // @public export type PublicNetworkAccess = string; @@ -915,6 +1101,12 @@ export interface Resource { readonly zones?: string[]; } +// @public +export interface ResourceAssociation { + accessMode?: AccessMode; + name?: string; +} + // @public export interface SearchAssistant extends Channel { channelName: "SearchAssistant"; @@ -962,6 +1154,9 @@ export interface ServiceProviderResponseList { readonly value?: ServiceProvider[]; } +// @public +export type Severity = string; + // @public export interface Site { appId?: string; diff --git a/sdk/botservice/arm-botservice/src/azureBotService.ts b/sdk/botservice/arm-botservice/src/azureBotService.ts index 803a58f640f7..47caa3111441 100644 --- a/sdk/botservice/arm-botservice/src/azureBotService.ts +++ b/sdk/botservice/arm-botservice/src/azureBotService.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -25,7 +25,8 @@ import { HostSettingsImpl, OperationResultsImpl, PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl + PrivateLinkResourcesImpl, + NetworkSecurityPerimeterConfigurationsImpl, } from "./operations"; import { Bots, @@ -38,14 +39,15 @@ import { HostSettings, OperationResults, PrivateEndpointConnections, - PrivateLinkResources + PrivateLinkResources, + NetworkSecurityPerimeterConfigurations, } from "./operationsInterfaces"; import { AzureBotServiceOptionalParams } from "./models"; export class AzureBotService extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the AzureBotService class. @@ -56,13 +58,27 @@ export class AzureBotService extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AzureBotServiceOptionalParams + options?: AzureBotServiceOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: AzureBotServiceOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: AzureBotServiceOptionalParams | string, + options?: AzureBotServiceOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -71,10 +87,10 @@ export class AzureBotService extends coreClient.ServiceClient { } const defaults: AzureBotServiceOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-botservice/4.0.1`; + const packageDetails = `azsdk-js-arm-botservice/5.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -84,20 +100,21 @@ export class AzureBotService extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -107,7 +124,7 @@ export class AzureBotService extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -117,9 +134,9 @@ export class AzureBotService extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -127,7 +144,7 @@ export class AzureBotService extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-09-15"; + this.apiVersion = options.apiVersion || "2023-09-15-preview"; this.bots = new BotsImpl(this); this.channels = new ChannelsImpl(this); this.directLine = new DirectLineImpl(this); @@ -139,6 +156,8 @@ export class AzureBotService extends coreClient.ServiceClient { this.operationResults = new OperationResultsImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.networkSecurityPerimeterConfigurations = + new NetworkSecurityPerimeterConfigurationsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -151,7 +170,7 @@ export class AzureBotService extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -165,7 +184,7 @@ export class AzureBotService extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -181,4 +200,5 @@ export class AzureBotService extends coreClient.ServiceClient { operationResults: OperationResults; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; } diff --git a/sdk/botservice/arm-botservice/src/lroImpl.ts b/sdk/botservice/arm-botservice/src/lroImpl.ts index 518d5f053b4e..b27f5ac7209b 100644 --- a/sdk/botservice/arm-botservice/src/lroImpl.ts +++ b/sdk/botservice/arm-botservice/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike }, + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal, + }); + }, + }; } diff --git a/sdk/botservice/arm-botservice/src/models/index.ts b/sdk/botservice/arm-botservice/src/models/index.ts index 977a6761503b..9b7c537525da 100644 --- a/sdk/botservice/arm-botservice/src/models/index.ts +++ b/sdk/botservice/arm-botservice/src/models/index.ts @@ -115,6 +115,11 @@ export interface BotProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * List of Network Security Perimeter configurations for the bot + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly networkSecurityPerimeterConfigurations?: NetworkSecurityPerimeterConfiguration[]; /** The hint to browser (e.g. protocol handler) on how to open the bot for authoring */ openWithHint?: string; /** The hint (e.g. keyVault secret resourceId) on how to fetch the app secret */ @@ -166,6 +171,156 @@ export interface PrivateLinkResourceBase { readonly type?: string; } +/** Network Security Perimeter configuration */ +export interface NetworkSecurityPerimeterConfiguration { + /** Fully qualified identifier of the resource */ + id?: string; + /** Name of the resource */ + name?: string; + /** Type of the resource */ + type?: string; + /** + * Properties of the Network Security Perimeter configuration + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: NetworkSecurityPerimeterConfigurationProperties; +} + +/** Properties of Network Security Perimeter configuration */ +export interface NetworkSecurityPerimeterConfigurationProperties { + provisioningState?: ProvisioningState; + /** List of Provisioning Issues if any */ + provisioningIssues?: ProvisioningIssue[]; + /** + * Information about Network Security Perimeter + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly networkSecurityPerimeter?: NetworkSecurityPerimeter; + /** + * Information about resource association + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceAssociation?: ResourceAssociation; + /** + * Information about profile + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly profile?: Profile; +} + +/** Describes Provisioning issue for given Network Security Perimeter configuration */ +export interface ProvisioningIssue { + /** Name of the issue */ + name?: string; + /** + * Properties of Provisioning Issue + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: ProvisioningIssueProperties; +} + +/** Properties of Provisioning Issue */ +export interface ProvisioningIssueProperties { + /** Type of Issue */ + issueType?: string; + /** Provisioning state of Network Security Perimeter configuration propagation */ + severity?: Severity; + /** Description of the issue */ + description?: string; + /** + * ARM IDs of resources that can be associated to the same perimeter to remediate the issue. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly suggestedResourceIds?: string[]; + /** Access rules that can be added to the same profile to remediate the issue. */ + suggestedAccessRules?: NspAccessRule[]; +} + +/** Information of Access Rule in a profile */ +export interface NspAccessRule { + /** Name of the access rule */ + name?: string; + /** + * Properties of Access Rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: NspAccessRuleProperties; +} + +/** Properties of Access Rule */ +export interface NspAccessRuleProperties { + /** Direction of Access Rule */ + direction?: NspAccessRuleDirection; + /** Address prefixes in the CIDR format for inbound rules */ + addressPrefixes?: string[]; + /** Subscriptions for inbound rules */ + subscriptions?: NspAccessRulePropertiesSubscriptionsItem[]; + /** + * NetworkSecurityPerimeters for inbound rules + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly networkSecurityPerimeters?: NetworkSecurityPerimeter[]; + /** + * FQDN for outbound rules + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedDomainNames?: string[]; + /** + * Email addresses for outbound rules + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly emailAddresses?: string[]; + /** + * Phone numbers for outbound rules + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly phoneNumbers?: string[]; +} + +/** Subscription for inbound rule */ +export interface NspAccessRulePropertiesSubscriptionsItem { + /** Fully qualified identifier of subscription */ + id?: string; +} + +/** Information about Network Security Perimeter */ +export interface NetworkSecurityPerimeter { + /** + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** Guid of the Network Security Perimeter */ + perimeterGuid?: string; + /** Location of the Network Security Perimeter */ + location?: string; +} + +/** Information about resource association */ +export interface ResourceAssociation { + /** Name of the resource association */ + name?: string; + /** Access Mode of the resource association */ + accessMode?: AccessMode; +} + +/** Information about profile */ +export interface Profile { + /** Name of the profile */ + name?: string; + /** Current access rules version */ + accessRulesVersion?: number; + /** List of Access Rules */ + accessRules?: NspAccessRule[]; + /** Current diagnostic settings version */ + diagnosticSettingsVersion?: number; + /** + * List of log categories + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly enabledLogCategories?: string[]; +} + /** Azure resource */ export interface Resource { /** @@ -191,7 +346,7 @@ export interface Resource { sku?: Sku; /** Required. Gets or sets the Kind of the resource. */ kind?: Kind; - /** Entity Tag */ + /** Entity Tag. */ etag?: string; /** * Entity zones @@ -554,6 +709,10 @@ export interface QnAMakerEndpointKeysResponse { /** Properties for a Connection Setting Item */ export interface ConnectionSettingProperties { + /** Id of the Connection Setting. */ + id?: string; + /** Name of the Connection Setting. */ + name?: string; /** Client Id associated with the Connection Setting. */ clientId?: string; /** @@ -650,6 +809,69 @@ export interface PrivateLinkResourceListResult { value?: PrivateLinkResource[]; } +/** Result of the List NetworkSecurityPerimeterConfiguration operation. */ +export interface NetworkSecurityPerimeterConfigurationList { + /** + * A collection of Network Security Perimeter configurations + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: NetworkSecurityPerimeterConfiguration[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + /** The parameters to provide for the Alexa channel. */ export interface AlexaChannelProperties { /** The Alexa skill Id */ @@ -1171,6 +1393,11 @@ export interface ListChannelWithKeysResponse extends BotChannel { changedTime?: string; } +/** Defines headers for NetworkSecurityPerimeterConfigurations_reconcile operation. */ +export interface NetworkSecurityPerimeterConfigurationsReconcileHeaders { + location?: string; +} + /** Known values of {@link MsaAppType} that the service accepts. */ export enum KnownMsaAppType { /** UserAssignedMSI */ @@ -1178,7 +1405,7 @@ export enum KnownMsaAppType { /** SingleTenant */ SingleTenant = "SingleTenant", /** MultiTenant */ - MultiTenant = "MultiTenant" + MultiTenant = "MultiTenant", } /** @@ -1197,7 +1424,9 @@ export enum KnownPublicNetworkAccess { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", + /** SecuredByPerimeter */ + SecuredByPerimeter = "SecuredByPerimeter", } /** @@ -1206,7 +1435,8 @@ export enum KnownPublicNetworkAccess { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ - * **Disabled** + * **Disabled** \ + * **SecuredByPerimeter** */ export type PublicNetworkAccess = string; @@ -1217,7 +1447,7 @@ export enum KnownPrivateEndpointServiceConnectionStatus { /** Approved */ Approved = "Approved", /** Rejected */ - Rejected = "Rejected" + Rejected = "Rejected", } /** @@ -1240,7 +1470,7 @@ export enum KnownPrivateEndpointConnectionProvisioningState { /** Deleting */ Deleting = "Deleting", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -1255,12 +1485,99 @@ export enum KnownPrivateEndpointConnectionProvisioningState { */ export type PrivateEndpointConnectionProvisioningState = string; +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Accepted */ + Accepted = "Accepted", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Accepted** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** + */ +export type ProvisioningState = string; + +/** Known values of {@link Severity} that the service accepts. */ +export enum KnownSeverity { + /** Warning */ + Warning = "Warning", + /** Error */ + Error = "Error", +} + +/** + * Defines values for Severity. \ + * {@link KnownSeverity} can be used interchangeably with Severity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Warning** \ + * **Error** + */ +export type Severity = string; + +/** Known values of {@link NspAccessRuleDirection} that the service accepts. */ +export enum KnownNspAccessRuleDirection { + /** Inbound */ + Inbound = "Inbound", + /** Outbound */ + Outbound = "Outbound", +} + +/** + * Defines values for NspAccessRuleDirection. \ + * {@link KnownNspAccessRuleDirection} can be used interchangeably with NspAccessRuleDirection, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inbound** \ + * **Outbound** + */ +export type NspAccessRuleDirection = string; + +/** Known values of {@link AccessMode} that the service accepts. */ +export enum KnownAccessMode { + /** Enforced */ + Enforced = "Enforced", + /** Learning */ + Learning = "Learning", + /** Audit */ + Audit = "Audit", +} + +/** + * Defines values for AccessMode. \ + * {@link KnownAccessMode} can be used interchangeably with AccessMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enforced** \ + * **Learning** \ + * **Audit** + */ +export type AccessMode = string; + /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { /** F0 */ F0 = "F0", /** S1 */ - S1 = "S1" + S1 = "S1", } /** @@ -1278,7 +1595,7 @@ export enum KnownSkuTier { /** Free */ Free = "Free", /** Standard */ - Standard = "Standard" + Standard = "Standard", } /** @@ -1302,7 +1619,7 @@ export enum KnownKind { /** Function */ Function = "function", /** Azurebot */ - Azurebot = "azurebot" + Azurebot = "azurebot", } /** @@ -1329,7 +1646,7 @@ export enum KnownOperationResultStatus { /** Requested */ Requested = "Requested", /** Running */ - Running = "Running" + Running = "Running", } /** @@ -1388,7 +1705,7 @@ export interface BotsUpdateOptionalParams extends coreClient.OperationOptions { sku?: Sku; /** Required. Gets or sets the Kind of the resource. */ kind?: Kind; - /** Entity Tag */ + /** Entity Tag. */ etag?: string; /** The set of properties specific to bot resource */ properties?: BotProperties; @@ -1424,7 +1741,8 @@ export interface BotsGetCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getCheckNameAvailability operation. */ -export type BotsGetCheckNameAvailabilityResponse = CheckNameAvailabilityResponseBody; +export type BotsGetCheckNameAvailabilityResponse = + CheckNameAvailabilityResponseBody; /** Optional parameters. */ export interface BotsListByResourceGroupNextOptionalParams @@ -1458,7 +1776,7 @@ export interface ChannelsUpdateOptionalParams sku?: Sku; /** Required. Gets or sets the Kind of the resource. */ kind?: Kind; - /** Entity Tag */ + /** Entity Tag. */ etag?: string; /** The set of properties specific to bot channel resource */ properties?: ChannelUnion; @@ -1532,7 +1850,8 @@ export interface BotConnectionListServiceProvidersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listServiceProviders operation. */ -export type BotConnectionListServiceProvidersResponse = ServiceProviderResponseList; +export type BotConnectionListServiceProvidersResponse = + ServiceProviderResponseList; /** Optional parameters. */ export interface BotConnectionListWithSecretsOptionalParams @@ -1571,14 +1890,16 @@ export interface BotConnectionListByBotServiceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBotService operation. */ -export type BotConnectionListByBotServiceResponse = ConnectionSettingResponseList; +export type BotConnectionListByBotServiceResponse = + ConnectionSettingResponseList; /** Optional parameters. */ export interface BotConnectionListByBotServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBotServiceNext operation. */ -export type BotConnectionListByBotServiceNextResponse = ConnectionSettingResponseList; +export type BotConnectionListByBotServiceNextResponse = + ConnectionSettingResponseList; /** Optional parameters. */ export interface QnAMakerEndpointKeysGetOptionalParams @@ -1611,7 +1932,8 @@ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsGetOptionalParams @@ -1625,7 +1947,8 @@ export interface PrivateEndpointConnectionsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type PrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsCreateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsDeleteOptionalParams @@ -1636,7 +1959,45 @@ export interface PrivateLinkResourcesListByBotResourceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBotResource operation. */ -export type PrivateLinkResourcesListByBotResourceResponse = PrivateLinkResourceListResult; +export type PrivateLinkResourcesListByBotResourceResponse = + PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkSecurityPerimeterConfigurationsGetResponse = + NetworkSecurityPerimeterConfiguration; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type NetworkSecurityPerimeterConfigurationsListResponse = + NetworkSecurityPerimeterConfigurationList; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the reconcile operation. */ +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = + NetworkSecurityPerimeterConfiguration; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type NetworkSecurityPerimeterConfigurationsListNextResponse = + NetworkSecurityPerimeterConfigurationList; /** Optional parameters. */ export interface AzureBotServiceOptionalParams diff --git a/sdk/botservice/arm-botservice/src/models/mappers.ts b/sdk/botservice/arm-botservice/src/models/mappers.ts index e3db1d8c234b..c0502108b5da 100644 --- a/sdk/botservice/arm-botservice/src/models/mappers.ts +++ b/sdk/botservice/arm-botservice/src/models/mappers.ts @@ -17,81 +17,81 @@ export const BotProperties: coreClient.CompositeMapper = { serializedName: "displayName", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, iconUrl: { defaultValue: "", serializedName: "iconUrl", type: { - name: "String" - } + name: "String", + }, }, endpoint: { serializedName: "endpoint", required: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, endpointVersion: { serializedName: "endpointVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, allSettings: { serializedName: "allSettings", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, parameters: { serializedName: "parameters", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, manifestUrl: { serializedName: "manifestUrl", type: { - name: "String" - } + name: "String", + }, }, msaAppType: { serializedName: "msaAppType", type: { - name: "String" - } + name: "String", + }, }, msaAppId: { serializedName: "msaAppId", required: true, type: { - name: "String" - } + name: "String", + }, }, msaAppTenantId: { serializedName: "msaAppTenantId", type: { - name: "String" - } + name: "String", + }, }, msaAppMSIResourceId: { serializedName: "msaAppMSIResourceId", type: { - name: "String" - } + name: "String", + }, }, configuredChannels: { serializedName: "configuredChannels", @@ -100,10 +100,10 @@ export const BotProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, enabledChannels: { serializedName: "enabledChannels", @@ -112,28 +112,28 @@ export const BotProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, developerAppInsightKey: { serializedName: "developerAppInsightKey", type: { - name: "String" - } + name: "String", + }, }, developerAppInsightsApiKey: { serializedName: "developerAppInsightsApiKey", type: { - name: "String" - } + name: "String", + }, }, developerAppInsightsApplicationId: { serializedName: "developerAppInsightsApplicationId", type: { - name: "String" - } + name: "String", + }, }, luisAppIds: { serializedName: "luisAppIds", @@ -141,89 +141,89 @@ export const BotProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, luisKey: { serializedName: "luisKey", type: { - name: "String" - } + name: "String", + }, }, isCmekEnabled: { defaultValue: false, serializedName: "isCmekEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, cmekKeyVaultUrl: { serializedName: "cmekKeyVaultUrl", type: { - name: "String" - } + name: "String", + }, }, cmekEncryptionStatus: { serializedName: "cmekEncryptionStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", type: { - name: "String" - } + name: "String", + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, isStreamingSupported: { defaultValue: false, serializedName: "isStreamingSupported", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isDeveloperAppInsightsApiKeySet: { serializedName: "isDeveloperAppInsightsApiKeySet", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, migrationToken: { serializedName: "migrationToken", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, disableLocalAuth: { serializedName: "disableLocalAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, schemaTransformationVersion: { serializedName: "schemaTransformationVersion", nullable: true, type: { - name: "String" - } + name: "String", + }, }, storageResourceId: { serializedName: "storageResourceId", type: { - name: "String" - } + name: "String", + }, }, privateEndpointConnections: { serializedName: "privateEndpointConnections", @@ -233,38 +233,51 @@ export const BotProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, + }, + networkSecurityPerimeterConfigurations: { + serializedName: "networkSecurityPerimeterConfigurations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + }, + }, + }, }, openWithHint: { serializedName: "openWithHint", type: { - name: "String" - } + name: "String", + }, }, appPasswordHint: { serializedName: "appPasswordHint", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, publishingCredentials: { serializedName: "publishingCredentials", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -276,11 +289,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -291,23 +304,23 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceBase: coreClient.CompositeMapper = { @@ -319,25 +332,408 @@ export const PrivateLinkResourceBase: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationProperties", + }, + }, + }, + }, + }; + +export const NetworkSecurityPerimeterConfigurationProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationProperties", + modelProperties: { + provisioningState: { + defaultValue: "Succeeded", + serializedName: "provisioningState", + type: { + name: "String", + }, + }, + provisioningIssues: { + serializedName: "provisioningIssues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProvisioningIssue", + }, + }, + }, + }, + networkSecurityPerimeter: { + serializedName: "networkSecurityPerimeter", + type: { + name: "Composite", + className: "NetworkSecurityPerimeter", + }, + }, + resourceAssociation: { + serializedName: "resourceAssociation", + type: { + name: "Composite", + className: "ResourceAssociation", + }, + }, + profile: { + serializedName: "profile", + type: { + name: "Composite", + className: "Profile", + }, + }, + }, + }, + }; + +export const ProvisioningIssue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProvisioningIssue", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ProvisioningIssueProperties", + }, + }, + }, + }, +}; + +export const ProvisioningIssueProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProvisioningIssueProperties", + modelProperties: { + issueType: { + serializedName: "issueType", + type: { + name: "String", + }, + }, + severity: { + serializedName: "severity", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + suggestedResourceIds: { + serializedName: "suggestedResourceIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + suggestedAccessRules: { + serializedName: "suggestedAccessRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NspAccessRule", + }, + }, + }, + }, + }, + }, +}; + +export const NspAccessRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NspAccessRule", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NspAccessRuleProperties", + }, + }, + }, + }, +}; + +export const NspAccessRuleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NspAccessRuleProperties", + modelProperties: { + direction: { + serializedName: "direction", + type: { + name: "String", + }, + }, + addressPrefixes: { + serializedName: "addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + subscriptions: { + serializedName: "subscriptions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NspAccessRulePropertiesSubscriptionsItem", + }, + }, + }, + }, + networkSecurityPerimeters: { + serializedName: "networkSecurityPerimeters", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeter", + }, + }, + }, + }, + fullyQualifiedDomainNames: { + serializedName: "fullyQualifiedDomainNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + emailAddresses: { + serializedName: "emailAddresses", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + phoneNumbers: { + serializedName: "phoneNumbers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const NspAccessRulePropertiesSubscriptionsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NspAccessRulePropertiesSubscriptionsItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const NetworkSecurityPerimeter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkSecurityPerimeter", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + perimeterGuid: { + serializedName: "perimeterGuid", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ResourceAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAssociation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessMode: { + serializedName: "accessMode", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Profile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Profile", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessRulesVersion: { + serializedName: "accessRulesVersion", + type: { + name: "Number", + }, + }, + accessRules: { + serializedName: "accessRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NspAccessRule", + }, + }, + }, + }, + diagnosticSettingsVersion: { + serializedName: "diagnosticSettingsVersion", + type: { + name: "Number", + }, + }, + enabledLogCategories: { + serializedName: "enabledLogCategories", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -349,55 +745,55 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, kind: { serializedName: "kind", nullable: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -406,13 +802,13 @@ export const Resource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -424,18 +820,18 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorModel: coreClient.CompositeMapper = { @@ -447,11 +843,11 @@ export const ErrorModel: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorBody" - } - } - } - } + className: "ErrorBody", + }, + }, + }, + }, }; export const ErrorBody: coreClient.CompositeMapper = { @@ -463,18 +859,18 @@ export const ErrorBody: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BotResponseList: coreClient.CompositeMapper = { @@ -485,8 +881,8 @@ export const BotResponseList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -496,13 +892,13 @@ export const BotResponseList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Bot" - } - } - } - } - } - } + className: "Bot", + }, + }, + }, + }, + }, + }, }; export const Channel: coreClient.CompositeMapper = { @@ -512,39 +908,39 @@ export const Channel: coreClient.CompositeMapper = { uberParent: "Channel", polymorphicDiscriminator: { serializedName: "channelName", - clientName: "channelName" + clientName: "channelName", }, modelProperties: { channelName: { serializedName: "channelName", required: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", nullable: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { defaultValue: "global", serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ChannelSettings: coreClient.CompositeMapper = { @@ -556,15 +952,15 @@ export const ChannelSettings: coreClient.CompositeMapper = { defaultValue: "", serializedName: "extensionKey1", type: { - name: "String" - } + name: "String", + }, }, extensionKey2: { defaultValue: "", serializedName: "extensionKey2", type: { - name: "String" - } + name: "String", + }, }, sites: { serializedName: "sites", @@ -573,55 +969,55 @@ export const ChannelSettings: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Site" - } - } - } + className: "Site", + }, + }, + }, }, channelId: { serializedName: "channelId", type: { - name: "String" - } + name: "String", + }, }, channelDisplayName: { serializedName: "channelDisplayName", type: { - name: "String" - } + name: "String", + }, }, botId: { serializedName: "botId", type: { - name: "String" - } + name: "String", + }, }, botIconUrl: { serializedName: "botIconUrl", type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, disableLocalAuth: { serializedName: "disableLocalAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, requireTermsAgreement: { serializedName: "requireTermsAgreement", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Site: coreClient.CompositeMapper = { @@ -632,105 +1028,105 @@ export const Site: coreClient.CompositeMapper = { tenantId: { serializedName: "tenantId", type: { - name: "String" - } + name: "String", + }, }, siteId: { serializedName: "siteId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, siteName: { serializedName: "siteName", required: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, key2: { serializedName: "key2", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isTokenEnabled: { serializedName: "isTokenEnabled", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isEndpointParametersEnabled: { serializedName: "isEndpointParametersEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isDetailedLoggingEnabled: { serializedName: "isDetailedLoggingEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isBlockUserUploadEnabled: { serializedName: "isBlockUserUploadEnabled", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isNoStorageEnabled: { serializedName: "isNoStorageEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, eTag: { serializedName: "eTag", type: { - name: "String" - } + name: "String", + }, }, appId: { serializedName: "appId", type: { - name: "String" - } + name: "String", + }, }, isV1Enabled: { serializedName: "isV1Enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isV3Enabled: { serializedName: "isV3Enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isSecureSiteEnabled: { serializedName: "isSecureSiteEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, trustedOrigins: { serializedName: "trustedOrigins", @@ -738,27 +1134,27 @@ export const Site: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, isWebChatSpeechEnabled: { defaultValue: false, serializedName: "isWebChatSpeechEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isWebchatPreviewEnabled: { defaultValue: false, serializedName: "isWebchatPreviewEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ChannelResponseList: coreClient.CompositeMapper = { @@ -769,8 +1165,8 @@ export const ChannelResponseList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -780,13 +1176,13 @@ export const ChannelResponseList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BotChannel" - } - } - } - } - } - } + className: "BotChannel", + }, + }, + }, + }, + }, + }, }; export const SiteInfo: coreClient.CompositeMapper = { @@ -798,19 +1194,19 @@ export const SiteInfo: coreClient.CompositeMapper = { serializedName: "siteName", required: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", required: true, type: { name: "Enum", - allowedValues: ["key1", "key2"] - } - } - } - } + allowedValues: ["key1", "key2"], + }, + }, + }, + }, }; export const CreateEmailSignInUrlResponse: coreClient.CompositeMapper = { @@ -822,40 +1218,41 @@ export const CreateEmailSignInUrlResponse: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CreateEmailSignInUrlResponseProperties" - } - } - } - } -}; - -export const CreateEmailSignInUrlResponseProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CreateEmailSignInUrlResponseProperties", - modelProperties: { - url: { - serializedName: "url", - type: { - name: "String" - } - } - } - } -}; + className: "CreateEmailSignInUrlResponseProperties", + }, + }, + }, + }, +}; + +export const CreateEmailSignInUrlResponseProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CreateEmailSignInUrlResponseProperties", + modelProperties: { + url: { + serializedName: "url", + type: { + name: "String", + }, + }, + }, + }, + }; export const CheckNameAvailabilityRequestBody: coreClient.CompositeMapper = { type: { @@ -865,17 +1262,17 @@ export const CheckNameAvailabilityRequestBody: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResponseBody: coreClient.CompositeMapper = { @@ -886,23 +1283,23 @@ export const CheckNameAvailabilityResponseBody: coreClient.CompositeMapper = { valid: { serializedName: "valid", type: { - name: "Boolean" - } + name: "Boolean", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, absCode: { serializedName: "absCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationEntityListResult: coreClient.CompositeMapper = { @@ -913,8 +1310,8 @@ export const OperationEntityListResult: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -923,13 +1320,13 @@ export const OperationEntityListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationEntity" - } - } - } - } - } - } + className: "OperationEntity", + }, + }, + }, + }, + }, + }, }; export const OperationEntity: coreClient.CompositeMapper = { @@ -940,31 +1337,31 @@ export const OperationEntity: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplayInfo" - } + className: "OperationDisplayInfo", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const OperationDisplayInfo: coreClient.CompositeMapper = { @@ -975,29 +1372,29 @@ export const OperationDisplayInfo: coreClient.CompositeMapper = { description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceProviderResponseList: coreClient.CompositeMapper = { @@ -1008,8 +1405,8 @@ export const ServiceProviderResponseList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -1019,13 +1416,13 @@ export const ServiceProviderResponseList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceProvider" - } - } - } - } - } - } + className: "ServiceProvider", + }, + }, + }, + }, + }, + }, }; export const ServiceProvider: coreClient.CompositeMapper = { @@ -1037,11 +1434,11 @@ export const ServiceProvider: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ServiceProviderProperties" - } - } - } - } + className: "ServiceProviderProperties", + }, + }, + }, + }, }; export const ServiceProviderProperties: coreClient.CompositeMapper = { @@ -1053,36 +1450,36 @@ export const ServiceProviderProperties: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serviceProviderName: { serializedName: "serviceProviderName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, devPortalUrl: { serializedName: "devPortalUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, iconUrl: { defaultValue: "", serializedName: "iconUrl", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", @@ -1091,13 +1488,13 @@ export const ServiceProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceProviderParameter" - } - } - } - } - } - } + className: "ServiceProviderParameter", + }, + }, + }, + }, + }, + }, }; export const ServiceProviderParameter: coreClient.CompositeMapper = { @@ -1109,53 +1506,53 @@ export const ServiceProviderParameter: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, helpUrl: { serializedName: "helpUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, default: { serializedName: "default", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "ServiceProviderParameterMetadata" - } - } - } - } + className: "ServiceProviderParameterMetadata", + }, + }, + }, + }, }; export const ServiceProviderParameterMetadata: coreClient.CompositeMapper = { @@ -1167,27 +1564,28 @@ export const ServiceProviderParameterMetadata: coreClient.CompositeMapper = { serializedName: "constraints", type: { name: "Composite", - className: "ServiceProviderParameterMetadataConstraints" - } - } - } - } -}; - -export const ServiceProviderParameterMetadataConstraints: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceProviderParameterMetadataConstraints", - modelProperties: { - required: { - serializedName: "required", - type: { - name: "Boolean" - } - } - } - } -}; + className: "ServiceProviderParameterMetadataConstraints", + }, + }, + }, + }, +}; + +export const ServiceProviderParameterMetadataConstraints: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ServiceProviderParameterMetadataConstraints", + modelProperties: { + required: { + serializedName: "required", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const QnAMakerEndpointKeysRequestBody: coreClient.CompositeMapper = { type: { @@ -1197,17 +1595,17 @@ export const QnAMakerEndpointKeysRequestBody: coreClient.CompositeMapper = { hostname: { serializedName: "hostname", type: { - name: "String" - } + name: "String", + }, }, authkey: { serializedName: "authkey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QnAMakerEndpointKeysResponse: coreClient.CompositeMapper = { @@ -1218,29 +1616,29 @@ export const QnAMakerEndpointKeysResponse: coreClient.CompositeMapper = { primaryEndpointKey: { serializedName: "primaryEndpointKey", type: { - name: "String" - } + name: "String", + }, }, secondaryEndpointKey: { serializedName: "secondaryEndpointKey", type: { - name: "String" - } + name: "String", + }, }, installedVersion: { serializedName: "installedVersion", type: { - name: "String" - } + name: "String", + }, }, lastStableVersion: { serializedName: "lastStableVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConnectionSettingProperties: coreClient.CompositeMapper = { @@ -1248,43 +1646,55 @@ export const ConnectionSettingProperties: coreClient.CompositeMapper = { name: "Composite", className: "ConnectionSettingProperties", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, clientId: { serializedName: "clientId", type: { - name: "String" - } + name: "String", + }, }, settingId: { serializedName: "settingId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientSecret: { serializedName: "clientSecret", type: { - name: "String" - } + name: "String", + }, }, scopes: { defaultValue: "", serializedName: "scopes", type: { - name: "String" - } + name: "String", + }, }, serviceProviderId: { serializedName: "serviceProviderId", type: { - name: "String" - } + name: "String", + }, }, serviceProviderDisplayName: { serializedName: "serviceProviderDisplayName", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", @@ -1293,19 +1703,19 @@ export const ConnectionSettingProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectionSettingParameter" - } - } - } + className: "ConnectionSettingParameter", + }, + }, + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConnectionSettingParameter: coreClient.CompositeMapper = { @@ -1316,18 +1726,18 @@ export const ConnectionSettingParameter: coreClient.CompositeMapper = { key: { serializedName: "key", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConnectionSettingResponseList: coreClient.CompositeMapper = { @@ -1338,8 +1748,8 @@ export const ConnectionSettingResponseList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -1349,13 +1759,13 @@ export const ConnectionSettingResponseList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectionSetting" - } - } - } - } - } - } + className: "ConnectionSetting", + }, + }, + }, + }, + }, + }, }; export const HostSettingsResponse: coreClient.CompositeMapper = { @@ -1366,53 +1776,53 @@ export const HostSettingsResponse: coreClient.CompositeMapper = { oAuthUrl: { serializedName: "OAuthUrl", type: { - name: "String" - } + name: "String", + }, }, toBotFromChannelOpenIdMetadataUrl: { serializedName: "ToBotFromChannelOpenIdMetadataUrl", type: { - name: "String" - } + name: "String", + }, }, toBotFromChannelTokenIssuer: { serializedName: "ToBotFromChannelTokenIssuer", type: { - name: "String" - } + name: "String", + }, }, toBotFromEmulatorOpenIdMetadataUrl: { serializedName: "ToBotFromEmulatorOpenIdMetadataUrl", type: { - name: "String" - } + name: "String", + }, }, toChannelFromBotLoginUrl: { serializedName: "ToChannelFromBotLoginUrl", type: { - name: "String" - } + name: "String", + }, }, toChannelFromBotOAuthScope: { serializedName: "ToChannelFromBotOAuthScope", type: { - name: "String" - } + name: "String", + }, }, validateAuthority: { serializedName: "ValidateAuthority", type: { - name: "Boolean" - } + name: "Boolean", + }, }, botOpenIdMetadata: { serializedName: "BotOpenIdMetadata", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationResultsDescription: coreClient.CompositeMapper = { @@ -1424,32 +1834,32 @@ export const OperationResultsDescription: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -1464,13 +1874,13 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -1485,13 +1895,139 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, +}; + +export const NetworkSecurityPerimeterConfigurationList: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const AlexaChannelProperties: coreClient.CompositeMapper = { @@ -1503,32 +2039,32 @@ export const AlexaChannelProperties: coreClient.CompositeMapper = { serializedName: "alexaSkillId", required: true, type: { - name: "String" - } + name: "String", + }, }, urlFragment: { serializedName: "urlFragment", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serviceEndpointUri: { serializedName: "serviceEndpointUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const FacebookChannelProperties: coreClient.CompositeMapper = { @@ -1540,8 +2076,8 @@ export const FacebookChannelProperties: coreClient.CompositeMapper = { serializedName: "verifyToken", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, pages: { serializedName: "pages", @@ -1550,40 +2086,40 @@ export const FacebookChannelProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FacebookPage" - } - } - } + className: "FacebookPage", + }, + }, + }, }, appId: { serializedName: "appId", required: true, type: { - name: "String" - } + name: "String", + }, }, appSecret: { serializedName: "appSecret", type: { - name: "String" - } + name: "String", + }, }, callbackUrl: { serializedName: "callbackUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const FacebookPage: coreClient.CompositeMapper = { @@ -1595,17 +2131,17 @@ export const FacebookPage: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, accessToken: { serializedName: "accessToken", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EmailChannelProperties: coreClient.CompositeMapper = { @@ -1617,37 +2153,37 @@ export const EmailChannelProperties: coreClient.CompositeMapper = { serializedName: "emailAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, authMethod: { serializedName: "authMethod", type: { name: "Enum", - allowedValues: [0, 1] - } + allowedValues: [0, 1], + }, }, password: { serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, magicCode: { serializedName: "magicCode", type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const MsTeamsChannelProperties: coreClient.CompositeMapper = { @@ -1659,44 +2195,44 @@ export const MsTeamsChannelProperties: coreClient.CompositeMapper = { defaultValue: false, serializedName: "enableCalling", type: { - name: "Boolean" - } + name: "Boolean", + }, }, callingWebhook: { serializedName: "callingWebhook", type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, incomingCallRoute: { serializedName: "incomingCallRoute", type: { - name: "String" - } + name: "String", + }, }, deploymentEnvironment: { - defaultValue: "FallbackDeploymentEnvironment", + defaultValue: "CommercialDeployment", serializedName: "deploymentEnvironment", type: { - name: "String" - } + name: "String", + }, }, acceptedTerms: { serializedName: "acceptedTerms", nullable: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SkypeChannelProperties: coreClient.CompositeMapper = { @@ -1707,67 +2243,67 @@ export const SkypeChannelProperties: coreClient.CompositeMapper = { enableMessaging: { serializedName: "enableMessaging", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableMediaCards: { serializedName: "enableMediaCards", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableVideo: { serializedName: "enableVideo", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableCalling: { defaultValue: false, serializedName: "enableCalling", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableScreenSharing: { serializedName: "enableScreenSharing", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableGroups: { serializedName: "enableGroups", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupsMode: { serializedName: "groupsMode", type: { - name: "String" - } + name: "String", + }, }, callingWebHook: { serializedName: "callingWebHook", type: { - name: "String" - } + name: "String", + }, }, incomingCallRoute: { serializedName: "incomingCallRoute", type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const KikChannelProperties: coreClient.CompositeMapper = { @@ -1779,30 +2315,30 @@ export const KikChannelProperties: coreClient.CompositeMapper = { serializedName: "userName", required: true, type: { - name: "String" - } + name: "String", + }, }, apiKey: { serializedName: "apiKey", type: { - name: "String" - } + name: "String", + }, }, isValidated: { serializedName: "isValidated", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const WebChatChannelProperties: coreClient.CompositeMapper = { @@ -1814,8 +2350,8 @@ export const WebChatChannelProperties: coreClient.CompositeMapper = { serializedName: "webChatEmbedCode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sites: { serializedName: "sites", @@ -1824,13 +2360,13 @@ export const WebChatChannelProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WebChatSite" - } - } - } - } - } - } + className: "WebChatSite", + }, + }, + }, + }, + }, + }, }; export const DirectLineChannelProperties: coreClient.CompositeMapper = { @@ -1845,33 +2381,33 @@ export const DirectLineChannelProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DirectLineSite" - } - } - } + className: "DirectLineSite", + }, + }, + }, }, extensionKey1: { defaultValue: "", serializedName: "extensionKey1", type: { - name: "String" - } + name: "String", + }, }, extensionKey2: { defaultValue: "", serializedName: "extensionKey2", type: { - name: "String" - } + name: "String", + }, }, directLineEmbedCode: { serializedName: "DirectLineEmbedCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TelegramChannelProperties: coreClient.CompositeMapper = { @@ -1882,24 +2418,24 @@ export const TelegramChannelProperties: coreClient.CompositeMapper = { accessToken: { serializedName: "accessToken", type: { - name: "String" - } + name: "String", + }, }, isValidated: { serializedName: "isValidated", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SmsChannelProperties: coreClient.CompositeMapper = { @@ -1911,37 +2447,37 @@ export const SmsChannelProperties: coreClient.CompositeMapper = { serializedName: "phone", required: true, type: { - name: "String" - } + name: "String", + }, }, accountSID: { serializedName: "accountSID", required: true, type: { - name: "String" - } + name: "String", + }, }, authToken: { serializedName: "authToken", type: { - name: "String" - } + name: "String", + }, }, isValidated: { serializedName: "isValidated", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SlackChannelProperties: coreClient.CompositeMapper = { @@ -1952,75 +2488,75 @@ export const SlackChannelProperties: coreClient.CompositeMapper = { clientId: { serializedName: "clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { serializedName: "clientSecret", type: { - name: "String" - } + name: "String", + }, }, verificationToken: { serializedName: "verificationToken", type: { - name: "String" - } + name: "String", + }, }, scopes: { serializedName: "scopes", type: { - name: "String" - } + name: "String", + }, }, landingPageUrl: { serializedName: "landingPageUrl", type: { - name: "String" - } + name: "String", + }, }, redirectAction: { serializedName: "redirectAction", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, lastSubmissionId: { serializedName: "lastSubmissionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, registerBeforeOAuthFlow: { serializedName: "registerBeforeOAuthFlow", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isValidated: { serializedName: "IsValidated", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, signingSecret: { serializedName: "signingSecret", type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LineChannelProperties: coreClient.CompositeMapper = { @@ -2036,27 +2572,27 @@ export const LineChannelProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LineRegistration" - } - } - } + className: "LineRegistration", + }, + }, + }, }, callbackUrl: { serializedName: "callbackUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isValidated: { serializedName: "isValidated", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LineRegistration: coreClient.CompositeMapper = { @@ -2068,23 +2604,23 @@ export const LineRegistration: coreClient.CompositeMapper = { serializedName: "generatedId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, channelSecret: { serializedName: "channelSecret", type: { - name: "String" - } + name: "String", + }, }, channelAccessToken: { serializedName: "channelAccessToken", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DirectLineSpeechChannelProperties: coreClient.CompositeMapper = { @@ -2095,49 +2631,49 @@ export const DirectLineSpeechChannelProperties: coreClient.CompositeMapper = { cognitiveServiceResourceId: { serializedName: "cognitiveServiceResourceId", type: { - name: "String" - } + name: "String", + }, }, cognitiveServiceRegion: { serializedName: "cognitiveServiceRegion", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cognitiveServiceSubscriptionKey: { serializedName: "cognitiveServiceSubscriptionKey", nullable: true, type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, customVoiceDeploymentId: { serializedName: "customVoiceDeploymentId", type: { - name: "String" - } + name: "String", + }, }, customSpeechModelId: { serializedName: "customSpeechModelId", type: { - name: "String" - } + name: "String", + }, }, isDefaultBotForCogSvcAccount: { serializedName: "isDefaultBotForCogSvcAccount", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const TelephonyChannelProperties: coreClient.CompositeMapper = { @@ -2152,10 +2688,10 @@ export const TelephonyChannelProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TelephonyPhoneNumbers" - } - } - } + className: "TelephonyPhoneNumbers", + }, + }, + }, }, apiConfigurations: { serializedName: "apiConfigurations", @@ -2164,47 +2700,47 @@ export const TelephonyChannelProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TelephonyChannelResourceApiConfiguration" - } - } - } + className: "TelephonyChannelResourceApiConfiguration", + }, + }, + }, }, cognitiveServiceSubscriptionKey: { serializedName: "cognitiveServiceSubscriptionKey", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cognitiveServiceRegion: { serializedName: "cognitiveServiceRegion", nullable: true, type: { - name: "String" - } + name: "String", + }, }, defaultLocale: { serializedName: "defaultLocale", nullable: true, type: { - name: "String" - } + name: "String", + }, }, premiumSKU: { serializedName: "premiumSKU", nullable: true, type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const TelephonyPhoneNumbers: coreClient.CompositeMapper = { @@ -2215,124 +2751,125 @@ export const TelephonyPhoneNumbers: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, phoneNumber: { serializedName: "phoneNumber", type: { - name: "String" - } + name: "String", + }, }, acsEndpoint: { serializedName: "acsEndpoint", nullable: true, type: { - name: "String" - } + name: "String", + }, }, acsSecret: { serializedName: "acsSecret", nullable: true, type: { - name: "String" - } + name: "String", + }, }, acsResourceId: { serializedName: "acsResourceId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cognitiveServiceSubscriptionKey: { serializedName: "cognitiveServiceSubscriptionKey", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cognitiveServiceRegion: { serializedName: "cognitiveServiceRegion", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cognitiveServiceResourceId: { serializedName: "cognitiveServiceResourceId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, defaultLocale: { serializedName: "defaultLocale", nullable: true, type: { - name: "String" - } + name: "String", + }, }, offerType: { serializedName: "offerType", nullable: true, type: { - name: "String" - } - } - } - } -}; - -export const TelephonyChannelResourceApiConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TelephonyChannelResourceApiConfiguration", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - providerName: { - serializedName: "providerName", - nullable: true, - type: { - name: "String" - } - }, - cognitiveServiceSubscriptionKey: { - serializedName: "cognitiveServiceSubscriptionKey", - nullable: true, - type: { - name: "String" - } - }, - cognitiveServiceRegion: { - serializedName: "cognitiveServiceRegion", - nullable: true, - type: { - name: "String" - } + name: "String", + }, }, - cognitiveServiceResourceId: { - serializedName: "cognitiveServiceResourceId", - nullable: true, - type: { - name: "String" - } + }, + }, +}; + +export const TelephonyChannelResourceApiConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "TelephonyChannelResourceApiConfiguration", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + providerName: { + serializedName: "providerName", + nullable: true, + type: { + name: "String", + }, + }, + cognitiveServiceSubscriptionKey: { + serializedName: "cognitiveServiceSubscriptionKey", + nullable: true, + type: { + name: "String", + }, + }, + cognitiveServiceRegion: { + serializedName: "cognitiveServiceRegion", + nullable: true, + type: { + name: "String", + }, + }, + cognitiveServiceResourceId: { + serializedName: "cognitiveServiceResourceId", + nullable: true, + type: { + name: "String", + }, + }, + defaultLocale: { + serializedName: "defaultLocale", + nullable: true, + type: { + name: "String", + }, + }, }, - defaultLocale: { - serializedName: "defaultLocale", - nullable: true, - type: { - name: "String" - } - } - } - } -}; + }, + }; export const ConnectionItemName: coreClient.CompositeMapper = { type: { @@ -2343,11 +2880,11 @@ export const ConnectionItemName: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -2360,22 +2897,22 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupIds: { serializedName: "properties.groupIds", @@ -2383,13 +2920,13 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -2402,8 +2939,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -2412,10 +2949,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -2423,13 +2960,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Bot: coreClient.CompositeMapper = { @@ -2442,11 +2979,11 @@ export const Bot: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BotProperties" - } - } - } - } + className: "BotProperties", + }, + }, + }, + }, }; export const BotChannel: coreClient.CompositeMapper = { @@ -2459,11 +2996,11 @@ export const BotChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "Channel" - } - } - } - } + className: "Channel", + }, + }, + }, + }, }; export const ConnectionSetting: coreClient.CompositeMapper = { @@ -2476,11 +3013,11 @@ export const ConnectionSetting: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ConnectionSettingProperties" - } - } - } - } + className: "ConnectionSettingProperties", + }, + }, + }, + }, }; export const AlexaChannel: coreClient.CompositeMapper = { @@ -2496,11 +3033,11 @@ export const AlexaChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "AlexaChannelProperties" - } - } - } - } + className: "AlexaChannelProperties", + }, + }, + }, + }, }; export const FacebookChannel: coreClient.CompositeMapper = { @@ -2516,11 +3053,11 @@ export const FacebookChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "FacebookChannelProperties" - } - } - } - } + className: "FacebookChannelProperties", + }, + }, + }, + }, }; export const EmailChannel: coreClient.CompositeMapper = { @@ -2536,11 +3073,11 @@ export const EmailChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "EmailChannelProperties" - } - } - } - } + className: "EmailChannelProperties", + }, + }, + }, + }, }; export const OutlookChannel: coreClient.CompositeMapper = { @@ -2551,9 +3088,9 @@ export const OutlookChannel: coreClient.CompositeMapper = { uberParent: "Channel", polymorphicDiscriminator: Channel.type.polymorphicDiscriminator, modelProperties: { - ...Channel.type.modelProperties - } - } + ...Channel.type.modelProperties, + }, + }, }; export const MsTeamsChannel: coreClient.CompositeMapper = { @@ -2569,11 +3106,11 @@ export const MsTeamsChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "MsTeamsChannelProperties" - } - } - } - } + className: "MsTeamsChannelProperties", + }, + }, + }, + }, }; export const SkypeChannel: coreClient.CompositeMapper = { @@ -2589,11 +3126,11 @@ export const SkypeChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SkypeChannelProperties" - } - } - } - } + className: "SkypeChannelProperties", + }, + }, + }, + }, }; export const KikChannel: coreClient.CompositeMapper = { @@ -2609,11 +3146,11 @@ export const KikChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "KikChannelProperties" - } - } - } - } + className: "KikChannelProperties", + }, + }, + }, + }, }; export const WebChatChannel: coreClient.CompositeMapper = { @@ -2629,11 +3166,11 @@ export const WebChatChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "WebChatChannelProperties" - } - } - } - } + className: "WebChatChannelProperties", + }, + }, + }, + }, }; export const DirectLineChannel: coreClient.CompositeMapper = { @@ -2649,11 +3186,11 @@ export const DirectLineChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "DirectLineChannelProperties" - } - } - } - } + className: "DirectLineChannelProperties", + }, + }, + }, + }, }; export const TelegramChannel: coreClient.CompositeMapper = { @@ -2669,11 +3206,11 @@ export const TelegramChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "TelegramChannelProperties" - } - } - } - } + className: "TelegramChannelProperties", + }, + }, + }, + }, }; export const SmsChannel: coreClient.CompositeMapper = { @@ -2689,11 +3226,11 @@ export const SmsChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SmsChannelProperties" - } - } - } - } + className: "SmsChannelProperties", + }, + }, + }, + }, }; export const SlackChannel: coreClient.CompositeMapper = { @@ -2709,11 +3246,11 @@ export const SlackChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SlackChannelProperties" - } - } - } - } + className: "SlackChannelProperties", + }, + }, + }, + }, }; export const LineChannel: coreClient.CompositeMapper = { @@ -2729,11 +3266,11 @@ export const LineChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "LineChannelProperties" - } - } - } - } + className: "LineChannelProperties", + }, + }, + }, + }, }; export const DirectLineSpeechChannel: coreClient.CompositeMapper = { @@ -2749,11 +3286,11 @@ export const DirectLineSpeechChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "DirectLineSpeechChannelProperties" - } - } - } - } + className: "DirectLineSpeechChannelProperties", + }, + }, + }, + }, }; export const Omnichannel: coreClient.CompositeMapper = { @@ -2764,9 +3301,9 @@ export const Omnichannel: coreClient.CompositeMapper = { uberParent: "Channel", polymorphicDiscriminator: Channel.type.polymorphicDiscriminator, modelProperties: { - ...Channel.type.modelProperties - } - } + ...Channel.type.modelProperties, + }, + }, }; export const TelephonyChannel: coreClient.CompositeMapper = { @@ -2782,11 +3319,11 @@ export const TelephonyChannel: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "TelephonyChannelProperties" - } - } - } - } + className: "TelephonyChannelProperties", + }, + }, + }, + }, }; export const AcsChatChannel: coreClient.CompositeMapper = { @@ -2797,9 +3334,9 @@ export const AcsChatChannel: coreClient.CompositeMapper = { uberParent: "Channel", polymorphicDiscriminator: Channel.type.polymorphicDiscriminator, modelProperties: { - ...Channel.type.modelProperties - } - } + ...Channel.type.modelProperties, + }, + }, }; export const SearchAssistant: coreClient.CompositeMapper = { @@ -2810,9 +3347,9 @@ export const SearchAssistant: coreClient.CompositeMapper = { uberParent: "Channel", polymorphicDiscriminator: Channel.type.polymorphicDiscriminator, modelProperties: { - ...Channel.type.modelProperties - } - } + ...Channel.type.modelProperties, + }, + }, }; export const M365Extensions: coreClient.CompositeMapper = { @@ -2823,9 +3360,9 @@ export const M365Extensions: coreClient.CompositeMapper = { uberParent: "Channel", polymorphicDiscriminator: Channel.type.polymorphicDiscriminator, modelProperties: { - ...Channel.type.modelProperties - } - } + ...Channel.type.modelProperties, + }, + }, }; export const WebChatSite: coreClient.CompositeMapper = { @@ -2833,9 +3370,9 @@ export const WebChatSite: coreClient.CompositeMapper = { name: "Composite", className: "WebChatSite", modelProperties: { - ...Site.type.modelProperties - } - } + ...Site.type.modelProperties, + }, + }, }; export const DirectLineSite: coreClient.CompositeMapper = { @@ -2843,9 +3380,9 @@ export const DirectLineSite: coreClient.CompositeMapper = { name: "Composite", className: "DirectLineSite", modelProperties: { - ...Site.type.modelProperties - } - } + ...Site.type.modelProperties, + }, + }, }; export const ListChannelWithKeysResponse: coreClient.CompositeMapper = { @@ -2858,37 +3395,53 @@ export const ListChannelWithKeysResponse: coreClient.CompositeMapper = { serializedName: "resource", type: { name: "Composite", - className: "Channel" - } + className: "Channel", + }, }, setting: { serializedName: "setting", type: { name: "Composite", - className: "ChannelSettings" - } + className: "ChannelSettings", + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, entityTag: { serializedName: "entityTag", type: { - name: "String" - } + name: "String", + }, }, changedTime: { serializedName: "changedTime", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const NetworkSecurityPerimeterConfigurationsReconcileHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationsReconcileHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export let discriminators = { Channel: Channel, @@ -2910,5 +3463,5 @@ export let discriminators = { "Channel.TelephonyChannel": TelephonyChannel, "Channel.AcsChatChannel": AcsChatChannel, "Channel.SearchAssistant": SearchAssistant, - "Channel.M365Extensions": M365Extensions + "Channel.M365Extensions": M365Extensions, }; diff --git a/sdk/botservice/arm-botservice/src/models/parameters.ts b/sdk/botservice/arm-botservice/src/models/parameters.ts index 0ef55dcd5799..178707c694c7 100644 --- a/sdk/botservice/arm-botservice/src/models/parameters.ts +++ b/sdk/botservice/arm-botservice/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { Bot as BotMapper, @@ -18,7 +18,7 @@ import { SiteInfo as SiteInfoMapper, ConnectionSetting as ConnectionSettingMapper, QnAMakerEndpointKeysRequestBody as QnAMakerEndpointKeysRequestBodyMapper, - PrivateEndpointConnection as PrivateEndpointConnectionMapper + PrivateEndpointConnection as PrivateEndpointConnectionMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -28,14 +28,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: BotMapper + mapper: BotMapper, }; export const accept: OperationParameter = { @@ -45,9 +45,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -56,10 +56,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -68,14 +68,14 @@ export const resourceGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"), MaxLength: 64, - MinLength: 2 + MinLength: 2, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceName: OperationURLParameter = { @@ -84,26 +84,26 @@ export const resourceName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"), MaxLength: 64, - MinLength: 2 + MinLength: 2, }, serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-09-15", + defaultValue: "2023-09-15-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -112,44 +112,44 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const location: OperationParameter = { parameterPath: ["options", "location"], - mapper: BotMapper + mapper: BotMapper, }; export const tags: OperationParameter = { parameterPath: ["options", "tags"], - mapper: BotMapper + mapper: BotMapper, }; export const sku: OperationParameter = { parameterPath: ["options", "sku"], - mapper: BotMapper + mapper: BotMapper, }; export const kind: OperationParameter = { parameterPath: ["options", "kind"], - mapper: BotMapper + mapper: BotMapper, }; export const etag: OperationParameter = { parameterPath: ["options", "etag"], - mapper: BotMapper + mapper: BotMapper, }; export const properties: OperationParameter = { parameterPath: ["options", "properties"], - mapper: BotMapper + mapper: BotMapper, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: CheckNameAvailabilityRequestBodyMapper + mapper: CheckNameAvailabilityRequestBodyMapper, }; export const nextLink: OperationURLParameter = { @@ -158,15 +158,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: BotChannelMapper + mapper: BotChannelMapper, }; export const channelName: OperationURLParameter = { @@ -195,40 +195,40 @@ export const channelName: OperationURLParameter = { "TelephonyChannel", "AcsChatChannel", "SearchAssistant", - "M365Extensions" - ] - } - } + "M365Extensions", + ], + }, + }, }; export const location1: OperationParameter = { parameterPath: ["options", "location"], - mapper: BotChannelMapper + mapper: BotChannelMapper, }; export const tags1: OperationParameter = { parameterPath: ["options", "tags"], - mapper: BotChannelMapper + mapper: BotChannelMapper, }; export const sku1: OperationParameter = { parameterPath: ["options", "sku"], - mapper: BotChannelMapper + mapper: BotChannelMapper, }; export const kind1: OperationParameter = { parameterPath: ["options", "kind"], - mapper: BotChannelMapper + mapper: BotChannelMapper, }; export const etag1: OperationParameter = { parameterPath: ["options", "etag"], - mapper: BotChannelMapper + mapper: BotChannelMapper, }; export const properties1: OperationParameter = { parameterPath: ["options", "properties"], - mapper: BotChannelMapper + mapper: BotChannelMapper, }; export const channelName1: OperationURLParameter = { @@ -237,19 +237,19 @@ export const channelName1: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"), MaxLength: 64, - MinLength: 2 + MinLength: 2, }, serializedName: "channelName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: SiteInfoMapper + mapper: SiteInfoMapper, }; export const channelName2: OperationURLParameter = { @@ -259,9 +259,9 @@ export const channelName2: OperationURLParameter = { required: true, type: { name: "Enum", - allowedValues: ["WebChatChannel", "DirectLineChannel"] - } - } + allowedValues: ["WebChatChannel", "DirectLineChannel"], + }, + }, }; export const connectionName: OperationURLParameter = { @@ -270,24 +270,24 @@ export const connectionName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][\\sa-zA-Z0-9_.-]*$"), MaxLength: 64, - MinLength: 2 + MinLength: 2, }, serializedName: "connectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ConnectionSettingMapper + mapper: ConnectionSettingMapper, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: QnAMakerEndpointKeysRequestBodyMapper + mapper: QnAMakerEndpointKeysRequestBodyMapper, }; export const operationResultId: OperationURLParameter = { @@ -296,9 +296,9 @@ export const operationResultId: OperationURLParameter = { serializedName: "operationResultId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -307,12 +307,27 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const properties2: OperationParameter = { parameterPath: "properties", - mapper: PrivateEndpointConnectionMapper -}; + mapper: PrivateEndpointConnectionMapper, +}; + +export const networkSecurityPerimeterConfigurationName: OperationURLParameter = + { + parameterPath: "networkSecurityPerimeterConfigurationName", + mapper: { + constraints: { + Pattern: new RegExp(".*"), + }, + serializedName: "networkSecurityPerimeterConfigurationName", + required: true, + type: { + name: "String", + }, + }, + }; diff --git a/sdk/botservice/arm-botservice/src/operations/botConnection.ts b/sdk/botservice/arm-botservice/src/operations/botConnection.ts index 7481b3ca1c3d..75c4f8a75c0b 100644 --- a/sdk/botservice/arm-botservice/src/operations/botConnection.ts +++ b/sdk/botservice/arm-botservice/src/operations/botConnection.ts @@ -29,7 +29,7 @@ import { BotConnectionGetOptionalParams, BotConnectionGetResponse, BotConnectionDeleteOptionalParams, - BotConnectionListByBotServiceNextResponse + BotConnectionListByBotServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class BotConnectionImpl implements BotConnection { public listByBotService( resourceGroupName: string, resourceName: string, - options?: BotConnectionListByBotServiceOptionalParams + options?: BotConnectionListByBotServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBotServicePagingAll( resourceGroupName, resourceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class BotConnectionImpl implements BotConnection { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class BotConnectionImpl implements BotConnection { resourceGroupName: string, resourceName: string, options?: BotConnectionListByBotServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BotConnectionListByBotServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class BotConnectionImpl implements BotConnection { result = await this._listByBotService( resourceGroupName, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class BotConnectionImpl implements BotConnection { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class BotConnectionImpl implements BotConnection { private async *listByBotServicePagingAll( resourceGroupName: string, resourceName: string, - options?: BotConnectionListByBotServiceOptionalParams + options?: BotConnectionListByBotServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBotServicePagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class BotConnectionImpl implements BotConnection { * @param options The options parameters. */ listServiceProviders( - options?: BotConnectionListServiceProvidersOptionalParams + options?: BotConnectionListServiceProvidersOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listServiceProvidersOperationSpec + listServiceProvidersOperationSpec, ); } @@ -153,11 +153,11 @@ export class BotConnectionImpl implements BotConnection { resourceGroupName: string, resourceName: string, connectionName: string, - options?: BotConnectionListWithSecretsOptionalParams + options?: BotConnectionListWithSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, connectionName, options }, - listWithSecretsOperationSpec + listWithSecretsOperationSpec, ); } @@ -174,11 +174,11 @@ export class BotConnectionImpl implements BotConnection { resourceName: string, connectionName: string, parameters: ConnectionSetting, - options?: BotConnectionCreateOptionalParams + options?: BotConnectionCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, connectionName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -195,11 +195,11 @@ export class BotConnectionImpl implements BotConnection { resourceName: string, connectionName: string, parameters: ConnectionSetting, - options?: BotConnectionUpdateOptionalParams + options?: BotConnectionUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, connectionName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -214,11 +214,11 @@ export class BotConnectionImpl implements BotConnection { resourceGroupName: string, resourceName: string, connectionName: string, - options?: BotConnectionGetOptionalParams + options?: BotConnectionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, connectionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -233,11 +233,11 @@ export class BotConnectionImpl implements BotConnection { resourceGroupName: string, resourceName: string, connectionName: string, - options?: BotConnectionDeleteOptionalParams + options?: BotConnectionDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, connectionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -250,11 +250,11 @@ export class BotConnectionImpl implements BotConnection { private _listByBotService( resourceGroupName: string, resourceName: string, - options?: BotConnectionListByBotServiceOptionalParams + options?: BotConnectionListByBotServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listByBotServiceOperationSpec + listByBotServiceOperationSpec, ); } @@ -269,11 +269,11 @@ export class BotConnectionImpl implements BotConnection { resourceGroupName: string, resourceName: string, nextLink: string, - options?: BotConnectionListByBotServiceNextOptionalParams + options?: BotConnectionListByBotServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listByBotServiceNextOperationSpec + listByBotServiceNextOperationSpec, ); } } @@ -281,33 +281,31 @@ export class BotConnectionImpl implements BotConnection { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listServiceProvidersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ServiceProviderResponseList + bodyMapper: Mappers.ServiceProviderResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listWithSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ConnectionSetting + bodyMapper: Mappers.ConnectionSetting, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -315,25 +313,24 @@ const listWithSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.connectionName + Parameters.connectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConnectionSetting + bodyMapper: Mappers.ConnectionSetting, }, 201: { - bodyMapper: Mappers.ConnectionSetting + bodyMapper: Mappers.ConnectionSetting, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -342,26 +339,25 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.connectionName + Parameters.connectionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ConnectionSetting + bodyMapper: Mappers.ConnectionSetting, }, 201: { - bodyMapper: Mappers.ConnectionSetting + bodyMapper: Mappers.ConnectionSetting, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -370,23 +366,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.connectionName + Parameters.connectionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConnectionSetting + bodyMapper: Mappers.ConnectionSetting, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -394,21 +389,20 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.connectionName + Parameters.connectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -416,51 +410,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.connectionName + Parameters.connectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBotServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConnectionSettingResponseList + bodyMapper: Mappers.ConnectionSettingResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBotServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConnectionSettingResponseList + bodyMapper: Mappers.ConnectionSettingResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/bots.ts b/sdk/botservice/arm-botservice/src/operations/bots.ts index c6fec9952010..71d73fbeb487 100644 --- a/sdk/botservice/arm-botservice/src/operations/bots.ts +++ b/sdk/botservice/arm-botservice/src/operations/bots.ts @@ -32,7 +32,7 @@ import { BotsGetCheckNameAvailabilityOptionalParams, BotsGetCheckNameAvailabilityResponse, BotsListByResourceGroupNextResponse, - BotsListNextResponse + BotsListNextResponse, } from "../models"; /// @@ -55,7 +55,7 @@ export class BotsImpl implements Bots { */ public listByResourceGroup( resourceGroupName: string, - options?: BotsListByResourceGroupOptionalParams + options?: BotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -72,16 +72,16 @@ export class BotsImpl implements Bots { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: BotsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BotsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class BotsImpl implements Bots { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,11 +107,11 @@ export class BotsImpl implements Bots { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: BotsListByResourceGroupOptionalParams + options?: BotsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -122,7 +122,7 @@ export class BotsImpl implements Bots { * @param options The options parameters. */ public list( - options?: BotsListOptionalParams + options?: BotsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -137,13 +137,13 @@ export class BotsImpl implements Bots { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: BotsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BotsListResponse; let continuationToken = settings?.continuationToken; @@ -164,7 +164,7 @@ export class BotsImpl implements Bots { } private async *listPagingAll( - options?: BotsListOptionalParams + options?: BotsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -182,11 +182,11 @@ export class BotsImpl implements Bots { resourceGroupName: string, resourceName: string, parameters: Bot, - options?: BotsCreateOptionalParams + options?: BotsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -199,11 +199,11 @@ export class BotsImpl implements Bots { update( resourceGroupName: string, resourceName: string, - options?: BotsUpdateOptionalParams + options?: BotsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -216,11 +216,11 @@ export class BotsImpl implements Bots { delete( resourceGroupName: string, resourceName: string, - options?: BotsDeleteOptionalParams + options?: BotsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +233,11 @@ export class BotsImpl implements Bots { get( resourceGroupName: string, resourceName: string, - options?: BotsGetOptionalParams + options?: BotsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -248,11 +248,11 @@ export class BotsImpl implements Bots { */ private _listByResourceGroup( resourceGroupName: string, - options?: BotsListByResourceGroupOptionalParams + options?: BotsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -271,11 +271,11 @@ export class BotsImpl implements Bots { */ getCheckNameAvailability( parameters: CheckNameAvailabilityRequestBody, - options?: BotsGetCheckNameAvailabilityOptionalParams + options?: BotsGetCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { parameters, options }, - getCheckNameAvailabilityOperationSpec + getCheckNameAvailabilityOperationSpec, ); } @@ -288,11 +288,11 @@ export class BotsImpl implements Bots { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: BotsListByResourceGroupNextOptionalParams + options?: BotsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -303,11 +303,11 @@ export class BotsImpl implements Bots { */ private _listNext( nextLink: string, - options?: BotsListNextOptionalParams + options?: BotsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -315,19 +315,18 @@ export class BotsImpl implements Bots { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Bot + bodyMapper: Mappers.Bot, }, 201: { - bodyMapper: Mappers.Bot + bodyMapper: Mappers.Bot, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -335,26 +334,25 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Bot + bodyMapper: Mappers.Bot, }, 201: { - bodyMapper: Mappers.Bot + bodyMapper: Mappers.Bot, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: { parameterPath: { @@ -363,156 +361,152 @@ const updateOperationSpec: coreClient.OperationSpec = { sku: ["options", "sku"], kind: ["options", "kind"], etag: ["options", "etag"], - properties: ["options", "properties"] + properties: ["options", "properties"], }, - mapper: { ...Mappers.Bot, required: true } + mapper: { ...Mappers.Bot, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Bot + bodyMapper: Mappers.Bot, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BotResponseList + bodyMapper: Mappers.BotResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BotResponseList + bodyMapper: Mappers.BotResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getCheckNameAvailabilityOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.BotService/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResponseBody + bodyMapper: Mappers.CheckNameAvailabilityResponseBody, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BotResponseList + bodyMapper: Mappers.BotResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BotResponseList + bodyMapper: Mappers.BotResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/channels.ts b/sdk/botservice/arm-botservice/src/operations/channels.ts index c5b5859957e4..3719f60a7ceb 100644 --- a/sdk/botservice/arm-botservice/src/operations/channels.ts +++ b/sdk/botservice/arm-botservice/src/operations/channels.ts @@ -28,7 +28,7 @@ import { ChannelsGetResponse, ChannelsListWithKeysOptionalParams, ChannelsListWithKeysResponse, - ChannelsListByResourceGroupNextResponse + ChannelsListByResourceGroupNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class ChannelsImpl implements Channels { public listByResourceGroup( resourceGroupName: string, resourceName: string, - options?: ChannelsListByResourceGroupOptionalParams + options?: ChannelsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll( resourceGroupName, resourceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class ChannelsImpl implements Channels { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ChannelsImpl implements Channels { resourceGroupName: string, resourceName: string, options?: ChannelsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ChannelsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class ChannelsImpl implements Channels { result = await this._listByResourceGroup( resourceGroupName, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class ChannelsImpl implements Channels { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class ChannelsImpl implements Channels { private async *listByResourceGroupPagingAll( resourceGroupName: string, resourceName: string, - options?: ChannelsListByResourceGroupOptionalParams + options?: ChannelsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class ChannelsImpl implements Channels { resourceName: string, channelName: ChannelName, parameters: BotChannel, - options?: ChannelsCreateOptionalParams + options?: ChannelsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, channelName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -160,11 +160,11 @@ export class ChannelsImpl implements Channels { resourceGroupName: string, resourceName: string, channelName: ChannelName, - options?: ChannelsUpdateOptionalParams + options?: ChannelsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, channelName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -179,11 +179,11 @@ export class ChannelsImpl implements Channels { resourceGroupName: string, resourceName: string, channelName: string, - options?: ChannelsDeleteOptionalParams + options?: ChannelsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, channelName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -198,11 +198,11 @@ export class ChannelsImpl implements Channels { resourceGroupName: string, resourceName: string, channelName: string, - options?: ChannelsGetOptionalParams + options?: ChannelsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, channelName, options }, - getOperationSpec + getOperationSpec, ); } @@ -217,11 +217,11 @@ export class ChannelsImpl implements Channels { resourceGroupName: string, resourceName: string, channelName: ChannelName, - options?: ChannelsListWithKeysOptionalParams + options?: ChannelsListWithKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, channelName, options }, - listWithKeysOperationSpec + listWithKeysOperationSpec, ); } @@ -234,11 +234,11 @@ export class ChannelsImpl implements Channels { private _listByResourceGroup( resourceGroupName: string, resourceName: string, - options?: ChannelsListByResourceGroupOptionalParams + options?: ChannelsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -253,11 +253,11 @@ export class ChannelsImpl implements Channels { resourceGroupName: string, resourceName: string, nextLink: string, - options?: ChannelsListByResourceGroupNextOptionalParams + options?: ChannelsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -265,19 +265,18 @@ export class ChannelsImpl implements Channels { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BotChannel + bodyMapper: Mappers.BotChannel, }, 201: { - bodyMapper: Mappers.BotChannel + bodyMapper: Mappers.BotChannel, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -286,26 +285,25 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.channelName + Parameters.channelName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BotChannel + bodyMapper: Mappers.BotChannel, }, 201: { - bodyMapper: Mappers.BotChannel + bodyMapper: Mappers.BotChannel, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: { parameterPath: { @@ -314,9 +312,9 @@ const updateOperationSpec: coreClient.OperationSpec = { sku: ["options", "sku"], kind: ["options", "kind"], etag: ["options", "etag"], - properties: ["options", "properties"] + properties: ["options", "properties"], }, - mapper: { ...Mappers.BotChannel, required: true } + mapper: { ...Mappers.BotChannel, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -324,22 +322,21 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.channelName + Parameters.channelName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -347,22 +344,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.channelName1 + Parameters.channelName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BotChannel + bodyMapper: Mappers.BotChannel, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -370,22 +366,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.channelName1 + Parameters.channelName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listWithKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/listChannelWithKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/listChannelWithKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ListChannelWithKeysResponse + bodyMapper: Mappers.ListChannelWithKeysResponse, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -393,51 +388,50 @@ const listWithKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.channelName + Parameters.channelName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ChannelResponseList + bodyMapper: Mappers.ChannelResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ChannelResponseList + bodyMapper: Mappers.ChannelResponseList, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/directLine.ts b/sdk/botservice/arm-botservice/src/operations/directLine.ts index e98ff62293a9..0c2018310e18 100644 --- a/sdk/botservice/arm-botservice/src/operations/directLine.ts +++ b/sdk/botservice/arm-botservice/src/operations/directLine.ts @@ -15,7 +15,7 @@ import { SiteInfo, RegenerateKeysChannelName, DirectLineRegenerateKeysOptionalParams, - DirectLineRegenerateKeysResponse + DirectLineRegenerateKeysResponse, } from "../models"; /** Class containing DirectLine operations. */ @@ -44,11 +44,11 @@ export class DirectLineImpl implements DirectLine { resourceName: string, channelName: RegenerateKeysChannelName, parameters: SiteInfo, - options?: DirectLineRegenerateKeysOptionalParams + options?: DirectLineRegenerateKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, channelName, parameters, options }, - regenerateKeysOperationSpec + regenerateKeysOperationSpec, ); } } @@ -56,16 +56,15 @@ export class DirectLineImpl implements DirectLine { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const regenerateKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.BotChannel + bodyMapper: Mappers.BotChannel, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -74,9 +73,9 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.channelName2 + Parameters.channelName2, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/email.ts b/sdk/botservice/arm-botservice/src/operations/email.ts index 775af70bdea1..65175ee8f32e 100644 --- a/sdk/botservice/arm-botservice/src/operations/email.ts +++ b/sdk/botservice/arm-botservice/src/operations/email.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { AzureBotService } from "../azureBotService"; import { EmailCreateSignInUrlOptionalParams, - EmailCreateSignInUrlResponse + EmailCreateSignInUrlResponse, } from "../models"; /** Class containing Email operations. */ @@ -37,11 +37,11 @@ export class EmailImpl implements Email { createSignInUrl( resourceGroupName: string, resourceName: string, - options?: EmailCreateSignInUrlOptionalParams + options?: EmailCreateSignInUrlOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - createSignInUrlOperationSpec + createSignInUrlOperationSpec, ); } } @@ -49,24 +49,23 @@ export class EmailImpl implements Email { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createSignInUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/createEmailSignInUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/createEmailSignInUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CreateEmailSignInUrlResponse + bodyMapper: Mappers.CreateEmailSignInUrlResponse, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/hostSettings.ts b/sdk/botservice/arm-botservice/src/operations/hostSettings.ts index b57b467db071..8af6af0e5f46 100644 --- a/sdk/botservice/arm-botservice/src/operations/hostSettings.ts +++ b/sdk/botservice/arm-botservice/src/operations/hostSettings.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { AzureBotService } from "../azureBotService"; import { HostSettingsGetOptionalParams, - HostSettingsGetResponse + HostSettingsGetResponse, } from "../models"; /** Class containing HostSettings operations. */ @@ -33,7 +33,7 @@ export class HostSettingsImpl implements HostSettings { * @param options The options parameters. */ get( - options?: HostSettingsGetOptionalParams + options?: HostSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, getOperationSpec); } @@ -42,19 +42,18 @@ export class HostSettingsImpl implements HostSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.HostSettingsResponse + bodyMapper: Mappers.HostSettingsResponse, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/index.ts b/sdk/botservice/arm-botservice/src/operations/index.ts index 641ef10fc0c5..de659048cfd4 100644 --- a/sdk/botservice/arm-botservice/src/operations/index.ts +++ b/sdk/botservice/arm-botservice/src/operations/index.ts @@ -17,3 +17,4 @@ export * from "./hostSettings"; export * from "./operationResults"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./networkSecurityPerimeterConfigurations"; diff --git a/sdk/botservice/arm-botservice/src/operations/networkSecurityPerimeterConfigurations.ts b/sdk/botservice/arm-botservice/src/operations/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..53748b5ca3e2 --- /dev/null +++ b/sdk/botservice/arm-botservice/src/operations/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,384 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkSecurityPerimeterConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureBotService } from "../azureBotService"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListNextOptionalParams, + NetworkSecurityPerimeterConfigurationsListOptionalParams, + NetworkSecurityPerimeterConfigurationsListResponse, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, + NetworkSecurityPerimeterConfigurationsListNextResponse, +} from "../models"; + +/// +/** Class containing NetworkSecurityPerimeterConfigurations operations. */ +export class NetworkSecurityPerimeterConfigurationsImpl + implements NetworkSecurityPerimeterConfigurations +{ + private readonly client: AzureBotService; + + /** + * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class. + * @param client Reference to the service client + */ + constructor(client: AzureBotService) { + this.client = client; + } + + /** + * List Network Security Perimeter configurations associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + resourceName: string, + options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, resourceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + resourceName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + resourceName: string, + options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: NetworkSecurityPerimeterConfigurationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, resourceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + resourceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + resourceName: string, + options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + resourceName, + options, + )) { + yield* page; + } + } + + /** + * Gets the specified Network Security Perimeter configuration associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param networkSecurityPerimeterConfigurationName The resource association Name. Composed of + * parameter guid and association name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + resourceName: string, + networkSecurityPerimeterConfigurationName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + networkSecurityPerimeterConfigurationName, + options, + }, + getOperationSpec, + ); + } + + /** + * List Network Security Perimeter configurations associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + resourceName: string, + options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, options }, + listOperationSpec, + ); + } + + /** + * Reconcile the specified Network Security Perimeter configuration associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param networkSecurityPerimeterConfigurationName The resource association Name. Composed of + * parameter guid and association name. + * @param options The options parameters. + */ + async beginReconcile( + resourceGroupName: string, + resourceName: string, + networkSecurityPerimeterConfigurationName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + resourceName, + networkSecurityPerimeterConfigurationName, + options, + }, + spec: reconcileOperationSpec, + }); + const poller = await createHttpPoller< + NetworkSecurityPerimeterConfigurationsReconcileResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Reconcile the specified Network Security Perimeter configuration associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param networkSecurityPerimeterConfigurationName The resource association Name. Composed of + * parameter guid and association name. + * @param options The options parameters. + */ + async beginReconcileAndWait( + resourceGroupName: string, + resourceName: string, + networkSecurityPerimeterConfigurationName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise { + const poller = await this.beginReconcile( + resourceGroupName, + resourceName, + networkSecurityPerimeterConfigurationName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + resourceName: string, + nextLink: string, + options?: NetworkSecurityPerimeterConfigurationsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, resourceName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + default: { + bodyMapper: Mappers.ErrorModel, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.subscriptionId, + Parameters.networkSecurityPerimeterConfigurationName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationList, + }, + default: { + bodyMapper: Mappers.ErrorModel, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const reconcileOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + 201: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + 202: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + 204: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.subscriptionId, + Parameters.networkSecurityPerimeterConfigurationName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationList, + }, + default: { + bodyMapper: Mappers.ErrorModel, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/botservice/arm-botservice/src/operations/operationResults.ts b/sdk/botservice/arm-botservice/src/operations/operationResults.ts index d9b00b262f6f..e7b95a2f94bb 100644 --- a/sdk/botservice/arm-botservice/src/operations/operationResults.ts +++ b/sdk/botservice/arm-botservice/src/operations/operationResults.ts @@ -11,11 +11,15 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureBotService } from "../azureBotService"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { OperationResultsGetOptionalParams, - OperationResultsGetResponse + OperationResultsGetResponse, } from "../models"; /** Class containing OperationResults operations. */ @@ -37,30 +41,29 @@ export class OperationResultsImpl implements OperationResults { */ async beginGet( operationResultId: string, - options?: OperationResultsGetOptionalParams + options?: OperationResultsGetOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OperationResultsGetResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -69,8 +72,8 @@ export class OperationResultsImpl implements OperationResults { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -78,19 +81,22 @@ export class OperationResultsImpl implements OperationResults { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { operationResultId, options }, - getOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { operationResultId, options }, + spec: getOperationSpec, + }); + const poller = await createHttpPoller< + OperationResultsGetResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -103,7 +109,7 @@ export class OperationResultsImpl implements OperationResults { */ async beginGetAndWait( operationResultId: string, - options?: OperationResultsGetOptionalParams + options?: OperationResultsGetOptionalParams, ): Promise { const poller = await this.beginGet(operationResultId, options); return poller.pollUntilDone(); @@ -113,32 +119,31 @@ export class OperationResultsImpl implements OperationResults { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationResultsDescription + bodyMapper: Mappers.OperationResultsDescription, }, 201: { - bodyMapper: Mappers.OperationResultsDescription + bodyMapper: Mappers.OperationResultsDescription, }, 202: { - bodyMapper: Mappers.OperationResultsDescription + bodyMapper: Mappers.OperationResultsDescription, }, 204: { - bodyMapper: Mappers.OperationResultsDescription + bodyMapper: Mappers.OperationResultsDescription, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.operationResultId + Parameters.operationResultId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/operations.ts b/sdk/botservice/arm-botservice/src/operations/operations.ts index 840dfd4fb8be..5d545f2326eb 100644 --- a/sdk/botservice/arm-botservice/src/operations/operations.ts +++ b/sdk/botservice/arm-botservice/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationEntityListResult + bodyMapper: Mappers.OperationEntityListResult, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationEntityListResult + bodyMapper: Mappers.OperationEntityListResult, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/privateEndpointConnections.ts b/sdk/botservice/arm-botservice/src/operations/privateEndpointConnections.ts index 8946c8d54e9c..256aa257279f 100644 --- a/sdk/botservice/arm-botservice/src/operations/privateEndpointConnections.ts +++ b/sdk/botservice/arm-botservice/src/operations/privateEndpointConnections.ts @@ -20,13 +20,14 @@ import { PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOptionalParams, PrivateEndpointConnectionsCreateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsDeleteOptionalParams, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: AzureBotService; /** @@ -46,7 +47,7 @@ export class PrivateEndpointConnectionsImpl public list( resourceGroupName: string, resourceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -64,9 +65,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -74,7 +75,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, options?: PrivateEndpointConnectionsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListResponse; result = await this._list(resourceGroupName, resourceName, options); @@ -84,12 +85,12 @@ export class PrivateEndpointConnectionsImpl private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -104,11 +105,11 @@ export class PrivateEndpointConnectionsImpl private _list( resourceGroupName: string, resourceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -124,16 +125,16 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -151,7 +152,7 @@ export class PrivateEndpointConnectionsImpl resourceName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOptionalParams + options?: PrivateEndpointConnectionsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -159,9 +160,9 @@ export class PrivateEndpointConnectionsImpl resourceName, privateEndpointConnectionName, properties, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -177,16 +178,16 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, privateEndpointConnectionName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -194,38 +195,36 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -233,22 +232,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: Parameters.properties2, queryParameters: [Parameters.apiVersion], @@ -257,22 +255,21 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,8 +277,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/privateLinkResources.ts b/sdk/botservice/arm-botservice/src/operations/privateLinkResources.ts index 3eb53d554040..bb0cfe374def 100644 --- a/sdk/botservice/arm-botservice/src/operations/privateLinkResources.ts +++ b/sdk/botservice/arm-botservice/src/operations/privateLinkResources.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { AzureBotService } from "../azureBotService"; import { PrivateLinkResourcesListByBotResourceOptionalParams, - PrivateLinkResourcesListByBotResourceResponse + PrivateLinkResourcesListByBotResourceResponse, } from "../models"; /** Class containing PrivateLinkResources operations. */ @@ -37,11 +37,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { listByBotResource( resourceGroupName: string, resourceName: string, - options?: PrivateLinkResourcesListByBotResourceOptionalParams + options?: PrivateLinkResourcesListByBotResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listByBotResourceOperationSpec + listByBotResourceOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBotResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operations/qnAMakerEndpointKeys.ts b/sdk/botservice/arm-botservice/src/operations/qnAMakerEndpointKeys.ts index fa358e7aade1..838e318148b1 100644 --- a/sdk/botservice/arm-botservice/src/operations/qnAMakerEndpointKeys.ts +++ b/sdk/botservice/arm-botservice/src/operations/qnAMakerEndpointKeys.ts @@ -14,7 +14,7 @@ import { AzureBotService } from "../azureBotService"; import { QnAMakerEndpointKeysRequestBody, QnAMakerEndpointKeysGetOptionalParams, - QnAMakerEndpointKeysGetResponse + QnAMakerEndpointKeysGetResponse, } from "../models"; /** Class containing QnAMakerEndpointKeys operations. */ @@ -36,11 +36,11 @@ export class QnAMakerEndpointKeysImpl implements QnAMakerEndpointKeys { */ get( parameters: QnAMakerEndpointKeysRequestBody, - options?: QnAMakerEndpointKeysGetOptionalParams + options?: QnAMakerEndpointKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { parameters, options }, - getOperationSpec + getOperationSpec, ); } } @@ -48,21 +48,20 @@ export class QnAMakerEndpointKeysImpl implements QnAMakerEndpointKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listQnAMakerEndpointKeys", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listQnAMakerEndpointKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.QnAMakerEndpointKeysResponse + bodyMapper: Mappers.QnAMakerEndpointKeysResponse, }, default: { - bodyMapper: Mappers.ErrorModel - } + bodyMapper: Mappers.ErrorModel, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/botConnection.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/botConnection.ts index ad52981d9054..012d0b6906dc 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/botConnection.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/botConnection.ts @@ -20,7 +20,7 @@ import { BotConnectionUpdateResponse, BotConnectionGetOptionalParams, BotConnectionGetResponse, - BotConnectionDeleteOptionalParams + BotConnectionDeleteOptionalParams, } from "../models"; /// @@ -35,14 +35,14 @@ export interface BotConnection { listByBotService( resourceGroupName: string, resourceName: string, - options?: BotConnectionListByBotServiceOptionalParams + options?: BotConnectionListByBotServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the available Service Providers for creating Connection Settings * @param options The options parameters. */ listServiceProviders( - options?: BotConnectionListServiceProvidersOptionalParams + options?: BotConnectionListServiceProvidersOptionalParams, ): Promise; /** * Get a Connection Setting registration for a Bot Service @@ -55,7 +55,7 @@ export interface BotConnection { resourceGroupName: string, resourceName: string, connectionName: string, - options?: BotConnectionListWithSecretsOptionalParams + options?: BotConnectionListWithSecretsOptionalParams, ): Promise; /** * Register a new Auth Connection for a Bot Service @@ -70,7 +70,7 @@ export interface BotConnection { resourceName: string, connectionName: string, parameters: ConnectionSetting, - options?: BotConnectionCreateOptionalParams + options?: BotConnectionCreateOptionalParams, ): Promise; /** * Updates a Connection Setting registration for a Bot Service @@ -85,7 +85,7 @@ export interface BotConnection { resourceName: string, connectionName: string, parameters: ConnectionSetting, - options?: BotConnectionUpdateOptionalParams + options?: BotConnectionUpdateOptionalParams, ): Promise; /** * Get a Connection Setting registration for a Bot Service @@ -98,7 +98,7 @@ export interface BotConnection { resourceGroupName: string, resourceName: string, connectionName: string, - options?: BotConnectionGetOptionalParams + options?: BotConnectionGetOptionalParams, ): Promise; /** * Deletes a Connection Setting registration for a Bot Service @@ -111,6 +111,6 @@ export interface BotConnection { resourceGroupName: string, resourceName: string, connectionName: string, - options?: BotConnectionDeleteOptionalParams + options?: BotConnectionDeleteOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/bots.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/bots.ts index 5be43b3143b4..714d9469a681 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/bots.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/bots.ts @@ -20,7 +20,7 @@ import { BotsGetResponse, CheckNameAvailabilityRequestBody, BotsGetCheckNameAvailabilityOptionalParams, - BotsGetCheckNameAvailabilityResponse + BotsGetCheckNameAvailabilityResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Bots { */ listByResourceGroup( resourceGroupName: string, - options?: BotsListByResourceGroupOptionalParams + options?: BotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Returns all the resources of a particular type belonging to a subscription. @@ -51,7 +51,7 @@ export interface Bots { resourceGroupName: string, resourceName: string, parameters: Bot, - options?: BotsCreateOptionalParams + options?: BotsCreateOptionalParams, ): Promise; /** * Updates a Bot Service @@ -62,7 +62,7 @@ export interface Bots { update( resourceGroupName: string, resourceName: string, - options?: BotsUpdateOptionalParams + options?: BotsUpdateOptionalParams, ): Promise; /** * Deletes a Bot Service from the resource group. @@ -73,7 +73,7 @@ export interface Bots { delete( resourceGroupName: string, resourceName: string, - options?: BotsDeleteOptionalParams + options?: BotsDeleteOptionalParams, ): Promise; /** * Returns a BotService specified by the parameters. @@ -84,7 +84,7 @@ export interface Bots { get( resourceGroupName: string, resourceName: string, - options?: BotsGetOptionalParams + options?: BotsGetOptionalParams, ): Promise; /** * Check whether a bot name is available. @@ -93,6 +93,6 @@ export interface Bots { */ getCheckNameAvailability( parameters: CheckNameAvailabilityRequestBody, - options?: BotsGetCheckNameAvailabilityOptionalParams + options?: BotsGetCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/channels.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/channels.ts index ffa3f3fcd32b..99f01b3bdb69 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/channels.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/channels.ts @@ -19,7 +19,7 @@ import { ChannelsGetOptionalParams, ChannelsGetResponse, ChannelsListWithKeysOptionalParams, - ChannelsListWithKeysResponse + ChannelsListWithKeysResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Channels { listByResourceGroup( resourceGroupName: string, resourceName: string, - options?: ChannelsListByResourceGroupOptionalParams + options?: ChannelsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a Channel registration for a Bot Service @@ -49,7 +49,7 @@ export interface Channels { resourceName: string, channelName: ChannelName, parameters: BotChannel, - options?: ChannelsCreateOptionalParams + options?: ChannelsCreateOptionalParams, ): Promise; /** * Updates a Channel registration for a Bot Service @@ -62,7 +62,7 @@ export interface Channels { resourceGroupName: string, resourceName: string, channelName: ChannelName, - options?: ChannelsUpdateOptionalParams + options?: ChannelsUpdateOptionalParams, ): Promise; /** * Deletes a Channel registration from a Bot Service @@ -75,7 +75,7 @@ export interface Channels { resourceGroupName: string, resourceName: string, channelName: string, - options?: ChannelsDeleteOptionalParams + options?: ChannelsDeleteOptionalParams, ): Promise; /** * Returns a BotService Channel registration specified by the parameters. @@ -88,7 +88,7 @@ export interface Channels { resourceGroupName: string, resourceName: string, channelName: string, - options?: ChannelsGetOptionalParams + options?: ChannelsGetOptionalParams, ): Promise; /** * Lists a Channel registration for a Bot Service including secrets @@ -101,6 +101,6 @@ export interface Channels { resourceGroupName: string, resourceName: string, channelName: ChannelName, - options?: ChannelsListWithKeysOptionalParams + options?: ChannelsListWithKeysOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/directLine.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/directLine.ts index 5276badc2167..070abad7a644 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/directLine.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/directLine.ts @@ -10,7 +10,7 @@ import { SiteInfo, RegenerateKeysChannelName, DirectLineRegenerateKeysOptionalParams, - DirectLineRegenerateKeysResponse + DirectLineRegenerateKeysResponse, } from "../models"; /** Interface representing a DirectLine. */ @@ -29,6 +29,6 @@ export interface DirectLine { resourceName: string, channelName: RegenerateKeysChannelName, parameters: SiteInfo, - options?: DirectLineRegenerateKeysOptionalParams + options?: DirectLineRegenerateKeysOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/email.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/email.ts index 65ea2d2810b9..d6b75dc8dee5 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/email.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/email.ts @@ -8,7 +8,7 @@ import { EmailCreateSignInUrlOptionalParams, - EmailCreateSignInUrlResponse + EmailCreateSignInUrlResponse, } from "../models"; /** Interface representing a Email. */ @@ -22,6 +22,6 @@ export interface Email { createSignInUrl( resourceGroupName: string, resourceName: string, - options?: EmailCreateSignInUrlOptionalParams + options?: EmailCreateSignInUrlOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/hostSettings.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/hostSettings.ts index 9f1d825462da..e816f5f6f11d 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/hostSettings.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/hostSettings.ts @@ -8,7 +8,7 @@ import { HostSettingsGetOptionalParams, - HostSettingsGetResponse + HostSettingsGetResponse, } from "../models"; /** Interface representing a HostSettings. */ @@ -18,6 +18,6 @@ export interface HostSettings { * @param options The options parameters. */ get( - options?: HostSettingsGetOptionalParams + options?: HostSettingsGetOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/index.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/index.ts index 641ef10fc0c5..de659048cfd4 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/index.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/index.ts @@ -17,3 +17,4 @@ export * from "./hostSettings"; export * from "./operationResults"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./networkSecurityPerimeterConfigurations"; diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..07b5dc62a69a --- /dev/null +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListOptionalParams, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, +} from "../models"; + +/// +/** Interface representing a NetworkSecurityPerimeterConfigurations. */ +export interface NetworkSecurityPerimeterConfigurations { + /** + * List Network Security Perimeter configurations associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + resourceName: string, + options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the specified Network Security Perimeter configuration associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param networkSecurityPerimeterConfigurationName The resource association Name. Composed of + * parameter guid and association name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + resourceName: string, + networkSecurityPerimeterConfigurationName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams, + ): Promise; + /** + * Reconcile the specified Network Security Perimeter configuration associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param networkSecurityPerimeterConfigurationName The resource association Name. Composed of + * parameter guid and association name. + * @param options The options parameters. + */ + beginReconcile( + resourceGroupName: string, + resourceName: string, + networkSecurityPerimeterConfigurationName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + >; + /** + * Reconcile the specified Network Security Perimeter configuration associated with the Bot. + * @param resourceGroupName The name of the Bot resource group in the user subscription. + * @param resourceName The name of the Bot resource. + * @param networkSecurityPerimeterConfigurationName The resource association Name. Composed of + * parameter guid and association name. + * @param options The options parameters. + */ + beginReconcileAndWait( + resourceGroupName: string, + resourceName: string, + networkSecurityPerimeterConfigurationName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise; +} diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/operationResults.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/operationResults.ts index 6d6a3572d6a4..d9936406ee73 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/operationResults.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/operationResults.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { OperationResultsGetOptionalParams, - OperationResultsGetResponse + OperationResultsGetResponse, } from "../models"; /** Interface representing a OperationResults. */ @@ -21,10 +21,10 @@ export interface OperationResults { */ beginGet( operationResultId: string, - options?: OperationResultsGetOptionalParams + options?: OperationResultsGetOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OperationResultsGetResponse > >; @@ -35,6 +35,6 @@ export interface OperationResults { */ beginGetAndWait( operationResultId: string, - options?: OperationResultsGetOptionalParams + options?: OperationResultsGetOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/operations.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/operations.ts index 244b1dd8ced9..6147341d5f53 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/operations.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/privateEndpointConnections.ts index 929400ae4254..efb1f7d73799 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/privateEndpointConnections.ts @@ -14,7 +14,7 @@ import { PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOptionalParams, PrivateEndpointConnectionsCreateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface PrivateEndpointConnections { list( resourceGroupName: string, resourceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified private endpoint connection associated with the Bot. @@ -43,7 +43,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Update the state of specified private endpoint connection associated with the Bot. @@ -59,7 +59,7 @@ export interface PrivateEndpointConnections { resourceName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOptionalParams + options?: PrivateEndpointConnectionsCreateOptionalParams, ): Promise; /** * Deletes the specified private endpoint connection associated with the Bot. @@ -73,6 +73,6 @@ export interface PrivateEndpointConnections { resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/privateLinkResources.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/privateLinkResources.ts index d7b72b6ed7ee..1770e4da8cf6 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/privateLinkResources.ts @@ -8,7 +8,7 @@ import { PrivateLinkResourcesListByBotResourceOptionalParams, - PrivateLinkResourcesListByBotResourceResponse + PrivateLinkResourcesListByBotResourceResponse, } from "../models"; /** Interface representing a PrivateLinkResources. */ @@ -22,6 +22,6 @@ export interface PrivateLinkResources { listByBotResource( resourceGroupName: string, resourceName: string, - options?: PrivateLinkResourcesListByBotResourceOptionalParams + options?: PrivateLinkResourcesListByBotResourceOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/operationsInterfaces/qnAMakerEndpointKeys.ts b/sdk/botservice/arm-botservice/src/operationsInterfaces/qnAMakerEndpointKeys.ts index 43524e71a94d..d0dfc464a03a 100644 --- a/sdk/botservice/arm-botservice/src/operationsInterfaces/qnAMakerEndpointKeys.ts +++ b/sdk/botservice/arm-botservice/src/operationsInterfaces/qnAMakerEndpointKeys.ts @@ -9,7 +9,7 @@ import { QnAMakerEndpointKeysRequestBody, QnAMakerEndpointKeysGetOptionalParams, - QnAMakerEndpointKeysGetResponse + QnAMakerEndpointKeysGetResponse, } from "../models"; /** Interface representing a QnAMakerEndpointKeys. */ @@ -21,6 +21,6 @@ export interface QnAMakerEndpointKeys { */ get( parameters: QnAMakerEndpointKeysRequestBody, - options?: QnAMakerEndpointKeysGetOptionalParams + options?: QnAMakerEndpointKeysGetOptionalParams, ): Promise; } diff --git a/sdk/botservice/arm-botservice/src/pagingHelper.ts b/sdk/botservice/arm-botservice/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/botservice/arm-botservice/src/pagingHelper.ts +++ b/sdk/botservice/arm-botservice/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/botservice/arm-botservice/test/sampleTest.ts b/sdk/botservice/arm-botservice/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/botservice/arm-botservice/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/botservice/arm-botservice/tsconfig.json b/sdk/botservice/arm-botservice/tsconfig.json index 78ba1b1ce969..3e6ae96443f3 100644 --- a/sdk/botservice/arm-botservice/tsconfig.json +++ b/sdk/botservice/arm-botservice/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-botservice": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"