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