@azure/arm-botservice 4.0.1-alpha.20250717.1 → 4.0.1-alpha.20250729.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing BotConnection operations. */
|
|
18
18
|
class BotConnectionImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class BotConnection class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class BotConnectionImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByBotServicePagingPage(resourceGroupName, resourceName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByBotServicePagingPage(resourceGroupName, resourceName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listByBotServicePagingPage(resourceGroupName, resourceName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByBotService(resourceGroupName, resourceName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByBotServiceNext(resourceGroupName, resourceName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listByBotServicePagingAll(resourceGroupName, resourceName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBotServicePagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listByBotServicePagingAll(resourceGroupName, resourceName, options) {
|
|
69
|
+
for await (const page of this.listByBotServicePagingPage(resourceGroupName, resourceName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Lists the available Service Providers for creating Connection Settings
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"botConnection.js","sourceRoot":"","sources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;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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAqBtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IACX,MAAM,CAAkB;IAEzC;;;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;Y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Content":["/*\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"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Bots operations. */
|
|
18
18
|
class BotsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Bots class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -38,52 +39,35 @@ class BotsImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
49
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
67
66
|
}
|
|
68
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
67
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
68
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
87
71
|
}
|
|
88
72
|
/**
|
|
89
73
|
* Returns all the resources of a particular type belonging to a subscription.
|
|
@@ -99,52 +83,35 @@ class BotsImpl {
|
|
|
99
83
|
return this;
|
|
100
84
|
},
|
|
101
85
|
byPage: (settings) => {
|
|
102
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
103
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
104
88
|
}
|
|
105
89
|
return this.listPagingPage(options, settings);
|
|
106
90
|
}
|
|
107
91
|
};
|
|
108
92
|
}
|
|
109
|
-
listPagingPage(options, settings) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
});
|
|
93
|
+
async *listPagingPage(options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._list(options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listNext(continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
128
110
|
}
|
|
129
|
-
listPagingAll(options) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
134
|
-
_c = _f.value;
|
|
135
|
-
_d = false;
|
|
136
|
-
const page = _c;
|
|
137
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
144
|
-
}
|
|
145
|
-
finally { if (e_2) throw e_2.error; }
|
|
146
|
-
}
|
|
147
|
-
});
|
|
111
|
+
async *listPagingAll(options) {
|
|
112
|
+
for await (const page of this.listPagingPage(options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
148
115
|
}
|
|
149
116
|
/**
|
|
150
117
|
* Creates a Bot Service. Bot Service is a resource group wide resource type.
|
|
@@ -276,7 +243,7 @@ const updateOperationSpec = {
|
|
|
276
243
|
etag: ["options", "etag"],
|
|
277
244
|
properties: ["options", "properties"]
|
|
278
245
|
},
|
|
279
|
-
mapper:
|
|
246
|
+
mapper: { ...Mappers.Bot, required: true }
|
|
280
247
|
},
|
|
281
248
|
queryParameters: [Parameters.apiVersion],
|
|
282
249
|
urlParameters: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAwBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,QAAQ;IAGnB;;;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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IAC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;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,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,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"]}
|
|
1
|
+
{"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAwBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,QAAQ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e,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,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,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,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"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Channels operations. */
|
|
18
18
|
class ChannelsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Channels class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class ChannelsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByResourceGroupPagingPage(resourceGroupName, resourceName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByResourceGroupPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listByResourceGroupPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByResourceGroup(resourceGroupName, resourceName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByResourceGroupNext(resourceGroupName, resourceName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listByResourceGroupPagingAll(resourceGroupName, resourceName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listByResourceGroupPagingAll(resourceGroupName, resourceName, options) {
|
|
69
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, resourceName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Creates a Channel registration for a Bot Service
|
|
@@ -210,7 +194,7 @@ const updateOperationSpec = {
|
|
|
210
194
|
etag: ["options", "etag"],
|
|
211
195
|
properties: ["options", "properties"]
|
|
212
196
|
},
|
|
213
|
-
mapper:
|
|
197
|
+
mapper: { ...Mappers.BotChannel, required: true }
|
|
214
198
|
},
|
|
215
199
|
queryParameters: [Parameters.apiVersion],
|
|
216
200
|
urlParameters: [
|