@azure/arm-healthbot 2.1.1-alpha.20250205.1 → 2.1.1-alpha.20250206.2
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
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Operations } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { HealthbotClient } from "../healthbotClient";
|
|
16
|
-
import {
|
|
17
|
-
OperationDetail,
|
|
18
|
-
OperationsListNextOptionalParams,
|
|
19
|
-
OperationsListOptionalParams,
|
|
20
|
-
OperationsListResponse,
|
|
21
|
-
OperationsListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Operations operations. */
|
|
26
|
-
export class OperationsImpl implements Operations {
|
|
27
|
-
private readonly client: HealthbotClient;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Operations class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: HealthbotClient) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Lists all the available Azure Health Bot operations.
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
public list(
|
|
42
|
-
options?: OperationsListOptionalParams
|
|
43
|
-
): PagedAsyncIterableIterator<OperationDetail> {
|
|
44
|
-
const iter = this.listPagingAll(options);
|
|
45
|
-
return {
|
|
46
|
-
next() {
|
|
47
|
-
return iter.next();
|
|
48
|
-
},
|
|
49
|
-
[Symbol.asyncIterator]() {
|
|
50
|
-
return this;
|
|
51
|
-
},
|
|
52
|
-
byPage: (settings?: PageSettings) => {
|
|
53
|
-
if (settings?.maxPageSize) {
|
|
54
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
-
}
|
|
56
|
-
return this.listPagingPage(options, settings);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
private async *listPagingPage(
|
|
62
|
-
options?: OperationsListOptionalParams,
|
|
63
|
-
settings?: PageSettings
|
|
64
|
-
): AsyncIterableIterator<OperationDetail[]> {
|
|
65
|
-
let result: OperationsListResponse;
|
|
66
|
-
let continuationToken = settings?.continuationToken;
|
|
67
|
-
if (!continuationToken) {
|
|
68
|
-
result = await this._list(options);
|
|
69
|
-
let page = result.value || [];
|
|
70
|
-
continuationToken = result.nextLink;
|
|
71
|
-
setContinuationToken(page, continuationToken);
|
|
72
|
-
yield page;
|
|
73
|
-
}
|
|
74
|
-
while (continuationToken) {
|
|
75
|
-
result = await this._listNext(continuationToken, options);
|
|
76
|
-
continuationToken = result.nextLink;
|
|
77
|
-
let page = result.value || [];
|
|
78
|
-
setContinuationToken(page, continuationToken);
|
|
79
|
-
yield page;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private async *listPagingAll(
|
|
84
|
-
options?: OperationsListOptionalParams
|
|
85
|
-
): AsyncIterableIterator<OperationDetail> {
|
|
86
|
-
for await (const page of this.listPagingPage(options)) {
|
|
87
|
-
yield* page;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Lists all the available Azure Health Bot operations.
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
private _list(
|
|
96
|
-
options?: OperationsListOptionalParams
|
|
97
|
-
): Promise<OperationsListResponse> {
|
|
98
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* ListNext
|
|
103
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
104
|
-
* @param options The options parameters.
|
|
105
|
-
*/
|
|
106
|
-
private _listNext(
|
|
107
|
-
nextLink: string,
|
|
108
|
-
options?: OperationsListNextOptionalParams
|
|
109
|
-
): Promise<OperationsListNextResponse> {
|
|
110
|
-
return this.client.sendOperationRequest(
|
|
111
|
-
{ nextLink, options },
|
|
112
|
-
listNextOperationSpec
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// Operation Specifications
|
|
117
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
118
|
-
|
|
119
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
120
|
-
path: "/providers/Microsoft.HealthBot/operations",
|
|
121
|
-
httpMethod: "GET",
|
|
122
|
-
responses: {
|
|
123
|
-
200: {
|
|
124
|
-
bodyMapper: Mappers.AvailableOperations
|
|
125
|
-
},
|
|
126
|
-
default: {
|
|
127
|
-
bodyMapper: Mappers.ErrorModel
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
queryParameters: [Parameters.apiVersion],
|
|
131
|
-
urlParameters: [Parameters.$host],
|
|
132
|
-
headerParameters: [Parameters.accept],
|
|
133
|
-
serializer
|
|
134
|
-
};
|
|
135
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
136
|
-
path: "{nextLink}",
|
|
137
|
-
httpMethod: "GET",
|
|
138
|
-
responses: {
|
|
139
|
-
200: {
|
|
140
|
-
bodyMapper: Mappers.AvailableOperations
|
|
141
|
-
},
|
|
142
|
-
default: {
|
|
143
|
-
bodyMapper: Mappers.ErrorModel
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
queryParameters: [Parameters.apiVersion],
|
|
147
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
148
|
-
headerParameters: [Parameters.accept],
|
|
149
|
-
serializer
|
|
150
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
-
import {
|
|
12
|
-
HealthBot,
|
|
13
|
-
BotsListByResourceGroupOptionalParams,
|
|
14
|
-
BotsListOptionalParams,
|
|
15
|
-
BotsCreateOptionalParams,
|
|
16
|
-
BotsCreateResponse,
|
|
17
|
-
BotsGetOptionalParams,
|
|
18
|
-
BotsGetResponse,
|
|
19
|
-
HealthBotUpdateParameters,
|
|
20
|
-
BotsUpdateOptionalParams,
|
|
21
|
-
BotsUpdateResponse,
|
|
22
|
-
BotsDeleteOptionalParams
|
|
23
|
-
} from "../models";
|
|
24
|
-
|
|
25
|
-
/// <reference lib="esnext.asynciterable" />
|
|
26
|
-
/** Interface representing a Bots. */
|
|
27
|
-
export interface Bots {
|
|
28
|
-
/**
|
|
29
|
-
* Returns all the resources of a particular type belonging to a resource group
|
|
30
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
31
|
-
* @param options The options parameters.
|
|
32
|
-
*/
|
|
33
|
-
listByResourceGroup(
|
|
34
|
-
resourceGroupName: string,
|
|
35
|
-
options?: BotsListByResourceGroupOptionalParams
|
|
36
|
-
): PagedAsyncIterableIterator<HealthBot>;
|
|
37
|
-
/**
|
|
38
|
-
* Returns all the resources of a particular type belonging to a subscription.
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
list(options?: BotsListOptionalParams): PagedAsyncIterableIterator<HealthBot>;
|
|
42
|
-
/**
|
|
43
|
-
* Create a new Azure Health Bot.
|
|
44
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
45
|
-
* @param botName The name of the Bot resource.
|
|
46
|
-
* @param parameters The parameters to provide for the created Azure Health Bot.
|
|
47
|
-
* @param options The options parameters.
|
|
48
|
-
*/
|
|
49
|
-
beginCreate(
|
|
50
|
-
resourceGroupName: string,
|
|
51
|
-
botName: string,
|
|
52
|
-
parameters: HealthBot,
|
|
53
|
-
options?: BotsCreateOptionalParams
|
|
54
|
-
): Promise<
|
|
55
|
-
PollerLike<PollOperationState<BotsCreateResponse>, BotsCreateResponse>
|
|
56
|
-
>;
|
|
57
|
-
/**
|
|
58
|
-
* Create a new Azure Health Bot.
|
|
59
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
60
|
-
* @param botName The name of the Bot resource.
|
|
61
|
-
* @param parameters The parameters to provide for the created Azure Health Bot.
|
|
62
|
-
* @param options The options parameters.
|
|
63
|
-
*/
|
|
64
|
-
beginCreateAndWait(
|
|
65
|
-
resourceGroupName: string,
|
|
66
|
-
botName: string,
|
|
67
|
-
parameters: HealthBot,
|
|
68
|
-
options?: BotsCreateOptionalParams
|
|
69
|
-
): Promise<BotsCreateResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* Get a HealthBot.
|
|
72
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
73
|
-
* @param botName The name of the Bot resource.
|
|
74
|
-
* @param options The options parameters.
|
|
75
|
-
*/
|
|
76
|
-
get(
|
|
77
|
-
resourceGroupName: string,
|
|
78
|
-
botName: string,
|
|
79
|
-
options?: BotsGetOptionalParams
|
|
80
|
-
): Promise<BotsGetResponse>;
|
|
81
|
-
/**
|
|
82
|
-
* Patch a HealthBot.
|
|
83
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
84
|
-
* @param botName The name of the Bot resource.
|
|
85
|
-
* @param parameters The parameters to provide for the required Azure Health Bot.
|
|
86
|
-
* @param options The options parameters.
|
|
87
|
-
*/
|
|
88
|
-
update(
|
|
89
|
-
resourceGroupName: string,
|
|
90
|
-
botName: string,
|
|
91
|
-
parameters: HealthBotUpdateParameters,
|
|
92
|
-
options?: BotsUpdateOptionalParams
|
|
93
|
-
): Promise<BotsUpdateResponse>;
|
|
94
|
-
/**
|
|
95
|
-
* Delete a HealthBot.
|
|
96
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
97
|
-
* @param botName The name of the Bot resource.
|
|
98
|
-
* @param options The options parameters.
|
|
99
|
-
*/
|
|
100
|
-
beginDelete(
|
|
101
|
-
resourceGroupName: string,
|
|
102
|
-
botName: string,
|
|
103
|
-
options?: BotsDeleteOptionalParams
|
|
104
|
-
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
105
|
-
/**
|
|
106
|
-
* Delete a HealthBot.
|
|
107
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
108
|
-
* @param botName The name of the Bot resource.
|
|
109
|
-
* @param options The options parameters.
|
|
110
|
-
*/
|
|
111
|
-
beginDeleteAndWait(
|
|
112
|
-
resourceGroupName: string,
|
|
113
|
-
botName: string,
|
|
114
|
-
options?: BotsDeleteOptionalParams
|
|
115
|
-
): Promise<void>;
|
|
116
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import { OperationDetail, OperationsListOptionalParams } from "../models";
|
|
11
|
-
|
|
12
|
-
/// <reference lib="esnext.asynciterable" />
|
|
13
|
-
/** Interface representing a Operations. */
|
|
14
|
-
export interface Operations {
|
|
15
|
-
/**
|
|
16
|
-
* Lists all the available Azure Health Bot operations.
|
|
17
|
-
* @param options The options parameters.
|
|
18
|
-
*/
|
|
19
|
-
list(
|
|
20
|
-
options?: OperationsListOptionalParams
|
|
21
|
-
): PagedAsyncIterableIterator<OperationDetail>;
|
|
22
|
-
}
|
package/src/pagingHelper.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export interface PageInfo {
|
|
10
|
-
continuationToken?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Given a result page from a pageable operation, returns a
|
|
17
|
-
* continuation token that can be used to begin paging from
|
|
18
|
-
* that point later.
|
|
19
|
-
* @param page A result object from calling .byPage() on a paged operation.
|
|
20
|
-
* @returns The continuation token that can be passed into byPage().
|
|
21
|
-
*/
|
|
22
|
-
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
-
if (typeof page !== "object" || page === null) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
return pageMap.get(page)?.continuationToken;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function setContinuationToken(
|
|
30
|
-
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
32
|
-
): void {
|
|
33
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
-
pageInfo.continuationToken = continuationToken;
|
|
38
|
-
pageMap.set(page, pageInfo);
|
|
39
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "es6",
|
|
4
|
-
"moduleResolution": "node",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"target": "es6",
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"allowSyntheticDefaultImports": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": [
|
|
13
|
-
"es6",
|
|
14
|
-
"dom"
|
|
15
|
-
],
|
|
16
|
-
"declaration": true,
|
|
17
|
-
"outDir": "./dist-esm",
|
|
18
|
-
"importHelpers": true,
|
|
19
|
-
"paths": {
|
|
20
|
-
"@azure/arm-healthbot": [
|
|
21
|
-
"./src/index"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"include": [
|
|
26
|
-
"./src/**/*.ts",
|
|
27
|
-
"./test/**/*.ts",
|
|
28
|
-
"samples-dev/**/*.ts"
|
|
29
|
-
],
|
|
30
|
-
"exclude": [
|
|
31
|
-
"node_modules"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|