@azure/arm-healthbot 1.0.0 → 2.0.1-alpha.20220113.4
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/CHANGELOG.md +21 -0
- package/LICENSE +21 -0
- package/README.md +70 -74
- package/dist/index.js +1301 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/healthbotClient.d.ts +19 -0
- package/dist-esm/src/healthbotClient.d.ts.map +1 -0
- package/dist-esm/src/healthbotClient.js +52 -0
- package/dist-esm/src/healthbotClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +309 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +16 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +19 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +252 -199
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +12 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +112 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/bots.d.ts +99 -0
- package/dist-esm/src/operations/bots.d.ts.map +1 -0
- package/dist-esm/src/operations/bots.js +454 -0
- package/dist-esm/src/operations/bots.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bots.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/bots.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/bots.js} +2 -1
- package/dist-esm/src/operationsInterfaces/bots.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/index.js} +3 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -21
- package/review/arm-healthbot.api.md +271 -0
- package/rollup.config.js +181 -30
- package/src/healthbotClient.ts +62 -28
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +239 -394
- package/src/models/mappers.ts +260 -204
- package/src/models/parameters.ts +81 -33
- package/src/operations/bots.ts +424 -322
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +87 -75
- package/src/operationsInterfaces/bots.ts +116 -0
- package/src/{models/operationsMappers.ts → operationsInterfaces/index.ts} +2 -8
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +3 -3
- package/types/arm-healthbot.d.ts +439 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-healthbot.js +0 -1133
- package/dist/arm-healthbot.js.map +0 -1
- package/dist/arm-healthbot.min.js +0 -1
- package/dist/arm-healthbot.min.js.map +0 -1
- package/esm/healthbotClient.d.ts +0 -19
- package/esm/healthbotClient.d.ts.map +0 -1
- package/esm/healthbotClient.js +0 -33
- package/esm/healthbotClient.js.map +0 -1
- package/esm/healthbotClientContext.d.ts +0 -16
- package/esm/healthbotClientContext.d.ts.map +0 -1
- package/esm/healthbotClientContext.js +0 -55
- package/esm/healthbotClientContext.js.map +0 -1
- package/esm/models/botsMappers.d.ts +0 -2
- package/esm/models/botsMappers.d.ts.map +0 -1
- package/esm/models/botsMappers.js +0 -9
- package/esm/models/botsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -464
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -19
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -80
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/bots.d.ts +0 -162
- package/esm/operations/bots.d.ts.map +0 -1
- package/esm/operations/bots.js +0 -319
- package/esm/operations/bots.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/src/healthbotClientContext.ts +0 -61
- package/src/models/botsMappers.ts +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAS5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAc/B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,qBAcrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { HealthBot as HealthBotMapper, HealthBotUpdateParameters as HealthBotUpdateParametersMapper } from "../models/mappers";
|
|
9
|
+
export const contentType = {
|
|
10
|
+
parameterPath: ["options", "contentType"],
|
|
11
|
+
mapper: {
|
|
12
|
+
defaultValue: "application/json",
|
|
13
|
+
isConstant: true,
|
|
14
|
+
serializedName: "Content-Type",
|
|
15
|
+
type: {
|
|
16
|
+
name: "String"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export const parameters = {
|
|
21
|
+
parameterPath: "parameters",
|
|
22
|
+
mapper: HealthBotMapper
|
|
23
|
+
};
|
|
24
|
+
export const accept = {
|
|
25
|
+
parameterPath: "accept",
|
|
26
|
+
mapper: {
|
|
27
|
+
defaultValue: "application/json",
|
|
28
|
+
isConstant: true,
|
|
29
|
+
serializedName: "Accept",
|
|
30
|
+
type: {
|
|
31
|
+
name: "String"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export const $host = {
|
|
36
|
+
parameterPath: "$host",
|
|
37
|
+
mapper: {
|
|
38
|
+
serializedName: "$host",
|
|
39
|
+
required: true,
|
|
40
|
+
type: {
|
|
41
|
+
name: "String"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
skipEncoding: true
|
|
45
|
+
};
|
|
46
|
+
export const subscriptionId = {
|
|
47
|
+
parameterPath: "subscriptionId",
|
|
48
|
+
mapper: {
|
|
49
|
+
serializedName: "subscriptionId",
|
|
50
|
+
required: true,
|
|
51
|
+
type: {
|
|
52
|
+
name: "String"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export const resourceGroupName = {
|
|
57
|
+
parameterPath: "resourceGroupName",
|
|
58
|
+
mapper: {
|
|
59
|
+
constraints: {
|
|
60
|
+
Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"),
|
|
61
|
+
MaxLength: 64,
|
|
62
|
+
MinLength: 2
|
|
63
|
+
},
|
|
64
|
+
serializedName: "resourceGroupName",
|
|
65
|
+
required: true,
|
|
66
|
+
type: {
|
|
67
|
+
name: "String"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export const botName = {
|
|
72
|
+
parameterPath: "botName",
|
|
73
|
+
mapper: {
|
|
74
|
+
constraints: {
|
|
75
|
+
Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"),
|
|
76
|
+
MaxLength: 64,
|
|
77
|
+
MinLength: 2
|
|
78
|
+
},
|
|
79
|
+
serializedName: "botName",
|
|
80
|
+
required: true,
|
|
81
|
+
type: {
|
|
82
|
+
name: "String"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
export const apiVersion = {
|
|
87
|
+
parameterPath: "apiVersion",
|
|
88
|
+
mapper: {
|
|
89
|
+
defaultValue: "2021-06-10",
|
|
90
|
+
isConstant: true,
|
|
91
|
+
serializedName: "api-version",
|
|
92
|
+
type: {
|
|
93
|
+
name: "String"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
export const parameters1 = {
|
|
98
|
+
parameterPath: "parameters",
|
|
99
|
+
mapper: HealthBotUpdateParametersMapper
|
|
100
|
+
};
|
|
101
|
+
export const nextLink = {
|
|
102
|
+
parameterPath: "nextLink",
|
|
103
|
+
mapper: {
|
|
104
|
+
serializedName: "nextLink",
|
|
105
|
+
required: true,
|
|
106
|
+
type: {
|
|
107
|
+
name: "String"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
skipEncoding: true
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,SAAS,IAAI,eAAe,EAC5B,yBAAyB,IAAI,+BAA+B,EAC7D,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,eAAe;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,gBAAgB;QAChC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAA0B;IACtD,aAAa,EAAE,mBAAmB;IAClC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,OAAO,EAAE,IAAI,MAAM,CAAC,8BAA8B,CAAC;YACnD,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,CAAC;SACb;QACD,cAAc,EAAE,mBAAmB;QACnC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAA0B;IAC5C,aAAa,EAAE,SAAS;IACxB,MAAM,EAAE;QACN,WAAW,EAAE;YACX,OAAO,EAAE,IAAI,MAAM,CAAC,8BAA8B,CAAC;YACnD,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,CAAC;SACb;QACD,cAAc,EAAE,SAAS;QACzB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,+BAA+B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Bots } from "../operationsInterfaces";
|
|
3
|
+
import { HealthbotClient } from "../healthbotClient";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { HealthBot, BotsListByResourceGroupOptionalParams, BotsListOptionalParams, BotsCreateOptionalParams, BotsCreateResponse, BotsGetOptionalParams, BotsGetResponse, HealthBotUpdateParameters, BotsUpdateOptionalParams, BotsUpdateResponse, BotsDeleteOptionalParams } from "../models";
|
|
6
|
+
/** Class containing Bots operations. */
|
|
7
|
+
export declare class BotsImpl implements Bots {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class Bots class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: HealthbotClient);
|
|
14
|
+
/**
|
|
15
|
+
* Returns all the resources of a particular type belonging to a resource group
|
|
16
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
listByResourceGroup(resourceGroupName: string, options?: BotsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<HealthBot>;
|
|
20
|
+
private listByResourceGroupPagingPage;
|
|
21
|
+
private listByResourceGroupPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options?: BotsListOptionalParams): PagedAsyncIterableIterator<HealthBot>;
|
|
27
|
+
private listPagingPage;
|
|
28
|
+
private listPagingAll;
|
|
29
|
+
/**
|
|
30
|
+
* Create a new Azure Health Bot.
|
|
31
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
32
|
+
* @param botName The name of the Bot resource.
|
|
33
|
+
* @param parameters The parameters to provide for the created Azure Health Bot.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
beginCreate(resourceGroupName: string, botName: string, parameters: HealthBot, options?: BotsCreateOptionalParams): Promise<PollerLike<PollOperationState<BotsCreateResponse>, BotsCreateResponse>>;
|
|
37
|
+
/**
|
|
38
|
+
* Create a new Azure Health Bot.
|
|
39
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
40
|
+
* @param botName The name of the Bot resource.
|
|
41
|
+
* @param parameters The parameters to provide for the created Azure Health Bot.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
beginCreateAndWait(resourceGroupName: string, botName: string, parameters: HealthBot, options?: BotsCreateOptionalParams): Promise<BotsCreateResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Get a HealthBot.
|
|
47
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
48
|
+
* @param botName The name of the Bot resource.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
get(resourceGroupName: string, botName: string, options?: BotsGetOptionalParams): Promise<BotsGetResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Patch a HealthBot.
|
|
54
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
55
|
+
* @param botName The name of the Bot resource.
|
|
56
|
+
* @param parameters The parameters to provide for the required Azure Health Bot.
|
|
57
|
+
* @param options The options parameters.
|
|
58
|
+
*/
|
|
59
|
+
update(resourceGroupName: string, botName: string, parameters: HealthBotUpdateParameters, options?: BotsUpdateOptionalParams): Promise<BotsUpdateResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete a HealthBot.
|
|
62
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
63
|
+
* @param botName The name of the Bot resource.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
beginDelete(resourceGroupName: string, botName: string, options?: BotsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
67
|
+
/**
|
|
68
|
+
* Delete a HealthBot.
|
|
69
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
70
|
+
* @param botName The name of the Bot resource.
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
beginDeleteAndWait(resourceGroupName: string, botName: string, options?: BotsDeleteOptionalParams): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns all the resources of a particular type belonging to a resource group
|
|
76
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
private _listByResourceGroup;
|
|
80
|
+
/**
|
|
81
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
private _list;
|
|
85
|
+
/**
|
|
86
|
+
* ListByResourceGroupNext
|
|
87
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
88
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
private _listByResourceGroupNext;
|
|
92
|
+
/**
|
|
93
|
+
* ListNext
|
|
94
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
95
|
+
* @param options The options parameters.
|
|
96
|
+
*/
|
|
97
|
+
private _listNext;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=bots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bots.d.ts","sourceRoot":"","sources":["../../../src/operations/bots.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAI/C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,SAAS,EAET,qCAAqC,EAErC,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EAKzB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;;OAGG;gBACS,MAAM,EAAE,eAAe;IAInC;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,0BAA0B,CAAC,SAAS,CAAC;YAezB,6BAA6B;YAkB7B,4BAA4B;IAY3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;;;;OAMG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,SAAS,EACrB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CACR,UAAU,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,CACvE;IAoDD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,SAAS,EACrB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAU9B;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,eAAe,CAAC;IAO3B;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAO9B;;;;;OAKG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAmDtD;;;;;OAKG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,IAAI,CAAC;IAKhB;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAIb;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Bots operations. */
|
|
16
|
+
export class BotsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Bots class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns all the resources of a particular type belonging to a resource group
|
|
26
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
30
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: () => {
|
|
39
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
44
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
45
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
46
|
+
yield yield __await(result.value || []);
|
|
47
|
+
let continuationToken = result.nextLink;
|
|
48
|
+
while (continuationToken) {
|
|
49
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
yield yield __await(result.value || []);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
56
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
57
|
+
var e_1, _a;
|
|
58
|
+
try {
|
|
59
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
60
|
+
const page = _c.value;
|
|
61
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
+
finally {
|
|
66
|
+
try {
|
|
67
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
68
|
+
}
|
|
69
|
+
finally { if (e_1) throw e_1.error; }
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
list(options) {
|
|
78
|
+
const iter = this.listPagingAll(options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listPagingPage(options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listPagingPage(options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._list(options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listPagingAll(options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Create a new Azure Health Bot.
|
|
123
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
124
|
+
* @param botName The name of the Bot resource.
|
|
125
|
+
* @param parameters The parameters to provide for the created Azure Health Bot.
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
beginCreate(resourceGroupName, botName, parameters, options) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
return this.client.sendOperationRequest(args, spec);
|
|
132
|
+
});
|
|
133
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
var _a;
|
|
135
|
+
let currentRawResponse = undefined;
|
|
136
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
137
|
+
const callback = (rawResponse, flatResponse) => {
|
|
138
|
+
currentRawResponse = rawResponse;
|
|
139
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
140
|
+
};
|
|
141
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
142
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
143
|
+
return {
|
|
144
|
+
flatResponse,
|
|
145
|
+
rawResponse: {
|
|
146
|
+
statusCode: currentRawResponse.status,
|
|
147
|
+
body: currentRawResponse.parsedBody,
|
|
148
|
+
headers: currentRawResponse.headers.toJSON()
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, botName, parameters, options }, createOperationSpec);
|
|
153
|
+
return new LroEngine(lro, {
|
|
154
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
155
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
156
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Create a new Azure Health Bot.
|
|
162
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
163
|
+
* @param botName The name of the Bot resource.
|
|
164
|
+
* @param parameters The parameters to provide for the created Azure Health Bot.
|
|
165
|
+
* @param options The options parameters.
|
|
166
|
+
*/
|
|
167
|
+
beginCreateAndWait(resourceGroupName, botName, parameters, options) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
const poller = yield this.beginCreate(resourceGroupName, botName, parameters, options);
|
|
170
|
+
return poller.pollUntilDone();
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Get a HealthBot.
|
|
175
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
176
|
+
* @param botName The name of the Bot resource.
|
|
177
|
+
* @param options The options parameters.
|
|
178
|
+
*/
|
|
179
|
+
get(resourceGroupName, botName, options) {
|
|
180
|
+
return this.client.sendOperationRequest({ resourceGroupName, botName, options }, getOperationSpec);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Patch a HealthBot.
|
|
184
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
185
|
+
* @param botName The name of the Bot resource.
|
|
186
|
+
* @param parameters The parameters to provide for the required Azure Health Bot.
|
|
187
|
+
* @param options The options parameters.
|
|
188
|
+
*/
|
|
189
|
+
update(resourceGroupName, botName, parameters, options) {
|
|
190
|
+
return this.client.sendOperationRequest({ resourceGroupName, botName, parameters, options }, updateOperationSpec);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Delete a HealthBot.
|
|
194
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
195
|
+
* @param botName The name of the Bot resource.
|
|
196
|
+
* @param options The options parameters.
|
|
197
|
+
*/
|
|
198
|
+
beginDelete(resourceGroupName, botName, options) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
return this.client.sendOperationRequest(args, spec);
|
|
202
|
+
});
|
|
203
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
var _a;
|
|
205
|
+
let currentRawResponse = undefined;
|
|
206
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
207
|
+
const callback = (rawResponse, flatResponse) => {
|
|
208
|
+
currentRawResponse = rawResponse;
|
|
209
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
210
|
+
};
|
|
211
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
212
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
213
|
+
return {
|
|
214
|
+
flatResponse,
|
|
215
|
+
rawResponse: {
|
|
216
|
+
statusCode: currentRawResponse.status,
|
|
217
|
+
body: currentRawResponse.parsedBody,
|
|
218
|
+
headers: currentRawResponse.headers.toJSON()
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
});
|
|
222
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, botName, options }, deleteOperationSpec);
|
|
223
|
+
return new LroEngine(lro, {
|
|
224
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
225
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Delete a HealthBot.
|
|
231
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
232
|
+
* @param botName The name of the Bot resource.
|
|
233
|
+
* @param options The options parameters.
|
|
234
|
+
*/
|
|
235
|
+
beginDeleteAndWait(resourceGroupName, botName, options) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
const poller = yield this.beginDelete(resourceGroupName, botName, options);
|
|
238
|
+
return poller.pollUntilDone();
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Returns all the resources of a particular type belonging to a resource group
|
|
243
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
244
|
+
* @param options The options parameters.
|
|
245
|
+
*/
|
|
246
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
247
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Returns all the resources of a particular type belonging to a subscription.
|
|
251
|
+
* @param options The options parameters.
|
|
252
|
+
*/
|
|
253
|
+
_list(options) {
|
|
254
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* ListByResourceGroupNext
|
|
258
|
+
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
259
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
260
|
+
* @param options The options parameters.
|
|
261
|
+
*/
|
|
262
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
263
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* ListNext
|
|
267
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
268
|
+
* @param options The options parameters.
|
|
269
|
+
*/
|
|
270
|
+
_listNext(nextLink, options) {
|
|
271
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
// Operation Specifications
|
|
275
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
276
|
+
const createOperationSpec = {
|
|
277
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
278
|
+
httpMethod: "PUT",
|
|
279
|
+
responses: {
|
|
280
|
+
200: {
|
|
281
|
+
bodyMapper: Mappers.HealthBot
|
|
282
|
+
},
|
|
283
|
+
201: {
|
|
284
|
+
bodyMapper: Mappers.HealthBot
|
|
285
|
+
},
|
|
286
|
+
202: {
|
|
287
|
+
bodyMapper: Mappers.HealthBot
|
|
288
|
+
},
|
|
289
|
+
204: {
|
|
290
|
+
bodyMapper: Mappers.HealthBot
|
|
291
|
+
},
|
|
292
|
+
default: {
|
|
293
|
+
bodyMapper: Mappers.ErrorModel
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
requestBody: Parameters.parameters,
|
|
297
|
+
queryParameters: [Parameters.apiVersion],
|
|
298
|
+
urlParameters: [
|
|
299
|
+
Parameters.$host,
|
|
300
|
+
Parameters.subscriptionId,
|
|
301
|
+
Parameters.resourceGroupName,
|
|
302
|
+
Parameters.botName
|
|
303
|
+
],
|
|
304
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
305
|
+
mediaType: "json",
|
|
306
|
+
serializer
|
|
307
|
+
};
|
|
308
|
+
const getOperationSpec = {
|
|
309
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
310
|
+
httpMethod: "GET",
|
|
311
|
+
responses: {
|
|
312
|
+
200: {
|
|
313
|
+
bodyMapper: Mappers.HealthBot
|
|
314
|
+
},
|
|
315
|
+
default: {
|
|
316
|
+
bodyMapper: Mappers.ErrorModel
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
queryParameters: [Parameters.apiVersion],
|
|
320
|
+
urlParameters: [
|
|
321
|
+
Parameters.$host,
|
|
322
|
+
Parameters.subscriptionId,
|
|
323
|
+
Parameters.resourceGroupName,
|
|
324
|
+
Parameters.botName
|
|
325
|
+
],
|
|
326
|
+
headerParameters: [Parameters.accept],
|
|
327
|
+
serializer
|
|
328
|
+
};
|
|
329
|
+
const updateOperationSpec = {
|
|
330
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
331
|
+
httpMethod: "PATCH",
|
|
332
|
+
responses: {
|
|
333
|
+
200: {
|
|
334
|
+
bodyMapper: Mappers.HealthBot
|
|
335
|
+
},
|
|
336
|
+
201: {
|
|
337
|
+
bodyMapper: Mappers.HealthBot
|
|
338
|
+
},
|
|
339
|
+
default: {
|
|
340
|
+
bodyMapper: Mappers.ErrorModel
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
requestBody: Parameters.parameters1,
|
|
344
|
+
queryParameters: [Parameters.apiVersion],
|
|
345
|
+
urlParameters: [
|
|
346
|
+
Parameters.$host,
|
|
347
|
+
Parameters.subscriptionId,
|
|
348
|
+
Parameters.resourceGroupName,
|
|
349
|
+
Parameters.botName
|
|
350
|
+
],
|
|
351
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
352
|
+
mediaType: "json",
|
|
353
|
+
serializer
|
|
354
|
+
};
|
|
355
|
+
const deleteOperationSpec = {
|
|
356
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
357
|
+
httpMethod: "DELETE",
|
|
358
|
+
responses: {
|
|
359
|
+
200: {},
|
|
360
|
+
201: {},
|
|
361
|
+
202: {},
|
|
362
|
+
204: {},
|
|
363
|
+
default: {
|
|
364
|
+
bodyMapper: Mappers.ErrorModel
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
queryParameters: [Parameters.apiVersion],
|
|
368
|
+
urlParameters: [
|
|
369
|
+
Parameters.$host,
|
|
370
|
+
Parameters.subscriptionId,
|
|
371
|
+
Parameters.resourceGroupName,
|
|
372
|
+
Parameters.botName
|
|
373
|
+
],
|
|
374
|
+
headerParameters: [Parameters.accept],
|
|
375
|
+
serializer
|
|
376
|
+
};
|
|
377
|
+
const listByResourceGroupOperationSpec = {
|
|
378
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots",
|
|
379
|
+
httpMethod: "GET",
|
|
380
|
+
responses: {
|
|
381
|
+
200: {
|
|
382
|
+
bodyMapper: Mappers.BotResponseList
|
|
383
|
+
},
|
|
384
|
+
default: {
|
|
385
|
+
bodyMapper: Mappers.ErrorModel
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
queryParameters: [Parameters.apiVersion],
|
|
389
|
+
urlParameters: [
|
|
390
|
+
Parameters.$host,
|
|
391
|
+
Parameters.subscriptionId,
|
|
392
|
+
Parameters.resourceGroupName
|
|
393
|
+
],
|
|
394
|
+
headerParameters: [Parameters.accept],
|
|
395
|
+
serializer
|
|
396
|
+
};
|
|
397
|
+
const listOperationSpec = {
|
|
398
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthBot/healthBots",
|
|
399
|
+
httpMethod: "GET",
|
|
400
|
+
responses: {
|
|
401
|
+
200: {
|
|
402
|
+
bodyMapper: Mappers.BotResponseList
|
|
403
|
+
},
|
|
404
|
+
default: {
|
|
405
|
+
bodyMapper: Mappers.ErrorModel
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
queryParameters: [Parameters.apiVersion],
|
|
409
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
410
|
+
headerParameters: [Parameters.accept],
|
|
411
|
+
serializer
|
|
412
|
+
};
|
|
413
|
+
const listByResourceGroupNextOperationSpec = {
|
|
414
|
+
path: "{nextLink}",
|
|
415
|
+
httpMethod: "GET",
|
|
416
|
+
responses: {
|
|
417
|
+
200: {
|
|
418
|
+
bodyMapper: Mappers.BotResponseList
|
|
419
|
+
},
|
|
420
|
+
default: {
|
|
421
|
+
bodyMapper: Mappers.ErrorModel
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
queryParameters: [Parameters.apiVersion],
|
|
425
|
+
urlParameters: [
|
|
426
|
+
Parameters.$host,
|
|
427
|
+
Parameters.subscriptionId,
|
|
428
|
+
Parameters.resourceGroupName,
|
|
429
|
+
Parameters.nextLink
|
|
430
|
+
],
|
|
431
|
+
headerParameters: [Parameters.accept],
|
|
432
|
+
serializer
|
|
433
|
+
};
|
|
434
|
+
const listNextOperationSpec = {
|
|
435
|
+
path: "{nextLink}",
|
|
436
|
+
httpMethod: "GET",
|
|
437
|
+
responses: {
|
|
438
|
+
200: {
|
|
439
|
+
bodyMapper: Mappers.BotResponseList
|
|
440
|
+
},
|
|
441
|
+
default: {
|
|
442
|
+
bodyMapper: Mappers.ErrorModel
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
queryParameters: [Parameters.apiVersion],
|
|
446
|
+
urlParameters: [
|
|
447
|
+
Parameters.$host,
|
|
448
|
+
Parameters.subscriptionId,
|
|
449
|
+
Parameters.nextLink
|
|
450
|
+
],
|
|
451
|
+
headerParameters: [Parameters.accept],
|
|
452
|
+
serializer
|
|
453
|
+
};
|
|
454
|
+
//# sourceMappingURL=bots.js.map
|