@azure/arm-healthbot 2.1.1-alpha.20250205.1 → 2.1.1-alpha.20250207.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -14
- package/{dist-esm/src → dist/browser}/healthbotClient.d.ts +2 -2
- package/dist/browser/healthbotClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/healthbotClient.js +15 -18
- package/dist/browser/healthbotClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js +25 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/bots.d.ts +3 -3
- package/dist/browser/operations/bots.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/bots.js +70 -78
- package/dist/browser/operations/bots.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/bots.d.ts +1 -1
- package/dist/browser/operationsInterfaces/bots.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/bots.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/healthbotClient.d.ts +21 -0
- package/dist/commonjs/healthbotClient.d.ts.map +1 -0
- package/dist/commonjs/healthbotClient.js +103 -0
- package/dist/commonjs/healthbotClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +29 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-healthbot.d.ts → dist/commonjs/models/index.d.ts} +313 -454
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +23 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +19 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +506 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +12 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +115 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/bots.d.ts +99 -0
- package/dist/commonjs/operations/bots.d.ts.map +1 -0
- package/dist/commonjs/operations/bots.js +481 -0
- package/dist/commonjs/operations/bots.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +138 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/bots.d.ts +63 -0
- package/dist/commonjs/operationsInterfaces/bots.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/bots.js +10 -0
- package/dist/commonjs/operationsInterfaces/bots.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/healthbotClient.d.ts +21 -0
- package/dist/esm/healthbotClient.d.ts.map +1 -0
- package/dist/esm/healthbotClient.js +98 -0
- package/dist/esm/healthbotClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +25 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +313 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +19 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +503 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +12 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +112 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/bots.d.ts +99 -0
- package/dist/esm/operations/bots.d.ts.map +1 -0
- package/dist/esm/operations/bots.js +477 -0
- package/dist/esm/operations/bots.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +134 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/bots.d.ts +63 -0
- package/dist/esm/operationsInterfaces/bots.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/bots.js} +2 -3
- package/dist/esm/operationsInterfaces/bots.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/healthbotClient.d.ts +21 -0
- package/dist/react-native/healthbotClient.d.ts.map +1 -0
- package/dist/react-native/healthbotClient.js +98 -0
- package/dist/react-native/healthbotClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +25 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +313 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +20 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +19 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +503 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +12 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +112 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/bots.d.ts +99 -0
- package/dist/react-native/operations/bots.d.ts.map +1 -0
- package/dist/react-native/operations/bots.js +477 -0
- package/dist/react-native/operations/bots.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +134 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/bots.d.ts +63 -0
- package/dist/react-native/operationsInterfaces/bots.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/bots.js +9 -0
- package/dist/react-native/operationsInterfaces/bots.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +70 -41
- package/dist/index.js +0 -1451
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/botsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/botsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/botsCreateSample.js +0 -33
- package/dist-esm/samples-dev/botsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/botsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/botsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/botsDeleteSample.js +0 -29
- package/dist-esm/samples-dev/botsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/botsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/botsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/botsGetSample.js +0 -29
- package/dist-esm/samples-dev/botsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/botsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/botsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/botsListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/botsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/botsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/botsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/botsListSample.js +0 -43
- package/dist-esm/samples-dev/botsListSample.js.map +0 -1
- package/dist-esm/samples-dev/botsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/botsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/botsUpdateSample.js +0 -23
- package/dist-esm/samples-dev/botsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -43
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/src/healthbotClient.d.ts.map +0 -1
- package/dist-esm/src/healthbotClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -29
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/bots.d.ts.map +0 -1
- package/dist-esm/src/operations/bots.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/bots.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/bots.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/healthbotClient.ts +0 -142
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -355
- package/src/models/mappers.ts +0 -530
- package/src/models/parameters.ts +0 -130
- package/src/operations/bots.ts +0 -619
- package/src/operations/operations.ts +0 -150
- package/src/operationsInterfaces/bots.ts +0 -116
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/bots.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js
DELETED
|
@@ -1,1451 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Copyright (c) Microsoft Corporation.
|
|
32
|
-
* Licensed under the MIT License.
|
|
33
|
-
*
|
|
34
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
-
*/
|
|
37
|
-
const pageMap = new WeakMap();
|
|
38
|
-
/**
|
|
39
|
-
* Given a result page from a pageable operation, returns a
|
|
40
|
-
* continuation token that can be used to begin paging from
|
|
41
|
-
* that point later.
|
|
42
|
-
* @param page A result object from calling .byPage() on a paged operation.
|
|
43
|
-
* @returns The continuation token that can be passed into byPage().
|
|
44
|
-
*/
|
|
45
|
-
function getContinuationToken(page) {
|
|
46
|
-
var _a;
|
|
47
|
-
if (typeof page !== "object" || page === null) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
|
51
|
-
}
|
|
52
|
-
function setContinuationToken(page, continuationToken) {
|
|
53
|
-
var _a;
|
|
54
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
58
|
-
pageInfo.continuationToken = continuationToken;
|
|
59
|
-
pageMap.set(page, pageInfo);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/*
|
|
63
|
-
* Copyright (c) Microsoft Corporation.
|
|
64
|
-
* Licensed under the MIT License.
|
|
65
|
-
*
|
|
66
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
-
*/
|
|
69
|
-
/** Known values of {@link IdentityType} that the service accepts. */
|
|
70
|
-
exports.KnownIdentityType = void 0;
|
|
71
|
-
(function (KnownIdentityType) {
|
|
72
|
-
/** User */
|
|
73
|
-
KnownIdentityType["User"] = "User";
|
|
74
|
-
/** Application */
|
|
75
|
-
KnownIdentityType["Application"] = "Application";
|
|
76
|
-
/** ManagedIdentity */
|
|
77
|
-
KnownIdentityType["ManagedIdentity"] = "ManagedIdentity";
|
|
78
|
-
/** Key */
|
|
79
|
-
KnownIdentityType["Key"] = "Key";
|
|
80
|
-
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
81
|
-
|
|
82
|
-
/*
|
|
83
|
-
* Copyright (c) Microsoft Corporation.
|
|
84
|
-
* Licensed under the MIT License.
|
|
85
|
-
*
|
|
86
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
87
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
88
|
-
*/
|
|
89
|
-
const Sku = {
|
|
90
|
-
type: {
|
|
91
|
-
name: "Composite",
|
|
92
|
-
className: "Sku",
|
|
93
|
-
modelProperties: {
|
|
94
|
-
name: {
|
|
95
|
-
serializedName: "name",
|
|
96
|
-
required: true,
|
|
97
|
-
type: {
|
|
98
|
-
name: "Enum",
|
|
99
|
-
allowedValues: ["F0", "S1", "C0"]
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
const Identity = {
|
|
106
|
-
type: {
|
|
107
|
-
name: "Composite",
|
|
108
|
-
className: "Identity",
|
|
109
|
-
modelProperties: {
|
|
110
|
-
principalId: {
|
|
111
|
-
serializedName: "principalId",
|
|
112
|
-
readOnly: true,
|
|
113
|
-
type: {
|
|
114
|
-
name: "String"
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
tenantId: {
|
|
118
|
-
serializedName: "tenantId",
|
|
119
|
-
readOnly: true,
|
|
120
|
-
type: {
|
|
121
|
-
name: "String"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
type: {
|
|
125
|
-
serializedName: "type",
|
|
126
|
-
type: {
|
|
127
|
-
name: "Enum",
|
|
128
|
-
allowedValues: [
|
|
129
|
-
"SystemAssigned",
|
|
130
|
-
"UserAssigned",
|
|
131
|
-
"SystemAssigned, UserAssigned",
|
|
132
|
-
"None"
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
userAssignedIdentities: {
|
|
137
|
-
serializedName: "userAssignedIdentities",
|
|
138
|
-
type: {
|
|
139
|
-
name: "Dictionary",
|
|
140
|
-
value: {
|
|
141
|
-
type: { name: "Composite", className: "UserAssignedIdentity" }
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
const UserAssignedIdentity = {
|
|
149
|
-
type: {
|
|
150
|
-
name: "Composite",
|
|
151
|
-
className: "UserAssignedIdentity",
|
|
152
|
-
modelProperties: {
|
|
153
|
-
principalId: {
|
|
154
|
-
serializedName: "principalId",
|
|
155
|
-
readOnly: true,
|
|
156
|
-
type: {
|
|
157
|
-
name: "String"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
clientId: {
|
|
161
|
-
serializedName: "clientId",
|
|
162
|
-
readOnly: true,
|
|
163
|
-
type: {
|
|
164
|
-
name: "String"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
const HealthBotProperties = {
|
|
171
|
-
type: {
|
|
172
|
-
name: "Composite",
|
|
173
|
-
className: "HealthBotProperties",
|
|
174
|
-
modelProperties: {
|
|
175
|
-
provisioningState: {
|
|
176
|
-
serializedName: "provisioningState",
|
|
177
|
-
readOnly: true,
|
|
178
|
-
type: {
|
|
179
|
-
name: "String"
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
botManagementPortalLink: {
|
|
183
|
-
serializedName: "botManagementPortalLink",
|
|
184
|
-
readOnly: true,
|
|
185
|
-
type: {
|
|
186
|
-
name: "String"
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
const Resource = {
|
|
193
|
-
type: {
|
|
194
|
-
name: "Composite",
|
|
195
|
-
className: "Resource",
|
|
196
|
-
modelProperties: {
|
|
197
|
-
id: {
|
|
198
|
-
serializedName: "id",
|
|
199
|
-
readOnly: true,
|
|
200
|
-
type: {
|
|
201
|
-
name: "String"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
name: {
|
|
205
|
-
serializedName: "name",
|
|
206
|
-
readOnly: true,
|
|
207
|
-
type: {
|
|
208
|
-
name: "String"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
type: {
|
|
212
|
-
serializedName: "type",
|
|
213
|
-
readOnly: true,
|
|
214
|
-
type: {
|
|
215
|
-
name: "String"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
systemData: {
|
|
219
|
-
serializedName: "systemData",
|
|
220
|
-
type: {
|
|
221
|
-
name: "Composite",
|
|
222
|
-
className: "SystemData"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
const SystemData = {
|
|
229
|
-
type: {
|
|
230
|
-
name: "Composite",
|
|
231
|
-
className: "SystemData",
|
|
232
|
-
modelProperties: {
|
|
233
|
-
createdBy: {
|
|
234
|
-
serializedName: "createdBy",
|
|
235
|
-
type: {
|
|
236
|
-
name: "String"
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
createdByType: {
|
|
240
|
-
serializedName: "createdByType",
|
|
241
|
-
type: {
|
|
242
|
-
name: "String"
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
createdAt: {
|
|
246
|
-
serializedName: "createdAt",
|
|
247
|
-
type: {
|
|
248
|
-
name: "DateTime"
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
lastModifiedBy: {
|
|
252
|
-
serializedName: "lastModifiedBy",
|
|
253
|
-
type: {
|
|
254
|
-
name: "String"
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
lastModifiedByType: {
|
|
258
|
-
serializedName: "lastModifiedByType",
|
|
259
|
-
type: {
|
|
260
|
-
name: "String"
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
lastModifiedAt: {
|
|
264
|
-
serializedName: "lastModifiedAt",
|
|
265
|
-
type: {
|
|
266
|
-
name: "DateTime"
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
const ErrorModel = {
|
|
273
|
-
type: {
|
|
274
|
-
name: "Composite",
|
|
275
|
-
className: "ErrorModel",
|
|
276
|
-
modelProperties: {
|
|
277
|
-
error: {
|
|
278
|
-
serializedName: "error",
|
|
279
|
-
type: {
|
|
280
|
-
name: "Composite",
|
|
281
|
-
className: "ErrorError"
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
const ErrorError = {
|
|
288
|
-
type: {
|
|
289
|
-
name: "Composite",
|
|
290
|
-
className: "ErrorError",
|
|
291
|
-
modelProperties: {
|
|
292
|
-
code: {
|
|
293
|
-
serializedName: "code",
|
|
294
|
-
readOnly: true,
|
|
295
|
-
type: {
|
|
296
|
-
name: "String"
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
message: {
|
|
300
|
-
serializedName: "message",
|
|
301
|
-
readOnly: true,
|
|
302
|
-
type: {
|
|
303
|
-
name: "String"
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
target: {
|
|
307
|
-
serializedName: "target",
|
|
308
|
-
readOnly: true,
|
|
309
|
-
type: {
|
|
310
|
-
name: "String"
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
details: {
|
|
314
|
-
serializedName: "details",
|
|
315
|
-
readOnly: true,
|
|
316
|
-
type: {
|
|
317
|
-
name: "Sequence",
|
|
318
|
-
element: {
|
|
319
|
-
type: {
|
|
320
|
-
name: "Composite",
|
|
321
|
-
className: "ErrorModel"
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
additionalInfo: {
|
|
327
|
-
serializedName: "additionalInfo",
|
|
328
|
-
readOnly: true,
|
|
329
|
-
type: {
|
|
330
|
-
name: "Sequence",
|
|
331
|
-
element: {
|
|
332
|
-
type: {
|
|
333
|
-
name: "Composite",
|
|
334
|
-
className: "ErrorAdditionalInfo"
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
const ErrorAdditionalInfo = {
|
|
343
|
-
type: {
|
|
344
|
-
name: "Composite",
|
|
345
|
-
className: "ErrorAdditionalInfo",
|
|
346
|
-
modelProperties: {
|
|
347
|
-
type: {
|
|
348
|
-
serializedName: "type",
|
|
349
|
-
readOnly: true,
|
|
350
|
-
type: {
|
|
351
|
-
name: "String"
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
info: {
|
|
355
|
-
serializedName: "info",
|
|
356
|
-
readOnly: true,
|
|
357
|
-
type: {
|
|
358
|
-
name: "Dictionary",
|
|
359
|
-
value: { type: { name: "any" } }
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
const HealthBotUpdateParameters = {
|
|
366
|
-
type: {
|
|
367
|
-
name: "Composite",
|
|
368
|
-
className: "HealthBotUpdateParameters",
|
|
369
|
-
modelProperties: {
|
|
370
|
-
tags: {
|
|
371
|
-
serializedName: "tags",
|
|
372
|
-
type: {
|
|
373
|
-
name: "Dictionary",
|
|
374
|
-
value: { type: { name: "String" } }
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
sku: {
|
|
378
|
-
serializedName: "sku",
|
|
379
|
-
type: {
|
|
380
|
-
name: "Composite",
|
|
381
|
-
className: "Sku"
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
identity: {
|
|
385
|
-
serializedName: "identity",
|
|
386
|
-
type: {
|
|
387
|
-
name: "Composite",
|
|
388
|
-
className: "Identity"
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
location: {
|
|
392
|
-
serializedName: "location",
|
|
393
|
-
type: {
|
|
394
|
-
name: "String"
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
const BotResponseList = {
|
|
401
|
-
type: {
|
|
402
|
-
name: "Composite",
|
|
403
|
-
className: "BotResponseList",
|
|
404
|
-
modelProperties: {
|
|
405
|
-
nextLink: {
|
|
406
|
-
serializedName: "nextLink",
|
|
407
|
-
readOnly: true,
|
|
408
|
-
type: {
|
|
409
|
-
name: "String"
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
value: {
|
|
413
|
-
serializedName: "value",
|
|
414
|
-
readOnly: true,
|
|
415
|
-
type: {
|
|
416
|
-
name: "Sequence",
|
|
417
|
-
element: {
|
|
418
|
-
type: {
|
|
419
|
-
name: "Composite",
|
|
420
|
-
className: "HealthBot"
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
const AvailableOperations = {
|
|
429
|
-
type: {
|
|
430
|
-
name: "Composite",
|
|
431
|
-
className: "AvailableOperations",
|
|
432
|
-
modelProperties: {
|
|
433
|
-
value: {
|
|
434
|
-
serializedName: "value",
|
|
435
|
-
type: {
|
|
436
|
-
name: "Sequence",
|
|
437
|
-
element: {
|
|
438
|
-
type: {
|
|
439
|
-
name: "Composite",
|
|
440
|
-
className: "OperationDetail"
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
nextLink: {
|
|
446
|
-
serializedName: "nextLink",
|
|
447
|
-
type: {
|
|
448
|
-
name: "String"
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
const OperationDetail = {
|
|
455
|
-
type: {
|
|
456
|
-
name: "Composite",
|
|
457
|
-
className: "OperationDetail",
|
|
458
|
-
modelProperties: {
|
|
459
|
-
name: {
|
|
460
|
-
serializedName: "name",
|
|
461
|
-
type: {
|
|
462
|
-
name: "String"
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
isDataAction: {
|
|
466
|
-
serializedName: "isDataAction",
|
|
467
|
-
type: {
|
|
468
|
-
name: "Boolean"
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
display: {
|
|
472
|
-
serializedName: "display",
|
|
473
|
-
type: {
|
|
474
|
-
name: "Composite",
|
|
475
|
-
className: "OperationDisplay"
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
origin: {
|
|
479
|
-
serializedName: "origin",
|
|
480
|
-
type: {
|
|
481
|
-
name: "String"
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
properties: {
|
|
485
|
-
serializedName: "properties",
|
|
486
|
-
type: {
|
|
487
|
-
name: "Dictionary",
|
|
488
|
-
value: { type: { name: "any" } }
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
const OperationDisplay = {
|
|
495
|
-
type: {
|
|
496
|
-
name: "Composite",
|
|
497
|
-
className: "OperationDisplay",
|
|
498
|
-
modelProperties: {
|
|
499
|
-
provider: {
|
|
500
|
-
serializedName: "provider",
|
|
501
|
-
type: {
|
|
502
|
-
name: "String"
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
resource: {
|
|
506
|
-
serializedName: "resource",
|
|
507
|
-
type: {
|
|
508
|
-
name: "String"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
operation: {
|
|
512
|
-
serializedName: "operation",
|
|
513
|
-
type: {
|
|
514
|
-
name: "String"
|
|
515
|
-
}
|
|
516
|
-
},
|
|
517
|
-
description: {
|
|
518
|
-
serializedName: "description",
|
|
519
|
-
type: {
|
|
520
|
-
name: "String"
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
const ValidationResult = {
|
|
527
|
-
type: {
|
|
528
|
-
name: "Composite",
|
|
529
|
-
className: "ValidationResult",
|
|
530
|
-
modelProperties: {
|
|
531
|
-
status: {
|
|
532
|
-
serializedName: "status",
|
|
533
|
-
type: {
|
|
534
|
-
name: "String"
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
const TrackedResource = {
|
|
541
|
-
type: {
|
|
542
|
-
name: "Composite",
|
|
543
|
-
className: "TrackedResource",
|
|
544
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
545
|
-
serializedName: "tags",
|
|
546
|
-
type: {
|
|
547
|
-
name: "Dictionary",
|
|
548
|
-
value: { type: { name: "String" } }
|
|
549
|
-
}
|
|
550
|
-
}, location: {
|
|
551
|
-
serializedName: "location",
|
|
552
|
-
required: true,
|
|
553
|
-
type: {
|
|
554
|
-
name: "String"
|
|
555
|
-
}
|
|
556
|
-
} })
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
const HealthBot = {
|
|
560
|
-
type: {
|
|
561
|
-
name: "Composite",
|
|
562
|
-
className: "HealthBot",
|
|
563
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
|
|
564
|
-
serializedName: "sku",
|
|
565
|
-
type: {
|
|
566
|
-
name: "Composite",
|
|
567
|
-
className: "Sku"
|
|
568
|
-
}
|
|
569
|
-
}, identity: {
|
|
570
|
-
serializedName: "identity",
|
|
571
|
-
type: {
|
|
572
|
-
name: "Composite",
|
|
573
|
-
className: "Identity"
|
|
574
|
-
}
|
|
575
|
-
}, properties: {
|
|
576
|
-
serializedName: "properties",
|
|
577
|
-
type: {
|
|
578
|
-
name: "Composite",
|
|
579
|
-
className: "HealthBotProperties"
|
|
580
|
-
}
|
|
581
|
-
} })
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
586
|
-
__proto__: null,
|
|
587
|
-
AvailableOperations: AvailableOperations,
|
|
588
|
-
BotResponseList: BotResponseList,
|
|
589
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
590
|
-
ErrorError: ErrorError,
|
|
591
|
-
ErrorModel: ErrorModel,
|
|
592
|
-
HealthBot: HealthBot,
|
|
593
|
-
HealthBotProperties: HealthBotProperties,
|
|
594
|
-
HealthBotUpdateParameters: HealthBotUpdateParameters,
|
|
595
|
-
Identity: Identity,
|
|
596
|
-
OperationDetail: OperationDetail,
|
|
597
|
-
OperationDisplay: OperationDisplay,
|
|
598
|
-
Resource: Resource,
|
|
599
|
-
Sku: Sku,
|
|
600
|
-
SystemData: SystemData,
|
|
601
|
-
TrackedResource: TrackedResource,
|
|
602
|
-
UserAssignedIdentity: UserAssignedIdentity,
|
|
603
|
-
ValidationResult: ValidationResult
|
|
604
|
-
});
|
|
605
|
-
|
|
606
|
-
/*
|
|
607
|
-
* Copyright (c) Microsoft Corporation.
|
|
608
|
-
* Licensed under the MIT License.
|
|
609
|
-
*
|
|
610
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
611
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
612
|
-
*/
|
|
613
|
-
const contentType = {
|
|
614
|
-
parameterPath: ["options", "contentType"],
|
|
615
|
-
mapper: {
|
|
616
|
-
defaultValue: "application/json",
|
|
617
|
-
isConstant: true,
|
|
618
|
-
serializedName: "Content-Type",
|
|
619
|
-
type: {
|
|
620
|
-
name: "String"
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
const parameters = {
|
|
625
|
-
parameterPath: "parameters",
|
|
626
|
-
mapper: HealthBot
|
|
627
|
-
};
|
|
628
|
-
const accept = {
|
|
629
|
-
parameterPath: "accept",
|
|
630
|
-
mapper: {
|
|
631
|
-
defaultValue: "application/json",
|
|
632
|
-
isConstant: true,
|
|
633
|
-
serializedName: "Accept",
|
|
634
|
-
type: {
|
|
635
|
-
name: "String"
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
const $host = {
|
|
640
|
-
parameterPath: "$host",
|
|
641
|
-
mapper: {
|
|
642
|
-
serializedName: "$host",
|
|
643
|
-
required: true,
|
|
644
|
-
type: {
|
|
645
|
-
name: "String"
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
skipEncoding: true
|
|
649
|
-
};
|
|
650
|
-
const subscriptionId = {
|
|
651
|
-
parameterPath: "subscriptionId",
|
|
652
|
-
mapper: {
|
|
653
|
-
serializedName: "subscriptionId",
|
|
654
|
-
required: true,
|
|
655
|
-
type: {
|
|
656
|
-
name: "String"
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
const resourceGroupName = {
|
|
661
|
-
parameterPath: "resourceGroupName",
|
|
662
|
-
mapper: {
|
|
663
|
-
constraints: {
|
|
664
|
-
Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"),
|
|
665
|
-
MaxLength: 64,
|
|
666
|
-
MinLength: 2
|
|
667
|
-
},
|
|
668
|
-
serializedName: "resourceGroupName",
|
|
669
|
-
required: true,
|
|
670
|
-
type: {
|
|
671
|
-
name: "String"
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
|
-
const botName = {
|
|
676
|
-
parameterPath: "botName",
|
|
677
|
-
mapper: {
|
|
678
|
-
constraints: {
|
|
679
|
-
Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"),
|
|
680
|
-
MaxLength: 64,
|
|
681
|
-
MinLength: 2
|
|
682
|
-
},
|
|
683
|
-
serializedName: "botName",
|
|
684
|
-
required: true,
|
|
685
|
-
type: {
|
|
686
|
-
name: "String"
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
|
-
const apiVersion = {
|
|
691
|
-
parameterPath: "apiVersion",
|
|
692
|
-
mapper: {
|
|
693
|
-
defaultValue: "2021-06-10",
|
|
694
|
-
isConstant: true,
|
|
695
|
-
serializedName: "api-version",
|
|
696
|
-
type: {
|
|
697
|
-
name: "String"
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
|
-
const parameters1 = {
|
|
702
|
-
parameterPath: "parameters",
|
|
703
|
-
mapper: HealthBotUpdateParameters
|
|
704
|
-
};
|
|
705
|
-
const nextLink = {
|
|
706
|
-
parameterPath: "nextLink",
|
|
707
|
-
mapper: {
|
|
708
|
-
serializedName: "nextLink",
|
|
709
|
-
required: true,
|
|
710
|
-
type: {
|
|
711
|
-
name: "String"
|
|
712
|
-
}
|
|
713
|
-
},
|
|
714
|
-
skipEncoding: true
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
/*
|
|
718
|
-
* Copyright (c) Microsoft Corporation.
|
|
719
|
-
* Licensed under the MIT License.
|
|
720
|
-
*
|
|
721
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
722
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
723
|
-
*/
|
|
724
|
-
class LroImpl {
|
|
725
|
-
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
726
|
-
this.sendOperationFn = sendOperationFn;
|
|
727
|
-
this.args = args;
|
|
728
|
-
this.spec = spec;
|
|
729
|
-
this.requestPath = requestPath;
|
|
730
|
-
this.requestMethod = requestMethod;
|
|
731
|
-
}
|
|
732
|
-
sendInitialRequest() {
|
|
733
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
734
|
-
return this.sendOperationFn(this.args, this.spec);
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
sendPollRequest(path) {
|
|
738
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
739
|
-
const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
740
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
/*
|
|
746
|
-
* Copyright (c) Microsoft Corporation.
|
|
747
|
-
* Licensed under the MIT License.
|
|
748
|
-
*
|
|
749
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
750
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
751
|
-
*/
|
|
752
|
-
/// <reference lib="esnext.asynciterable" />
|
|
753
|
-
/** Class containing Bots operations. */
|
|
754
|
-
class BotsImpl {
|
|
755
|
-
/**
|
|
756
|
-
* Initialize a new instance of the class Bots class.
|
|
757
|
-
* @param client Reference to the service client
|
|
758
|
-
*/
|
|
759
|
-
constructor(client) {
|
|
760
|
-
this.client = client;
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* Returns all the resources of a particular type belonging to a resource group
|
|
764
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
765
|
-
* @param options The options parameters.
|
|
766
|
-
*/
|
|
767
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
768
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
769
|
-
return {
|
|
770
|
-
next() {
|
|
771
|
-
return iter.next();
|
|
772
|
-
},
|
|
773
|
-
[Symbol.asyncIterator]() {
|
|
774
|
-
return this;
|
|
775
|
-
},
|
|
776
|
-
byPage: (settings) => {
|
|
777
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
778
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
779
|
-
}
|
|
780
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
781
|
-
}
|
|
782
|
-
};
|
|
783
|
-
}
|
|
784
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
785
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
786
|
-
let result;
|
|
787
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
788
|
-
if (!continuationToken) {
|
|
789
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
790
|
-
let page = result.value || [];
|
|
791
|
-
continuationToken = result.nextLink;
|
|
792
|
-
setContinuationToken(page, continuationToken);
|
|
793
|
-
yield yield tslib.__await(page);
|
|
794
|
-
}
|
|
795
|
-
while (continuationToken) {
|
|
796
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
797
|
-
continuationToken = result.nextLink;
|
|
798
|
-
let page = result.value || [];
|
|
799
|
-
setContinuationToken(page, continuationToken);
|
|
800
|
-
yield yield tslib.__await(page);
|
|
801
|
-
}
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
805
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
806
|
-
var _a, e_1, _b, _c;
|
|
807
|
-
try {
|
|
808
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
809
|
-
_c = _f.value;
|
|
810
|
-
_d = false;
|
|
811
|
-
const page = _c;
|
|
812
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
816
|
-
finally {
|
|
817
|
-
try {
|
|
818
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
819
|
-
}
|
|
820
|
-
finally { if (e_1) throw e_1.error; }
|
|
821
|
-
}
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
/**
|
|
825
|
-
* Returns all the resources of a particular type belonging to a subscription.
|
|
826
|
-
* @param options The options parameters.
|
|
827
|
-
*/
|
|
828
|
-
list(options) {
|
|
829
|
-
const iter = this.listPagingAll(options);
|
|
830
|
-
return {
|
|
831
|
-
next() {
|
|
832
|
-
return iter.next();
|
|
833
|
-
},
|
|
834
|
-
[Symbol.asyncIterator]() {
|
|
835
|
-
return this;
|
|
836
|
-
},
|
|
837
|
-
byPage: (settings) => {
|
|
838
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
839
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
840
|
-
}
|
|
841
|
-
return this.listPagingPage(options, settings);
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
listPagingPage(options, settings) {
|
|
846
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
847
|
-
let result;
|
|
848
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
849
|
-
if (!continuationToken) {
|
|
850
|
-
result = yield tslib.__await(this._list(options));
|
|
851
|
-
let page = result.value || [];
|
|
852
|
-
continuationToken = result.nextLink;
|
|
853
|
-
setContinuationToken(page, continuationToken);
|
|
854
|
-
yield yield tslib.__await(page);
|
|
855
|
-
}
|
|
856
|
-
while (continuationToken) {
|
|
857
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
858
|
-
continuationToken = result.nextLink;
|
|
859
|
-
let page = result.value || [];
|
|
860
|
-
setContinuationToken(page, continuationToken);
|
|
861
|
-
yield yield tslib.__await(page);
|
|
862
|
-
}
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
listPagingAll(options) {
|
|
866
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
867
|
-
var _a, e_2, _b, _c;
|
|
868
|
-
try {
|
|
869
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
870
|
-
_c = _f.value;
|
|
871
|
-
_d = false;
|
|
872
|
-
const page = _c;
|
|
873
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
877
|
-
finally {
|
|
878
|
-
try {
|
|
879
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
880
|
-
}
|
|
881
|
-
finally { if (e_2) throw e_2.error; }
|
|
882
|
-
}
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
/**
|
|
886
|
-
* Create a new Azure Health Bot.
|
|
887
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
888
|
-
* @param botName The name of the Bot resource.
|
|
889
|
-
* @param parameters The parameters to provide for the created Azure Health Bot.
|
|
890
|
-
* @param options The options parameters.
|
|
891
|
-
*/
|
|
892
|
-
beginCreate(resourceGroupName, botName, parameters, options) {
|
|
893
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
894
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
895
|
-
return this.client.sendOperationRequest(args, spec);
|
|
896
|
-
});
|
|
897
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
898
|
-
var _a;
|
|
899
|
-
let currentRawResponse = undefined;
|
|
900
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
901
|
-
const callback = (rawResponse, flatResponse) => {
|
|
902
|
-
currentRawResponse = rawResponse;
|
|
903
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
904
|
-
};
|
|
905
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
906
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
907
|
-
return {
|
|
908
|
-
flatResponse,
|
|
909
|
-
rawResponse: {
|
|
910
|
-
statusCode: currentRawResponse.status,
|
|
911
|
-
body: currentRawResponse.parsedBody,
|
|
912
|
-
headers: currentRawResponse.headers.toJSON()
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
|
-
});
|
|
916
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, botName, parameters, options }, createOperationSpec);
|
|
917
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
918
|
-
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
919
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
920
|
-
lroResourceLocationConfig: "azure-async-operation"
|
|
921
|
-
});
|
|
922
|
-
yield poller.poll();
|
|
923
|
-
return poller;
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
/**
|
|
927
|
-
* Create a new Azure Health Bot.
|
|
928
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
929
|
-
* @param botName The name of the Bot resource.
|
|
930
|
-
* @param parameters The parameters to provide for the created Azure Health Bot.
|
|
931
|
-
* @param options The options parameters.
|
|
932
|
-
*/
|
|
933
|
-
beginCreateAndWait(resourceGroupName, botName, parameters, options) {
|
|
934
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
935
|
-
const poller = yield this.beginCreate(resourceGroupName, botName, parameters, options);
|
|
936
|
-
return poller.pollUntilDone();
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* Get a HealthBot.
|
|
941
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
942
|
-
* @param botName The name of the Bot resource.
|
|
943
|
-
* @param options The options parameters.
|
|
944
|
-
*/
|
|
945
|
-
get(resourceGroupName, botName, options) {
|
|
946
|
-
return this.client.sendOperationRequest({ resourceGroupName, botName, options }, getOperationSpec);
|
|
947
|
-
}
|
|
948
|
-
/**
|
|
949
|
-
* Patch a HealthBot.
|
|
950
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
951
|
-
* @param botName The name of the Bot resource.
|
|
952
|
-
* @param parameters The parameters to provide for the required Azure Health Bot.
|
|
953
|
-
* @param options The options parameters.
|
|
954
|
-
*/
|
|
955
|
-
update(resourceGroupName, botName, parameters, options) {
|
|
956
|
-
return this.client.sendOperationRequest({ resourceGroupName, botName, parameters, options }, updateOperationSpec);
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* Delete a HealthBot.
|
|
960
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
961
|
-
* @param botName The name of the Bot resource.
|
|
962
|
-
* @param options The options parameters.
|
|
963
|
-
*/
|
|
964
|
-
beginDelete(resourceGroupName, botName, options) {
|
|
965
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
966
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
967
|
-
return this.client.sendOperationRequest(args, spec);
|
|
968
|
-
});
|
|
969
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
970
|
-
var _a;
|
|
971
|
-
let currentRawResponse = undefined;
|
|
972
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
973
|
-
const callback = (rawResponse, flatResponse) => {
|
|
974
|
-
currentRawResponse = rawResponse;
|
|
975
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
976
|
-
};
|
|
977
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
978
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
979
|
-
return {
|
|
980
|
-
flatResponse,
|
|
981
|
-
rawResponse: {
|
|
982
|
-
statusCode: currentRawResponse.status,
|
|
983
|
-
body: currentRawResponse.parsedBody,
|
|
984
|
-
headers: currentRawResponse.headers.toJSON()
|
|
985
|
-
}
|
|
986
|
-
};
|
|
987
|
-
});
|
|
988
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, botName, options }, deleteOperationSpec);
|
|
989
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
990
|
-
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
991
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
|
992
|
-
});
|
|
993
|
-
yield poller.poll();
|
|
994
|
-
return poller;
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
/**
|
|
998
|
-
* Delete a HealthBot.
|
|
999
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
1000
|
-
* @param botName The name of the Bot resource.
|
|
1001
|
-
* @param options The options parameters.
|
|
1002
|
-
*/
|
|
1003
|
-
beginDeleteAndWait(resourceGroupName, botName, options) {
|
|
1004
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1005
|
-
const poller = yield this.beginDelete(resourceGroupName, botName, options);
|
|
1006
|
-
return poller.pollUntilDone();
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
/**
|
|
1010
|
-
* Returns all the resources of a particular type belonging to a resource group
|
|
1011
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
1012
|
-
* @param options The options parameters.
|
|
1013
|
-
*/
|
|
1014
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
1015
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1016
|
-
}
|
|
1017
|
-
/**
|
|
1018
|
-
* Returns all the resources of a particular type belonging to a subscription.
|
|
1019
|
-
* @param options The options parameters.
|
|
1020
|
-
*/
|
|
1021
|
-
_list(options) {
|
|
1022
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
1023
|
-
}
|
|
1024
|
-
/**
|
|
1025
|
-
* ListByResourceGroupNext
|
|
1026
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
1027
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1028
|
-
* @param options The options parameters.
|
|
1029
|
-
*/
|
|
1030
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1031
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1032
|
-
}
|
|
1033
|
-
/**
|
|
1034
|
-
* ListNext
|
|
1035
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1036
|
-
* @param options The options parameters.
|
|
1037
|
-
*/
|
|
1038
|
-
_listNext(nextLink, options) {
|
|
1039
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
// Operation Specifications
|
|
1043
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1044
|
-
const createOperationSpec = {
|
|
1045
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
1046
|
-
httpMethod: "PUT",
|
|
1047
|
-
responses: {
|
|
1048
|
-
200: {
|
|
1049
|
-
bodyMapper: HealthBot
|
|
1050
|
-
},
|
|
1051
|
-
201: {
|
|
1052
|
-
bodyMapper: HealthBot
|
|
1053
|
-
},
|
|
1054
|
-
202: {
|
|
1055
|
-
bodyMapper: HealthBot
|
|
1056
|
-
},
|
|
1057
|
-
204: {
|
|
1058
|
-
bodyMapper: HealthBot
|
|
1059
|
-
},
|
|
1060
|
-
default: {
|
|
1061
|
-
bodyMapper: ErrorModel
|
|
1062
|
-
}
|
|
1063
|
-
},
|
|
1064
|
-
requestBody: parameters,
|
|
1065
|
-
queryParameters: [apiVersion],
|
|
1066
|
-
urlParameters: [
|
|
1067
|
-
$host,
|
|
1068
|
-
subscriptionId,
|
|
1069
|
-
resourceGroupName,
|
|
1070
|
-
botName
|
|
1071
|
-
],
|
|
1072
|
-
headerParameters: [contentType, accept],
|
|
1073
|
-
mediaType: "json",
|
|
1074
|
-
serializer: serializer$1
|
|
1075
|
-
};
|
|
1076
|
-
const getOperationSpec = {
|
|
1077
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
1078
|
-
httpMethod: "GET",
|
|
1079
|
-
responses: {
|
|
1080
|
-
200: {
|
|
1081
|
-
bodyMapper: HealthBot
|
|
1082
|
-
},
|
|
1083
|
-
default: {
|
|
1084
|
-
bodyMapper: ErrorModel
|
|
1085
|
-
}
|
|
1086
|
-
},
|
|
1087
|
-
queryParameters: [apiVersion],
|
|
1088
|
-
urlParameters: [
|
|
1089
|
-
$host,
|
|
1090
|
-
subscriptionId,
|
|
1091
|
-
resourceGroupName,
|
|
1092
|
-
botName
|
|
1093
|
-
],
|
|
1094
|
-
headerParameters: [accept],
|
|
1095
|
-
serializer: serializer$1
|
|
1096
|
-
};
|
|
1097
|
-
const updateOperationSpec = {
|
|
1098
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
1099
|
-
httpMethod: "PATCH",
|
|
1100
|
-
responses: {
|
|
1101
|
-
200: {
|
|
1102
|
-
bodyMapper: HealthBot
|
|
1103
|
-
},
|
|
1104
|
-
201: {
|
|
1105
|
-
bodyMapper: HealthBot
|
|
1106
|
-
},
|
|
1107
|
-
default: {
|
|
1108
|
-
bodyMapper: ErrorModel
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
requestBody: parameters1,
|
|
1112
|
-
queryParameters: [apiVersion],
|
|
1113
|
-
urlParameters: [
|
|
1114
|
-
$host,
|
|
1115
|
-
subscriptionId,
|
|
1116
|
-
resourceGroupName,
|
|
1117
|
-
botName
|
|
1118
|
-
],
|
|
1119
|
-
headerParameters: [contentType, accept],
|
|
1120
|
-
mediaType: "json",
|
|
1121
|
-
serializer: serializer$1
|
|
1122
|
-
};
|
|
1123
|
-
const deleteOperationSpec = {
|
|
1124
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
1125
|
-
httpMethod: "DELETE",
|
|
1126
|
-
responses: {
|
|
1127
|
-
200: {},
|
|
1128
|
-
201: {},
|
|
1129
|
-
202: {},
|
|
1130
|
-
204: {},
|
|
1131
|
-
default: {
|
|
1132
|
-
bodyMapper: ErrorModel
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
queryParameters: [apiVersion],
|
|
1136
|
-
urlParameters: [
|
|
1137
|
-
$host,
|
|
1138
|
-
subscriptionId,
|
|
1139
|
-
resourceGroupName,
|
|
1140
|
-
botName
|
|
1141
|
-
],
|
|
1142
|
-
headerParameters: [accept],
|
|
1143
|
-
serializer: serializer$1
|
|
1144
|
-
};
|
|
1145
|
-
const listByResourceGroupOperationSpec = {
|
|
1146
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots",
|
|
1147
|
-
httpMethod: "GET",
|
|
1148
|
-
responses: {
|
|
1149
|
-
200: {
|
|
1150
|
-
bodyMapper: BotResponseList
|
|
1151
|
-
},
|
|
1152
|
-
default: {
|
|
1153
|
-
bodyMapper: ErrorModel
|
|
1154
|
-
}
|
|
1155
|
-
},
|
|
1156
|
-
queryParameters: [apiVersion],
|
|
1157
|
-
urlParameters: [
|
|
1158
|
-
$host,
|
|
1159
|
-
subscriptionId,
|
|
1160
|
-
resourceGroupName
|
|
1161
|
-
],
|
|
1162
|
-
headerParameters: [accept],
|
|
1163
|
-
serializer: serializer$1
|
|
1164
|
-
};
|
|
1165
|
-
const listOperationSpec$1 = {
|
|
1166
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthBot/healthBots",
|
|
1167
|
-
httpMethod: "GET",
|
|
1168
|
-
responses: {
|
|
1169
|
-
200: {
|
|
1170
|
-
bodyMapper: BotResponseList
|
|
1171
|
-
},
|
|
1172
|
-
default: {
|
|
1173
|
-
bodyMapper: ErrorModel
|
|
1174
|
-
}
|
|
1175
|
-
},
|
|
1176
|
-
queryParameters: [apiVersion],
|
|
1177
|
-
urlParameters: [$host, subscriptionId],
|
|
1178
|
-
headerParameters: [accept],
|
|
1179
|
-
serializer: serializer$1
|
|
1180
|
-
};
|
|
1181
|
-
const listByResourceGroupNextOperationSpec = {
|
|
1182
|
-
path: "{nextLink}",
|
|
1183
|
-
httpMethod: "GET",
|
|
1184
|
-
responses: {
|
|
1185
|
-
200: {
|
|
1186
|
-
bodyMapper: BotResponseList
|
|
1187
|
-
},
|
|
1188
|
-
default: {
|
|
1189
|
-
bodyMapper: ErrorModel
|
|
1190
|
-
}
|
|
1191
|
-
},
|
|
1192
|
-
queryParameters: [apiVersion],
|
|
1193
|
-
urlParameters: [
|
|
1194
|
-
$host,
|
|
1195
|
-
subscriptionId,
|
|
1196
|
-
resourceGroupName,
|
|
1197
|
-
nextLink
|
|
1198
|
-
],
|
|
1199
|
-
headerParameters: [accept],
|
|
1200
|
-
serializer: serializer$1
|
|
1201
|
-
};
|
|
1202
|
-
const listNextOperationSpec$1 = {
|
|
1203
|
-
path: "{nextLink}",
|
|
1204
|
-
httpMethod: "GET",
|
|
1205
|
-
responses: {
|
|
1206
|
-
200: {
|
|
1207
|
-
bodyMapper: BotResponseList
|
|
1208
|
-
},
|
|
1209
|
-
default: {
|
|
1210
|
-
bodyMapper: ErrorModel
|
|
1211
|
-
}
|
|
1212
|
-
},
|
|
1213
|
-
queryParameters: [apiVersion],
|
|
1214
|
-
urlParameters: [
|
|
1215
|
-
$host,
|
|
1216
|
-
subscriptionId,
|
|
1217
|
-
nextLink
|
|
1218
|
-
],
|
|
1219
|
-
headerParameters: [accept],
|
|
1220
|
-
serializer: serializer$1
|
|
1221
|
-
};
|
|
1222
|
-
|
|
1223
|
-
/*
|
|
1224
|
-
* Copyright (c) Microsoft Corporation.
|
|
1225
|
-
* Licensed under the MIT License.
|
|
1226
|
-
*
|
|
1227
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1228
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1229
|
-
*/
|
|
1230
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1231
|
-
/** Class containing Operations operations. */
|
|
1232
|
-
class OperationsImpl {
|
|
1233
|
-
/**
|
|
1234
|
-
* Initialize a new instance of the class Operations class.
|
|
1235
|
-
* @param client Reference to the service client
|
|
1236
|
-
*/
|
|
1237
|
-
constructor(client) {
|
|
1238
|
-
this.client = client;
|
|
1239
|
-
}
|
|
1240
|
-
/**
|
|
1241
|
-
* Lists all the available Azure Health Bot operations.
|
|
1242
|
-
* @param options The options parameters.
|
|
1243
|
-
*/
|
|
1244
|
-
list(options) {
|
|
1245
|
-
const iter = this.listPagingAll(options);
|
|
1246
|
-
return {
|
|
1247
|
-
next() {
|
|
1248
|
-
return iter.next();
|
|
1249
|
-
},
|
|
1250
|
-
[Symbol.asyncIterator]() {
|
|
1251
|
-
return this;
|
|
1252
|
-
},
|
|
1253
|
-
byPage: (settings) => {
|
|
1254
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
1255
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1256
|
-
}
|
|
1257
|
-
return this.listPagingPage(options, settings);
|
|
1258
|
-
}
|
|
1259
|
-
};
|
|
1260
|
-
}
|
|
1261
|
-
listPagingPage(options, settings) {
|
|
1262
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1263
|
-
let result;
|
|
1264
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
1265
|
-
if (!continuationToken) {
|
|
1266
|
-
result = yield tslib.__await(this._list(options));
|
|
1267
|
-
let page = result.value || [];
|
|
1268
|
-
continuationToken = result.nextLink;
|
|
1269
|
-
setContinuationToken(page, continuationToken);
|
|
1270
|
-
yield yield tslib.__await(page);
|
|
1271
|
-
}
|
|
1272
|
-
while (continuationToken) {
|
|
1273
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1274
|
-
continuationToken = result.nextLink;
|
|
1275
|
-
let page = result.value || [];
|
|
1276
|
-
setContinuationToken(page, continuationToken);
|
|
1277
|
-
yield yield tslib.__await(page);
|
|
1278
|
-
}
|
|
1279
|
-
});
|
|
1280
|
-
}
|
|
1281
|
-
listPagingAll(options) {
|
|
1282
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1283
|
-
var _a, e_1, _b, _c;
|
|
1284
|
-
try {
|
|
1285
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1286
|
-
_c = _f.value;
|
|
1287
|
-
_d = false;
|
|
1288
|
-
const page = _c;
|
|
1289
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1293
|
-
finally {
|
|
1294
|
-
try {
|
|
1295
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1296
|
-
}
|
|
1297
|
-
finally { if (e_1) throw e_1.error; }
|
|
1298
|
-
}
|
|
1299
|
-
});
|
|
1300
|
-
}
|
|
1301
|
-
/**
|
|
1302
|
-
* Lists all the available Azure Health Bot operations.
|
|
1303
|
-
* @param options The options parameters.
|
|
1304
|
-
*/
|
|
1305
|
-
_list(options) {
|
|
1306
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1307
|
-
}
|
|
1308
|
-
/**
|
|
1309
|
-
* ListNext
|
|
1310
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1311
|
-
* @param options The options parameters.
|
|
1312
|
-
*/
|
|
1313
|
-
_listNext(nextLink, options) {
|
|
1314
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
// Operation Specifications
|
|
1318
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1319
|
-
const listOperationSpec = {
|
|
1320
|
-
path: "/providers/Microsoft.HealthBot/operations",
|
|
1321
|
-
httpMethod: "GET",
|
|
1322
|
-
responses: {
|
|
1323
|
-
200: {
|
|
1324
|
-
bodyMapper: AvailableOperations
|
|
1325
|
-
},
|
|
1326
|
-
default: {
|
|
1327
|
-
bodyMapper: ErrorModel
|
|
1328
|
-
}
|
|
1329
|
-
},
|
|
1330
|
-
queryParameters: [apiVersion],
|
|
1331
|
-
urlParameters: [$host],
|
|
1332
|
-
headerParameters: [accept],
|
|
1333
|
-
serializer
|
|
1334
|
-
};
|
|
1335
|
-
const listNextOperationSpec = {
|
|
1336
|
-
path: "{nextLink}",
|
|
1337
|
-
httpMethod: "GET",
|
|
1338
|
-
responses: {
|
|
1339
|
-
200: {
|
|
1340
|
-
bodyMapper: AvailableOperations
|
|
1341
|
-
},
|
|
1342
|
-
default: {
|
|
1343
|
-
bodyMapper: ErrorModel
|
|
1344
|
-
}
|
|
1345
|
-
},
|
|
1346
|
-
queryParameters: [apiVersion],
|
|
1347
|
-
urlParameters: [$host, nextLink],
|
|
1348
|
-
headerParameters: [accept],
|
|
1349
|
-
serializer
|
|
1350
|
-
};
|
|
1351
|
-
|
|
1352
|
-
/*
|
|
1353
|
-
* Copyright (c) Microsoft Corporation.
|
|
1354
|
-
* Licensed under the MIT License.
|
|
1355
|
-
*
|
|
1356
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1357
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1358
|
-
*/
|
|
1359
|
-
class HealthbotClient extends coreClient__namespace.ServiceClient {
|
|
1360
|
-
/**
|
|
1361
|
-
* Initializes a new instance of the HealthbotClient class.
|
|
1362
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1363
|
-
* @param subscriptionId Azure Subscription ID.
|
|
1364
|
-
* @param options The parameter options
|
|
1365
|
-
*/
|
|
1366
|
-
constructor(credentials, subscriptionId, options) {
|
|
1367
|
-
var _a, _b, _c;
|
|
1368
|
-
if (credentials === undefined) {
|
|
1369
|
-
throw new Error("'credentials' cannot be null");
|
|
1370
|
-
}
|
|
1371
|
-
if (subscriptionId === undefined) {
|
|
1372
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
1373
|
-
}
|
|
1374
|
-
// Initializing default values for options
|
|
1375
|
-
if (!options) {
|
|
1376
|
-
options = {};
|
|
1377
|
-
}
|
|
1378
|
-
const defaults = {
|
|
1379
|
-
requestContentType: "application/json; charset=utf-8",
|
|
1380
|
-
credential: credentials
|
|
1381
|
-
};
|
|
1382
|
-
const packageDetails = `azsdk-js-arm-healthbot/2.1.1`;
|
|
1383
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1384
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1385
|
-
: `${packageDetails}`;
|
|
1386
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1387
|
-
userAgentPrefix
|
|
1388
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
1389
|
-
super(optionsWithDefaults);
|
|
1390
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
1391
|
-
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1392
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1393
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1394
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1395
|
-
}
|
|
1396
|
-
if (!options ||
|
|
1397
|
-
!options.pipeline ||
|
|
1398
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1399
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
1400
|
-
this.pipeline.removePolicy({
|
|
1401
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1402
|
-
});
|
|
1403
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1404
|
-
credential: credentials,
|
|
1405
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1406
|
-
challengeCallbacks: {
|
|
1407
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1408
|
-
}
|
|
1409
|
-
}));
|
|
1410
|
-
}
|
|
1411
|
-
// Parameter assignments
|
|
1412
|
-
this.subscriptionId = subscriptionId;
|
|
1413
|
-
// Assigning values to Constant parameters
|
|
1414
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
1415
|
-
this.apiVersion = options.apiVersion || "2021-06-10";
|
|
1416
|
-
this.bots = new BotsImpl(this);
|
|
1417
|
-
this.operations = new OperationsImpl(this);
|
|
1418
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1419
|
-
}
|
|
1420
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1421
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
1422
|
-
if (!apiVersion) {
|
|
1423
|
-
return;
|
|
1424
|
-
}
|
|
1425
|
-
const apiVersionPolicy = {
|
|
1426
|
-
name: "CustomApiVersionPolicy",
|
|
1427
|
-
sendRequest(request, next) {
|
|
1428
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
1429
|
-
const param = request.url.split("?");
|
|
1430
|
-
if (param.length > 1) {
|
|
1431
|
-
const newParams = param[1].split("&").map((item) => {
|
|
1432
|
-
if (item.indexOf("api-version") > -1) {
|
|
1433
|
-
return "api-version=" + apiVersion;
|
|
1434
|
-
}
|
|
1435
|
-
else {
|
|
1436
|
-
return item;
|
|
1437
|
-
}
|
|
1438
|
-
});
|
|
1439
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
1440
|
-
}
|
|
1441
|
-
return next(request);
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
exports.HealthbotClient = HealthbotClient;
|
|
1450
|
-
exports.getContinuationToken = getContinuationToken;
|
|
1451
|
-
//# sourceMappingURL=index.js.map
|