From 795f0e845440d7555be4d5f8d4224edeba26d867 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 14 Jan 2022 02:32:04 +0000 Subject: [PATCH] CodeGen from PR 17112 in Azure/azure-rest-api-specs Review request for Microsoft.BotService to update version stable/2021-03-01 and Preview/2021-05-01-preview (#17112) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix S360 issue * update * updatge * update * Zhixzhan/botservice spec patch fix (#1) * Add ActionType according to arm-rpc (#17078) * Add ActionType according to arm-rpc * add stable API version * add new rule XmsIdentifierValidation doc (#17076) * add new rule XmsIdentifierValidation doc * fix comment * fix comment * fix comment Co-authored-by: Tianxiang Chen * Creating new version( 2021-11-15) for passive stamp (#17044) * Adds base for updating Microsoft.RecoveryServices from version stable/2018-12-20 to version 2021-11-15 * Updates readme * Updates API version in new specs and examples * updating readme.md for C# * updating the api version * updating tag * updating active stamp tag * changes to fix checklist failures * changes to fix checklist failures-2 * Add batch tag for release track1 (#17111) * Adding 202 response code VM Patch operation.... (#16988) * adding 202 * 202 response for patch * example * [Go]Track2 modify readme.go.md 11 (#17099) * [Go]Track2 modify readme.go.md 11 * add go multiapi * remove addons * add directive * fix * beta to preview output-folder * Release microsoft.sql 2021 08 01 preview (#16968) * Adds base for updating Microsoft.Sql from version preview/2021-05-01-preview to version 2021-08-01-preview * Updates readme * Updates API version in new specs and examples * update default client tag to v5 * Generate the 2021-08-01-preview files from DSMainDev and commit * add new added ipv6 and example files * change "jobExecutionId": "5555-6666-7777-8888-999999999999" to "jobExecutionId": "5A86BF65-43AC-F258-2524-9E92992F97CA" in example files to pass the type validator * Add ListOperations.json example file * pass formatter npm pretty * update instanceFailoverGroups in the type of example files * remove ipv6 batch replace api due to arm concern. it will be in next version. * add x-ms-enum * Remove custom `ResourceGroupNameParameter` and replace them with the one from common-types (#16944) * remove custom resourceGroupNameParameter and replace them with the one from common-types * fix * move the directive that meant to work for go track 1 to readme.go.md * Revert "move the directive that meant to work for go track 1 to readme.go.md" This reverts commit bc9c13f8acdec3c8f29e5cd4a87bcefbfcf61f3a. * test * revert * add tag condition back * [Go] Delete saas track1 config (#17113) * [Go] Delete saas track1 config * fix * Update Go readme (#17061) Co-authored-by: Anat Gilenson * Added ParentId response header to File/Directory rename (#17119) * Revert dataset spelling change (#17124) * Dev datamigration microsoft.data migration 2020 09 01 preview (#16032) * Adds base for updating Microsoft.DataMigration from version stable/2021-06-30 to version 2020-09-01-preview * Updates readme * Updates API version in new specs and examples * add examples and change swagger * camel casing error (removing the resource since it is redundant) * added "systemData" property to the response of sqlMigrationService * adding isDataAction property in operationsDefinition * fixing Avocado error : removing unreferenced files * styling changes * adding systemData to DatabaseMigrations * suppressing lintDiff * Revert "styling changes" This reverts commit 4cba4308e6b3b4f35144f6ae28b4c760cd6f90f8. * formatting changes (after running npm run prettier) * adding v1 apis * adding v1 apis * Revert "adding v1 apis". Bad update This reverts commit 99b1f84465749a4948ece4cacfb63652b0cd5a4e. * Revert "adding v1 apis". Bad update This reverts commit 795344a819d2d72f3c86c3714274df48f5303205. * adding v1 paths in v2 spec * adding stable-2018 apis * updating api version in definitions * avocado error : removing unreferenced files * suppressing lintdiff errors R4013 and R4037 * removing subscriptioid parameter from v1 and referencing to susbscriptionid parameter from v2 (to resolve conflict) * adding v1 apis as a separate json file * adding a missing example for v1 spec * removing duplicate api (get operation) from v1 spec * Revert "removing duplicate api (get operation) from v1 spec" This reverts commit 545e6ff29239d3b33f393af8b8c4fd4021cebe1f. * avocado error : api versions correction * avocado error : adding definitions in readme and changing api version in v2 spec to 2020-09-01-preview * adding missing definitions and removing extra definitions in readme * removing operation path from v1 spec * trial : trying merging with 2021 stable version * nit errors in readme * updating api versions in definitions of 2021 stable version * removing operations api from v1 (stable 2021) * changing sqlMigrationInfo to sqlMigrationInformation in v2 swagger * Renaming FileShare to SqlFileShare in v2 spec * Renamimg BackupFileInfo to SqlBackupFileInfo in v2 spec * renaming BackupSeiInfdo to SqlBackupSetInfo in v2 spec * Renaming TrackedResource to TrackedResourceARM in the v1 spec * deleting duplicate subscriptionId parameter in v1 * sqlmigration casing error * referencing SystemData definition from the v2 spec * avacado error : removing unreferenced file Operations_List.json * adding custom-words.txt file * reverting adding custom-words.txt * exchanging positions of sqlmigration and datamigration in readme * adding sqlmigration in custom-words.txt * adding systemData to TrackedResource in v2 removing TrackedResourceARM from v1 and referring to v2 TrackedResource instead * adding "x-ms-azure-resource": true extension in DataMigrationService and Project definitions in v1 * changing veersion from 2020-09-01-preview to "2021-10-30-preview" * manually changing api version (to 2021-10-30)in readme * adding ooperations api to v1 spec * adding the subscriptionId parameter in v1 spec * adding operations_list in the examples (for v1) * Revert "adding ooperations api to v1 spec", adding the subscriptionId parameter in v1 spec, adding operations_list in the examples (for v1) This reverts commit b94a96d8f48edef45967a57050e09eb27f9ea0de, 40e80e0d2a8e9fab72443e3893a9f0712c224f0a, 7be34463aaf58418f4574d3df9288e64cd27c5e4 * removing x-ms-azure-resource extension * Revert "removing x-ms-azure-resource extension" This reverts commit 8bf42972d7a1f3e5f8f1f4bf0d1fad19b77a161c. * add subscriptionId to v1 spec * Revert "add subscriptionId to v1 spec" This reverts commit e3e729be0b1124875e279d9d718d8226dba2f8b8. * removing read only : true for systemData properties * setting readonly to true in systemData definition in v2 swagger. (note : the chnages in v2 swagger are done manually for now, change these from the RP side too) * renaming the specs to check if having the name datamigration.json has some importance * Revert "renaming the specs to check if having the name datamigration.json has some importance" This reverts commit a68c0c07d2a3f9932310eb910a683d1e824d7dfc. * adding "x-ms-azure-resource": true to trackedResource and removing it from datamigrationService and Project definition as they extend from trackedResource * correctly placing "x-ms-azure-resource": true * prettier check error on sqlmigration.json * referencing systemData from common-types/resource-management/v2/types.json#/definitions instead from v2 spec (to see if that affects the systemData error in cross-version) * Revert "referencing systemData from common-types/resource-management/v2/types.json#/definitions" This reverts commit 94641f1b36cc7828ea8efd21f4df89c282f51941. * keeping subscriptionId parameter in both specs (by renaming it in v2) * renaming subscriptionId to subscriptionIdParameter in the paths of v2 * casing error * using subscriptionIdParameter instead of subscriptionId in the examples of v2 * renaming subscriptionId to subscriptionidParameter in v2 example * Reverting the changes related to keeping subscriptionId parameter in both specs This reverts commit fa22043a2b4ca284466bacda244f19c087a78718, 13d549928711b2d85e776f0680a7347242582ac2, 2755f643ed32b766fbb98ed6a7fd814211aecea3, 6e74171367ddf0a4a9f7a6b36b8f41a65a2c7701, f3142b41b841793ae409a7e2d89d9bc4c262e9e7 * update tag in readme * renaming trackedResource to trackedResourceARM in v2 and restoring the trackedResource in v1 * Revert "renaming trackedResource to trackedResourceARM in v2 and restoring the trackedResource in v1" This reverts commit 269a4c3305c6e282bfa192b162b959d1b8083033. * removing system data and x-ms-azure extension from tracked resource (because making changes in the tracked resource will involove dsMianDev repo changes) * adding "x-ms-azure-resource": true to trackedResource of v1 * adding "x-ms-azure-resource": true to dataMigration service and project (because of the error : The 200 response model for an ARM PUT operation must have x-ms-azure-resource extension set to true in its hierarchy. Operation: 'Services_CreateOrUpdate' Model: 'DataMigrationService'. Location: Microsoft.DataMigration/preview/2021-10-30-preview/datamigration.json#L97) also, removing x-ms-azure-resource from trackedResource * Revert "adding "x-ms-azure-resource": true to trackedResource of v1" This reverts commit bd0fb9c3bb96a736712baaa71efd2e91c49375c0. and f2440eef137d7771217b9924ce941e876363afe9 (bad commit) * Revert "removing system data and x-ms-azure extension from tracked resource (because making changes in the tracked resource will involove dsMianDev repo changes)" This reverts commit e330db6a6abe2209d8d28a07da295267a036a9de. SystemData is required to be in trackedResource * Adding Scope Parameter to examples * Revert "Adding Scope Parameter to examples" This reverts commit b6c827585bb509306f2082e5686b31ee0333b182. * Adding Scope parameter in response of SqlMiGetDatabaseMigration.json * Adding Scope Parameter to other examples * ARM: Adding x-ms-secret: true to password (SqlFileshare and SqlConnectionInfomation), accountkey, authkey1 and authkey2 * Adding x-ms-pageable to DatabaseMigrations_ListByScope, Operations_List, SqlMigrationServices_ListByResourceGroup, SqlMigrationServices_listMigrations, SqlMigrationServices_ListBySubscription * Removing x-ms-secret from Authkeys * Adding x-ms-secret to authKeys in AuthenticationKeys and RegenAuthKeys defination * Suppressing Secret_Property model validation error * Adding suppress SECRET_PROPERTY in Suppression section * changing GET getMonitoringData to POST listMonitoringData * Removing location property from DatabaseMigration definition * New Cancel\Cutover operations with MigrationOperationId in Request body. * updating examples for cancel and cutover operations * Chaning SqlMigrationService_GetResourceState to SqlMigrationService_Get * Revert "Chaning SqlMigrationService_GetResourceState to SqlMigrationService_Get" This reverts commit d16dc91a39245cecc4289b206af070eccb74b783. * Changing GetResourceState to Get * Adding 2 namespaces 2 SqlMi Migration API and updating examples * Add Vm APIs, change operation Id of Mi and VM APIs and Update examples * Suppressing list by subscription DatabaseMigration LintDiff error * Adding discriminator to databaseMigrationProperties in order to separate SqlMi and SqlVm migrations * [nit error] changing SqlConnectionInfo to SqlConnectionInformation * nit error * updating the example SqlMiGetDatabaseMigration.json to use"kind" in order to resolve the error : Additional properties not allowed * updating all Mi and Vm examples to use "kind" in the properties * styling changes (for prettier check) * updating listMigrationsByService.json xample to use kind property * running prettier check * adding other properties in request along with kind in sqlVmCreateOrUpdateMax.json example * Revert "adding other properties in request along with kind in sqlVmCreateOrUpdateMax.json example" This reverts commit 8a47679fa45846b8bc41d7651c7c91e2f7ef943c. * keeping both kind and other properties in the request body for sqlMiCreateOrUpdateDatabaseMigrationMax.json * keeping both kind and other properties in all the examples * adding enums for commandType and taskType discriminator * adding x-ms-enum for commandType and taskType (v1) * adding remaining enum values for taskType and commandType * Removing List By Scope APIs for Mi and VM * Remove Delete APIs for SqlMi and SqlVm * Making DatabaseMigrationSqlVm_Cancel a x-ms-long-running-operation * Moving common properties to DatabaseMigrationProperties * Creating ResourceClass for SqlMi and SqlVm and updating the APIs accordingly * Suppressing LintDiff errors for SqlMi and SqlVm Resource Classess * Making x-ms-client-flatten: false for DatabaseMigration and other SqlMi and SqlVm Resource Class * updating parameters in examples: Services_checkChildrenNameAvailability.json and Services_CheckNameAvailability * v1 s360 errors * object_missing_required_property error: updating example services_Start.json * revert 81733a02cc88d52d69497fff3a5b7abafadedeee * prettier check * reverting all chnages related to "v1 s360 errors" * v1 s360 errors: adding missing properties to mongoDbConnectionInfo in common.json * nit error * v1 s360 errors: adding missing properties to sqlConnectionInfo in common.json * v1 s360 errors: adding missing properties to mySqlConnectionInfo in common.json * v1 s360 errors: adding missing properties to PostgreSqlConnectionInfo in common.json * v1 s360 errors: adding missing properties in MigratePostgreSqlAzureDbForPostgreSqlSyncTask.json * v1 s360 errors: removing problematic property from MigratePostgreSqlAzureDbForPostgreSqlSyncTask * v1 errors: adding missing properties in MigrateSchemaSqlServerSqlDbTask.json * v1 s360 errors: adding missing properties in MigrateSqlServerSqlDbTask.json and MigrateSqlServerSqlMITask.json * v1 360 errors: adding missing properties in projects.json * v1 s360 errors: adding missing properties in Services.json * v1 s360 error: adding missing properties in Tasks.json * v1 s360 errors: adding missing properties in TasksCommon.json * v1 s360 error: adding missing properties to MigratePostgreSqlAzureDbForPostgreSqlSyncTask.json * v1 s360 errors: adding items to events in "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError" * v1 s360 errors: removing required property * prettier check * nit Co-authored-by: Vasundhra Manhas Co-authored-by: Thakur Ashutosh Suman * [Hub Generated] Review request for Microsoft.Consumption to add version stable/2021-10-01 (#16900) * Adding The new three properties to the latest API version for RI Transactions * Error Fixes * Fixing Type errors * Changing billingMonth format * Add connectionProperties in GoogleAdWordsLinkedServiceTypeProperties (#17001) * Microsoft.Cdn : 2021-06-01 API (#16868) * Adds base for updating Microsoft.Cdn from version stable/2020-09-01 to version 2021-06-01 * Updates readme * Updates API version in new specs and examples * Update CODEOWNERS file (#1) * update CODEOWNERS file * update CODEOWNERS file * add new cdn code owner Co-authored-by: Jorin Mejia * add forwardingProtocol to OriginGroupOverride (#2) * Cache Behavior and Case Transform (#3) * add forwardingProtocol to OriginGroupOverride * added new cache behavior attributes and case transform enum values * update cache behavior * Swagger changes for enabling certname check and onboarding prevalidated customdomains * Fixing formatting - Swagger changes for enabling certname check and onboarding prevalidated customdomains * Correct input and output types of checkHostNameAvailability API * Set CA and SAN to readonly * Update ValidateSecretInput to include SecretVersion * Nit fix grammar * Swagger changes to move originResponseTimeoutSeconds property from afdendpoint to profile level * Remove redundant fields and mark certificate properties readonly * Reoganize parameters and update descriptions * Update examples * Fix typos and expand abbhreviations * Fix more typo * Update odatatype (#10) * Update odatatype * Update odatatype * Update typeName * camel casing typeName Co-authored-by: Chenglong Liu * Change country to countryOrRegion to avoid political concern according to CELA (#12) * Change country to countryOrRegion to avoid political concern according to CELA * Minor change to keep consistence Co-authored-by: Bo Zhang * Yunhe/cdn 2021 06 01 (#8) * add forwardingProtocol to OriginGroupOverride * added new cache behavior attributes and case transform enum values * update cache behavior * update route and route configuration override rule swagger definition * update * made changes to route and rule to remove EnableCache filed. To disable cache, leave CacheConfiguration to null. * add cache duration to route * update routeConfigOverride action * update route and action * update action swagger * update swagger spec * update examples * update comments * updated examples * server variable (#11) * wip server variable * server-variable udpates * server port transform * socket address * update server variable * resolve comments * revert unwanted change * Revert "server variable (#11)" (#16) This reverts commit d6eddf6a201df30dc2abe23e7083c4c158a8fb83. * [Azure CDN] Add missing customHttpsParameters field in CustomDomainProperties (#15) Co-authored-by: Bo Zhang * Swagger changes for adding secret type AzureFirstpartyManaged certifi… (#13) * Swagger changes for adding secret type AzureFirstpartyManaged certificate * Updating description for AzureFirstPartyManagedCertificate secret type * Updating description for AzureFirstPartyManagedCertificate secret type * resolving merge conflict * resolving merge conflict Co-authored-by: SINADELL * Fix multiple S360 correctness issues related to CDN (#17) * Fix multiple S360 corretness issues related to CDN * Fix privateEndpointStatus location issue Co-authored-by: Bo Zhang * Product Backlog Item 12546459: [AFDX][CDN][RP][SWAGGER] refreshValidationToken API for swagger and RP inconsistency * Product Backlog Item 12546473: [AFDX][CDN][RP][SWAGGER] domainValidationState of AFDDomainProperties swagger and RP inconsistency * Make description more readible * added transform values to all api versions (#19) * Product Backlog Item 12546377: [AFDX][CDN][RP][SWAGGER] Add CustomDomains property definition end EndpointProperties per swagger issue? (#20) * Fixing operations api swagger (#21) Co-authored-by: SINADELL * Change route and security policy to use ActivatedResourceReference for domains associated Routes and security policies can know if their associated domains are validated or not by using ActivatedResourceReference, which contains a property to indicate the domain validation state. * Add ActivatedResourceReference support Adding support to have a resource reference with a property to indicate whether the resource is active. To start with, this would indicate whether a domain referenced is active or inactive, but it can also be used for other purposes in the future. * 2021-06-01 ARM & SDK Fixes (#23) * fix incompatiable names * Revert "fix incompatiable names" This reverts commit 9a2bf2d0512338fdf7bc97bbaf2a4fcdd5a2ade5. * change CacheConfiguration naming to AfdCacheConfiguration * AfdCacheConfiguration -> AfdRouteCacheConfiguration, fix type for SDK issue * add format field to integer types * Add format field to integer types * IsCompressionEnabled -> isCompressionEnabled * responseBasedAFDOriginErrorDetectionSettings -> responseBasedAfdOriginErrorDetectionSettings * use camel casing for resource type * Add default response to delete operation * Update x-ms-name MatchVariable -> WafMatchVariable * Update Error Response to conform to spec * Update Error Response with additional fields * Update reference to error field in ErrorResponse * Fix semantics, validations, typos * Use camel casing and add 200 response code * Add remaining 200 response for delete and conform to operation spec * Add parent resource name in child resource Co-authored-by: Jorin Mejia * Fix merge conflicts (#24) Co-authored-by: Jorin Mejia * fix bug (#25) * Update codeowners, add read only field, add profileName to SecurityPolicyProperties * Merge Main Branch from Azure REST Specs (#26) * [PowerBIDedicated] Elaborate description and examples on capacity mode (#16131) * Elaborate description and exampleson capacity mode * PR fixes * Revert changes for 2017 version * update api scenario documentation (#16086) * add operation step * fix schema * restore OpTest * add cleanUpSteps & remove type * use draft-07 schema * refine propertyNames * add description * remove merge * fix copy/move * use property name * variable type * restore plain style * define Example and file reference in v1.1 * remove raw Example support * fix * rename to API scenario * restore entry * fix ref * swagger ase 2021 06 01 stable preview release (#16120) * Initial commit for 2021-06-01 and 2021-06-01-preview Initial commit for 2021-06-01 and 2021-06-01-preview * new version update * review comments changes. review comments changes. * [Quantum] Add job cost estimate (#16339) * copy existin api-version * update api-version ref * new feature * Revert "[Quantum] Add job cost estimate (#16339)" (#16340) This reverts commit 4df4b843dd2692aadd416dd9ede5979610c08be6. * Update description for ENUM_MISMATCH error code. (#16351) * [EdgeOrder] Update 2020-12-01-preview swagger with swagger correctness fix and other changes (#15962) * new api changes (#1) * new api changes * referer url change * EdgeOrder 2020-12-01-preview Swagger changes (#5) * readme changes * Swagger refresh and update examples * Change examples as per oav validations * Minor swagger modifications * Minor spacing adjustments * Set ModelAsString to true for enums and modify examples * Fix swagger lint validation error * Modify readme and examples * Modify readme.go.md * Update swagger * Minor prettier fix * Change python package version in readme * Fix spell check error * chanegs to enable forward and reverse shipping details in get order item call using odata filter * Swagger correctness fix with other changes (#25) * Swagger correctness fix with other changes * Return api field additions * Change expand description for listOrderItem calls Co-authored-by: Vaishnavi Janardhan * Fix semantic validation error in doubleEncryptionStatus (#30) * Mark parameters of shipping details as readonly (#35) * Additional properties swagger correctness fix (#43) Co-authored-by: sashanm <54701252+sashanm@users.noreply.github.com> Co-authored-by: t-vjanardhan <77781522+t-vjanardhan@users.noreply.github.com> Co-authored-by: Nidhi Jain Co-authored-by: nija-dev <67132984+nija-dev@users.noreply.github.com> Co-authored-by: Vaishnavi Janardhan * Update readme.md (#16349) * [Hub Generated] Review request for VideoAnalyzer.Edge to add version preview/1.1.0 (#16182) * Adds base for updating VideoAnalyzer.Edge from version preview/1.0.0 to version 1.1.0 * Updates readme * Updates API version in new specs and examples * Update AVA Edge Swagger to 1.1 release * fix a linter issue. * fix spelling mistakes * update the api version * update swagger with new changes * fix a bug in one of the ava properties. (#16365) * Swagger for Form Recognizer 2021-09-30-preview. (#16234) * Swagger for Form Recognizer 2021-09-30-preview. * Fix styling issues. * Fix styling. * Remove yml version. * Update Speaker Verification URL (#16348) * Update Speaker Identification URL (#16347) * Creator v1 Deprecated - Delete Swagger Docs (#16225) * Creator v1 Deprecated - Delete Swagger Docs Creator v1 Deprecated as of Sept 6 2021 - Delete Swagger Docs * Creator v1 Deprecated - Delete Swagger Docs Creator v1 Deprecated as of Sept 6 2021 - Delete Swagger Docs * [Hub Generated] Review request for Microsoft.ContainerInstance to add version stable/2021-09-01 (#16247) * Adds base for updating Microsoft.ContainerInstance from version stable/2021-07-01 to version 2021-09-01 * Updates readme * Updates API version in new specs and examples * Adding zones property to resource * Add zones property to relavent examples * Running prettier on modified examples * Adding x-ms-secret to password in responses * Changing parameters to use common types * Reverting changes since they introduced validation errors * Prettier check * Add managedIdentityResourceId to EventHubConnectionProperties (#16358) Co-authored-by: Amit Elran * Adding error responses (#16360) * [KubernetesConfiguration] Release 2021-11-01-preview with FluxConfigurations (#15999) * Adds base for updating Microsoft.KubernetesConfiguration from version stable/2021-03-01 to version 2021-10-01-preview * Updates readme * Updates API version in new specs and examples * Reference common definitions * Add fluxConfiguration to initial commit * Update readmes to new version * Add 409 conflict to scc * Update example api-versions * Add path example * Run prettier * Update dependsOn object body * Update readmes with 2021-09-01 * Change to lastSourceSyncedCommitID * Change to 2021-11-01-previe * [ACR] [New Api Version] add 2021-08-01-preview (#15990) * Initial commit for comparison with previous release * Add new swagger 2021-08-01-preview and examples * Swagger changes for Dataflow flowlets (#16251) * Swagger changes for Dataflow flowlets * Fix reference errors * Fix Lint checks * Separate changes for ADF and Synapse * Address Review Comment * Swagger changes for Synapse flowlets (#16335) * Swagger changes for Synapse flowlets * Add Flowlet to custom words * Address comments * Remove value attribute from certificate object (#15684) * Remove value attribute from certificate object * Fix prettier errors * Adding required property to some of the parameters we initially missed. (#16311) * Adding required property to some of the parameters we initially missed. * Adding required property to some of the parameters we initially missed. * Adding required property to some of the parameters we initially missed. * Adding required property to some of the parameters we initially missed. * Adding required property to some of the parameters we initially missed. * Adding required property to some of the parameters we initially missed. * Adding required property to some of the parameters we initially missed. * Adding required property to some of the parameters we initially missed. * Added new service versions for storage (#16298) * Added new service versions for storage * working on readmes * update * [Microsoft.HybridConnectivity] Promote 2021-07-08-privatepreview to 2021-10-06-preview (PublicPreview) (#16301) * Copy from 2021-07-08-privatepreview api from private repo * Promote 2021-07-08-privatepreview to 2021-10-06-preview * add expiresin custom word for linter fix * fix sdk generation failures * Add batch tag 10/14 (#16393) * add batch tag 10/14 * fix * revert the default tag change (#16398) * [Azure Maps] Timezone: Swagger improvement for SDK generation [Hub Generated] (#16057) * Rename with `x-ms-client-name` * Add extensible enum for timezone accept language * Rename operationId to have better method meaning Add x-ms-client-name for better explaining * Updated description for HasZone1970Location property * Removed Enum in model class name * Better naming for TimeTransitions * Updated x-ms-examples to be more friendly * Update Descriptions * Update method name * Update coordinates with collectionFormat csv * Modified sunrise, sunset type * Update wording for hasZone1970Location description * Use LatLongPair as reference * Modify exists definitions 1. Combined definitions with same structures into TimezoneResult, TimezoneId, ReferenceTime. * Update Examples to fix Model Validation * Rename to Timezone to be consistent * Update description for hasZone1970Location * Minor updates for name, type * Modified property to uppercase to match exmaples * Changed back to using RepresentativePoint Co-authored-by: Alex Tsao * Update to remove default value for enum RouteType (#16343) * [Synapse] - Add x-nullable:true for folder property (#16237) Co-authored-by: Dongwei Wang * Update readme.python.md (#16400) * Dev containerservice microsoft.container service 2021 09 01 (#16215) * Adds base for updating Microsoft.ContainerService from version stable/2021-08-01 to version 2021-09-01 * Updates readme * Updates API version in new specs and examples * Add gmsaProfile in WindowsProfile for AKS (#15976) * Add gmsaProfile in WindowsProfile for AKS * fix spell errors * Fix lint issue * Update readme.md for AKS 2021-09-01 * Expose a few more snapshot properties in 2021-09-01 swagger to match 2021-09-01 API (#16082) * Expose a few more snapshot properties in 2021-09-01 swagger to match 2021-09-01 RP API * Expose a few more snapshot properties in 2021-09-01 swagger to match 2021-09-01 RP API Co-authored-by: Charlie Li * Agent pool start/stop (#16105) * added examples for agentpool start/stop * fixed code styling * added 201 response code in examples * added 201 response code object * added missing parameter * updated description for power state and added title * added power state to request body properties * Update specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2021-09-01/managedClusters.json Co-authored-by: Matthew Christopher Co-authored-by: Matthew Christopher Co-authored-by: Charlie Li <39974812+chengliangli0918@users.noreply.github.com> Co-authored-by: Charlie Li Co-authored-by: rsamigullin <89222124+rsamigullin@users.noreply.github.com> Co-authored-by: Matthew Christopher * PR to make swagger changes for new event grid public SDK release (#16309) * create baseline commit * Add all the changes for new public SDK release * fix the version * fixing prettier check issues * address pr comments * fix arm version in readme * Add extra line * fix lintdiff issue * Adding suppression and fixing sdk readme * fix issues with go sdk path * fix a missing required and a description (#16421) * EventHub : New API version 2021-11-01 (#16363) * base commit for new api version 2021-11-01 * new api version 2021-11-01 changes * CI fixes * CI fixes * fix for Python SDK * added common def v2 * avocado fix * updated common types * update to address S360 * S360 fix for DisasterRecoveryConfigs * Revert "S360 fix for DisasterRecoveryConfigs" This reverts commit 2476975abd304ee89f1382ceaee280ad3a711e15. * Added SchemaRegistry API * CI fixes - Schemagroup * corrected Schemagroup group properties * reverted the proxyresource location change * Revert "reverted the proxyresource location change" This reverts commit ac79e8a163198742f32adfdc40cc11aa2e039e90. * addresing S360 swagger correctness fro operations and capture * updated description for datalake in capture * subscription format to uuid Co-authored-by: Damodar Avadhani Co-authored-by: v-ajnava * databricks: updating the Tags to be consistent (#16422) The other resources within this Swagger use the applicable Resource name however the Private Link resources use GET, DELETE and PUT - this fixes that so that these are consistent. * Fix Swagger correctness bugs. (#16280) * Created new API version for Monitor Action Groups (#16107) * Updated error response for Action Groups API * spacing * added missing fields to Action Group Resource spec * Added missing fields for action group resource in older version * Updated "resource" name * Removed changes to errorResponse * Removed errorObject * format * Updated required and default fields in Action groups spec * Update default value to boolean Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> * changes default value type to boolean * undo webhook receiver changes * Created new API version for action groups * Added event hub Receiver to Action groups spec * Updated readme.md for Monitor * Initial checkin for Post and Get test notification apis * Change to completed * Fix some errors * Fix a couple more issues * add x-ms-long-running-operation-options * Context fix * Context * Context * Context * revert unwanted changes since we don't own these * update API version in actionGroups json * update API version in action groups examples * Fix for Swagger PrettierCheck failures * Fix the description of the RG name para * Remove the dupe resourcegroupname para * Another attempt to fix the description * PR comments * fix json format * Fix json * Lets revert the resource descrilption * Fix autorest exception and suppress Lint failures for error response schema * Fix for prettier check * Add providers * Used common types for definitions and parameters * fix lint errors for incompatible parameters * Revert Resource definition update to resolve Lint errors * Revert package tag to fix build break * Update API reference in latest package * PR comment * fix build break because didn't remove the createdBy from the sample * PR comments * Fix typo * Validation errors * Fix errors * Fix errors * Fix style * Change api name * Fix errors * Change the uri * Change the api name Co-authored-by: Ritwik Rajendra Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> Co-authored-by: Thomas Pham * Removed OnvifDeviceGetRequestBody and OnVifDeviceDiscoverRequestBody (#16371) * Removed OnvifDeviceGetRequestBody and OnVifDeviceDiscoverRequestBody * adding required to discoverduration * removing assetsink * making discoveryDuration optional * Add x-ms-pageable to AccessControl List operations (#16416) * Add x-ms-pageable to AccessControl list operations * remove x-ms-pageable from roleDefinitions List operations * Adding back category level samples (#16389) * Adding back category level samples Adding back category level samples * Adding reference to newly added sample files Adding reference to newly added sample files * Tries to fix prettier violations * Remove location field for sub/management group level * Tries to fix prettier by converting tab to spaces * Add track2 batch 4 mysql-->cognitiveservices (#16431) * Add track2 batch 4 mysql-->cognitiveservices * resourcehealth-->sqlvirtualmachine * Fix AVA 2021-11-01 example files (#16432) * fix examples * fix prettier checks * Api Management 2021-08-01 Stable API-VERSION (#16353) * Adds base for updating Microsoft.ApiManagement from version preview/2021-04-01-preview to version 2021-08-01 * Updates readme * Updates API version in new specs and examples * [Azure Maps] Route: Swagger improvement for SDK generation [Hub Generated] (#16193) * Route: Rename parameter/client names * Route: Rename request body names * Route: Model a few objects as enum * Route: rename magnitudeOfDelay * Route: update startPointIndex/endPointIndex docstrings * Route: departureTime/arrivalTime to date-time * Route: Fix name in typescript.md * Route: modify docstrings for firstInstructionIndex/lastInstructionIndex * Route: rename turnAngleInDecimalDegrees * Route: Add docstrings for RouteSection/RouteLeg * Route: rename report object * Route: add friendly x-ms-examples key name * Route: rearrange definitions for better review * Route: remove language reference in hyperlink * Route: Remove repeated descriptions of batch API * Changed model name RouteDirectionsSummary to RouteSummary * Rename to RouteRangeResponse * Add max/min values for efficiency * Name changing with x-ms-client-name * Minor update * Route: naming fix * renamed all kWh to KwH * Route: add default values * Route: Fix wrong name * Route: Change response type name * Updated name and descriptions for route attributes * Remote language in URL * Route: definition name changed for type name * Route: keep the operations for maintaining SDK consistencies * Route: Change response object names * Route: Fix parameter type * Common: Add more definitions for better client type name * Common: Add description for query parameter * Route: Just rename RouteSummary Definition * Common: Redo the naming for batchItems * Route: add names for x-ms-enum * Route: change all floats to doubles (verified in backend) * Route: use collectionFormat for route range api * Route: rename operationIds to remove Post wording * Modified two method names * Route: update vehicleCommericial's client name * Route: update description/client name for carTrain Co-authored-by: Alex Tsao Co-authored-by: Daniel Rocha * [Azure Maps] Weather: Swagger improvement for SDK generation [Hub Generated] (#16148) * Modified AirQuality * Modified AirDetails * renaming variables for Current Condition * 1. Rename to model to WeatherValue 2. Renamed to IconCode definition * Rename properties to description(s) for consistency * Rename model to weatherValueRange * Renamed to Forecast for better self explaining * Better naming/self explaining for values * Update name fpr dbz * Add enum for UnitType, PrecipitationType, IconCode * Updated example files * Fix CI errors 1. Add new word to avoid error checks failing 2. Updated with "x-ms-client-name" to fix CI errors * Update according to review feedbacks 1. Removed duplicate enum attributes 2. Updated descriptions * Update IconCode * Update x-ms-exmaple for better description * Update Enum * add name for enum * Update according to feedback 1. Update all `query` to collectionFormat 2. Set `readOnly=true` for all response 3. Create PastHoursTemperature model for opimization * Update name Co-authored-by: Alex Tsao * [Hub Generated] Review request for Microsoft.Marketplace to add version stable/2021-10-01 (This is internal data plane service inside Microsoft.Marketplace RP) (#16306) * New Swagger Spec File * New Swagger Example Spec File * New Readme Config File * first commit * fix * fix * examples * fix * words * fix * spell * pretty * fix * pretty * fix * comments * spelling * Fix check access response (#16428) * fix check access response * Add DefinitionsPropertiesNamesCamelCase suppression role Co-authored-by: Prince Gupta * Move QuestionAnswering 2021-07-15-preview to main (#16411) * move questionAnswering 2021-07-15-preview to main * update version in examples * [Hub Generated] Review request for Microsoft.KeyVault to add version preview/2021-06-01-preview (#16399) * Bypass incompatible responses * Add missing path * Add version info * Removing undesired 404 * add "x-ms-secret": true to secret field (#16436) * add "x-ms-secret": true to secret field * remove breaking change prop * Update example Co-authored-by: Nan Jiang * Add missing Opt-in APIs S360 (#16362) * add missing APIs S360 * fix json validation error * revert casing change * fix validation errors * run prettier * [Hub Generated] Review request for Microsoft.AppPlatform to add version preview/2021-09-01-preview (#16149) * Adds base for updating Microsoft.AppPlatform from version preview/2021-06-01-preview to version 2021-09-01-preview * Updates readme * Updates API version in new specs and examples * Add new changes for 2021-09-01-preview * Fix some validation errors * Use collection for loadedCertificates * Fix typo * Update readme for new api version autorest generating * name update * name update again * name update again again * rename storageProperties to properties * add systemData * fix * fix lint * resolve comments * fix reference link * fix * add x-ms-secret and x-ms-mutability annotations to accountKey * fix lint Co-authored-by: Wenhao Zhang Co-authored-by: Xuyang Cao * Update readme.python.md (#16451) * Update readme.python.md * config readme * [Hub Generated] Review request for Microsoft.BotService to add version preview/2021-05-01-preview (#16012) * fix some error * update * update * update example * [Azure CDN] Add missing customHttpsParameters field in CustomDomainProperties for versions after 2019-06-15 (#16129) Co-authored-by: Bo Zhang * First time adding VideoIndexer to public repo (#16439) * First time adding VideoIndexer to public repo * Fix spelling * Fix more spelling * remove preview only api for now * [Hub Generated] Review request for Microsoft.TimeSeriesInsights to add version preview/2021-03-31-preview (#16415) * Fix S360 errors in 2021-03-31-preview * Fix prettier check * [network] `2021-02-01-preview-only` tag configuration for Python (#16375) * test * test * Update readme.python.md * Update readme.python.md * Update readme.md * fix * Update readme.python.md Co-authored-by: 00Kai0 Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> * Add Change Analysis API version from private repo (#16160) * Add API versions from private repo * Fix prettier and avocado validation report * Fix prettier and avocado validation report * push manifest from private repo * Make changes for public repo * Update to correct api-version' * update agent vm image in pipeline yml (#16467) * Adding Microsoft.Chaos API Version 2021-09-15-preview. (#16453) * [baseline] Microsoft.Chaos private preview API Version 2021-09-15-preview. * msft.chaos PublicPreview API 2021-09-15-preview * Add neccessary readme's from swagger tool branch generation. * remove artifiact resource from public preview. * fix static linter issues. * [Hub Generated] Review request for Microsoft.Security to add version preview/2021-07-01-preview (#16455) * . * . * readme.python config (#16471) * Add text analytics v3.2-preview.2 API (#15736) * Add text analytics v3.2-preview.2 API * CR comments * Make project and deployment names required parameters * Fix projectName and deploymentName Rename projectName and deploymentName in input to project-name and deployment-name Co-authored-by: Omar Elhariry Co-authored-by: Kareem Yousef * Mhsm doc changes (#16444) * backuprestore 7.3 preview changes * remove Go track 1 auto-generation * 7.2 stable description * lint swagger errors Co-authored-by: Joel Hendrix * [Hub Generated] Render v1/v2 reconciliation (#16263) * render v1.0 centric updates multiple zooms differentiated by description removed * revert composition of GetCopyrightResult to resolve weird validation issue * add available tilesets into tilesetId enum * address render review * update the input files * seperate 1.0 tag * rename examples so the names don't clash and OpenAPI doc gen don't freak out, correct missing api in v2.1, remove /map/imagery in v2.1 as it should not be there * see if setting unique operationIds resolves this fragile doc gen * update custom-words for spell-check to pass * improve sample names * correct sample reference * remove V21 from operation ids Co-authored-by: Taras Vozniuk * [Microsoft.DeviceUpdate] Added private Network RP API for Private Endpoint support (#16396) * Added internal Network RP model and API * Fixed semantic validation error * prettier run * Added list operation for NRP-only proxy type * Linter fixes * Removed properties requirement * Removed read-only flags * Removing required from resources * More required properties * More c&p error fixes * Added missing property definition for remote proxy * Wrong place for provisioning state * Rogue space * Fixed an example * Another rogue space * Added internal note to descriptions * Adding missing identity properties and ExtensionTopics operation (#16469) * Adding missing identity properties and ExtensionTopics operation * fixing prettier check issues * Add identity to topic * Add system data to Extension topic response * fix lintdiff issue * fix kusto pool operation id (#16477) * Update Microsoft.Chaos API Version 2021-09-15-preview types/experiment.json (#16480) * Update azure-pipelines.yml to use ubuntu-20.04 (#16485) * Update azure-pipelines.yml * Update ShouldSendPRToMain.yml * Update BranchProtectionForPrivateRepo.yml * Update Chaos Client Name + Update outdated examples. (#16501) * publish Microsoft.AVS 2021-12-01 API (#16426) * copy 2021-06-01 API * replace "2021-06-01" with "2021-12-01" * add 2021-12-01 changes * update readme * add go * add java * fix go * Network may release: monthly branch release from Azure Networking side. (#16395) * Adds base for updating Microsoft.Network from version stable/2021-03-01 to version 2021-05-01 * Updates readme * Updates API version in new specs and examples * Add routing intent resource to 05-01 (#15998) * add routing intent resource to 05-01 * prettier fix * fix api version in examples * Update Exclusion Match Variable enum to support new values (#16124) * Adding new SKU values (#16112) * Adding new SKU values * Fixing basic in Tier(not name) Co-authored-by: Ishani Gupta * Update WAF Policy Exclusions to include RuleSet/RuleGroup/Rule hierarchy (#16154) * VNet Encryption: Add nic flag, vnet property, vnet peering property (#16224) * vnet encryption change * change api version * fix prettier check * add type object for encryption * remove circle (#16307) Co-authored-by: Weiheng Li * move to new branch (#16194) * Missed property added to LoadBalancerBackendAddress and new API (#16334) * Updated load balancer swagger with missing backendAddress property and queryInboundNatRulePortMapping API * Fixed example for QueryInboundNatRulePortMapping API * Fixed warnings * Revert "Fixed warnings" This reverts commit e3e4cac4b19f47452a2b24abfdf9e1e09d041fca. * Revert "Fixed example for QueryInboundNatRulePortMapping API" This reverts commit 5823b77f681534fbda8010901496886c88b81343. * Revert "Updated load balancer swagger with missing backendAddress property and queryInboundNatRulePortMapping API" This reverts commit e3f5bb3ca403ed5045b11bcde59d7b54975ae117. * Put changes into correct API version * Fixed lint diff errors * Fixes based on CR * Fixes based on CR * Fixed warnings * Fixed example * prettier * Fixed spelling * initial PR to the new release branch (#15842) * initial PR to the new release branch * moved body to end of request parameters, changed api version number in examples * Added action name for the list idps filter values * changed to match camel casing for the action added * fixed CR issues * fixing auto checks * fixed ARM cr issues * fixing the resource type to match specification * Isgu/fix/new branch SKU (#16410) * changes in 05 branch * Revert "Adding new SKU values (#16112)" This reverts commit bdf897a9ee38f612e97e84c2090447de0e3b1c79. Co-authored-by: Ishani Gupta Co-authored-by: Ritvika Reddy Nagula Co-authored-by: tejasshah7 <49326906+tejasshah7@users.noreply.github.com> Co-authored-by: Ishani Gupta Co-authored-by: Ishani Gupta Co-authored-by: dtuCloud Co-authored-by: Weiheng Li Co-authored-by: Weiheng Li Co-authored-by: Henry Chen Co-authored-by: irrogozh Co-authored-by: amosarbiv-work <76393841+amosarbiv-work@users.noreply.github.com> * Fixed proxy paths (#16496) * For Add cases, 404 should be error response (#16488) For AddConnectionToGroup and AddUserToGorup, if connection does not exist, or user does not exist, 404 should be considered as error response. * replace resource with proxyresource (#16325) Co-authored-by: Alex Goldschmidt * Add Microsoft.ResourceConnector [Appliance] 2021-10-31-preview API (#16384) * Add Microsoft.ResourceConnector [Appliance] 2021-10-31-preview API * Run prettier on violation files * Add SCVMM to custom-words.txt * Fix validation issues * Fix prettier issue with AppliancesListClusterUserCredential.json * Add multi API section for go readme and update namespace for python readme * Update Example files to be more accurate * Add None to Managed Identity typ in parity with other Azure Arc Resources * Add default value as AKSEdge for distro * Adding type object for ApplianceListResult * Update Identity to use SystemAssignedServiceIdentity from common-types v3 managedidentity.json * Reverting to using custom Identity * Update readme.md * Update readme.python.md Co-authored-by: Anirban Thakur Co-authored-by: Yiming Lei <59104634+RAY-316@users.noreply.github.com> * Josefree doc update (#16457) * Create Sample Directory Structure for Swagger * Delete Sample Directory Structure for Swagger * Create Sample Directory Structure for Swagger * Update Getting started with OpenAPI specifications.md * Delete Sample Directory Structure for Swagger will reuse this wiki https://github.com/Azure/azure-rest-api-specs/wiki#directory-structure, instead of creating a new one. * Update Getting started with OpenAPI specifications.md reuse this wiki for sample directory https://github.com/Azure/azure-rest-api-specs/wiki#directory-structure * Add MDE Onboarding API to Microsoft.Security (2021-10-01-preview) (#16433) * Rename 'whitelist' * add missing 'Group' in renamed file * add mdeOnboarding API - 2021-10-01-preview * fix json format * fix PR issues * add List operation * change to plural, set default resource type name * mismatch between GET and LIST examples * made descriptions clearer, removed unused parameter * defined explicit parameters * delete unused schema Co-authored-by: Erel Hansav * [Hub Generated] Review request for Microsoft.Insights to add version stable/2021-10-14 (#16417) * Adds base for updating Microsoft.Insights from version preview/2020-06-02-preview to version 2021-10-14 * Updates readme * Updates API version in new specs and examples * Fixing a relative path * Pascal casing for the resource provider name * Attempt at fixing R4018 * ADLA RP October Swagger KPI fixes (#16459) * swagger fix * 2016 patch Co-authored-by: Jimmy Xie * Remove readonly on segment length property (#16513) * remove preview tag (#16441) * Disable replay attack checkfor VPN gateway (#16515) * [Hub Generated] Review request for Microsoft.AppPlatform to add version preview/2021-09-01-preview (#16468) * Add dump API * add new line at the end of line * change cases * typo * response * add api for start/stop azure spring cloud instance * fix lint error Co-authored-by: Yinglue Zhang Co-authored-by: caiqing Co-authored-by: YinglueZhang-MS <78456380+YinglueZhang-MS@users.noreply.github.com> * Kusto: Swagger readonly cosmetics changes (no breaking changes) (#16405) * Kusto: Swagger readonly cosmetics changes * supress * prettier * fix 2017-09-07-privatepreview examples * fix 2018-09-07-preview model * 1 * 1 * [Microsoft.Security/Automations] Add AssessmentsSnapshot & SubAssessmentSnapshot data types (#16489) * Add SubAssessment event source type and add more automations examples * Change Location isReadOnlu to false * Test * Add new read/write location and add new type TrackedResourceLocation * Minor * minor * prettier fixes * Change variable name to TrackedResourceLocation * Change type name TrackedResourceLocation to AzureTrackedResourceLocation * Update automations example * Add SecureScores & SecureScoreControls as new supported datatypes in Automations resource * [ASC.Automations] add new data type RegulatoryComplianceAssessment * Add Secure Scores and Regulatory Compliance snapshot data types * Changes * minor fix * syntax fixes * [Microsoft.Security/Automations] Add AssessmentsSnapshot & SubAssessmentSnapshot data types * minor * minor * minor * minor * [Hub Generated] Public private branch 'dev-security-Microsoft.Security-2021-07-01' (#16435) * Adds base for updating Microsoft.Security from version preview/2021-05-01-preview to version 2021-07-01 * Updates readme * Updates API version in new specs and examples * Adding securityConnectors private API * Update the readme.md * adding custom word * Update Security Connector model in examples * Update main security connectors model with new organizational data properties, update examples as well. * added new offerings * fix pathing * fix offering name in all examples * add docs for patch endpoint * add system data resource * Remove duplication * Resolve tools issues * Change bool to boolean * Fix model validation errors * Fix lint error * CR fixes. Move systemData to root of object. Export identity type to definition * remove extra bracket * fix bracketing and pathing * lint fixes * fix camel case for linting * Fix systemData examples Co-authored-by: Sapir Elmakayes <32778998+SapirElmakayes@users.noreply.github.com> Co-authored-by: Sapir Elmakayes * Azure Maps - [Hub Generated] Review request for Traffic to add version preview/1.0 (#16128) * Modified method GetTrafficFlowSegment to remove the Result type and return the data type directly * Revert "Modified method GetTrafficFlowSegment to remove the Result type and return the data type directly" This reverts commit 46bc557383238dad2cd4b5d0a0040fdc754fdb79. * Flattening and renaming of several components within Traffic Segment Flow * Flattened the client for Traffic Incident Detail * More changes in flattening, now for TrafficIncident and Detail * More changes in flattening, now for TrafficIncident and Detail * More feedback addressed * prettier fixes * Clarified doc string * Added start and end time for Traffic incident * Added friendly names for x-ms-examples * Fixed avocado bugs, added query parameter as number array * Added collectionFormat to all comma separated parameters * Small changes to improve codegen * Prettier fixes * Fixed all comments from latest PR review Co-authored-by: Daniel Rocha * Adding Swagger for Short Code API (#15312) * saving progress * fixing typos * fixing typos * fixing typo * running prettier * small comment change * minor fixes * minor fix * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * saving progress * moving shortcodes files to its own folder * saving progress * adding basic readme file * Changing message details to support adding examples for contenttypes, adding estimatedRampUpTime and directionality * adding format for urls, emails and phone numbers * renames on different fields * adding back helpMessage and optOutMessage * removing tel format * S360: fix missing accesslevel field in requestResponse (#16464) * fix missing accesslevel field in requestResponse * fix another s360 issue * fix fields in example files as well * update custom words * [Hub Generated] Review request for Microsoft.DocumentDB to add version stable/2021-10-15 (#15733) * Adds base for updating Microsoft.DocumentDB from version stable/2021-06-15 to version 2021-09-15 * Updates readme * Updates API version in new specs and examples * Add support for fetching continuous backup information for latest restorable timestamp. * Adding locations API and backupRedundancy * Fixing ref * Add 10-15 Preview along with ClientEncryptionKey management changes * Renaming 2021-09-15 api version to 2021-10-15 * Fixing some more renames * fix validation checks * add clientencryptionkeys to custom-words * initial commit * Swagger specifiations * readme file updated * Review comments addressed * Added TotalThroughputLimit property to Database Create and Update * Rebased and added type to capacity * Added changes to preview folder as well * Added changes to missing files * initial checkin of base version * Adding examples; /deallocate and /start api in swagger * update readme.md file * Removing 2021-10-15-preview changes * managed cassandra swagger changes for GA * Fixing linter issues * minor description fixes * adding missing example * add stable and preview swagger * revert to Thu Sep 9 2021 change * fix linter errors in swagger * fix validation errors * validation fixes * remove fetchNodeStatus from stable * remove unused example file, fix validation error * Fixing the spell check and formatting issues * remove /repair api, make /command async * remove unreferrenced example json * remove pageable link from /status api * remove backups api, add cassandraAuditLoggingEnabled property * add cassandraAuditLoggingEnabled property * make /status api async, minor fixes * remove async tag to /status * remove connectivity property, add Ldap as preview * remove unreferenced example files * use guid in subid for examples * add backupStorageCustomerKeyUri property * fix api response code * remove ldap * Changing operationId for locations API * review comments Co-authored-by: REDMOND\amisi Co-authored-by: Anuj Toshniwal Co-authored-by: Abhijit Karanjkar Co-authored-by: Praful Johari Co-authored-by: visunda Co-authored-by: Vivek Sundararajan Co-authored-by: vivek-microsoft <32766101+vivek-microsoft@users.noreply.github.com> * [SignalR] Add stable version 2021-10-01 (#16044) * init * remove * Add 2021-10-01 * Minor update * Add 2021-05-01-preview swagger API support for Autoscale newly added fields and new controller path. (#16463) * Initially cut, cloned from know existing GA bits (IE \specification\monitor\resource-manager\Microsoft.Insights\stable\2015-04-01) * rev API version, add new controller API path, and update JSON showing newly added predictiveAutoscalePolicy field * [QuotaRP] Fix LimitObject polymorphism (#16438) * Fix LimitObject polymorphism * move properties out of allOf * add type to LimitObject * value is required * Updating Operations Tag to QuotaOperations. * Update quota.json Updating Summary field for operations. Co-authored-by: Rahul Singh <53578268+rahuls-microsoft@users.noreply.github.com> * resolving s360 item (#16476) * resloving s360 itme * added prettier-fix changes Co-authored-by: Gaurav Bang * fix typo: readonly to readOnly (#16548) Co-authored-by: Xuyang Cao * [Hub Generated] Review request for Microsoft.Security to add version preview/2021-07-01-preview (#16549) * Adds base for updating Microsoft.Security from version preview/2021-07-01-preview to version 2021-07-02-preview * Updates readme * Updates API version in new specs and examples * Fix account id to account ids * Minor * Minor Co-authored-by: Sapir Elmakayes * [Hub Generated] Review request for Microsoft.Maps/Microsoft.Maps to add version preview/2.0 (#16487) * added extra fields to JSON list data response in docs * added content-type field to request header * took out content type from header field due to errors; JSON reponse fields for user Data are ready to commit * [Hub Generated] Review request for Microsoft.Maps/Microsoft.Maps to add version preview/1.0 (#16446) * Remove mobility * Remove mobility * Remove mobility * Remove mobility reference * Trigger another pipeline? * Remove more mobility * [Hub Generated] Review request for Search to add version preview/1.0 (#16283) * First set of changes for Search API * More changes to address review * More changes to address review * More changes to address review * Reset searchAlongRoute name * Fixed roadUse * Fixed OAV error * Minor fixes * Fixed fuzzy search errors from review * Changes in Reverse Search Address mode * More changes from the review * Checkpoint commit * Fixed floating point numbers, dataSources field * Modified boundingBox to avoid causing model validation failure * Fixed more examples * Fixed more broken examples * Fixed more examples * Fixed more examples * Prettier fixes * Re-add street and buildingNumber * Revert client body flattening, add names for x-ms-enum * Removed locale-specific URLs * More changes to address review * More changes to address review * Minor fixes * More changes from the review * Fixed floating point numbers, dataSources field * Fixed final issues for review * Modified boundingBox to avoid causing model validation failure * Prettier fixes * Revert client body flattening, add names for x-ms-enum * Reflect operationId changes in Readme.typescript * Keep operations in TypeScript to be consistent for all languages * Update sdk generation to track2 * Prettier fix * Revert "Update sdk generation to track2" This reverts commit 5ede489e84a1820c06f7c26f70bf1bc9c2a3ec86. * Remove .net sdk generation since it is not used * Added prefix to Operation Id. * Fixed couple of operationIds * Renamed PolygonResponse * Address PR comments * More changes due to PR Review * Testing new batch naming * Fixed bug in searchInsideGeometry * Testing new batch naming * Fixed batch naming that didn't work well. * Renamed searchInsideGeometryBody to geometry * Finished all PR review comments, added changes to Common and Route Co-authored-by: Daniel Rocha Co-authored-by: alankashiwa * Removed redundant parameters from data plane account update example (#16552) Co-authored-by: Shailesh Kelkar * Rperezzamora/small fix for short codes (#16554) * making numberType on ShortCode model object extensible enum * Revert "maki… Co-authored-by: Zhixiang Zhan Co-authored-by: Yuwei Zhou Co-authored-by: tianxchen-ms <403562789@qq.com> Co-authored-by: Tianxiang Chen Co-authored-by: bpramod Co-authored-by: Jiahui Peng <46921893+Alancere@users.noreply.github.com> Co-authored-by: subbartt <54743354+subbartt@users.noreply.github.com> Co-authored-by: Ji Wang Co-authored-by: Dapeng Zhang Co-authored-by: Anat Gilenson <53407600+anat-gilenson@users.noreply.github.com> Co-authored-by: Anat Gilenson Co-authored-by: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Co-authored-by: Omar Rodriguez <73562205+omrodrig@users.noreply.github.com> Co-authored-by: vasundhraManhas <42461257+vasundhraManhas@users.noreply.github.com> Co-authored-by: Vasundhra Manhas Co-authored-by: Thakur Ashutosh Suman Co-authored-by: Theertharaj <40805847+thramu@users.noreply.github.com> Co-authored-by: Frey-Wang Co-authored-by: Jorin Mejia Co-authored-by: Jorin Mejia Co-authored-by: yunheMsft <69871746+yunheMsft@users.noreply.github.com> Co-authored-by: SINADELL Co-authored-by: Sindhuri Co-authored-by: Jessica Li Co-authored-by: Chenglong Liu <48578056+ChenglongLiu@users.noreply.github.com> Co-authored-by: Chenglong Liu Co-authored-by: t-bzhan <61817681+t-bzhan@users.noreply.github.com> Co-authored-by: Bo Zhang Co-authored-by: rrahulms <42217269+rrahulms@users.noreply.github.com> Co-authored-by: laurent-mic <41535579+laurent-mic@users.noreply.github.com> Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com> Co-authored-by: sameerpatro <88674399+sameerpatro@users.noreply.github.com> Co-authored-by: George Moussa Co-authored-by: Ray Chen Co-authored-by: Vaishnavi Janardhan Co-authored-by: sashanm <54701252+sashanm@users.noreply.github.com> Co-authored-by: t-vjanardhan <77781522+t-vjanardhan@users.noreply.github.com> Co-authored-by: Nidhi Jain Co-authored-by: nija-dev <67132984+nija-dev@users.noreply.github.com> Co-authored-by: Vaishnavi Janardhan Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com> Co-authored-by: giakas Co-authored-by: Paul Hsu Co-authored-by: Youssef Shahin Co-authored-by: Nikki Zuko <38327895+nizuko@users.noreply.github.com> Co-authored-by: joseph-porter <69636506+joseph-porter@users.noreply.github.com> Co-authored-by: Amit Elran Co-authored-by: Amit Elran Co-authored-by: SanjaMalesevic <53555921+SanjaMalesevic@users.noreply.github.com> Co-authored-by: Jonathan Innis Co-authored-by: savaradh <60020169+savaradh@users.noreply.github.com> Co-authored-by: esdhrgl1984 <44240496+esdhrgl1984@users.noreply.github.com> Co-authored-by: vasanthrajams <60414148+vasanthrajams@users.noreply.github.com> Co-authored-by: larisaborodina <58491292+larisaborodina@users.noreply.github.com> Co-authored-by: Young Bu Park Co-authored-by: JiahuiPeng <46921893+804873052@users.noreply.github.com> Co-authored-by: Alex Tsao Co-authored-by: Alex Tsao Co-authored-by: AriZavala2 <77034370+AriZavala2@users.noreply.github.com> Co-authored-by: Dongwei Wang Co-authored-by: Dongwei Wang Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com> Co-authored-by: Chou Hu Co-authored-by: Charlie Li <39974812+chengliangli0918@users.noreply.github.com> Co-authored-by: Charlie Li Co-authored-by: rsamigullin <89222124+rsamigullin@users.noreply.github.com> Co-authored-by: Matthew Christopher Co-authored-by: rohkuma-microsoft <90003118+rohkuma-microsoft@users.noreply.github.com> Co-authored-by: Ajit Navasare Co-authored-by: Damodar Avadhani Co-authored-by: v-ajnava Co-authored-by: Tom Harvey Co-authored-by: Samuel Kuang Co-authored-by: Ritwik Rajendra <21337621+ritwik8119@users.noreply.github.com> Co-authored-by: Ritwik Rajendra Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> Co-authored-by: Thomas Pham Co-authored-by: hivyas <61890270+hivyas@users.noreply.github.com> Co-authored-by: Anne Thompson Co-authored-by: LarryZhang19 <35974877+LarryZhang19@users.noreply.github.com> Co-authored-by: Samir Solanki Co-authored-by: Alan Po-Ching Yang Co-authored-by: Daniel Rocha Co-authored-by: Ishay Dahan Co-authored-by: prince3332 Co-authored-by: Prince Gupta Co-authored-by: Rohan Kulkarni <36928710+rokulka@users.noreply.github.com> Co-authored-by: jiacheng-L <71623842+jiacheng-L@users.noreply.github.com> Co-authored-by: najian Co-authored-by: Nan Jiang Co-authored-by: swvenkats <87731907+swvenkats@users.noreply.github.com> Co-authored-by: Jie Shen Co-authored-by: Wenhao Zhang Co-authored-by: Xuyang Cao Co-authored-by: tabenari <73182585+tabenari@users.noreply.github.com> Co-authored-by: Kyle Rush Co-authored-by: Yuchao Yan Co-authored-by: 00Kai0 Co-authored-by: Jenny Winkler <52216782+jewinkle@users.noreply.github.com> Co-authored-by: Mario Hernandez Co-authored-by: kerend Co-authored-by: korosensei Co-authored-by: Omar Elhariry Co-authored-by: Kareem Yousef Co-authored-by: Maddie Lucas <85301813+maddiemlucas@users.noreply.github.com> Co-authored-by: Joel Hendrix Co-authored-by: Taras Vozniuk Co-authored-by: Taras Vozniuk Co-authored-by: darkoa-msft <61987922+darkoa-msft@users.noreply.github.com> Co-authored-by: Wan Yang Co-authored-by: Zhenglai Zhang Co-authored-by: Cameron Taggart Co-authored-by: Mikhail Co-authored-by: Ritvika Reddy Nagula Co-authored-by: tejasshah7 <49326906+tejasshah7@users.noreply.github.com> Co-authored-by: Ishani Gupta Co-authored-by: Ishani Gupta Co-authored-by: dtuCloud Co-authored-by: Weiheng Li Co-authored-by: Weiheng Li Co-authored-by: Henry Chen Co-authored-by: irrogozh Co-authored-by: amosarbiv-work <76393841+amosarbiv-work@users.noreply.github.com> Co-authored-by: Liangying.Wei Co-authored-by: alexgoldschmidt <33302838+alexgoldschmidt@users.noreply.github.com> Co-authored-by: Alex Goldschmidt Co-authored-by: anirbanthakur <89666721+anirbanthakur@users.noreply.github.com> Co-authored-by: Anirban Thakur Co-authored-by: Josephine Qiu Co-authored-by: Erel Hansav Co-authored-by: Erel Hansav Co-authored-by: Alexander Kaplan Co-authored-by: jimmyshie123 Co-authored-by: Jimmy Xie Co-authored-by: Aishwarya C S <24403906+Aishwarya-C-S@users.noreply.github.com> Co-authored-by: misbamomin <79725363+misbamomin@users.noreply.github.com> Co-authored-by: Sandy Cai Co-authored-by: Yinglue Zhang Co-authored-by: caiqing Co-authored-by: YinglueZhang-MS <78456380+YinglueZhang-MS@users.noreply.github.com> Co-authored-by: docohe <54349195+docohe@users.noreply.github.com> Co-authored-by: surashed <55134940+surashed@users.noreply.github.com> Co-authored-by: TomerHmsft <92307325+TomerHmsft@users.noreply.github.com> Co-authored-by: Sapir Elmakayes <32778998+SapirElmakayes@users.noreply.github.com> Co-authored-by: Sapir Elmakayes Co-authored-by: Daniel Rocha Co-authored-by: rperezzamora <80124228+rperezzamora@users.noreply.github.com> Co-authored-by: kavskalyan Co-authored-by: REDMOND\amisi Co-authored-by: Anuj Toshniwal Co-authored-by: Abhijit Karanjkar Co-authored-by: Praful Johari Co-authored-by: visunda Co-authored-by: Vivek Sundararajan Co-authored-by: vivek-microsoft <32766101+vivek-microsoft@users.noreply.github.com> Co-authored-by: Chenyang Liu Co-authored-by: PatrickTseng Co-authored-by: sbudhi-msft <81762203+sbudhi-msft@users.noreply.github.com> Co-authored-by: Rahul Singh <53578268+rahuls-microsoft@users.noreply.github.com> Co-authored-by: Gaurav Co-authored-by: Gaurav Bang Co-authored-by: Xuyang Cao Co-authored-by: sanil7777777 <90470998+sanil7777777@users.noreply.github.com> Co-authored-by: MaxWrightMicrosoft <89222647+MaxWrightMicrosoft@users.noreply.github.com> Co-authored-by: shaileshsk94 <52837212+shaileshsk94@users.noreply.github.com> Co-authored-by: Shailesh Kelkar Co-authored-by: Mark Cowlishaw Co-authored-by: Taras Vozniuk Co-authored-by: sashahdo <64434373+sashahdo@users.noreply.github.com> Co-authored-by: Caihua Rui <71814127+CaihuaRui@users.noreply.github.com> Co-authored-by: sukodava <78733210+sukodava@users.noreply.github.com> Co-authored-by: Robert Gao Co-authored-by: Heath Stewart Co-authored-by: Parv Saxena Co-authored-by: Parv Saxena Co-authored-by: Daniel Stack Co-authored-by: uratzmon <81904834+uratzmon@users.noreply.github.com> Co-authored-by: Alfredo Santamaria Co-authored-by: Alfredo Santamaria Gomez Co-authored-by: Krishna Sri Somepalli Co-authored-by: kesharma <74746991+kesharma@users.noreply.github.com> Co-authored-by: Jingshu923 <52914166+Jingshu923@users.noreply.github.com> Co-authored-by: rickysun93 Co-authored-by: Haoran Sun Co-authored-by: Johnson Yang Co-authored-by: Auðunn Co-authored-by: Audunn Baldvinsson Co-authored-by: Elad Perets <7473455+eladperets@users.noreply.github.com> Co-authored-by: Dapeng Zhang Co-authored-by: Avi Paz Co-authored-by: vikramadityab72 Co-authored-by: Yanqiong Chen <86596306+yanqiongchen@users.noreply.github.com> Co-authored-by: colawwj <70128817+colawwj@users.noreply.github.com> Co-authored-by: xunsun-commits <84804232+xunsun-commits@users.noreply.github.com> Co-authored-by: Shuo LI Co-authored-by: Tianyun Gao (MSFT) <65581162+Tianyun-G@users.noreply.github.com> Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Co-authored-by: Avinash Co-authored-by: Ruoxuan Wang <52271048+ruowan@users.noreply.github.com> Co-authored-by: bannama Co-authored-by: Bhaskar Annamalai Co-authored-by: leigharubin <78169930+leigharubin@users.noreply.github.com> Co-authored-by: Zhenglai Zhang Co-authored-by: Yang Yuan Co-authored-by: zesluo Co-authored-by: Saif Kayani Co-authored-by: Robert Lyon <35980532+rolyon@users.noreply.github.com> Co-authored-by: avjerafi <64891828+avjerafi@users.noreply.github.com> Co-authored-by: Avi Jerafi Co-authored-by: Jack Ma Co-authored-by: Nick Hardwick <31860550+nickghardwick@users.noreply.github.com> Co-authored-by: xolve Co-authored-by: Ravi Arora Co-authored-by: Maor Leger Co-authored-by: Xingdong Li Co-authored-by: Xingdong Li Co-authored-by: Adriano Arce Co-authored-by: ILAVELAN KANNIAPPAN Co-authored-by: Roslyn Lu Co-authored-by: Roslyn Lu Co-authored-by: yoram-cohen-microsoft <92515642+yoram-cohen-microsoft@users.noreply.github.com> Co-authored-by: cfurmanczyk <89105175+cfurmanczyk@users.noreply.github.com> Co-authored-by: Braden Watkins Co-authored-by: Braden Watkins Co-authored-by: orkayam <68549999+orkayam@users.noreply.github.com> Co-authored-by: Orel Kayam Co-authored-by: vayada Co-authored-by: Andrew Peacock Co-authored-by: msyache <70287970+msyache@users.noreply.github.com> Co-authored-by: Yang Chen Co-authored-by: Hande Adiguzel <89477033+handeeeadiguzel@users.noreply.github.com> Co-authored-by: Christian Eduardo Palomares Peralta Co-authored-by: Alexander Zaslonov Co-authored-by: DreamlessA Co-authored-by: Alan Feng Co-authored-by: Jatin Sanghvi <20547963+JatinSanghvi@users.noreply.github.com> Co-authored-by: Nicolás Barrera Co-authored-by: Nicolás Barrera Co-authored-by: VitaliyKurokhtin Co-authored-by: Christian Palomares Co-authored-by: RupengLiu Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: rkapso Co-authored-by: Ochirkhuyag Co-authored-by: Ochi Co-authored-by: rezmicrosoft <70175798+rezmicrosoft@users.noreply.github.com> Co-authored-by: rez1 Co-authored-by: GovardhanaDK <36787828+GovardhanaDK@users.noreply.github.com> Co-authored-by: Govardhana D K Co-authored-by: Jane Lijuan Zhang Co-authored-by: inballeibovitch <74146365+inballeibovitch@users.noreply.github.com> Co-authored-by: jeffj6123 Co-authored-by: Joshua McCarthy Co-authored-by: jmccarthy Co-authored-by: Nick Depinet Co-authored-by: Nick Depinet Co-authored-by: Guosen Wang Co-authored-by: Deyaaeldeen Almahallawi Co-authored-by: Nitesh Vijay Co-authored-by: anujtoshniwal <62551957+anujtoshniwal@users.noreply.github.com> Co-authored-by: Ajay Parulekar <79739098+ajparule@users.noreply.github.com> Co-authored-by: Amit Singh <31076927+amisi01@users.noreply.github.com> Co-authored-by: pjohari-ms <84465928+pjohari-ms@users.noreply.github.com> Co-authored-by: KeYu(AnkhSpirit) <33389195+KeYu-AnkhSpirit@users.noreply.github.com> Co-authored-by: Travis Prescott Co-authored-by: Mohamed Abbas Co-authored-by: dabenhamMic <74346518+dabenhamMic@users.noreply.github.com> Co-authored-by: Jimmy Campbell Co-authored-by: Suna Liu Co-authored-by: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Co-authored-by: sagamzu <52034287+sagamzu@users.noreply.github.com> Co-authored-by: Yihang Co-authored-by: sonalverm <73529783+sonalverm@users.noreply.github.com> Co-authored-by: Weidong Xu Co-authored-by: Ritesh chitlangia <60164879+riteshchitlangia1@users.noreply.github.com> Co-authored-by: kim-soohwan <40476315+kim-soohwan@users.noreply.github.com> Co-authored-by: Soohwan Kim Co-authored-by: Arthur Ning <57385816+akning-ms@users.noreply.github.com> Co-authored-by: zhangyan133 <77086185+zhangyan133@users.noreply.github.com> Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) Co-authored-by: 陈箭飞 <32889038+chenjianfei2017@users.noreply.github.com> Co-authored-by: Your Name Co-authored-by: jdhms <77470403+jdhms@users.noreply.github.com> Co-authored-by: Alexander Batishchev Co-authored-by: dosegal <51155368+dosegal@users.noreply.github.com> Co-authored-by: Bruce Johnston Co-authored-by: Abdullah Syed <50675866+absyed@users.noreply.github.com> Co-authored-by: stuartko <47676853+stuartko@users.noreply.github.com> Co-authored-by: pvsraviteja <67624658+pvsraviteja@users.noreply.github.com> Co-authored-by: Nick Schonning Co-authored-by: Suba Co-authored-by: zhaomuzhi Co-authored-by: Vinay Rajmal Soni Co-authored-by: jopet@microsoft.com Co-authored-by: Josh Peterson <15050193+joshanator@users.noreply.github.com> Co-authored-by: chandrikagonuguntla Co-authored-by: Chandrika Gonuguntla Co-authored-by: aarongas Co-authored-by: Saar Shen Co-authored-by: Junbo Wang Co-authored-by: Hervey Wilson Co-authored-by: Janusz Lembicz Co-authored-by: Alexander Schmidt Co-authored-by: ThomasDai <73230321+ThomasDai@users.noreply.github.com> Co-authored-by: Trask Stalnaker Co-authored-by: alexsavo-ms <78455310+alexsavo-ms@users.noreply.github.com> Co-authored-by: TJ Egbejimba Co-authored-by: averyrob <78236769+averyrob@users.noreply.github.com> Co-authored-by: Aman Swaika Co-authored-by: Aman Swaika Co-authored-by: Gaurav Mishra (IDENTITY) Co-authored-by: us6193 Co-authored-by: Umang Shah Co-authored-by: Srinivas Co-authored-by: Xiang Yan Co-authored-by: Krista Pratico Co-authored-by: Srikanta <51379715+srnagar@users.noreply.github.com> Co-authored-by: jastenze <71854693+jastenze@users.noreply.github.com> Co-authored-by: Jose Manuel Heredia Hidalgo Co-authored-by: Rishi Kapoor Co-authored-by: Subrahmanyam Mandavilli Co-authored-by: Xing Zhou Co-authored-by: mkarmark Co-authored-by: Laurent Mazuel Co-authored-by: taogems <55105930+taogems@users.noreply.github.com> Co-authored-by: Mayank Aggarwal Co-authored-by: Mayank Aggarwal Co-authored-by: FAREAST\zakinkh Co-authored-by: Congrui <43364740+conhua@users.noreply.github.com> Co-authored-by: jadrefke Co-authored-by: Austin Drefke Co-authored-by: Amr Elroumy (Work) <77645021+amrelroumy-msft@users.noreply.github.com> Co-authored-by: akashkeshari Co-authored-by: Akash Keshari Co-authored-by: simanor <49607823+simanor@users.noreply.github.com> Co-authored-by: Tom FitzMacken Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> Co-authored-by: bowgong <56386108+bowgong@users.noreply.github.com> Co-authored-by: Jack Lichwa <52512203+jlichwa@users.noreply.github.com> Co-authored-by: jainharsh98 Co-authored-by: Shubham Gupta Co-authored-by: ssss141414 Co-authored-by: JianyeXi <59603451+jianyexi@users.noreply.github.com> Co-authored-by: jianyexi Co-authored-by: Mike Budzynski <40186513+mikebudzynski@users.noreply.github.com> Co-authored-by: litchiyangMSFT <64560090+litchiyangMSFT@users.noreply.github.com> Co-authored-by: mayank88mahajan Co-authored-by: Weiguo Zhang Co-authored-by: maddieminn <79888413+maddieminn@users.noreply.github.com> Co-authored-by: nilgupta6 <78136736+nilgupta6@users.noreply.github.com> Co-authored-by: Yuan Xi Co-authored-by: Kai-Wen Feng <82062838+kaiwenfeng4086@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yuping Wei <56525716+yupwei68@users.noreply.github.com> Co-authored-by: Dania Etienne Co-authored-by: Dania Etienne Co-authored-by: yl-ms <79939366+yl-ms@users.noreply.github.com> Co-authored-by: Aditi <12823918+aditimalladi@users.noreply.github.com> Co-authored-by: Aditi Co-authored-by: Meha Kaushik Co-authored-by: Meha Kaushik Co-authored-by: Christopher Bennage Co-authored-by: Ramu Co-authored-by: vipinhas <82088177+vipinhas@users.noreply.github.com> Co-authored-by: Jorge Cotillo Co-authored-by: yuzhangyi <44692931+yuzhangyi@users.noreply.github.com> Co-authored-by: zhanyu2014 Co-authored-by: ityankel <47292630+ityankel@users.noreply.github.com> Co-authored-by: hongxian <48581117+hongxian@users.noreply.github.com> Co-authored-by: Hongxian Yao Co-authored-by: nichatur <69816349+nichatur@users.noreply.github.com> Co-authored-by: Himanshu Chandel Co-authored-by: Himanshu Chandel Co-authored-by: Kalpesh Chavan <18593210+KalpeshChavan12@users.noreply.github.com> Co-authored-by: Kalpesh Chavan Co-authored-by: Bin Yu <56588422+BinYuMSFT@users.noreply.github.com> Co-authored-by: Bin Yu Co-authored-by: bar810 Co-authored-by: harini-ms <34797776+harini-ms@users.noreply.github.com> Co-authored-by: Harini Co-authored-by: alexandra142 Co-authored-by: Alexandra Lamiova Pistrakova Co-authored-by: iscai-msft Co-authored-by: stivanov-git <61129265+stivanov-git@users.noreply.github.com> Co-authored-by: Mel M <50640763+melmullen@users.noreply.github.com> Co-authored-by: neku <82562198+Neku-microsoft@users.noreply.github.com> Co-authored-by: ItaySofer Co-authored-by: Itay Sofer Co-authored-by: Luke Slevinsky Co-authored-by: yanfa317 <53584318+yanfa317@users.noreply.github.com> Co-authored-by: Noam Dishon <30979046+dishonono@users.noreply.github.com> Co-authored-by: sandeepparab Co-authored-by: Sandeep Parab Co-authored-by: kryalama <66494519+kryalama@users.noreply.github.com> Co-authored-by: David Watrous Co-authored-by: wwendyc Co-authored-by: Wendy Chang Co-authored-by: Pradeep Kintali <50682039+pradeepkintali@users.noreply.github.com> Co-authored-by: Jeff Couckuyt Co-authored-by: Robert Johnson Co-authored-by: Subbarayudu Kamma Co-authored-by: xerxestph <78384060+xerxestph@users.noreply.github.com> Co-authored-by: Po Tsang Co-authored-by: aleksbol Co-authored-by: Naveed Aziz Co-authored-by: Thomas Reis Co-authored-by: Karthik Kunjithapatham <77180268+karthikku-2020@users.noreply.github.com> Co-authored-by: Ben Viglietta Co-authored-by: Ben Viglietta Co-authored-by: Shuai Wang Co-authored-by: Tal Shoham <87926500+tshoham@users.noreply.github.com> Co-authored-by: Tamir Ben-Arie Co-authored-by: Mohit Chakraborty <8271806+Mohit-Chakraborty@users.noreply.github.com> Co-authored-by: Vu Tran <36055117+vutran01@users.noreply.github.com> Co-authored-by: bganapa Co-authored-by: Devanshu Singh <8132290+thisisdevanshu@users.noreply.github.com> Co-authored-by: Sunny Patel Co-authored-by: Sunny Patel Co-authored-by: Devanshu Singh Co-authored-by: Jim Harris <72156062+MicrosoftJim@users.noreply.github.com> Co-authored-by: Akanksha Bhattacharyya Co-authored-by: Akanksha Bhattacharyya Co-authored-by: Tony Vargas Co-authored-by: Kamil Sobol <61715331+kasobol-msft@users.noreply.github.com> Co-authored-by: giladsu <43436811+giladsu@users.noreply.github.com> Co-authored-by: Milan Brkic Co-authored-by: Tyler Lloyd Co-authored-by: Li Ma Co-authored-by: hbc Co-authored-by: Bradley Bridges Co-authored-by: damodaravadhani <91929893+damodaravadhani@users.noreply.github.com> Co-authored-by: pednekarpraj <72415888+pednekarpraj@users.noreply.github.com> Co-authored-by: Lior Abadi Co-authored-by: Lior Abadi Co-authored-by: Eli Arbel Co-authored-by: jbuls <48029054+jbuls@users.noreply.github.com> Co-authored-by: ajbrown821 <96266510+ajbrown821@users.noreply.github.com> Co-authored-by: Wenhao Zhang Co-authored-by: Qingyi Liu <34502364+smile37773@users.noreply.github.com> Co-authored-by: Xiaoyun Ding Co-authored-by: Xiaoyun Ding Co-authored-by: ninpan-ms <71061174+ninpan-ms@users.noreply.github.com> Co-authored-by: zhoufenqin Co-authored-by: komakkar <71260242+komakkar@users.noreply.github.com> --- .../azure-mgmt-botservice/MANIFEST.in | 1 + .../azure-mgmt-botservice/_meta.json | 8 + .../mgmt/botservice/_azure_bot_service.py | 22 +- .../azure/mgmt/botservice/models/__init__.py | 51 + .../models/_azure_bot_service_enums.py | 38 + .../azure/mgmt/botservice/models/_models.py | 943 ++++++++++++++- .../mgmt/botservice/models/_models_py3.py | 1019 ++++++++++++++++- .../mgmt/botservice/models/_paged_models.py | 13 + .../mgmt/botservice/operations/__init__.py | 8 + .../operations/_bot_connection_operations.py | 4 +- .../botservice/operations/_bots_operations.py | 6 +- .../operations/_channels_operations.py | 12 +- .../operations/_direct_line_operations.py | 4 +- .../operations/_host_settings_operations.py | 94 ++ .../_operation_results_operations.py | 130 +++ .../mgmt/botservice/operations/_operations.py | 4 +- ...private_endpoint_connections_operations.py | 307 +++++ .../_private_link_resources_operations.py | 101 ++ 18 files changed, 2677 insertions(+), 88 deletions(-) create mode 100644 sdk/botservice/azure-mgmt-botservice/_meta.json create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_host_settings_operations.py create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operation_results_operations.py create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_endpoint_connections_operations.py create mode 100644 sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_link_resources_operations.py diff --git a/sdk/botservice/azure-mgmt-botservice/MANIFEST.in b/sdk/botservice/azure-mgmt-botservice/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/botservice/azure-mgmt-botservice/MANIFEST.in +++ b/sdk/botservice/azure-mgmt-botservice/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/botservice/azure-mgmt-botservice/_meta.json b/sdk/botservice/azure-mgmt-botservice/_meta.json new file mode 100644 index 000000000000..1c2b673bbc44 --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/_meta.json @@ -0,0 +1,8 @@ +{ + "autorest": "V2", + "use": "@microsoft.azure/autorest.python@~4.0.71", + "commit": "6ac2833f555bb32882b23b4a7adcb6a1d637a2db", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/botservice/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2", + "readme": "specification/botservice/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py index 4518da8b62a6..825b017e14fa 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py @@ -18,6 +18,10 @@ from .operations import DirectLineOperations from .operations import Operations from .operations import BotConnectionOperations +from .operations import HostSettingsOperations +from .operations import OperationResultsOperations +from .operations import PrivateEndpointConnectionsOperations +from .operations import PrivateLinkResourcesOperations from . import models @@ -37,6 +41,14 @@ class AzureBotService(SDKClient): :vartype operations: azure.mgmt.botservice.operations.Operations :ivar bot_connection: BotConnection operations :vartype bot_connection: azure.mgmt.botservice.operations.BotConnectionOperations + :ivar host_settings: HostSettings operations + :vartype host_settings: azure.mgmt.botservice.operations.HostSettingsOperations + :ivar operation_results: OperationResults operations + :vartype operation_results: azure.mgmt.botservice.operations.OperationResultsOperations + :ivar private_endpoint_connections: PrivateEndpointConnections operations + :vartype private_endpoint_connections: azure.mgmt.botservice.operations.PrivateEndpointConnectionsOperations + :ivar private_link_resources: PrivateLinkResources operations + :vartype private_link_resources: azure.mgmt.botservice.operations.PrivateLinkResourcesOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -53,7 +65,7 @@ def __init__( super(AzureBotService, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2020-06-02' + self.api_version = '2021-05-01-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -67,3 +79,11 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.bot_connection = BotConnectionOperations( self._client, self.config, self._serialize, self._deserialize) + self.host_settings = HostSettingsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.operation_results = OperationResultsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.private_link_resources = PrivateLinkResourcesOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py index 40a0bf5bf7f4..b791fb62eaac 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/__init__.py @@ -16,6 +16,7 @@ from ._models_py3 import BotChannel from ._models_py3 import BotProperties from ._models_py3 import Channel + from ._models_py3 import ChannelSettings from ._models_py3 import CheckNameAvailabilityRequestBody from ._models_py3 import CheckNameAvailabilityResponseBody from ._models_py3 import ConnectionItemName @@ -34,20 +35,32 @@ from ._models_py3 import FacebookChannel from ._models_py3 import FacebookChannelProperties from ._models_py3 import FacebookPage + from ._models_py3 import HostSettingsResponse from ._models_py3 import KikChannel from ._models_py3 import KikChannelProperties from ._models_py3 import LineChannel from ._models_py3 import LineChannelProperties from ._models_py3 import LineRegistration + from ._models_py3 import ListChannelWithKeysResponse from ._models_py3 import MsTeamsChannel from ._models_py3 import MsTeamsChannelProperties from ._models_py3 import OperationDisplayInfo from ._models_py3 import OperationEntity + from ._models_py3 import OperationResultsDescription + from ._models_py3 import PrivateEndpoint + from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateLinkResource + from ._models_py3 import PrivateLinkResourceBase + from ._models_py3 import PrivateLinkResourceListResult + from ._models_py3 import PrivateLinkServiceConnectionState from ._models_py3 import Resource from ._models_py3 import ServiceProvider from ._models_py3 import ServiceProviderParameter + from ._models_py3 import ServiceProviderParameterMetadata + from ._models_py3 import ServiceProviderParameterMetadataConstraints from ._models_py3 import ServiceProviderProperties from ._models_py3 import ServiceProviderResponseList + from ._models_py3 import Site from ._models_py3 import SiteInfo from ._models_py3 import Sku from ._models_py3 import SkypeChannel @@ -68,6 +81,7 @@ from ._models import BotChannel from ._models import BotProperties from ._models import Channel + from ._models import ChannelSettings from ._models import CheckNameAvailabilityRequestBody from ._models import CheckNameAvailabilityResponseBody from ._models import ConnectionItemName @@ -86,20 +100,32 @@ from ._models import FacebookChannel from ._models import FacebookChannelProperties from ._models import FacebookPage + from ._models import HostSettingsResponse from ._models import KikChannel from ._models import KikChannelProperties from ._models import LineChannel from ._models import LineChannelProperties from ._models import LineRegistration + from ._models import ListChannelWithKeysResponse from ._models import MsTeamsChannel from ._models import MsTeamsChannelProperties from ._models import OperationDisplayInfo from ._models import OperationEntity + from ._models import OperationResultsDescription + from ._models import PrivateEndpoint + from ._models import PrivateEndpointConnection + from ._models import PrivateLinkResource + from ._models import PrivateLinkResourceBase + from ._models import PrivateLinkResourceListResult + from ._models import PrivateLinkServiceConnectionState from ._models import Resource from ._models import ServiceProvider from ._models import ServiceProviderParameter + from ._models import ServiceProviderParameterMetadata + from ._models import ServiceProviderParameterMetadataConstraints from ._models import ServiceProviderProperties from ._models import ServiceProviderResponseList + from ._models import Site from ._models import SiteInfo from ._models import Sku from ._models import SkypeChannel @@ -117,11 +143,17 @@ from ._paged_models import BotPaged from ._paged_models import ConnectionSettingPaged from ._paged_models import OperationEntityPaged +from ._paged_models import PrivateEndpointConnectionPaged from ._azure_bot_service_enums import ( SkuName, SkuTier, Kind, + MsaAppType, + PublicNetworkAccess, + PrivateEndpointServiceConnectionStatus, + PrivateEndpointConnectionProvisioningState, Key, + OperationResultStatus, ChannelName, RegenerateKeysChannelName, ) @@ -133,6 +165,7 @@ 'BotChannel', 'BotProperties', 'Channel', + 'ChannelSettings', 'CheckNameAvailabilityRequestBody', 'CheckNameAvailabilityResponseBody', 'ConnectionItemName', @@ -151,20 +184,32 @@ 'FacebookChannel', 'FacebookChannelProperties', 'FacebookPage', + 'HostSettingsResponse', 'KikChannel', 'KikChannelProperties', 'LineChannel', 'LineChannelProperties', 'LineRegistration', + 'ListChannelWithKeysResponse', 'MsTeamsChannel', 'MsTeamsChannelProperties', 'OperationDisplayInfo', 'OperationEntity', + 'OperationResultsDescription', + 'PrivateEndpoint', + 'PrivateEndpointConnection', + 'PrivateLinkResource', + 'PrivateLinkResourceBase', + 'PrivateLinkResourceListResult', + 'PrivateLinkServiceConnectionState', 'Resource', 'ServiceProvider', 'ServiceProviderParameter', + 'ServiceProviderParameterMetadata', + 'ServiceProviderParameterMetadataConstraints', 'ServiceProviderProperties', 'ServiceProviderResponseList', + 'Site', 'SiteInfo', 'Sku', 'SkypeChannel', @@ -182,10 +227,16 @@ 'BotChannelPaged', 'OperationEntityPaged', 'ConnectionSettingPaged', + 'PrivateEndpointConnectionPaged', 'SkuName', 'SkuTier', 'Kind', + 'MsaAppType', + 'PublicNetworkAccess', + 'PrivateEndpointServiceConnectionStatus', + 'PrivateEndpointConnectionProvisioningState', 'Key', + 'OperationResultStatus', 'ChannelName', 'RegenerateKeysChannelName', ] diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_azure_bot_service_enums.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_azure_bot_service_enums.py index 8bf05112160a..aad54b7ecd4e 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_azure_bot_service_enums.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_azure_bot_service_enums.py @@ -30,6 +30,35 @@ class Kind(str, Enum): designer = "designer" bot = "bot" function = "function" + azurebot = "azurebot" + + +class MsaAppType(str, Enum): + + user_assigned_msi = "UserAssignedMSI" + single_tenant = "SingleTenant" + multi_tenant = "MultiTenant" + + +class PublicNetworkAccess(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + +class PrivateEndpointServiceConnectionStatus(str, Enum): + + pending = "Pending" + approved = "Approved" + rejected = "Rejected" + + +class PrivateEndpointConnectionProvisioningState(str, Enum): + + succeeded = "Succeeded" + creating = "Creating" + deleting = "Deleting" + failed = "Failed" class Key(str, Enum): @@ -38,6 +67,15 @@ class Key(str, Enum): key2 = "key2" +class OperationResultStatus(str, Enum): + + canceled = "Canceled" + succeeded = "Succeeded" + failed = "Failed" + requested = "Requested" + running = "Running" + + class ChannelName(str, Enum): alexa_channel = "AlexaChannel" diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models.py index 86dfcd16fd5c..5966c290dc23 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models.py @@ -22,17 +22,31 @@ class Channel(Model): DirectLineChannel, TelegramChannel, SmsChannel, SlackChannel, LineChannel, DirectLineSpeechChannel + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, } @@ -42,14 +56,27 @@ class Channel(Model): def __init__(self, **kwargs): super(Channel, self).__init__(**kwargs) + self.etag = kwargs.get('etag', None) + self.provisioning_state = None + self.location = kwargs.get('location', "global") self.channel_name = None class AlexaChannel(Channel): """Alexa channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Alexa channel @@ -58,10 +85,14 @@ class AlexaChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'AlexaChannelProperties'}, } @@ -132,16 +163,19 @@ class Resource(Model): :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'zones': {'readonly': True}, } _attribute_map = { @@ -153,6 +187,7 @@ class Resource(Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'kind': {'key': 'kind', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, } def __init__(self, **kwargs): @@ -165,6 +200,7 @@ def __init__(self, **kwargs): self.sku = kwargs.get('sku', None) self.kind = kwargs.get('kind', None) self.etag = kwargs.get('etag', None) + self.zones = None class Bot(Resource): @@ -186,10 +222,12 @@ class Bot(Resource): :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] :param properties: The set of properties specific to bot resource :type properties: ~azure.mgmt.botservice.models.BotProperties """ @@ -198,6 +236,7 @@ class Bot(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'zones': {'readonly': True}, } _attribute_map = { @@ -209,6 +248,7 @@ class Bot(Resource): 'sku': {'key': 'sku', 'type': 'Sku'}, 'kind': {'key': 'kind', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'BotProperties'}, } @@ -236,10 +276,12 @@ class BotChannel(Resource): :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] :param properties: The set of properties specific to bot channel resource :type properties: ~azure.mgmt.botservice.models.Channel """ @@ -248,6 +290,7 @@ class BotChannel(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'zones': {'readonly': True}, } _attribute_map = { @@ -259,6 +302,7 @@ class BotChannel(Resource): 'sku': {'key': 'sku', 'type': 'Sku'}, 'kind': {'key': 'kind', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'Channel'}, } @@ -285,8 +329,24 @@ class BotProperties(Model): :type endpoint: str :ivar endpoint_version: The bot's endpoint version :vartype endpoint_version: str + :param all_settings: Contains resource all settings defined as key/value + pairs. + :type all_settings: dict[str, str] + :param parameters: Contains resource parameters defined as key/value + pairs. + :type parameters: dict[str, str] + :param manifest_url: The bot's manifest url + :type manifest_url: str + :param msa_app_type: Microsoft App Type for the bot. Possible values + include: 'UserAssignedMSI', 'SingleTenant', 'MultiTenant' + :type msa_app_type: str or ~azure.mgmt.botservice.models.MsaAppType :param msa_app_id: Required. Microsoft App Id for the bot :type msa_app_id: str + :param msa_app_tenant_id: Microsoft App Tenant Id for the bot + :type msa_app_tenant_id: str + :param msa_app_msi_resource_id: Microsoft App Managed Identity Resource Id + for the bot + :type msa_app_msi_resource_id: str :ivar configured_channels: Collection of channels for which the bot is configured :vartype configured_channels: list[str] @@ -308,6 +368,43 @@ class BotProperties(Model): :type is_cmek_enabled: bool :param cmek_key_vault_url: The CMK Url :type cmek_key_vault_url: str + :ivar cmek_encryption_status: The CMK encryption status + :vartype cmek_encryption_status: str + :param public_network_access: Whether the bot is in an isolated network. + Possible values include: 'Enabled', 'Disabled'. Default value: "Enabled" . + :type public_network_access: str or + ~azure.mgmt.botservice.models.PublicNetworkAccess + :param is_streaming_supported: Whether the bot is streaming supported. + Default value: False . + :type is_streaming_supported: bool + :ivar is_developer_app_insights_api_key_set: Whether the bot is + developerAppInsightsApiKey set + :vartype is_developer_app_insights_api_key_set: bool + :ivar migration_token: Token used to migrate non Azure bot to azure + subscription + :vartype migration_token: str + :param disable_local_auth: Opt-out of local authentication and ensure only + MSI and AAD can be used exclusively for authentication. + :type disable_local_auth: bool + :param schema_transformation_version: The channel schema transformation + version for the bot + :type schema_transformation_version: str + :param storage_resource_id: The storage resourceId for the bot + :type storage_resource_id: str + :ivar private_endpoint_connections: List of Private Endpoint Connections + configured for the bot + :vartype private_endpoint_connections: + list[~azure.mgmt.botservice.models.PrivateEndpointConnection] + :param open_with_hint: The hint to browser (e.g. protocol handler) on how + to open the bot for authoring + :type open_with_hint: str + :param app_password_hint: The hint (e.g. keyVault secret resourceId) on + how to fetch the app secret + :type app_password_hint: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param publishing_credentials: Publishing credentials of the resource + :type publishing_credentials: str """ _validation = { @@ -317,6 +414,11 @@ class BotProperties(Model): 'msa_app_id': {'required': True}, 'configured_channels': {'readonly': True}, 'enabled_channels': {'readonly': True}, + 'cmek_encryption_status': {'readonly': True}, + 'is_developer_app_insights_api_key_set': {'readonly': True}, + 'migration_token': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { @@ -325,7 +427,13 @@ class BotProperties(Model): 'icon_url': {'key': 'iconUrl', 'type': 'str'}, 'endpoint': {'key': 'endpoint', 'type': 'str'}, 'endpoint_version': {'key': 'endpointVersion', 'type': 'str'}, + 'all_settings': {'key': 'allSettings', 'type': '{str}'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'manifest_url': {'key': 'manifestUrl', 'type': 'str'}, + 'msa_app_type': {'key': 'msaAppType', 'type': 'str'}, 'msa_app_id': {'key': 'msaAppId', 'type': 'str'}, + 'msa_app_tenant_id': {'key': 'msaAppTenantId', 'type': 'str'}, + 'msa_app_msi_resource_id': {'key': 'msaAppMSIResourceId', 'type': 'str'}, 'configured_channels': {'key': 'configuredChannels', 'type': '[str]'}, 'enabled_channels': {'key': 'enabledChannels', 'type': '[str]'}, 'developer_app_insight_key': {'key': 'developerAppInsightKey', 'type': 'str'}, @@ -335,6 +443,19 @@ class BotProperties(Model): 'luis_key': {'key': 'luisKey', 'type': 'str'}, 'is_cmek_enabled': {'key': 'isCmekEnabled', 'type': 'bool'}, 'cmek_key_vault_url': {'key': 'cmekKeyVaultUrl', 'type': 'str'}, + 'cmek_encryption_status': {'key': 'cmekEncryptionStatus', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'is_streaming_supported': {'key': 'isStreamingSupported', 'type': 'bool'}, + 'is_developer_app_insights_api_key_set': {'key': 'isDeveloperAppInsightsApiKeySet', 'type': 'bool'}, + 'migration_token': {'key': 'migrationToken', 'type': 'str'}, + 'disable_local_auth': {'key': 'disableLocalAuth', 'type': 'bool'}, + 'schema_transformation_version': {'key': 'schemaTransformationVersion', 'type': 'str'}, + 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'open_with_hint': {'key': 'openWithHint', 'type': 'str'}, + 'app_password_hint': {'key': 'appPasswordHint', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'publishing_credentials': {'key': 'publishingCredentials', 'type': 'str'}, } def __init__(self, **kwargs): @@ -344,7 +465,13 @@ def __init__(self, **kwargs): self.icon_url = kwargs.get('icon_url', None) self.endpoint = kwargs.get('endpoint', None) self.endpoint_version = None + self.all_settings = kwargs.get('all_settings', None) + self.parameters = kwargs.get('parameters', None) + self.manifest_url = kwargs.get('manifest_url', None) + self.msa_app_type = kwargs.get('msa_app_type', None) self.msa_app_id = kwargs.get('msa_app_id', None) + self.msa_app_tenant_id = kwargs.get('msa_app_tenant_id', None) + self.msa_app_msi_resource_id = kwargs.get('msa_app_msi_resource_id', None) self.configured_channels = None self.enabled_channels = None self.developer_app_insight_key = kwargs.get('developer_app_insight_key', None) @@ -354,6 +481,68 @@ def __init__(self, **kwargs): self.luis_key = kwargs.get('luis_key', None) self.is_cmek_enabled = kwargs.get('is_cmek_enabled', None) self.cmek_key_vault_url = kwargs.get('cmek_key_vault_url', None) + self.cmek_encryption_status = None + self.public_network_access = kwargs.get('public_network_access', "Enabled") + self.is_streaming_supported = kwargs.get('is_streaming_supported', False) + self.is_developer_app_insights_api_key_set = None + self.migration_token = None + self.disable_local_auth = kwargs.get('disable_local_auth', None) + self.schema_transformation_version = kwargs.get('schema_transformation_version', None) + self.storage_resource_id = kwargs.get('storage_resource_id', None) + self.private_endpoint_connections = None + self.open_with_hint = kwargs.get('open_with_hint', None) + self.app_password_hint = kwargs.get('app_password_hint', None) + self.provisioning_state = None + self.publishing_credentials = kwargs.get('publishing_credentials', None) + + +class ChannelSettings(Model): + """Channel settings definition. + + :param extension_key1: The extensionKey1 + :type extension_key1: str + :param extension_key2: The extensionKey2 + :type extension_key2: str + :param sites: The list of sites + :type sites: list[~azure.mgmt.botservice.models.Site] + :param channel_id: The channel id + :type channel_id: str + :param channel_display_name: The channel display name + :type channel_display_name: str + :param bot_id: The bot id + :type bot_id: str + :param bot_icon_url: The bot icon url + :type bot_icon_url: str + :param is_enabled: Whether this channel is enabled for the bot + :type is_enabled: bool + :param disable_local_auth: Opt-out of local authentication and ensure only + MSI and AAD can be used exclusively for authentication. + :type disable_local_auth: bool + """ + + _attribute_map = { + 'extension_key1': {'key': 'extensionKey1', 'type': 'str'}, + 'extension_key2': {'key': 'extensionKey2', 'type': 'str'}, + 'sites': {'key': 'sites', 'type': '[Site]'}, + 'channel_id': {'key': 'channelId', 'type': 'str'}, + 'channel_display_name': {'key': 'channelDisplayName', 'type': 'str'}, + 'bot_id': {'key': 'botId', 'type': 'str'}, + 'bot_icon_url': {'key': 'botIconUrl', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'disable_local_auth': {'key': 'disableLocalAuth', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ChannelSettings, self).__init__(**kwargs) + self.extension_key1 = kwargs.get('extension_key1', None) + self.extension_key2 = kwargs.get('extension_key2', None) + self.sites = kwargs.get('sites', None) + self.channel_id = kwargs.get('channel_id', None) + self.channel_display_name = kwargs.get('channel_display_name', None) + self.bot_id = kwargs.get('bot_id', None) + self.bot_icon_url = kwargs.get('bot_icon_url', None) + self.is_enabled = kwargs.get('is_enabled', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) class CheckNameAvailabilityRequestBody(Model): @@ -451,10 +640,12 @@ class ConnectionSetting(Resource): :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] :param properties: The set of properties specific to bot channel resource :type properties: ~azure.mgmt.botservice.models.ConnectionSettingProperties @@ -464,6 +655,7 @@ class ConnectionSetting(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'zones': {'readonly': True}, } _attribute_map = { @@ -475,6 +667,7 @@ class ConnectionSetting(Resource): 'sku': {'key': 'sku', 'type': 'Sku'}, 'kind': {'key': 'kind', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'ConnectionSettingProperties'}, } @@ -510,6 +703,10 @@ class ConnectionSettingProperties(Model): Variables are only populated by the server, and will be ignored when sending a request. + :param id: Id associated with the Connection Setting. + :type id: str + :param name: Name associated with the Connection Setting. + :type name: str :param client_id: Client Id associated with the Connection Setting. :type client_id: str :ivar setting_id: Setting Id set by the service for the Connection @@ -529,6 +726,8 @@ class ConnectionSettingProperties(Model): Connection Setting :type parameters: list[~azure.mgmt.botservice.models.ConnectionSettingParameter] + :param provisioning_state: Provisioning state of the resource + :type provisioning_state: str """ _validation = { @@ -536,6 +735,8 @@ class ConnectionSettingProperties(Model): } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, 'client_id': {'key': 'clientId', 'type': 'str'}, 'setting_id': {'key': 'settingId', 'type': 'str'}, 'client_secret': {'key': 'clientSecret', 'type': 'str'}, @@ -543,10 +744,13 @@ class ConnectionSettingProperties(Model): 'service_provider_id': {'key': 'serviceProviderId', 'type': 'str'}, 'service_provider_display_name': {'key': 'serviceProviderDisplayName', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '[ConnectionSettingParameter]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, } def __init__(self, **kwargs): super(ConnectionSettingProperties, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) self.client_id = kwargs.get('client_id', None) self.setting_id = None self.client_secret = kwargs.get('client_secret', None) @@ -554,13 +758,24 @@ def __init__(self, **kwargs): self.service_provider_id = kwargs.get('service_provider_id', None) self.service_provider_display_name = kwargs.get('service_provider_display_name', None) self.parameters = kwargs.get('parameters', None) + self.provisioning_state = kwargs.get('provisioning_state', None) class DirectLineChannel(Channel): """Direct Line channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Direct Line channel @@ -570,10 +785,14 @@ class DirectLineChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'DirectLineChannelProperties'}, } @@ -589,15 +808,19 @@ class DirectLineChannelProperties(Model): :param sites: The list of Direct Line sites :type sites: list[~azure.mgmt.botservice.models.DirectLineSite] + :param direct_line_embed_code: Direct Line embed code of the resource + :type direct_line_embed_code: str """ _attribute_map = { 'sites': {'key': 'sites', 'type': '[DirectLineSite]'}, + 'direct_line_embed_code': {'key': 'DirectLineEmbedCode', 'type': 'str'}, } def __init__(self, **kwargs): super(DirectLineChannelProperties, self).__init__(**kwargs) self.sites = kwargs.get('sites', None) + self.direct_line_embed_code = kwargs.get('direct_line_embed_code', None) class DirectLineSite(Model): @@ -630,6 +853,9 @@ class DirectLineSite(Model): :param is_secure_site_enabled: Whether this site is enabled for authentication with Bot Framework. :type is_secure_site_enabled: bool + :param is_block_user_upload_enabled: Whether this site is enabled for + block user upload. + :type is_block_user_upload_enabled: bool :param trusted_origins: List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. :type trusted_origins: list[str] @@ -654,6 +880,7 @@ class DirectLineSite(Model): 'is_v1_enabled': {'key': 'isV1Enabled', 'type': 'bool'}, 'is_v3_enabled': {'key': 'isV3Enabled', 'type': 'bool'}, 'is_secure_site_enabled': {'key': 'isSecureSiteEnabled', 'type': 'bool'}, + 'is_block_user_upload_enabled': {'key': 'isBlockUserUploadEnabled', 'type': 'bool'}, 'trusted_origins': {'key': 'trustedOrigins', 'type': '[str]'}, } @@ -667,14 +894,25 @@ def __init__(self, **kwargs): self.is_v1_enabled = kwargs.get('is_v1_enabled', None) self.is_v3_enabled = kwargs.get('is_v3_enabled', None) self.is_secure_site_enabled = kwargs.get('is_secure_site_enabled', None) + self.is_block_user_upload_enabled = kwargs.get('is_block_user_upload_enabled', None) self.trusted_origins = kwargs.get('trusted_origins', None) class DirectLineSpeechChannel(Channel): """DirectLine Speech channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to DirectLine Speech @@ -684,10 +922,14 @@ class DirectLineSpeechChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'DirectLineSpeechChannelProperties'}, } @@ -703,9 +945,12 @@ class DirectLineSpeechChannelProperties(Model): All required parameters must be populated in order to send to Azure. - :param cognitive_services_subscription_id: Required. The cognitive service - subscription ID to use with this channel registration. - :type cognitive_services_subscription_id: str + :param cognitive_service_region: Required. The cognitive service region + with this channel registration. + :type cognitive_service_region: str + :param cognitive_service_subscription_key: Required. The cognitive service + subscription key to use with this channel registration. + :type cognitive_service_subscription_key: str :param is_enabled: Whether this channel is enabled or not. :type is_enabled: bool :param custom_voice_deployment_id: Custom speech model id (optional). @@ -718,11 +963,13 @@ class DirectLineSpeechChannelProperties(Model): """ _validation = { - 'cognitive_services_subscription_id': {'required': True}, + 'cognitive_service_region': {'required': True}, + 'cognitive_service_subscription_key': {'required': True}, } _attribute_map = { - 'cognitive_services_subscription_id': {'key': 'cognitiveServicesSubscriptionId', 'type': 'str'}, + 'cognitive_service_region': {'key': 'cognitiveServiceRegion', 'type': 'str'}, + 'cognitive_service_subscription_key': {'key': 'cognitiveServiceSubscriptionKey', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, 'custom_voice_deployment_id': {'key': 'customVoiceDeploymentId', 'type': 'str'}, 'custom_speech_model_id': {'key': 'customSpeechModelId', 'type': 'str'}, @@ -731,7 +978,8 @@ class DirectLineSpeechChannelProperties(Model): def __init__(self, **kwargs): super(DirectLineSpeechChannelProperties, self).__init__(**kwargs) - self.cognitive_services_subscription_id = kwargs.get('cognitive_services_subscription_id', None) + self.cognitive_service_region = kwargs.get('cognitive_service_region', None) + self.cognitive_service_subscription_key = kwargs.get('cognitive_service_subscription_key', None) self.is_enabled = kwargs.get('is_enabled', None) self.custom_voice_deployment_id = kwargs.get('custom_voice_deployment_id', None) self.custom_speech_model_id = kwargs.get('custom_speech_model_id', None) @@ -741,8 +989,18 @@ def __init__(self, **kwargs): class EmailChannel(Channel): """Email channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to email channel @@ -751,10 +1009,14 @@ class EmailChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'EmailChannelProperties'}, } @@ -855,8 +1117,18 @@ def __init__(self, **kwargs): class FacebookChannel(Channel): """Facebook channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to bot facebook channel @@ -864,10 +1136,14 @@ class FacebookChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'FacebookChannelProperties'}, } @@ -955,11 +1231,73 @@ def __init__(self, **kwargs): self.access_token = kwargs.get('access_token', None) +class HostSettingsResponse(Model): + """The response body returned for a request to Bot Service Management to check + per subscription hostSettings. + + :param oauth_url: For in-conversation bot user authentication + :type oauth_url: str + :param to_bot_from_channel_open_id_metadata_url: For verifying incoming + tokens from the channels + :type to_bot_from_channel_open_id_metadata_url: str + :param to_bot_from_channel_token_issuer: For verifying incoming tokens + from the channels + :type to_bot_from_channel_token_issuer: str + :param to_bot_from_emulator_open_id_metadata_url: For verifying incoming + tokens from bot emulator + :type to_bot_from_emulator_open_id_metadata_url: str + :param to_channel_from_bot_login_url: For getting access token to channels + from bot host + :type to_channel_from_bot_login_url: str + :param to_channel_from_bot_oauth_scope: For getting access token to + channels from bot host + :type to_channel_from_bot_oauth_scope: str + :param validate_authority: Per cloud OAuth setting on whether authority is + validated + :type validate_authority: bool + :param bot_open_id_metadata: Same as toBotFromChannelOpenIdMetadataUrl, + used by SDK < v4.12 + :type bot_open_id_metadata: str + """ + + _attribute_map = { + 'oauth_url': {'key': 'OAuthUrl', 'type': 'str'}, + 'to_bot_from_channel_open_id_metadata_url': {'key': 'ToBotFromChannelOpenIdMetadataUrl', 'type': 'str'}, + 'to_bot_from_channel_token_issuer': {'key': 'ToBotFromChannelTokenIssuer', 'type': 'str'}, + 'to_bot_from_emulator_open_id_metadata_url': {'key': 'ToBotFromEmulatorOpenIdMetadataUrl', 'type': 'str'}, + 'to_channel_from_bot_login_url': {'key': 'ToChannelFromBotLoginUrl', 'type': 'str'}, + 'to_channel_from_bot_oauth_scope': {'key': 'ToChannelFromBotOAuthScope', 'type': 'str'}, + 'validate_authority': {'key': 'ValidateAuthority', 'type': 'bool'}, + 'bot_open_id_metadata': {'key': 'BotOpenIdMetadata', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HostSettingsResponse, self).__init__(**kwargs) + self.oauth_url = kwargs.get('oauth_url', None) + self.to_bot_from_channel_open_id_metadata_url = kwargs.get('to_bot_from_channel_open_id_metadata_url', None) + self.to_bot_from_channel_token_issuer = kwargs.get('to_bot_from_channel_token_issuer', None) + self.to_bot_from_emulator_open_id_metadata_url = kwargs.get('to_bot_from_emulator_open_id_metadata_url', None) + self.to_channel_from_bot_login_url = kwargs.get('to_channel_from_bot_login_url', None) + self.to_channel_from_bot_oauth_scope = kwargs.get('to_channel_from_bot_oauth_scope', None) + self.validate_authority = kwargs.get('validate_authority', None) + self.bot_open_id_metadata = kwargs.get('bot_open_id_metadata', None) + + class KikChannel(Channel): """Kik channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Kik channel resource @@ -967,10 +1305,14 @@ class KikChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'KikChannelProperties'}, } @@ -1020,8 +1362,18 @@ def __init__(self, **kwargs): class LineChannel(Channel): """Line channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to line channel resource @@ -1029,10 +1381,14 @@ class LineChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'LineChannelProperties'}, } @@ -1112,11 +1468,94 @@ def __init__(self, **kwargs): self.channel_access_token = kwargs.get('channel_access_token', None) +class ListChannelWithKeysResponse(BotChannel): + """The ARM channel of list channel with keys operation response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] + :param properties: The set of properties specific to bot channel resource + :type properties: ~azure.mgmt.botservice.models.Channel + :param resource: The set of properties specific to bot channel resource + :type resource: ~azure.mgmt.botservice.models.Channel + :param setting: Channel settings + :type setting: ~azure.mgmt.botservice.models.ChannelSettings + :param provisioning_state: Provisioning state of the resource + :type provisioning_state: str + :param entity_tag: Entity tag of the resource + :type entity_tag: str + :param changed_time: Changed time of the resource + :type changed_time: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'zones': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'Channel'}, + 'resource': {'key': 'resource', 'type': 'Channel'}, + 'setting': {'key': 'setting', 'type': 'ChannelSettings'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'entity_tag': {'key': 'entityTag', 'type': 'str'}, + 'changed_time': {'key': 'changedTime', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ListChannelWithKeysResponse, self).__init__(**kwargs) + self.resource = kwargs.get('resource', None) + self.setting = kwargs.get('setting', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.entity_tag = kwargs.get('entity_tag', None) + self.changed_time = kwargs.get('changed_time', None) + + class MsTeamsChannel(Channel): """Microsoft Teams channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Microsoft Teams @@ -1125,10 +1564,14 @@ class MsTeamsChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'MsTeamsChannelProperties'}, } @@ -1150,6 +1593,13 @@ class MsTeamsChannelProperties(Model): :type calling_web_hook: str :param is_enabled: Required. Whether this channel is enabled for the bot :type is_enabled: bool + :param incoming_call_route: Webhook for Microsoft Teams channel calls + :type incoming_call_route: str + :param deployment_environment: Deployment environment for Microsoft Teams + channel calls + :type deployment_environment: str + :param accepted_terms: Whether this channel accepted terms + :type accepted_terms: bool """ _validation = { @@ -1160,6 +1610,9 @@ class MsTeamsChannelProperties(Model): 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'incoming_call_route': {'key': 'incomingCallRoute', 'type': 'str'}, + 'deployment_environment': {'key': 'deploymentEnvironment', 'type': 'str'}, + 'accepted_terms': {'key': 'acceptedTerms', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -1167,6 +1620,9 @@ def __init__(self, **kwargs): self.enable_calling = kwargs.get('enable_calling', None) self.calling_web_hook = kwargs.get('calling_web_hook', None) self.is_enabled = kwargs.get('is_enabled', None) + self.incoming_call_route = kwargs.get('incoming_call_route', None) + self.deployment_environment = kwargs.get('deployment_environment', None) + self.accepted_terms = kwargs.get('accepted_terms', None) class OperationDisplayInfo(Model): @@ -1226,6 +1682,253 @@ def __init__(self, **kwargs): self.properties = kwargs.get('properties', None) +class OperationResultsDescription(Model): + """The properties indicating the operation result of an operation on a + service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ID of the operation returned. + :vartype id: str + :ivar name: The name of the operation result. + :vartype name: str + :ivar status: The status of the operation being performed. Possible values + include: 'Canceled', 'Succeeded', 'Failed', 'Requested', 'Running' + :vartype status: str or + ~azure.mgmt.botservice.models.OperationResultStatus + :ivar start_time: The time that the operation was started. + :vartype start_time: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'status': {'readonly': True}, + 'start_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(OperationResultsDescription, self).__init__(**kwargs) + self.id = None + self.name = None + self.status = None + self.start_time = None + + +class PrivateEndpoint(Model): + """The Private Endpoint resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ARM identifier for Private Endpoint + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None + + +class PrivateLinkResourceBase(Model): + """Private Link Resource Base. + + Common fields that are returned in the response for all BotService Private + Link Resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResourceBase, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class PrivateEndpointConnection(PrivateLinkResourceBase): + """The Private Endpoint Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.botservice.models.PrivateEndpoint + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.botservice.models.PrivateLinkServiceConnectionState + :param provisioning_state: The provisioning state of the private endpoint + connection resource. Possible values include: 'Succeeded', 'Creating', + 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.botservice.models.PrivateEndpointConnectionProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'private_link_service_connection_state': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + + +class PrivateLinkResource(PrivateLinkResourceBase): + """A private link resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :param required_zone_names: The private link resource Private link DNS + zone name. + :type required_zone_names: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + self.required_zone_names = kwargs.get('required_zone_names', None) + + +class PrivateLinkResourceListResult(Model): + """A list of private link resources. + + :param value: Array of private link resources + :type value: list[~azure.mgmt.botservice.models.PrivateLinkResource] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class PrivateLinkServiceConnectionState(Model): + """A collection of information about the state of the connection between + service consumer and provider. + + :param status: Indicates whether the connection has been + Approved/Rejected/Removed by the owner of the service. Possible values + include: 'Pending', 'Approved', 'Rejected' + :type status: str or + ~azure.mgmt.botservice.models.PrivateEndpointServiceConnectionStatus + :param description: The reason for approval/rejection of the connection. + :type description: str + :param actions_required: A message indicating if changes on the service + provider require any updates on the consumer. + :type actions_required: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.description = kwargs.get('description', None) + self.actions_required = kwargs.get('actions_required', None) + + class ServiceProvider(Model): """Service Provider Definition. @@ -1260,6 +1963,9 @@ class ServiceProviderParameter(Model): :vartype help_url: str :ivar default: Default Name for the Service Provider :vartype default: str + :ivar metadata: Meta data for the Service Provider + :vartype metadata: + ~azure.mgmt.botservice.models.ServiceProviderParameterMetadata """ _validation = { @@ -1269,6 +1975,7 @@ class ServiceProviderParameter(Model): 'description': {'readonly': True}, 'help_url': {'readonly': True}, 'default': {'readonly': True}, + 'metadata': {'readonly': True}, } _attribute_map = { @@ -1278,6 +1985,7 @@ class ServiceProviderParameter(Model): 'description': {'key': 'description', 'type': 'str'}, 'help_url': {'key': 'helpUrl', 'type': 'str'}, 'default': {'key': 'default', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'ServiceProviderParameterMetadata'}, } def __init__(self, **kwargs): @@ -1288,6 +1996,40 @@ def __init__(self, **kwargs): self.description = None self.help_url = None self.default = None + self.metadata = None + + +class ServiceProviderParameterMetadata(Model): + """Meta data for the Service Provider. + + :param constraints: the constraints of the bot meta data. + :type constraints: + ~azure.mgmt.botservice.models.ServiceProviderParameterMetadataConstraints + """ + + _attribute_map = { + 'constraints': {'key': 'constraints', 'type': 'ServiceProviderParameterMetadataConstraints'}, + } + + def __init__(self, **kwargs): + super(ServiceProviderParameterMetadata, self).__init__(**kwargs) + self.constraints = kwargs.get('constraints', None) + + +class ServiceProviderParameterMetadataConstraints(Model): + """the constraints of the bot meta data. + + :param required: Whether required the constraints of the bot meta data. + :type required: bool + """ + + _attribute_map = { + 'required': {'key': 'required', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ServiceProviderParameterMetadataConstraints, self).__init__(**kwargs) + self.required = kwargs.get('required', None) class ServiceProviderProperties(Model): @@ -1366,6 +2108,95 @@ def __init__(self, **kwargs): self.value = None +class Site(Model): + """A site for the channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar site_id: Site Id + :vartype site_id: str + :param site_name: Required. Site name + :type site_name: str + :ivar key: Primary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key: str + :ivar key2: Secondary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key2: str + :param is_enabled: Required. Whether this site is enabled for DirectLine + channel + :type is_enabled: bool + :param is_webchat_preview_enabled: Required. Whether this site is enabled + for preview versions of Webchat. Default value: False . + :type is_webchat_preview_enabled: bool + :param is_v1_enabled: Required. Whether this site is enabled for Bot + Framework V1 protocol. + :type is_v1_enabled: bool + :param is_v3_enabled: Required. Whether this site is enabled for Bot + Framework V1 protocol. + :type is_v3_enabled: bool + :param is_secure_site_enabled: Whether this site is enabled for + authentication with Bot Framework. + :type is_secure_site_enabled: bool + :param is_block_user_upload_enabled: Whether this site is enabled for + block user upload. + :type is_block_user_upload_enabled: bool + :param trusted_origins: List of Trusted Origin URLs for this site. This + field is applicable only if isSecureSiteEnabled is True. + :type trusted_origins: list[str] + :param is_token_enabled: Whether this site is token enabled for channel + :type is_token_enabled: bool + :param e_tag: Entity Tag + :type e_tag: str + """ + + _validation = { + 'site_id': {'readonly': True}, + 'site_name': {'required': True}, + 'key': {'readonly': True}, + 'key2': {'readonly': True}, + 'is_enabled': {'required': True}, + 'is_webchat_preview_enabled': {'required': True}, + 'is_v1_enabled': {'required': True}, + 'is_v3_enabled': {'required': True}, + } + + _attribute_map = { + 'site_id': {'key': 'siteId', 'type': 'str'}, + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_webchat_preview_enabled': {'key': 'isWebchatPreviewEnabled', 'type': 'bool'}, + 'is_v1_enabled': {'key': 'isV1Enabled', 'type': 'bool'}, + 'is_v3_enabled': {'key': 'isV3Enabled', 'type': 'bool'}, + 'is_secure_site_enabled': {'key': 'isSecureSiteEnabled', 'type': 'bool'}, + 'is_block_user_upload_enabled': {'key': 'isBlockUserUploadEnabled', 'type': 'bool'}, + 'trusted_origins': {'key': 'trustedOrigins', 'type': '[str]'}, + 'is_token_enabled': {'key': 'isTokenEnabled', 'type': 'bool'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Site, self).__init__(**kwargs) + self.site_id = None + self.site_name = kwargs.get('site_name', None) + self.key = None + self.key2 = None + self.is_enabled = kwargs.get('is_enabled', None) + self.is_webchat_preview_enabled = kwargs.get('is_webchat_preview_enabled', False) + self.is_v1_enabled = kwargs.get('is_v1_enabled', None) + self.is_v3_enabled = kwargs.get('is_v3_enabled', None) + self.is_secure_site_enabled = kwargs.get('is_secure_site_enabled', None) + self.is_block_user_upload_enabled = kwargs.get('is_block_user_upload_enabled', None) + self.trusted_origins = kwargs.get('trusted_origins', None) + self.is_token_enabled = kwargs.get('is_token_enabled', None) + self.e_tag = kwargs.get('e_tag', None) + + class SiteInfo(Model): """Site information for WebChat or DirectLine Channels to identify which site to regenerate keys for. @@ -1429,8 +2260,18 @@ def __init__(self, **kwargs): class SkypeChannel(Channel): """Skype channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Skype channel @@ -1439,10 +2280,14 @@ class SkypeChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'SkypeChannelProperties'}, } @@ -1474,6 +2319,8 @@ class SkypeChannelProperties(Model): :type groups_mode: str :param calling_web_hook: Calling web hook for Skype channel :type calling_web_hook: str + :param incoming_call_route: Incoming call route for Skype channel + :type incoming_call_route: str :param is_enabled: Required. Whether this channel is enabled for the bot :type is_enabled: bool """ @@ -1491,6 +2338,7 @@ class SkypeChannelProperties(Model): 'enable_groups': {'key': 'enableGroups', 'type': 'bool'}, 'groups_mode': {'key': 'groupsMode', 'type': 'str'}, 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, + 'incoming_call_route': {'key': 'incomingCallRoute', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, } @@ -1504,14 +2352,25 @@ def __init__(self, **kwargs): self.enable_groups = kwargs.get('enable_groups', None) self.groups_mode = kwargs.get('groups_mode', None) self.calling_web_hook = kwargs.get('calling_web_hook', None) + self.incoming_call_route = kwargs.get('incoming_call_route', None) self.is_enabled = kwargs.get('is_enabled', None) class SlackChannel(Channel): """Slack channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Slack channel @@ -1520,10 +2379,14 @@ class SlackChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'SlackChannelProperties'}, } @@ -1550,6 +2413,8 @@ class SlackChannelProperties(Model): :param verification_token: The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty. :type verification_token: str + :param scopes: The Slack permission scopes. + :type scopes: str :param landing_page_url: The Slack landing page Url :type landing_page_url: str :ivar redirect_action: The Slack redirect action @@ -1579,11 +2444,12 @@ class SlackChannelProperties(Model): 'client_id': {'key': 'clientId', 'type': 'str'}, 'client_secret': {'key': 'clientSecret', 'type': 'str'}, 'verification_token': {'key': 'verificationToken', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': 'str'}, 'landing_page_url': {'key': 'landingPageUrl', 'type': 'str'}, 'redirect_action': {'key': 'redirectAction', 'type': 'str'}, 'last_submission_id': {'key': 'lastSubmissionId', 'type': 'str'}, 'register_before_oauth_flow': {'key': 'registerBeforeOAuthFlow', 'type': 'bool'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'is_validated': {'key': 'IsValidated', 'type': 'bool'}, 'signing_secret': {'key': 'signingSecret', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, } @@ -1593,6 +2459,7 @@ def __init__(self, **kwargs): self.client_id = kwargs.get('client_id', None) self.client_secret = kwargs.get('client_secret', None) self.verification_token = kwargs.get('verification_token', None) + self.scopes = kwargs.get('scopes', None) self.landing_page_url = kwargs.get('landing_page_url', None) self.redirect_action = None self.last_submission_id = None @@ -1605,8 +2472,18 @@ def __init__(self, **kwargs): class SmsChannel(Channel): """Sms channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Sms channel resource @@ -1614,10 +2491,14 @@ class SmsChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'SmsChannelProperties'}, } @@ -1673,8 +2554,18 @@ def __init__(self, **kwargs): class TelegramChannel(Channel): """Telegram channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Telegram channel @@ -1683,10 +2574,14 @@ class TelegramChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'TelegramChannelProperties'}, } @@ -1731,8 +2626,18 @@ def __init__(self, **kwargs): class WebChatChannel(Channel): """Web Chat channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Web Chat channel @@ -1741,10 +2646,14 @@ class WebChatChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'WebChatChannelProperties'}, } @@ -1803,9 +2712,9 @@ class WebChatSite(Model): :param is_enabled: Required. Whether this site is enabled for DirectLine channel :type is_enabled: bool - :param enable_preview: Required. Whether this site is enabled for preview - versions of Webchat - :type enable_preview: bool + :param is_webchat_preview_enabled: Required. Whether this site is enabled + for preview versions of Webchat. Default value: False . + :type is_webchat_preview_enabled: bool """ _validation = { @@ -1814,7 +2723,7 @@ class WebChatSite(Model): 'key': {'readonly': True}, 'key2': {'readonly': True}, 'is_enabled': {'required': True}, - 'enable_preview': {'required': True}, + 'is_webchat_preview_enabled': {'required': True}, } _attribute_map = { @@ -1823,7 +2732,7 @@ class WebChatSite(Model): 'key': {'key': 'key', 'type': 'str'}, 'key2': {'key': 'key2', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'enable_preview': {'key': 'enablePreview', 'type': 'bool'}, + 'is_webchat_preview_enabled': {'key': 'isWebchatPreviewEnabled', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -1833,4 +2742,4 @@ def __init__(self, **kwargs): self.key = None self.key2 = None self.is_enabled = kwargs.get('is_enabled', None) - self.enable_preview = kwargs.get('enable_preview', None) + self.is_webchat_preview_enabled = kwargs.get('is_webchat_preview_enabled', False) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models_py3.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models_py3.py index 8492673e2435..103edc9d7057 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models_py3.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_models_py3.py @@ -22,17 +22,31 @@ class Channel(Model): DirectLineChannel, TelegramChannel, SmsChannel, SlackChannel, LineChannel, DirectLineSpeechChannel + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, } @@ -40,16 +54,29 @@ class Channel(Model): 'channel_name': {'AlexaChannel': 'AlexaChannel', 'FacebookChannel': 'FacebookChannel', 'EmailChannel': 'EmailChannel', 'MsTeamsChannel': 'MsTeamsChannel', 'SkypeChannel': 'SkypeChannel', 'KikChannel': 'KikChannel', 'WebChatChannel': 'WebChatChannel', 'DirectLineChannel': 'DirectLineChannel', 'TelegramChannel': 'TelegramChannel', 'SmsChannel': 'SmsChannel', 'SlackChannel': 'SlackChannel', 'LineChannel': 'LineChannel', 'DirectLineSpeechChannel': 'DirectLineSpeechChannel'} } - def __init__(self, **kwargs) -> None: + def __init__(self, *, etag: str=None, location: str="global", **kwargs) -> None: super(Channel, self).__init__(**kwargs) + self.etag = etag + self.provisioning_state = None + self.location = location self.channel_name = None class AlexaChannel(Channel): """Alexa channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Alexa channel @@ -58,16 +85,20 @@ class AlexaChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'AlexaChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(AlexaChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(AlexaChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'AlexaChannel' @@ -132,16 +163,19 @@ class Resource(Model): :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'zones': {'readonly': True}, } _attribute_map = { @@ -153,6 +187,7 @@ class Resource(Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'kind': {'key': 'kind', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, } def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, **kwargs) -> None: @@ -165,6 +200,7 @@ def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: self.sku = sku self.kind = kind self.etag = etag + self.zones = None class Bot(Resource): @@ -186,10 +222,12 @@ class Bot(Resource): :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] :param properties: The set of properties specific to bot resource :type properties: ~azure.mgmt.botservice.models.BotProperties """ @@ -198,6 +236,7 @@ class Bot(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'zones': {'readonly': True}, } _attribute_map = { @@ -209,6 +248,7 @@ class Bot(Resource): 'sku': {'key': 'sku', 'type': 'Sku'}, 'kind': {'key': 'kind', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'BotProperties'}, } @@ -236,10 +276,12 @@ class BotChannel(Resource): :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] :param properties: The set of properties specific to bot channel resource :type properties: ~azure.mgmt.botservice.models.Channel """ @@ -248,6 +290,7 @@ class BotChannel(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'zones': {'readonly': True}, } _attribute_map = { @@ -259,6 +302,7 @@ class BotChannel(Resource): 'sku': {'key': 'sku', 'type': 'Sku'}, 'kind': {'key': 'kind', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'Channel'}, } @@ -285,8 +329,24 @@ class BotProperties(Model): :type endpoint: str :ivar endpoint_version: The bot's endpoint version :vartype endpoint_version: str + :param all_settings: Contains resource all settings defined as key/value + pairs. + :type all_settings: dict[str, str] + :param parameters: Contains resource parameters defined as key/value + pairs. + :type parameters: dict[str, str] + :param manifest_url: The bot's manifest url + :type manifest_url: str + :param msa_app_type: Microsoft App Type for the bot. Possible values + include: 'UserAssignedMSI', 'SingleTenant', 'MultiTenant' + :type msa_app_type: str or ~azure.mgmt.botservice.models.MsaAppType :param msa_app_id: Required. Microsoft App Id for the bot :type msa_app_id: str + :param msa_app_tenant_id: Microsoft App Tenant Id for the bot + :type msa_app_tenant_id: str + :param msa_app_msi_resource_id: Microsoft App Managed Identity Resource Id + for the bot + :type msa_app_msi_resource_id: str :ivar configured_channels: Collection of channels for which the bot is configured :vartype configured_channels: list[str] @@ -308,6 +368,43 @@ class BotProperties(Model): :type is_cmek_enabled: bool :param cmek_key_vault_url: The CMK Url :type cmek_key_vault_url: str + :ivar cmek_encryption_status: The CMK encryption status + :vartype cmek_encryption_status: str + :param public_network_access: Whether the bot is in an isolated network. + Possible values include: 'Enabled', 'Disabled'. Default value: "Enabled" . + :type public_network_access: str or + ~azure.mgmt.botservice.models.PublicNetworkAccess + :param is_streaming_supported: Whether the bot is streaming supported. + Default value: False . + :type is_streaming_supported: bool + :ivar is_developer_app_insights_api_key_set: Whether the bot is + developerAppInsightsApiKey set + :vartype is_developer_app_insights_api_key_set: bool + :ivar migration_token: Token used to migrate non Azure bot to azure + subscription + :vartype migration_token: str + :param disable_local_auth: Opt-out of local authentication and ensure only + MSI and AAD can be used exclusively for authentication. + :type disable_local_auth: bool + :param schema_transformation_version: The channel schema transformation + version for the bot + :type schema_transformation_version: str + :param storage_resource_id: The storage resourceId for the bot + :type storage_resource_id: str + :ivar private_endpoint_connections: List of Private Endpoint Connections + configured for the bot + :vartype private_endpoint_connections: + list[~azure.mgmt.botservice.models.PrivateEndpointConnection] + :param open_with_hint: The hint to browser (e.g. protocol handler) on how + to open the bot for authoring + :type open_with_hint: str + :param app_password_hint: The hint (e.g. keyVault secret resourceId) on + how to fetch the app secret + :type app_password_hint: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param publishing_credentials: Publishing credentials of the resource + :type publishing_credentials: str """ _validation = { @@ -317,6 +414,11 @@ class BotProperties(Model): 'msa_app_id': {'required': True}, 'configured_channels': {'readonly': True}, 'enabled_channels': {'readonly': True}, + 'cmek_encryption_status': {'readonly': True}, + 'is_developer_app_insights_api_key_set': {'readonly': True}, + 'migration_token': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { @@ -325,7 +427,13 @@ class BotProperties(Model): 'icon_url': {'key': 'iconUrl', 'type': 'str'}, 'endpoint': {'key': 'endpoint', 'type': 'str'}, 'endpoint_version': {'key': 'endpointVersion', 'type': 'str'}, + 'all_settings': {'key': 'allSettings', 'type': '{str}'}, + 'parameters': {'key': 'parameters', 'type': '{str}'}, + 'manifest_url': {'key': 'manifestUrl', 'type': 'str'}, + 'msa_app_type': {'key': 'msaAppType', 'type': 'str'}, 'msa_app_id': {'key': 'msaAppId', 'type': 'str'}, + 'msa_app_tenant_id': {'key': 'msaAppTenantId', 'type': 'str'}, + 'msa_app_msi_resource_id': {'key': 'msaAppMSIResourceId', 'type': 'str'}, 'configured_channels': {'key': 'configuredChannels', 'type': '[str]'}, 'enabled_channels': {'key': 'enabledChannels', 'type': '[str]'}, 'developer_app_insight_key': {'key': 'developerAppInsightKey', 'type': 'str'}, @@ -335,16 +443,35 @@ class BotProperties(Model): 'luis_key': {'key': 'luisKey', 'type': 'str'}, 'is_cmek_enabled': {'key': 'isCmekEnabled', 'type': 'bool'}, 'cmek_key_vault_url': {'key': 'cmekKeyVaultUrl', 'type': 'str'}, - } - - def __init__(self, *, display_name: str, endpoint: str, msa_app_id: str, description: str=None, icon_url: str=None, developer_app_insight_key: str=None, developer_app_insights_api_key: str=None, developer_app_insights_application_id: str=None, luis_app_ids=None, luis_key: str=None, is_cmek_enabled: bool=None, cmek_key_vault_url: str=None, **kwargs) -> None: + 'cmek_encryption_status': {'key': 'cmekEncryptionStatus', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'is_streaming_supported': {'key': 'isStreamingSupported', 'type': 'bool'}, + 'is_developer_app_insights_api_key_set': {'key': 'isDeveloperAppInsightsApiKeySet', 'type': 'bool'}, + 'migration_token': {'key': 'migrationToken', 'type': 'str'}, + 'disable_local_auth': {'key': 'disableLocalAuth', 'type': 'bool'}, + 'schema_transformation_version': {'key': 'schemaTransformationVersion', 'type': 'str'}, + 'storage_resource_id': {'key': 'storageResourceId', 'type': 'str'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'open_with_hint': {'key': 'openWithHint', 'type': 'str'}, + 'app_password_hint': {'key': 'appPasswordHint', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'publishing_credentials': {'key': 'publishingCredentials', 'type': 'str'}, + } + + def __init__(self, *, display_name: str, endpoint: str, msa_app_id: str, description: str=None, icon_url: str=None, all_settings=None, parameters=None, manifest_url: str=None, msa_app_type=None, msa_app_tenant_id: str=None, msa_app_msi_resource_id: str=None, developer_app_insight_key: str=None, developer_app_insights_api_key: str=None, developer_app_insights_application_id: str=None, luis_app_ids=None, luis_key: str=None, is_cmek_enabled: bool=None, cmek_key_vault_url: str=None, public_network_access="Enabled", is_streaming_supported: bool=False, disable_local_auth: bool=None, schema_transformation_version: str=None, storage_resource_id: str=None, open_with_hint: str=None, app_password_hint: str=None, publishing_credentials: str=None, **kwargs) -> None: super(BotProperties, self).__init__(**kwargs) self.display_name = display_name self.description = description self.icon_url = icon_url self.endpoint = endpoint self.endpoint_version = None + self.all_settings = all_settings + self.parameters = parameters + self.manifest_url = manifest_url + self.msa_app_type = msa_app_type self.msa_app_id = msa_app_id + self.msa_app_tenant_id = msa_app_tenant_id + self.msa_app_msi_resource_id = msa_app_msi_resource_id self.configured_channels = None self.enabled_channels = None self.developer_app_insight_key = developer_app_insight_key @@ -354,6 +481,68 @@ def __init__(self, *, display_name: str, endpoint: str, msa_app_id: str, descrip self.luis_key = luis_key self.is_cmek_enabled = is_cmek_enabled self.cmek_key_vault_url = cmek_key_vault_url + self.cmek_encryption_status = None + self.public_network_access = public_network_access + self.is_streaming_supported = is_streaming_supported + self.is_developer_app_insights_api_key_set = None + self.migration_token = None + self.disable_local_auth = disable_local_auth + self.schema_transformation_version = schema_transformation_version + self.storage_resource_id = storage_resource_id + self.private_endpoint_connections = None + self.open_with_hint = open_with_hint + self.app_password_hint = app_password_hint + self.provisioning_state = None + self.publishing_credentials = publishing_credentials + + +class ChannelSettings(Model): + """Channel settings definition. + + :param extension_key1: The extensionKey1 + :type extension_key1: str + :param extension_key2: The extensionKey2 + :type extension_key2: str + :param sites: The list of sites + :type sites: list[~azure.mgmt.botservice.models.Site] + :param channel_id: The channel id + :type channel_id: str + :param channel_display_name: The channel display name + :type channel_display_name: str + :param bot_id: The bot id + :type bot_id: str + :param bot_icon_url: The bot icon url + :type bot_icon_url: str + :param is_enabled: Whether this channel is enabled for the bot + :type is_enabled: bool + :param disable_local_auth: Opt-out of local authentication and ensure only + MSI and AAD can be used exclusively for authentication. + :type disable_local_auth: bool + """ + + _attribute_map = { + 'extension_key1': {'key': 'extensionKey1', 'type': 'str'}, + 'extension_key2': {'key': 'extensionKey2', 'type': 'str'}, + 'sites': {'key': 'sites', 'type': '[Site]'}, + 'channel_id': {'key': 'channelId', 'type': 'str'}, + 'channel_display_name': {'key': 'channelDisplayName', 'type': 'str'}, + 'bot_id': {'key': 'botId', 'type': 'str'}, + 'bot_icon_url': {'key': 'botIconUrl', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'disable_local_auth': {'key': 'disableLocalAuth', 'type': 'bool'}, + } + + def __init__(self, *, extension_key1: str=None, extension_key2: str=None, sites=None, channel_id: str=None, channel_display_name: str=None, bot_id: str=None, bot_icon_url: str=None, is_enabled: bool=None, disable_local_auth: bool=None, **kwargs) -> None: + super(ChannelSettings, self).__init__(**kwargs) + self.extension_key1 = extension_key1 + self.extension_key2 = extension_key2 + self.sites = sites + self.channel_id = channel_id + self.channel_display_name = channel_display_name + self.bot_id = bot_id + self.bot_icon_url = bot_icon_url + self.is_enabled = is_enabled + self.disable_local_auth = disable_local_auth class CheckNameAvailabilityRequestBody(Model): @@ -451,10 +640,12 @@ class ConnectionSetting(Resource): :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] :param properties: The set of properties specific to bot channel resource :type properties: ~azure.mgmt.botservice.models.ConnectionSettingProperties @@ -464,6 +655,7 @@ class ConnectionSetting(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'zones': {'readonly': True}, } _attribute_map = { @@ -475,6 +667,7 @@ class ConnectionSetting(Resource): 'sku': {'key': 'sku', 'type': 'Sku'}, 'kind': {'key': 'kind', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, 'properties': {'key': 'properties', 'type': 'ConnectionSettingProperties'}, } @@ -510,6 +703,10 @@ class ConnectionSettingProperties(Model): Variables are only populated by the server, and will be ignored when sending a request. + :param id: Id associated with the Connection Setting. + :type id: str + :param name: Name associated with the Connection Setting. + :type name: str :param client_id: Client Id associated with the Connection Setting. :type client_id: str :ivar setting_id: Setting Id set by the service for the Connection @@ -529,6 +726,8 @@ class ConnectionSettingProperties(Model): Connection Setting :type parameters: list[~azure.mgmt.botservice.models.ConnectionSettingParameter] + :param provisioning_state: Provisioning state of the resource + :type provisioning_state: str """ _validation = { @@ -536,6 +735,8 @@ class ConnectionSettingProperties(Model): } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, 'client_id': {'key': 'clientId', 'type': 'str'}, 'setting_id': {'key': 'settingId', 'type': 'str'}, 'client_secret': {'key': 'clientSecret', 'type': 'str'}, @@ -543,10 +744,13 @@ class ConnectionSettingProperties(Model): 'service_provider_id': {'key': 'serviceProviderId', 'type': 'str'}, 'service_provider_display_name': {'key': 'serviceProviderDisplayName', 'type': 'str'}, 'parameters': {'key': 'parameters', 'type': '[ConnectionSettingParameter]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, } - def __init__(self, *, client_id: str=None, client_secret: str=None, scopes: str=None, service_provider_id: str=None, service_provider_display_name: str=None, parameters=None, **kwargs) -> None: + def __init__(self, *, id: str=None, name: str=None, client_id: str=None, client_secret: str=None, scopes: str=None, service_provider_id: str=None, service_provider_display_name: str=None, parameters=None, provisioning_state: str=None, **kwargs) -> None: super(ConnectionSettingProperties, self).__init__(**kwargs) + self.id = id + self.name = name self.client_id = client_id self.setting_id = None self.client_secret = client_secret @@ -554,13 +758,24 @@ def __init__(self, *, client_id: str=None, client_secret: str=None, scopes: str= self.service_provider_id = service_provider_id self.service_provider_display_name = service_provider_display_name self.parameters = parameters + self.provisioning_state = provisioning_state class DirectLineChannel(Channel): """Direct Line channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Direct Line channel @@ -570,16 +785,20 @@ class DirectLineChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'DirectLineChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(DirectLineChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(DirectLineChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'DirectLineChannel' @@ -589,15 +808,19 @@ class DirectLineChannelProperties(Model): :param sites: The list of Direct Line sites :type sites: list[~azure.mgmt.botservice.models.DirectLineSite] + :param direct_line_embed_code: Direct Line embed code of the resource + :type direct_line_embed_code: str """ _attribute_map = { 'sites': {'key': 'sites', 'type': '[DirectLineSite]'}, + 'direct_line_embed_code': {'key': 'DirectLineEmbedCode', 'type': 'str'}, } - def __init__(self, *, sites=None, **kwargs) -> None: + def __init__(self, *, sites=None, direct_line_embed_code: str=None, **kwargs) -> None: super(DirectLineChannelProperties, self).__init__(**kwargs) self.sites = sites + self.direct_line_embed_code = direct_line_embed_code class DirectLineSite(Model): @@ -630,6 +853,9 @@ class DirectLineSite(Model): :param is_secure_site_enabled: Whether this site is enabled for authentication with Bot Framework. :type is_secure_site_enabled: bool + :param is_block_user_upload_enabled: Whether this site is enabled for + block user upload. + :type is_block_user_upload_enabled: bool :param trusted_origins: List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True. :type trusted_origins: list[str] @@ -654,10 +880,11 @@ class DirectLineSite(Model): 'is_v1_enabled': {'key': 'isV1Enabled', 'type': 'bool'}, 'is_v3_enabled': {'key': 'isV3Enabled', 'type': 'bool'}, 'is_secure_site_enabled': {'key': 'isSecureSiteEnabled', 'type': 'bool'}, + 'is_block_user_upload_enabled': {'key': 'isBlockUserUploadEnabled', 'type': 'bool'}, 'trusted_origins': {'key': 'trustedOrigins', 'type': '[str]'}, } - def __init__(self, *, site_name: str, is_enabled: bool, is_v1_enabled: bool, is_v3_enabled: bool, is_secure_site_enabled: bool=None, trusted_origins=None, **kwargs) -> None: + def __init__(self, *, site_name: str, is_enabled: bool, is_v1_enabled: bool, is_v3_enabled: bool, is_secure_site_enabled: bool=None, is_block_user_upload_enabled: bool=None, trusted_origins=None, **kwargs) -> None: super(DirectLineSite, self).__init__(**kwargs) self.site_id = None self.site_name = site_name @@ -667,14 +894,25 @@ def __init__(self, *, site_name: str, is_enabled: bool, is_v1_enabled: bool, is_ self.is_v1_enabled = is_v1_enabled self.is_v3_enabled = is_v3_enabled self.is_secure_site_enabled = is_secure_site_enabled + self.is_block_user_upload_enabled = is_block_user_upload_enabled self.trusted_origins = trusted_origins class DirectLineSpeechChannel(Channel): """DirectLine Speech channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to DirectLine Speech @@ -684,16 +922,20 @@ class DirectLineSpeechChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'DirectLineSpeechChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(DirectLineSpeechChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(DirectLineSpeechChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'DirectLineSpeechChannel' @@ -703,9 +945,12 @@ class DirectLineSpeechChannelProperties(Model): All required parameters must be populated in order to send to Azure. - :param cognitive_services_subscription_id: Required. The cognitive service - subscription ID to use with this channel registration. - :type cognitive_services_subscription_id: str + :param cognitive_service_region: Required. The cognitive service region + with this channel registration. + :type cognitive_service_region: str + :param cognitive_service_subscription_key: Required. The cognitive service + subscription key to use with this channel registration. + :type cognitive_service_subscription_key: str :param is_enabled: Whether this channel is enabled or not. :type is_enabled: bool :param custom_voice_deployment_id: Custom speech model id (optional). @@ -718,20 +963,23 @@ class DirectLineSpeechChannelProperties(Model): """ _validation = { - 'cognitive_services_subscription_id': {'required': True}, + 'cognitive_service_region': {'required': True}, + 'cognitive_service_subscription_key': {'required': True}, } _attribute_map = { - 'cognitive_services_subscription_id': {'key': 'cognitiveServicesSubscriptionId', 'type': 'str'}, + 'cognitive_service_region': {'key': 'cognitiveServiceRegion', 'type': 'str'}, + 'cognitive_service_subscription_key': {'key': 'cognitiveServiceSubscriptionKey', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, 'custom_voice_deployment_id': {'key': 'customVoiceDeploymentId', 'type': 'str'}, 'custom_speech_model_id': {'key': 'customSpeechModelId', 'type': 'str'}, 'is_default_bot_for_cog_svc_account': {'key': 'isDefaultBotForCogSvcAccount', 'type': 'bool'}, } - def __init__(self, *, cognitive_services_subscription_id: str, is_enabled: bool=None, custom_voice_deployment_id: str=None, custom_speech_model_id: str=None, is_default_bot_for_cog_svc_account: bool=None, **kwargs) -> None: + def __init__(self, *, cognitive_service_region: str, cognitive_service_subscription_key: str, is_enabled: bool=None, custom_voice_deployment_id: str=None, custom_speech_model_id: str=None, is_default_bot_for_cog_svc_account: bool=None, **kwargs) -> None: super(DirectLineSpeechChannelProperties, self).__init__(**kwargs) - self.cognitive_services_subscription_id = cognitive_services_subscription_id + self.cognitive_service_region = cognitive_service_region + self.cognitive_service_subscription_key = cognitive_service_subscription_key self.is_enabled = is_enabled self.custom_voice_deployment_id = custom_voice_deployment_id self.custom_speech_model_id = custom_speech_model_id @@ -741,8 +989,18 @@ def __init__(self, *, cognitive_services_subscription_id: str, is_enabled: bool= class EmailChannel(Channel): """Email channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to email channel @@ -751,16 +1009,20 @@ class EmailChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'EmailChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(EmailChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(EmailChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'EmailChannel' @@ -855,8 +1117,18 @@ def __init__(self, *, code: str, message: str, **kwargs) -> None: class FacebookChannel(Channel): """Facebook channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to bot facebook channel @@ -864,16 +1136,20 @@ class FacebookChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'FacebookChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(FacebookChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(FacebookChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'FacebookChannel' @@ -955,11 +1231,73 @@ def __init__(self, *, id: str, access_token: str=None, **kwargs) -> None: self.access_token = access_token +class HostSettingsResponse(Model): + """The response body returned for a request to Bot Service Management to check + per subscription hostSettings. + + :param oauth_url: For in-conversation bot user authentication + :type oauth_url: str + :param to_bot_from_channel_open_id_metadata_url: For verifying incoming + tokens from the channels + :type to_bot_from_channel_open_id_metadata_url: str + :param to_bot_from_channel_token_issuer: For verifying incoming tokens + from the channels + :type to_bot_from_channel_token_issuer: str + :param to_bot_from_emulator_open_id_metadata_url: For verifying incoming + tokens from bot emulator + :type to_bot_from_emulator_open_id_metadata_url: str + :param to_channel_from_bot_login_url: For getting access token to channels + from bot host + :type to_channel_from_bot_login_url: str + :param to_channel_from_bot_oauth_scope: For getting access token to + channels from bot host + :type to_channel_from_bot_oauth_scope: str + :param validate_authority: Per cloud OAuth setting on whether authority is + validated + :type validate_authority: bool + :param bot_open_id_metadata: Same as toBotFromChannelOpenIdMetadataUrl, + used by SDK < v4.12 + :type bot_open_id_metadata: str + """ + + _attribute_map = { + 'oauth_url': {'key': 'OAuthUrl', 'type': 'str'}, + 'to_bot_from_channel_open_id_metadata_url': {'key': 'ToBotFromChannelOpenIdMetadataUrl', 'type': 'str'}, + 'to_bot_from_channel_token_issuer': {'key': 'ToBotFromChannelTokenIssuer', 'type': 'str'}, + 'to_bot_from_emulator_open_id_metadata_url': {'key': 'ToBotFromEmulatorOpenIdMetadataUrl', 'type': 'str'}, + 'to_channel_from_bot_login_url': {'key': 'ToChannelFromBotLoginUrl', 'type': 'str'}, + 'to_channel_from_bot_oauth_scope': {'key': 'ToChannelFromBotOAuthScope', 'type': 'str'}, + 'validate_authority': {'key': 'ValidateAuthority', 'type': 'bool'}, + 'bot_open_id_metadata': {'key': 'BotOpenIdMetadata', 'type': 'str'}, + } + + def __init__(self, *, oauth_url: str=None, to_bot_from_channel_open_id_metadata_url: str=None, to_bot_from_channel_token_issuer: str=None, to_bot_from_emulator_open_id_metadata_url: str=None, to_channel_from_bot_login_url: str=None, to_channel_from_bot_oauth_scope: str=None, validate_authority: bool=None, bot_open_id_metadata: str=None, **kwargs) -> None: + super(HostSettingsResponse, self).__init__(**kwargs) + self.oauth_url = oauth_url + self.to_bot_from_channel_open_id_metadata_url = to_bot_from_channel_open_id_metadata_url + self.to_bot_from_channel_token_issuer = to_bot_from_channel_token_issuer + self.to_bot_from_emulator_open_id_metadata_url = to_bot_from_emulator_open_id_metadata_url + self.to_channel_from_bot_login_url = to_channel_from_bot_login_url + self.to_channel_from_bot_oauth_scope = to_channel_from_bot_oauth_scope + self.validate_authority = validate_authority + self.bot_open_id_metadata = bot_open_id_metadata + + class KikChannel(Channel): """Kik channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Kik channel resource @@ -967,16 +1305,20 @@ class KikChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'KikChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(KikChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(KikChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'KikChannel' @@ -1020,8 +1362,18 @@ def __init__(self, *, user_name: str, is_enabled: bool, api_key: str=None, is_va class LineChannel(Channel): """Line channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to line channel resource @@ -1029,16 +1381,20 @@ class LineChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'LineChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(LineChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(LineChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'LineChannel' @@ -1112,11 +1468,94 @@ def __init__(self, *, channel_secret: str=None, channel_access_token: str=None, self.channel_access_token = channel_access_token +class ListChannelWithKeysResponse(BotChannel): + """The ARM channel of list channel with keys operation response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Specifies the resource ID. + :vartype id: str + :ivar name: Specifies the name of the resource. + :vartype name: str + :param location: Specifies the location of the resource. + :type location: str + :ivar type: Specifies the type of the resource. + :vartype type: str + :param tags: Contains resource tags defined as key/value pairs. + :type tags: dict[str, str] + :param sku: Gets or sets the SKU of the resource. + :type sku: ~azure.mgmt.botservice.models.Sku + :param kind: Required. Gets or sets the Kind of the resource. Possible + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' + :type kind: str or ~azure.mgmt.botservice.models.Kind + :param etag: Entity Tag + :type etag: str + :ivar zones: Entity zones + :vartype zones: list[str] + :param properties: The set of properties specific to bot channel resource + :type properties: ~azure.mgmt.botservice.models.Channel + :param resource: The set of properties specific to bot channel resource + :type resource: ~azure.mgmt.botservice.models.Channel + :param setting: Channel settings + :type setting: ~azure.mgmt.botservice.models.ChannelSettings + :param provisioning_state: Provisioning state of the resource + :type provisioning_state: str + :param entity_tag: Entity tag of the resource + :type entity_tag: str + :param changed_time: Changed time of the resource + :type changed_time: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'zones': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': 'Channel'}, + 'resource': {'key': 'resource', 'type': 'Channel'}, + 'setting': {'key': 'setting', 'type': 'ChannelSettings'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'entity_tag': {'key': 'entityTag', 'type': 'str'}, + 'changed_time': {'key': 'changedTime', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, sku=None, kind=None, etag: str=None, properties=None, resource=None, setting=None, provisioning_state: str=None, entity_tag: str=None, changed_time: str=None, **kwargs) -> None: + super(ListChannelWithKeysResponse, self).__init__(location=location, tags=tags, sku=sku, kind=kind, etag=etag, properties=properties, **kwargs) + self.resource = resource + self.setting = setting + self.provisioning_state = provisioning_state + self.entity_tag = entity_tag + self.changed_time = changed_time + + class MsTeamsChannel(Channel): """Microsoft Teams channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Microsoft Teams @@ -1125,16 +1564,20 @@ class MsTeamsChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'MsTeamsChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(MsTeamsChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(MsTeamsChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'MsTeamsChannel' @@ -1150,6 +1593,13 @@ class MsTeamsChannelProperties(Model): :type calling_web_hook: str :param is_enabled: Required. Whether this channel is enabled for the bot :type is_enabled: bool + :param incoming_call_route: Webhook for Microsoft Teams channel calls + :type incoming_call_route: str + :param deployment_environment: Deployment environment for Microsoft Teams + channel calls + :type deployment_environment: str + :param accepted_terms: Whether this channel accepted terms + :type accepted_terms: bool """ _validation = { @@ -1160,13 +1610,19 @@ class MsTeamsChannelProperties(Model): 'enable_calling': {'key': 'enableCalling', 'type': 'bool'}, 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'incoming_call_route': {'key': 'incomingCallRoute', 'type': 'str'}, + 'deployment_environment': {'key': 'deploymentEnvironment', 'type': 'str'}, + 'accepted_terms': {'key': 'acceptedTerms', 'type': 'bool'}, } - def __init__(self, *, is_enabled: bool, enable_calling: bool=None, calling_web_hook: str=None, **kwargs) -> None: + def __init__(self, *, is_enabled: bool, enable_calling: bool=None, calling_web_hook: str=None, incoming_call_route: str=None, deployment_environment: str=None, accepted_terms: bool=None, **kwargs) -> None: super(MsTeamsChannelProperties, self).__init__(**kwargs) self.enable_calling = enable_calling self.calling_web_hook = calling_web_hook self.is_enabled = is_enabled + self.incoming_call_route = incoming_call_route + self.deployment_environment = deployment_environment + self.accepted_terms = accepted_terms class OperationDisplayInfo(Model): @@ -1226,6 +1682,253 @@ def __init__(self, *, name: str=None, display=None, origin: str=None, properties self.properties = properties +class OperationResultsDescription(Model): + """The properties indicating the operation result of an operation on a + service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ID of the operation returned. + :vartype id: str + :ivar name: The name of the operation result. + :vartype name: str + :ivar status: The status of the operation being performed. Possible values + include: 'Canceled', 'Succeeded', 'Failed', 'Requested', 'Running' + :vartype status: str or + ~azure.mgmt.botservice.models.OperationResultStatus + :ivar start_time: The time that the operation was started. + :vartype start_time: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'status': {'readonly': True}, + 'start_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationResultsDescription, self).__init__(**kwargs) + self.id = None + self.name = None + self.status = None + self.start_time = None + + +class PrivateEndpoint(Model): + """The Private Endpoint resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ARM identifier for Private Endpoint + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None + + +class PrivateLinkResourceBase(Model): + """Private Link Resource Base. + + Common fields that are returned in the response for all BotService Private + Link Resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(PrivateLinkResourceBase, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class PrivateEndpointConnection(PrivateLinkResourceBase): + """The Private Endpoint Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.botservice.models.PrivateEndpoint + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.botservice.models.PrivateLinkServiceConnectionState + :param provisioning_state: The provisioning state of the private endpoint + connection resource. Possible values include: 'Succeeded', 'Creating', + 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.botservice.models.PrivateEndpointConnectionProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'private_link_service_connection_state': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, private_link_service_connection_state, private_endpoint=None, provisioning_state=None, **kwargs) -> None: + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.provisioning_state = provisioning_state + + +class PrivateLinkResource(PrivateLinkResourceBase): + """A private link resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :param required_zone_names: The private link resource Private link DNS + zone name. + :type required_zone_names: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + } + + def __init__(self, *, required_zone_names=None, **kwargs) -> None: + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + self.required_zone_names = required_zone_names + + +class PrivateLinkResourceListResult(Model): + """A list of private link resources. + + :param value: Array of private link resources + :type value: list[~azure.mgmt.botservice.models.PrivateLinkResource] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = value + + +class PrivateLinkServiceConnectionState(Model): + """A collection of information about the state of the connection between + service consumer and provider. + + :param status: Indicates whether the connection has been + Approved/Rejected/Removed by the owner of the service. Possible values + include: 'Pending', 'Approved', 'Rejected' + :type status: str or + ~azure.mgmt.botservice.models.PrivateEndpointServiceConnectionStatus + :param description: The reason for approval/rejection of the connection. + :type description: str + :param actions_required: A message indicating if changes on the service + provider require any updates on the consumer. + :type actions_required: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, *, status=None, description: str=None, actions_required: str=None, **kwargs) -> None: + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = status + self.description = description + self.actions_required = actions_required + + class ServiceProvider(Model): """Service Provider Definition. @@ -1260,6 +1963,9 @@ class ServiceProviderParameter(Model): :vartype help_url: str :ivar default: Default Name for the Service Provider :vartype default: str + :ivar metadata: Meta data for the Service Provider + :vartype metadata: + ~azure.mgmt.botservice.models.ServiceProviderParameterMetadata """ _validation = { @@ -1269,6 +1975,7 @@ class ServiceProviderParameter(Model): 'description': {'readonly': True}, 'help_url': {'readonly': True}, 'default': {'readonly': True}, + 'metadata': {'readonly': True}, } _attribute_map = { @@ -1278,6 +1985,7 @@ class ServiceProviderParameter(Model): 'description': {'key': 'description', 'type': 'str'}, 'help_url': {'key': 'helpUrl', 'type': 'str'}, 'default': {'key': 'default', 'type': 'str'}, + 'metadata': {'key': 'metadata', 'type': 'ServiceProviderParameterMetadata'}, } def __init__(self, **kwargs) -> None: @@ -1288,6 +1996,40 @@ def __init__(self, **kwargs) -> None: self.description = None self.help_url = None self.default = None + self.metadata = None + + +class ServiceProviderParameterMetadata(Model): + """Meta data for the Service Provider. + + :param constraints: the constraints of the bot meta data. + :type constraints: + ~azure.mgmt.botservice.models.ServiceProviderParameterMetadataConstraints + """ + + _attribute_map = { + 'constraints': {'key': 'constraints', 'type': 'ServiceProviderParameterMetadataConstraints'}, + } + + def __init__(self, *, constraints=None, **kwargs) -> None: + super(ServiceProviderParameterMetadata, self).__init__(**kwargs) + self.constraints = constraints + + +class ServiceProviderParameterMetadataConstraints(Model): + """the constraints of the bot meta data. + + :param required: Whether required the constraints of the bot meta data. + :type required: bool + """ + + _attribute_map = { + 'required': {'key': 'required', 'type': 'bool'}, + } + + def __init__(self, *, required: bool=None, **kwargs) -> None: + super(ServiceProviderParameterMetadataConstraints, self).__init__(**kwargs) + self.required = required class ServiceProviderProperties(Model): @@ -1366,6 +2108,95 @@ def __init__(self, *, next_link: str=None, **kwargs) -> None: self.value = None +class Site(Model): + """A site for the channel. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar site_id: Site Id + :vartype site_id: str + :param site_name: Required. Site name + :type site_name: str + :ivar key: Primary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key: str + :ivar key2: Secondary key. Value only returned through POST to the action + Channel List API, otherwise empty. + :vartype key2: str + :param is_enabled: Required. Whether this site is enabled for DirectLine + channel + :type is_enabled: bool + :param is_webchat_preview_enabled: Required. Whether this site is enabled + for preview versions of Webchat. Default value: False . + :type is_webchat_preview_enabled: bool + :param is_v1_enabled: Required. Whether this site is enabled for Bot + Framework V1 protocol. + :type is_v1_enabled: bool + :param is_v3_enabled: Required. Whether this site is enabled for Bot + Framework V1 protocol. + :type is_v3_enabled: bool + :param is_secure_site_enabled: Whether this site is enabled for + authentication with Bot Framework. + :type is_secure_site_enabled: bool + :param is_block_user_upload_enabled: Whether this site is enabled for + block user upload. + :type is_block_user_upload_enabled: bool + :param trusted_origins: List of Trusted Origin URLs for this site. This + field is applicable only if isSecureSiteEnabled is True. + :type trusted_origins: list[str] + :param is_token_enabled: Whether this site is token enabled for channel + :type is_token_enabled: bool + :param e_tag: Entity Tag + :type e_tag: str + """ + + _validation = { + 'site_id': {'readonly': True}, + 'site_name': {'required': True}, + 'key': {'readonly': True}, + 'key2': {'readonly': True}, + 'is_enabled': {'required': True}, + 'is_webchat_preview_enabled': {'required': True}, + 'is_v1_enabled': {'required': True}, + 'is_v3_enabled': {'required': True}, + } + + _attribute_map = { + 'site_id': {'key': 'siteId', 'type': 'str'}, + 'site_name': {'key': 'siteName', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'is_webchat_preview_enabled': {'key': 'isWebchatPreviewEnabled', 'type': 'bool'}, + 'is_v1_enabled': {'key': 'isV1Enabled', 'type': 'bool'}, + 'is_v3_enabled': {'key': 'isV3Enabled', 'type': 'bool'}, + 'is_secure_site_enabled': {'key': 'isSecureSiteEnabled', 'type': 'bool'}, + 'is_block_user_upload_enabled': {'key': 'isBlockUserUploadEnabled', 'type': 'bool'}, + 'trusted_origins': {'key': 'trustedOrigins', 'type': '[str]'}, + 'is_token_enabled': {'key': 'isTokenEnabled', 'type': 'bool'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + } + + def __init__(self, *, site_name: str, is_enabled: bool, is_v1_enabled: bool, is_v3_enabled: bool, is_webchat_preview_enabled: bool=False, is_secure_site_enabled: bool=None, is_block_user_upload_enabled: bool=None, trusted_origins=None, is_token_enabled: bool=None, e_tag: str=None, **kwargs) -> None: + super(Site, self).__init__(**kwargs) + self.site_id = None + self.site_name = site_name + self.key = None + self.key2 = None + self.is_enabled = is_enabled + self.is_webchat_preview_enabled = is_webchat_preview_enabled + self.is_v1_enabled = is_v1_enabled + self.is_v3_enabled = is_v3_enabled + self.is_secure_site_enabled = is_secure_site_enabled + self.is_block_user_upload_enabled = is_block_user_upload_enabled + self.trusted_origins = trusted_origins + self.is_token_enabled = is_token_enabled + self.e_tag = e_tag + + class SiteInfo(Model): """Site information for WebChat or DirectLine Channels to identify which site to regenerate keys for. @@ -1429,8 +2260,18 @@ def __init__(self, *, name, **kwargs) -> None: class SkypeChannel(Channel): """Skype channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Skype channel @@ -1439,16 +2280,20 @@ class SkypeChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'SkypeChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(SkypeChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(SkypeChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'SkypeChannel' @@ -1474,6 +2319,8 @@ class SkypeChannelProperties(Model): :type groups_mode: str :param calling_web_hook: Calling web hook for Skype channel :type calling_web_hook: str + :param incoming_call_route: Incoming call route for Skype channel + :type incoming_call_route: str :param is_enabled: Required. Whether this channel is enabled for the bot :type is_enabled: bool """ @@ -1491,10 +2338,11 @@ class SkypeChannelProperties(Model): 'enable_groups': {'key': 'enableGroups', 'type': 'bool'}, 'groups_mode': {'key': 'groupsMode', 'type': 'str'}, 'calling_web_hook': {'key': 'callingWebHook', 'type': 'str'}, + 'incoming_call_route': {'key': 'incomingCallRoute', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, } - def __init__(self, *, is_enabled: bool, enable_messaging: bool=None, enable_media_cards: bool=None, enable_video: bool=None, enable_calling: bool=None, enable_screen_sharing: bool=None, enable_groups: bool=None, groups_mode: str=None, calling_web_hook: str=None, **kwargs) -> None: + def __init__(self, *, is_enabled: bool, enable_messaging: bool=None, enable_media_cards: bool=None, enable_video: bool=None, enable_calling: bool=None, enable_screen_sharing: bool=None, enable_groups: bool=None, groups_mode: str=None, calling_web_hook: str=None, incoming_call_route: str=None, **kwargs) -> None: super(SkypeChannelProperties, self).__init__(**kwargs) self.enable_messaging = enable_messaging self.enable_media_cards = enable_media_cards @@ -1504,14 +2352,25 @@ def __init__(self, *, is_enabled: bool, enable_messaging: bool=None, enable_medi self.enable_groups = enable_groups self.groups_mode = groups_mode self.calling_web_hook = calling_web_hook + self.incoming_call_route = incoming_call_route self.is_enabled = is_enabled class SlackChannel(Channel): """Slack channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Slack channel @@ -1520,16 +2379,20 @@ class SlackChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'SlackChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(SlackChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(SlackChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'SlackChannel' @@ -1550,6 +2413,8 @@ class SlackChannelProperties(Model): :param verification_token: The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty. :type verification_token: str + :param scopes: The Slack permission scopes. + :type scopes: str :param landing_page_url: The Slack landing page Url :type landing_page_url: str :ivar redirect_action: The Slack redirect action @@ -1579,20 +2444,22 @@ class SlackChannelProperties(Model): 'client_id': {'key': 'clientId', 'type': 'str'}, 'client_secret': {'key': 'clientSecret', 'type': 'str'}, 'verification_token': {'key': 'verificationToken', 'type': 'str'}, + 'scopes': {'key': 'scopes', 'type': 'str'}, 'landing_page_url': {'key': 'landingPageUrl', 'type': 'str'}, 'redirect_action': {'key': 'redirectAction', 'type': 'str'}, 'last_submission_id': {'key': 'lastSubmissionId', 'type': 'str'}, 'register_before_oauth_flow': {'key': 'registerBeforeOAuthFlow', 'type': 'bool'}, - 'is_validated': {'key': 'isValidated', 'type': 'bool'}, + 'is_validated': {'key': 'IsValidated', 'type': 'bool'}, 'signing_secret': {'key': 'signingSecret', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, } - def __init__(self, *, is_enabled: bool, client_id: str=None, client_secret: str=None, verification_token: str=None, landing_page_url: str=None, signing_secret: str=None, **kwargs) -> None: + def __init__(self, *, is_enabled: bool, client_id: str=None, client_secret: str=None, verification_token: str=None, scopes: str=None, landing_page_url: str=None, signing_secret: str=None, **kwargs) -> None: super(SlackChannelProperties, self).__init__(**kwargs) self.client_id = client_id self.client_secret = client_secret self.verification_token = verification_token + self.scopes = scopes self.landing_page_url = landing_page_url self.redirect_action = None self.last_submission_id = None @@ -1605,8 +2472,18 @@ def __init__(self, *, is_enabled: bool, client_id: str=None, client_secret: str= class SmsChannel(Channel): """Sms channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Sms channel resource @@ -1614,16 +2491,20 @@ class SmsChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'SmsChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(SmsChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(SmsChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'SmsChannel' @@ -1673,8 +2554,18 @@ def __init__(self, *, phone: str, account_sid: str, is_enabled: bool, auth_token class TelegramChannel(Channel): """Telegram channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Telegram channel @@ -1683,16 +2574,20 @@ class TelegramChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'TelegramChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(TelegramChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(TelegramChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'TelegramChannel' @@ -1731,8 +2626,18 @@ def __init__(self, *, is_enabled: bool, access_token: str=None, is_validated: bo class WebChatChannel(Channel): """Web Chat channel definition. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. + :param etag: Entity Tag of the resource + :type etag: str + :ivar provisioning_state: Provisioning state of the resource + :vartype provisioning_state: str + :param location: Specifies the location of the resource. Default value: + "global" . + :type location: str :param channel_name: Required. Constant filled by server. :type channel_name: str :param properties: The set of properties specific to Web Chat channel @@ -1741,16 +2646,20 @@ class WebChatChannel(Channel): """ _validation = { + 'provisioning_state': {'readonly': True}, 'channel_name': {'required': True}, } _attribute_map = { + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, 'channel_name': {'key': 'channelName', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'WebChatChannelProperties'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(WebChatChannel, self).__init__(**kwargs) + def __init__(self, *, etag: str=None, location: str="global", properties=None, **kwargs) -> None: + super(WebChatChannel, self).__init__(etag=etag, location=location, **kwargs) self.properties = properties self.channel_name = 'WebChatChannel' @@ -1803,9 +2712,9 @@ class WebChatSite(Model): :param is_enabled: Required. Whether this site is enabled for DirectLine channel :type is_enabled: bool - :param enable_preview: Required. Whether this site is enabled for preview - versions of Webchat - :type enable_preview: bool + :param is_webchat_preview_enabled: Required. Whether this site is enabled + for preview versions of Webchat. Default value: False . + :type is_webchat_preview_enabled: bool """ _validation = { @@ -1814,7 +2723,7 @@ class WebChatSite(Model): 'key': {'readonly': True}, 'key2': {'readonly': True}, 'is_enabled': {'required': True}, - 'enable_preview': {'required': True}, + 'is_webchat_preview_enabled': {'required': True}, } _attribute_map = { @@ -1823,14 +2732,14 @@ class WebChatSite(Model): 'key': {'key': 'key', 'type': 'str'}, 'key2': {'key': 'key2', 'type': 'str'}, 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, - 'enable_preview': {'key': 'enablePreview', 'type': 'bool'}, + 'is_webchat_preview_enabled': {'key': 'isWebchatPreviewEnabled', 'type': 'bool'}, } - def __init__(self, *, site_name: str, is_enabled: bool, enable_preview: bool, **kwargs) -> None: + def __init__(self, *, site_name: str, is_enabled: bool, is_webchat_preview_enabled: bool=False, **kwargs) -> None: super(WebChatSite, self).__init__(**kwargs) self.site_id = None self.site_name = site_name self.key = None self.key2 = None self.is_enabled = is_enabled - self.enable_preview = enable_preview + self.is_webchat_preview_enabled = is_webchat_preview_enabled diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_paged_models.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_paged_models.py index d169551a983b..12d4c3b24aba 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_paged_models.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/_paged_models.py @@ -64,3 +64,16 @@ class ConnectionSettingPaged(Paged): def __init__(self, *args, **kwargs): super(ConnectionSettingPaged, self).__init__(*args, **kwargs) +class PrivateEndpointConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PrivateEndpointConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PrivateEndpointConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(PrivateEndpointConnectionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/__init__.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/__init__.py index 892f8e5743d7..d2757c60bb46 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/__init__.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/__init__.py @@ -14,6 +14,10 @@ from ._direct_line_operations import DirectLineOperations from ._operations import Operations from ._bot_connection_operations import BotConnectionOperations +from ._host_settings_operations import HostSettingsOperations +from ._operation_results_operations import OperationResultsOperations +from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations __all__ = [ 'BotsOperations', @@ -21,4 +25,8 @@ 'DirectLineOperations', 'Operations', 'BotConnectionOperations', + 'HostSettingsOperations', + 'OperationResultsOperations', + 'PrivateEndpointConnectionsOperations', + 'PrivateLinkResourcesOperations', ] diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bot_connection_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bot_connection_operations.py index ed00506f04bb..347611c389ca 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bot_connection_operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bot_connection_operations.py @@ -24,7 +24,7 @@ class BotConnectionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-06-02" + self.api_version = "2021-05-01-preview" self.config = config diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bots_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bots_operations.py index 5c083ba1aa78..aa7069078761 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bots_operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_bots_operations.py @@ -24,7 +24,7 @@ class BotsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-06-02" + self.api_version = "2021-05-01-preview" self.config = config @@ -124,7 +124,7 @@ def update( :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py index 21d1a766a01d..1d52b77e359f 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_channels_operations.py @@ -24,7 +24,7 @@ class ChannelsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-06-02" + self.api_version = "2021-05-01-preview" self.config = config @@ -136,7 +136,7 @@ def update( :param sku: Gets or sets the SKU of the resource. :type sku: ~azure.mgmt.botservice.models.Sku :param kind: Required. Gets or sets the Kind of the resource. Possible - values include: 'sdk', 'designer', 'bot', 'function' + values include: 'sdk', 'designer', 'bot', 'function', 'azurebot' :type kind: str or ~azure.mgmt.botservice.models.Kind :param etag: Entity Tag :type etag: str @@ -344,8 +344,8 @@ def list_with_keys( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: BotChannel or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.botservice.models.BotChannel or + :return: ListChannelWithKeysResponse or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.botservice.models.ListChannelWithKeysResponse or ~msrest.pipeline.ClientRawResponse :raises: :class:`ErrorException` @@ -383,7 +383,7 @@ def list_with_keys( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('BotChannel', response) + deserialized = self._deserialize('ListChannelWithKeysResponse', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_direct_line_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_direct_line_operations.py index 3612cf149b5a..c9a64e2e6ebe 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_direct_line_operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_direct_line_operations.py @@ -24,7 +24,7 @@ class DirectLineOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-06-02" + self.api_version = "2021-05-01-preview" self.config = config diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_host_settings_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_host_settings_operations.py new file mode 100644 index 000000000000..2fa36c8ad5a2 --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_host_settings_operations.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class HostSettingsOperations(object): + """HostSettingsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2021-05-01-preview" + + self.config = config + + def get( + self, custom_headers=None, raw=False, **operation_config): + """Get per subscription settings needed to host bot in compute resource + such as Azure App Service. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: HostSettingsResponse or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.botservice.models.HostSettingsResponse or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('HostSettingsResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings'} diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operation_results_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operation_results_operations.py new file mode 100644 index 000000000000..10d9e3f00097 --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operation_results_operations.py @@ -0,0 +1,130 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class OperationResultsOperations(object): + """OperationResultsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2021-05-01-preview" + + self.config = config + + + def _get_initial( + self, operation_result_id, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'operationResultId': self._serialize.url("operation_result_id", operation_result_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OperationResultsDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get( + self, operation_result_id, custom_headers=None, raw=False, polling=True, **operation_config): + """Get the operation result for a long running operation. + + :param operation_result_id: The ID of the operation result to get. + :type operation_result_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + OperationResultsDescription or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.botservice.models.OperationResultsDescription] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.botservice.models.OperationResultsDescription]] + :raises: + :class:`ErrorException` + """ + raw_result = self._get_initial( + operation_result_id=operation_result_id, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('OperationResultsDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}'} diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operations.py index 1489465f9e7c..7ef3f948c158 100644 --- a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operations.py +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_operations.py @@ -24,7 +24,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-06-02". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-06-02" + self.api_version = "2021-05-01-preview" self.config = config diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_endpoint_connections_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_endpoint_connections_operations.py new file mode 100644 index 000000000000..bf2c5b3226e2 --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_endpoint_connections_operations.py @@ -0,0 +1,307 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PrivateEndpointConnectionsOperations(object): + """PrivateEndpointConnectionsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2021-05-01-preview" + + self.config = config + + def list( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + """List all the private endpoint connections associated with the Bot. + + :param resource_group_name: The name of the Bot resource group in the + user subscription. + :type resource_group_name: str + :param resource_name: The name of the Bot resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PrivateEndpointConnection + :rtype: + ~azure.mgmt.botservice.models.PrivateEndpointConnectionPaged[~azure.mgmt.botservice.models.PrivateEndpointConnection] + :raises: + :class:`ErrorException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.PrivateEndpointConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections'} + + def get( + self, resource_group_name, resource_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified private endpoint connection associated with the Bot. + + :param resource_group_name: The name of the Bot resource group in the + user subscription. + :type resource_group_name: str + :param resource_name: The name of the Bot resource. + :type resource_name: str + :param private_endpoint_connection_name: The name of the private + endpoint connection associated with the Azure resource + :type private_endpoint_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateEndpointConnection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.botservice.models.PrivateEndpointConnection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} + + def create( + self, resource_group_name, resource_name, private_endpoint_connection_name, properties, custom_headers=None, raw=False, **operation_config): + """Update the state of specified private endpoint connection associated + with the Bot. + + :param resource_group_name: The name of the Bot resource group in the + user subscription. + :type resource_group_name: str + :param resource_name: The name of the Bot resource. + :type resource_name: str + :param private_endpoint_connection_name: The name of the private + endpoint connection associated with the Azure resource + :type private_endpoint_connection_name: str + :param properties: The private endpoint connection properties. + :type properties: + ~azure.mgmt.botservice.models.PrivateEndpointConnection + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateEndpointConnection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.botservice.models.PrivateEndpointConnection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(properties, 'PrivateEndpointConnection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} + + def delete( + self, resource_group_name, resource_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified private endpoint connection associated with the + Bot. + + :param resource_group_name: The name of the Bot resource group in the + user subscription. + :type resource_group_name: str + :param resource_name: The name of the Bot resource. + :type resource_name: str + :param private_endpoint_connection_name: The name of the private + endpoint connection associated with the Azure resource + :type private_endpoint_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} diff --git a/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_link_resources_operations.py b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_link_resources_operations.py new file mode 100644 index 000000000000..1db319186c55 --- /dev/null +++ b/sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/operations/_private_link_resources_operations.py @@ -0,0 +1,101 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PrivateLinkResourcesOperations(object): + """PrivateLinkResourcesOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2021-05-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2021-05-01-preview" + + self.config = config + + def list_by_bot_resource( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the private link resources that need to be created for a Bot. + + :param resource_group_name: The name of the Bot resource group in the + user subscription. + :type resource_group_name: str + :param resource_name: The name of the Bot resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateLinkResourceListResult or ClientRawResponse if + raw=true + :rtype: ~azure.mgmt.botservice.models.PrivateLinkResourceListResult or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.list_by_bot_resource.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateLinkResourceListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_by_bot_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateLinkResources'}