@azure/arm-botservice 4.0.1-alpha.20250717.1 → 4.0.1-alpha.20250718.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/dist/browser/azureBotService.js +24 -5
- package/dist/browser/azureBotService.js.map +1 -1
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +139 -56
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/botConnection.js +23 -40
- package/dist/browser/operations/botConnection.js.map +1 -1
- package/dist/browser/operations/bots.js +46 -80
- package/dist/browser/operations/bots.js.map +1 -1
- package/dist/browser/operations/channels.js +24 -41
- package/dist/browser/operations/channels.js.map +1 -1
- package/dist/browser/operations/directLine.js +1 -0
- package/dist/browser/operations/directLine.js.map +1 -1
- package/dist/browser/operations/email.js +1 -0
- package/dist/browser/operations/email.js.map +1 -1
- package/dist/browser/operations/hostSettings.js +1 -0
- package/dist/browser/operations/hostSettings.js.map +1 -1
- package/dist/browser/operations/operationResults.js +12 -6
- package/dist/browser/operations/operationResults.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +10 -27
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/qnAMakerEndpointKeys.js +1 -0
- package/dist/browser/operations/qnAMakerEndpointKeys.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureBotService.js +24 -5
- package/dist/commonjs/azureBotService.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +139 -56
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/botConnection.js +23 -39
- package/dist/commonjs/operations/botConnection.js.map +1 -1
- package/dist/commonjs/operations/bots.js +46 -79
- package/dist/commonjs/operations/bots.js.map +1 -1
- package/dist/commonjs/operations/channels.js +24 -40
- package/dist/commonjs/operations/channels.js.map +1 -1
- package/dist/commonjs/operations/directLine.js +1 -0
- package/dist/commonjs/operations/directLine.js.map +1 -1
- package/dist/commonjs/operations/email.js +1 -0
- package/dist/commonjs/operations/email.js.map +1 -1
- package/dist/commonjs/operations/hostSettings.js +1 -0
- package/dist/commonjs/operations/hostSettings.js.map +1 -1
- package/dist/commonjs/operations/operationResults.js +12 -6
- package/dist/commonjs/operations/operationResults.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +10 -26
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/qnAMakerEndpointKeys.js +1 -0
- package/dist/commonjs/operations/qnAMakerEndpointKeys.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/azureBotService.js +24 -5
- package/dist/esm/azureBotService.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +139 -56
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/botConnection.js +23 -40
- package/dist/esm/operations/botConnection.js.map +1 -1
- package/dist/esm/operations/bots.js +46 -80
- package/dist/esm/operations/bots.js.map +1 -1
- package/dist/esm/operations/channels.js +24 -41
- package/dist/esm/operations/channels.js.map +1 -1
- package/dist/esm/operations/directLine.js +1 -0
- package/dist/esm/operations/directLine.js.map +1 -1
- package/dist/esm/operations/email.js +1 -0
- package/dist/esm/operations/email.js.map +1 -1
- package/dist/esm/operations/hostSettings.js +1 -0
- package/dist/esm/operations/hostSettings.js.map +1 -1
- package/dist/esm/operations/operationResults.js +12 -6
- package/dist/esm/operations/operationResults.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +10 -27
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/qnAMakerEndpointKeys.js +1 -0
- package/dist/esm/operations/qnAMakerEndpointKeys.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureBotService.js +24 -5
- package/dist/react-native/azureBotService.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +139 -56
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/botConnection.js +23 -40
- package/dist/react-native/operations/botConnection.js.map +1 -1
- package/dist/react-native/operations/bots.js +46 -80
- package/dist/react-native/operations/bots.js.map +1 -1
- package/dist/react-native/operations/channels.js +24 -41
- package/dist/react-native/operations/channels.js.map +1 -1
- package/dist/react-native/operations/directLine.js +1 -0
- package/dist/react-native/operations/directLine.js.map +1 -1
- package/dist/react-native/operations/email.js +1 -0
- package/dist/react-native/operations/email.js.map +1 -1
- package/dist/react-native/operations/hostSettings.js +1 -0
- package/dist/react-native/operations/hostSettings.js.map +1 -1
- package/dist/react-native/operations/operationResults.js +12 -6
- package/dist/react-native/operations/operationResults.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +10 -27
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/qnAMakerEndpointKeys.js +1 -0
- package/dist/react-native/operations/qnAMakerEndpointKeys.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-botservice-node.api.md +1134 -1134
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing BotConnection operations. */
|
|
15
14
|
export class BotConnectionImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class BotConnection class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class BotConnectionImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByBotServicePagingPage(resourceGroupName, resourceName, options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByBotServicePagingPage(resourceGroupName, resourceName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByBotServicePagingPage(resourceGroupName, resourceName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByBotService(resourceGroupName, resourceName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByBotServiceNext(resourceGroupName, resourceName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByBotServicePagingAll(resourceGroupName, resourceName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByBotServicePagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByBotServicePagingAll(resourceGroupName, resourceName, options) {
|
|
65
|
+
for await (const page of this.listByBotServicePagingPage(resourceGroupName, resourceName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Lists the available Service Providers for creating Connection Settings
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"botConnection.js","sourceRoot":"","sources":["../../../src/operations/botConnection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAqBtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CACrB,iBAAyB,EACzB,YAAoB,EACpB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,yBAAyB,CACzC,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,0BAA0B,CACpC,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,0BAA0B,C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,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EACF,0IAA0I;IAC5I,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { BotConnection } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureBotService } from \"../azureBotService.js\";\nimport {\n ConnectionSetting,\n BotConnectionListByBotServiceNextOptionalParams,\n BotConnectionListByBotServiceOptionalParams,\n BotConnectionListByBotServiceResponse,\n BotConnectionListServiceProvidersOptionalParams,\n BotConnectionListServiceProvidersResponse,\n BotConnectionListWithSecretsOptionalParams,\n BotConnectionListWithSecretsResponse,\n BotConnectionCreateOptionalParams,\n BotConnectionCreateResponse,\n BotConnectionUpdateOptionalParams,\n BotConnectionUpdateResponse,\n BotConnectionGetOptionalParams,\n BotConnectionGetResponse,\n BotConnectionDeleteOptionalParams,\n BotConnectionListByBotServiceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BotConnection operations. */\nexport class BotConnectionImpl implements BotConnection {\n private readonly client: AzureBotService;\n\n /**\n * Initialize a new instance of the class BotConnection class.\n * @param client Reference to the service client\n */\n constructor(client: AzureBotService) {\n this.client = client;\n }\n\n /**\n * Returns all the Connection Settings registered to a particular BotService resource\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n public listByBotService(\n resourceGroupName: string,\n resourceName: string,\n options?: BotConnectionListByBotServiceOptionalParams\n ): PagedAsyncIterableIterator<ConnectionSetting> {\n const iter = this.listByBotServicePagingAll(\n resourceGroupName,\n resourceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBotServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByBotServicePagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: BotConnectionListByBotServiceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ConnectionSetting[]> {\n let result: BotConnectionListByBotServiceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBotService(\n resourceGroupName,\n resourceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBotServiceNext(\n resourceGroupName,\n resourceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBotServicePagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: BotConnectionListByBotServiceOptionalParams\n ): AsyncIterableIterator<ConnectionSetting> {\n for await (const page of this.listByBotServicePagingPage(\n resourceGroupName,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the available Service Providers for creating Connection Settings\n * @param options The options parameters.\n */\n listServiceProviders(\n options?: BotConnectionListServiceProvidersOptionalParams\n ): Promise<BotConnectionListServiceProvidersResponse> {\n return this.client.sendOperationRequest(\n { options },\n listServiceProvidersOperationSpec\n );\n }\n\n /**\n * Get a Connection Setting registration for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param options The options parameters.\n */\n listWithSecrets(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n options?: BotConnectionListWithSecretsOptionalParams\n ): Promise<BotConnectionListWithSecretsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, options },\n listWithSecretsOperationSpec\n );\n }\n\n /**\n * Register a new Auth Connection for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param parameters The parameters to provide for creating the Connection Setting.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n parameters: ConnectionSetting,\n options?: BotConnectionCreateOptionalParams\n ): Promise<BotConnectionCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, parameters, options },\n createOperationSpec\n );\n }\n\n /**\n * Updates a Connection Setting registration for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param parameters The parameters to provide for updating the Connection Setting.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n parameters: ConnectionSetting,\n options?: BotConnectionUpdateOptionalParams\n ): Promise<BotConnectionUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Get a Connection Setting registration for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n options?: BotConnectionGetOptionalParams\n ): Promise<BotConnectionGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a Connection Setting registration for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n options?: BotConnectionDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns all the Connection Settings registered to a particular BotService resource\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n private _listByBotService(\n resourceGroupName: string,\n resourceName: string,\n options?: BotConnectionListByBotServiceOptionalParams\n ): Promise<BotConnectionListByBotServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByBotServiceOperationSpec\n );\n }\n\n /**\n * ListByBotServiceNext\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param nextLink The nextLink from the previous successful call to the ListByBotService method.\n * @param options The options parameters.\n */\n private _listByBotServiceNext(\n resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: BotConnectionListByBotServiceNextOptionalParams\n ): Promise<BotConnectionListByBotServiceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listByBotServiceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listServiceProvidersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServiceProviderResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listWithSecretsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSetting\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSetting\n },\n 201: {\n bodyMapper: Mappers.ConnectionSetting\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSetting\n },\n 201: {\n bodyMapper: Mappers.ConnectionSetting\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSetting\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBotServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSettingResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBotServiceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSettingResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"botConnection.js","sourceRoot":"","sources":["../../../src/operations/botConnection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,K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,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { BotConnection } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureBotService } from \"../azureBotService.js\";\nimport {\n ConnectionSetting,\n BotConnectionListByBotServiceNextOptionalParams,\n BotConnectionListByBotServiceOptionalParams,\n BotConnectionListByBotServiceResponse,\n BotConnectionListServiceProvidersOptionalParams,\n BotConnectionListServiceProvidersResponse,\n BotConnectionListWithSecretsOptionalParams,\n BotConnectionListWithSecretsResponse,\n BotConnectionCreateOptionalParams,\n BotConnectionCreateResponse,\n BotConnectionUpdateOptionalParams,\n BotConnectionUpdateResponse,\n BotConnectionGetOptionalParams,\n BotConnectionGetResponse,\n BotConnectionDeleteOptionalParams,\n BotConnectionListByBotServiceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BotConnection operations. */\nexport class BotConnectionImpl implements BotConnection {\n private readonly client: AzureBotService;\n\n /**\n * Initialize a new instance of the class BotConnection class.\n * @param client Reference to the service client\n */\n constructor(client: AzureBotService) {\n this.client = client;\n }\n\n /**\n * Returns all the Connection Settings registered to a particular BotService resource\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n public listByBotService(\n resourceGroupName: string,\n resourceName: string,\n options?: BotConnectionListByBotServiceOptionalParams\n ): PagedAsyncIterableIterator<ConnectionSetting> {\n const iter = this.listByBotServicePagingAll(\n resourceGroupName,\n resourceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBotServicePagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByBotServicePagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: BotConnectionListByBotServiceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ConnectionSetting[]> {\n let result: BotConnectionListByBotServiceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBotService(\n resourceGroupName,\n resourceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBotServiceNext(\n resourceGroupName,\n resourceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBotServicePagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: BotConnectionListByBotServiceOptionalParams\n ): AsyncIterableIterator<ConnectionSetting> {\n for await (const page of this.listByBotServicePagingPage(\n resourceGroupName,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the available Service Providers for creating Connection Settings\n * @param options The options parameters.\n */\n listServiceProviders(\n options?: BotConnectionListServiceProvidersOptionalParams\n ): Promise<BotConnectionListServiceProvidersResponse> {\n return this.client.sendOperationRequest(\n { options },\n listServiceProvidersOperationSpec\n );\n }\n\n /**\n * Get a Connection Setting registration for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param options The options parameters.\n */\n listWithSecrets(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n options?: BotConnectionListWithSecretsOptionalParams\n ): Promise<BotConnectionListWithSecretsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, options },\n listWithSecretsOperationSpec\n );\n }\n\n /**\n * Register a new Auth Connection for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param parameters The parameters to provide for creating the Connection Setting.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n parameters: ConnectionSetting,\n options?: BotConnectionCreateOptionalParams\n ): Promise<BotConnectionCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, parameters, options },\n createOperationSpec\n );\n }\n\n /**\n * Updates a Connection Setting registration for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param parameters The parameters to provide for updating the Connection Setting.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n parameters: ConnectionSetting,\n options?: BotConnectionUpdateOptionalParams\n ): Promise<BotConnectionUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Get a Connection Setting registration for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n options?: BotConnectionGetOptionalParams\n ): Promise<BotConnectionGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a Connection Setting registration for a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param connectionName The name of the Bot Service Connection Setting resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n connectionName: string,\n options?: BotConnectionDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, connectionName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns all the Connection Settings registered to a particular BotService resource\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n private _listByBotService(\n resourceGroupName: string,\n resourceName: string,\n options?: BotConnectionListByBotServiceOptionalParams\n ): Promise<BotConnectionListByBotServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listByBotServiceOperationSpec\n );\n }\n\n /**\n * ListByBotServiceNext\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param nextLink The nextLink from the previous successful call to the ListByBotService method.\n * @param options The options parameters.\n */\n private _listByBotServiceNext(\n resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: BotConnectionListByBotServiceNextOptionalParams\n ): Promise<BotConnectionListByBotServiceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listByBotServiceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listServiceProvidersOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ServiceProviderResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listWithSecretsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSetting\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSetting\n },\n 201: {\n bodyMapper: Mappers.ConnectionSetting\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSetting\n },\n 201: {\n bodyMapper: Mappers.ConnectionSetting\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSetting\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.connectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBotServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSettingResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBotServiceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectionSettingResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing Bots operations. */
|
|
15
14
|
export class BotsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class Bots class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -35,52 +35,35 @@ export class BotsImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
});
|
|
45
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings?.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield page;
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
64
62
|
}
|
|
65
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
-
_c = _f.value;
|
|
71
|
-
_d = false;
|
|
72
|
-
const page = _c;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
-
finally {
|
|
78
|
-
try {
|
|
79
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
-
}
|
|
81
|
-
finally { if (e_1) throw e_1.error; }
|
|
82
|
-
}
|
|
83
|
-
});
|
|
63
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
64
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
65
|
+
yield* page;
|
|
66
|
+
}
|
|
84
67
|
}
|
|
85
68
|
/**
|
|
86
69
|
* Returns all the resources of a particular type belonging to a subscription.
|
|
@@ -96,52 +79,35 @@ export class BotsImpl {
|
|
|
96
79
|
return this;
|
|
97
80
|
},
|
|
98
81
|
byPage: (settings) => {
|
|
99
|
-
if (settings
|
|
82
|
+
if (settings?.maxPageSize) {
|
|
100
83
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
101
84
|
}
|
|
102
85
|
return this.listPagingPage(options, settings);
|
|
103
86
|
}
|
|
104
87
|
};
|
|
105
88
|
}
|
|
106
|
-
listPagingPage(options, settings) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
});
|
|
89
|
+
async *listPagingPage(options, settings) {
|
|
90
|
+
let result;
|
|
91
|
+
let continuationToken = settings?.continuationToken;
|
|
92
|
+
if (!continuationToken) {
|
|
93
|
+
result = await this._list(options);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
99
|
+
while (continuationToken) {
|
|
100
|
+
result = await this._listNext(continuationToken, options);
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
105
|
+
}
|
|
125
106
|
}
|
|
126
|
-
listPagingAll(options) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
131
|
-
_c = _f.value;
|
|
132
|
-
_d = false;
|
|
133
|
-
const page = _c;
|
|
134
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
138
|
-
finally {
|
|
139
|
-
try {
|
|
140
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
141
|
-
}
|
|
142
|
-
finally { if (e_2) throw e_2.error; }
|
|
143
|
-
}
|
|
144
|
-
});
|
|
107
|
+
async *listPagingAll(options) {
|
|
108
|
+
for await (const page of this.listPagingPage(options)) {
|
|
109
|
+
yield* page;
|
|
110
|
+
}
|
|
145
111
|
}
|
|
146
112
|
/**
|
|
147
113
|
* Creates a Bot Service. Bot Service is a resource group wide resource type.
|
|
@@ -272,7 +238,7 @@ const updateOperationSpec = {
|
|
|
272
238
|
etag: ["options", "etag"],
|
|
273
239
|
properties: ["options", "properties"]
|
|
274
240
|
},
|
|
275
|
-
mapper:
|
|
241
|
+
mapper: { ...Mappers.Bot, required: true }
|
|
276
242
|
},
|
|
277
243
|
queryParameters: [Parameters.apiVersion],
|
|
278
244
|
urlParameters: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAwBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,Q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QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Bots } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureBotService } from \"../azureBotService.js\";\nimport {\n Bot,\n BotsListByResourceGroupNextOptionalParams,\n BotsListByResourceGroupOptionalParams,\n BotsListByResourceGroupResponse,\n BotsListNextOptionalParams,\n BotsListOptionalParams,\n BotsListResponse,\n BotsCreateOptionalParams,\n BotsCreateResponse,\n BotsUpdateOptionalParams,\n BotsUpdateResponse,\n BotsDeleteOptionalParams,\n BotsGetOptionalParams,\n BotsGetResponse,\n CheckNameAvailabilityRequestBody,\n BotsGetCheckNameAvailabilityOptionalParams,\n BotsGetCheckNameAvailabilityResponse,\n BotsListByResourceGroupNextResponse,\n BotsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Bots operations. */\nexport class BotsImpl implements Bots {\n private readonly client: AzureBotService;\n\n /**\n * Initialize a new instance of the class Bots class.\n * @param client Reference to the service client\n */\n constructor(client: AzureBotService) {\n this.client = client;\n }\n\n /**\n * Returns all the resources of a particular type belonging to a resource group\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Bot> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Bot[]> {\n let result: BotsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Bot> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns all the resources of a particular type belonging to a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: BotsListOptionalParams\n ): PagedAsyncIterableIterator<Bot> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: BotsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Bot[]> {\n let result: BotsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: BotsListOptionalParams\n ): AsyncIterableIterator<Bot> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a Bot Service. Bot Service is a resource group wide resource type.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param parameters The parameters to provide for the created bot.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n parameters: Bot,\n options?: BotsCreateOptionalParams\n ): Promise<BotsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, parameters, options },\n createOperationSpec\n );\n }\n\n /**\n * Updates a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n options?: BotsUpdateOptionalParams\n ): Promise<BotsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes a Bot Service from the resource group.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: BotsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns a BotService specified by the parameters.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: BotsGetOptionalParams\n ): Promise<BotsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Returns all the resources of a particular type belonging to a resource group\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): Promise<BotsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Returns all the resources of a particular type belonging to a subscription.\n * @param options The options parameters.\n */\n private _list(options?: BotsListOptionalParams): Promise<BotsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Check whether a bot name is available.\n * @param parameters The request body parameters to provide for the check name availability request\n * @param options The options parameters.\n */\n getCheckNameAvailability(\n parameters: CheckNameAvailabilityRequestBody,\n options?: BotsGetCheckNameAvailabilityOptionalParams\n ): Promise<BotsGetCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { parameters, options },\n getCheckNameAvailabilityOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: BotsListByResourceGroupNextOptionalParams\n ): Promise<BotsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: BotsListNextOptionalParams\n ): Promise<BotsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Bot\n },\n 201: {\n bodyMapper: Mappers.Bot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Bot\n },\n 201: {\n bodyMapper: Mappers.Bot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: {\n parameterPath: {\n location: [\"options\", \"location\"],\n tags: [\"options\", \"tags\"],\n sku: [\"options\", \"sku\"],\n kind: [\"options\", \"kind\"],\n etag: [\"options\", \"etag\"],\n properties: [\"options\", \"properties\"]\n },\n mapper: { ...Mappers.Bot, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Bot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCheckNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.BotService/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponseBody\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAwBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IACF,MAAM,CAAkB;IAEzC;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC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AAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Bots } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureBotService } from \"../azureBotService.js\";\nimport {\n Bot,\n BotsListByResourceGroupNextOptionalParams,\n BotsListByResourceGroupOptionalParams,\n BotsListByResourceGroupResponse,\n BotsListNextOptionalParams,\n BotsListOptionalParams,\n BotsListResponse,\n BotsCreateOptionalParams,\n BotsCreateResponse,\n BotsUpdateOptionalParams,\n BotsUpdateResponse,\n BotsDeleteOptionalParams,\n BotsGetOptionalParams,\n BotsGetResponse,\n CheckNameAvailabilityRequestBody,\n BotsGetCheckNameAvailabilityOptionalParams,\n BotsGetCheckNameAvailabilityResponse,\n BotsListByResourceGroupNextResponse,\n BotsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Bots operations. */\nexport class BotsImpl implements Bots {\n private readonly client: AzureBotService;\n\n /**\n * Initialize a new instance of the class Bots class.\n * @param client Reference to the service client\n */\n constructor(client: AzureBotService) {\n this.client = client;\n }\n\n /**\n * Returns all the resources of a particular type belonging to a resource group\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Bot> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Bot[]> {\n let result: BotsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Bot> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns all the resources of a particular type belonging to a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: BotsListOptionalParams\n ): PagedAsyncIterableIterator<Bot> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: BotsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Bot[]> {\n let result: BotsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: BotsListOptionalParams\n ): AsyncIterableIterator<Bot> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a Bot Service. Bot Service is a resource group wide resource type.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param parameters The parameters to provide for the created bot.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n parameters: Bot,\n options?: BotsCreateOptionalParams\n ): Promise<BotsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, parameters, options },\n createOperationSpec\n );\n }\n\n /**\n * Updates a Bot Service\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n options?: BotsUpdateOptionalParams\n ): Promise<BotsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes a Bot Service from the resource group.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: BotsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns a BotService specified by the parameters.\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param resourceName The name of the Bot resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: BotsGetOptionalParams\n ): Promise<BotsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Returns all the resources of a particular type belonging to a resource group\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: BotsListByResourceGroupOptionalParams\n ): Promise<BotsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Returns all the resources of a particular type belonging to a subscription.\n * @param options The options parameters.\n */\n private _list(options?: BotsListOptionalParams): Promise<BotsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Check whether a bot name is available.\n * @param parameters The request body parameters to provide for the check name availability request\n * @param options The options parameters.\n */\n getCheckNameAvailability(\n parameters: CheckNameAvailabilityRequestBody,\n options?: BotsGetCheckNameAvailabilityOptionalParams\n ): Promise<BotsGetCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { parameters, options },\n getCheckNameAvailabilityOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the Bot resource group in the user subscription.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: BotsListByResourceGroupNextOptionalParams\n ): Promise<BotsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: BotsListNextOptionalParams\n ): Promise<BotsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Bot\n },\n 201: {\n bodyMapper: Mappers.Bot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Bot\n },\n 201: {\n bodyMapper: Mappers.Bot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: {\n parameterPath: {\n location: [\"options\", \"location\"],\n tags: [\"options\", \"tags\"],\n sku: [\"options\", \"sku\"],\n kind: [\"options\", \"kind\"],\n etag: [\"options\", \"etag\"],\n properties: [\"options\", \"properties\"]\n },\n mapper: { ...Mappers.Bot, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Bot\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getCheckNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.BotService/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponseBody\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BotResponseList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing Channels operations. */
|
|
15
14
|
export class ChannelsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class Channels class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class ChannelsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByResourceGroupPagingPage(resourceGroupName, resourceName, options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByResourceGroupPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByResourceGroupPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByResourceGroup(resourceGroupName, resourceName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByResourceGroupNext(resourceGroupName, resourceName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByResourceGroupPagingAll(resourceGroupName, resourceName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByResourceGroupPagingAll(resourceGroupName, resourceName, options) {
|
|
65
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, resourceName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Creates a Channel registration for a Bot Service
|
|
@@ -206,7 +189,7 @@ const updateOperationSpec = {
|
|
|
206
189
|
etag: ["options", "etag"],
|
|
207
190
|
properties: ["options", "properties"]
|
|
208
191
|
},
|
|
209
|
-
mapper:
|
|
192
|
+
mapper: { ...Mappers.BotChannel, required: true }
|
|
210
193
|
},
|
|
211
194
|
queryParameters: [Parameters.apiVersion],
|
|
212
195
|
urlParameters: [
|