@azure/arm-healthbot 1.1.0 → 2.0.1-alpha.20220118.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/CHANGELOG.md +21 -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 +64 -21
- 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/arm-healthbot.js
DELETED
|
@@ -1,1143 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
(function (global, factory) {
|
|
9
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
|
10
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
|
11
|
-
(global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmHealthbot = {}), global.msRestAzure, global.msRest));
|
|
12
|
-
}(this, (function (exports, msRestAzure, msRest) { 'use strict';
|
|
13
|
-
|
|
14
|
-
/*! *****************************************************************************
|
|
15
|
-
Copyright (c) Microsoft Corporation.
|
|
16
|
-
|
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
-
purpose with or without fee is hereby granted.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
/* global Reflect, Promise */
|
|
29
|
-
|
|
30
|
-
var extendStatics = function(d, b) {
|
|
31
|
-
extendStatics = Object.setPrototypeOf ||
|
|
32
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
34
|
-
return extendStatics(d, b);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function __extends(d, b) {
|
|
38
|
-
extendStatics(d, b);
|
|
39
|
-
function __() { this.constructor = d; }
|
|
40
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var __assign = function() {
|
|
44
|
-
__assign = Object.assign || function __assign(t) {
|
|
45
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
46
|
-
s = arguments[i];
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
return __assign.apply(this, arguments);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/*
|
|
55
|
-
* Copyright (c) Microsoft Corporation.
|
|
56
|
-
* Licensed under the MIT License.
|
|
57
|
-
*
|
|
58
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
59
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
63
|
-
__proto__: null
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
/*
|
|
67
|
-
* Copyright (c) Microsoft Corporation.
|
|
68
|
-
* Licensed under the MIT License.
|
|
69
|
-
*
|
|
70
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
71
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
72
|
-
*/
|
|
73
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
|
74
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
|
75
|
-
var Sku = {
|
|
76
|
-
serializedName: "Sku",
|
|
77
|
-
type: {
|
|
78
|
-
name: "Composite",
|
|
79
|
-
className: "Sku",
|
|
80
|
-
modelProperties: {
|
|
81
|
-
name: {
|
|
82
|
-
required: true,
|
|
83
|
-
serializedName: "name",
|
|
84
|
-
type: {
|
|
85
|
-
name: "Enum",
|
|
86
|
-
allowedValues: [
|
|
87
|
-
"F0",
|
|
88
|
-
"S1",
|
|
89
|
-
"C0"
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var SystemData = {
|
|
97
|
-
serializedName: "SystemData",
|
|
98
|
-
type: {
|
|
99
|
-
name: "Composite",
|
|
100
|
-
className: "SystemData",
|
|
101
|
-
modelProperties: {
|
|
102
|
-
createdBy: {
|
|
103
|
-
serializedName: "createdBy",
|
|
104
|
-
type: {
|
|
105
|
-
name: "String"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
createdByType: {
|
|
109
|
-
serializedName: "createdByType",
|
|
110
|
-
type: {
|
|
111
|
-
name: "String"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
createdAt: {
|
|
115
|
-
serializedName: "createdAt",
|
|
116
|
-
type: {
|
|
117
|
-
name: "DateTime"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
lastModifiedBy: {
|
|
121
|
-
serializedName: "lastModifiedBy",
|
|
122
|
-
type: {
|
|
123
|
-
name: "String"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
lastModifiedByType: {
|
|
127
|
-
serializedName: "lastModifiedByType",
|
|
128
|
-
type: {
|
|
129
|
-
name: "String"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
lastModifiedAt: {
|
|
133
|
-
serializedName: "lastModifiedAt",
|
|
134
|
-
type: {
|
|
135
|
-
name: "DateTime"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
var Resource = {
|
|
142
|
-
serializedName: "Resource",
|
|
143
|
-
type: {
|
|
144
|
-
name: "Composite",
|
|
145
|
-
className: "Resource",
|
|
146
|
-
modelProperties: {
|
|
147
|
-
id: {
|
|
148
|
-
readOnly: true,
|
|
149
|
-
serializedName: "id",
|
|
150
|
-
type: {
|
|
151
|
-
name: "String"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
name: {
|
|
155
|
-
readOnly: true,
|
|
156
|
-
serializedName: "name",
|
|
157
|
-
type: {
|
|
158
|
-
name: "String"
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
type: {
|
|
162
|
-
readOnly: true,
|
|
163
|
-
serializedName: "type",
|
|
164
|
-
type: {
|
|
165
|
-
name: "String"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
systemData: {
|
|
169
|
-
readOnly: true,
|
|
170
|
-
serializedName: "systemData",
|
|
171
|
-
type: {
|
|
172
|
-
name: "Composite",
|
|
173
|
-
className: "SystemData"
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
var TrackedResource = {
|
|
180
|
-
serializedName: "TrackedResource",
|
|
181
|
-
type: {
|
|
182
|
-
name: "Composite",
|
|
183
|
-
className: "TrackedResource",
|
|
184
|
-
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { tags: {
|
|
185
|
-
serializedName: "tags",
|
|
186
|
-
type: {
|
|
187
|
-
name: "Dictionary",
|
|
188
|
-
value: {
|
|
189
|
-
type: {
|
|
190
|
-
name: "String"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}, location: {
|
|
195
|
-
required: true,
|
|
196
|
-
serializedName: "location",
|
|
197
|
-
type: {
|
|
198
|
-
name: "String"
|
|
199
|
-
}
|
|
200
|
-
} })
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
var HealthBotProperties = {
|
|
204
|
-
serializedName: "HealthBotProperties",
|
|
205
|
-
type: {
|
|
206
|
-
name: "Composite",
|
|
207
|
-
className: "HealthBotProperties",
|
|
208
|
-
modelProperties: {
|
|
209
|
-
provisioningState: {
|
|
210
|
-
readOnly: true,
|
|
211
|
-
serializedName: "provisioningState",
|
|
212
|
-
type: {
|
|
213
|
-
name: "String"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
botManagementPortalLink: {
|
|
217
|
-
readOnly: true,
|
|
218
|
-
serializedName: "botManagementPortalLink",
|
|
219
|
-
type: {
|
|
220
|
-
name: "String"
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
var HealthBot = {
|
|
227
|
-
serializedName: "HealthBot",
|
|
228
|
-
type: {
|
|
229
|
-
name: "Composite",
|
|
230
|
-
className: "HealthBot",
|
|
231
|
-
modelProperties: __assign(__assign({}, TrackedResource.type.modelProperties), { sku: {
|
|
232
|
-
required: true,
|
|
233
|
-
serializedName: "sku",
|
|
234
|
-
type: {
|
|
235
|
-
name: "Composite",
|
|
236
|
-
className: "Sku"
|
|
237
|
-
}
|
|
238
|
-
}, properties: {
|
|
239
|
-
serializedName: "properties",
|
|
240
|
-
type: {
|
|
241
|
-
name: "Composite",
|
|
242
|
-
className: "HealthBotProperties"
|
|
243
|
-
}
|
|
244
|
-
} })
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
var HealthBotUpdateParameters = {
|
|
248
|
-
serializedName: "HealthBotUpdateParameters",
|
|
249
|
-
type: {
|
|
250
|
-
name: "Composite",
|
|
251
|
-
className: "HealthBotUpdateParameters",
|
|
252
|
-
modelProperties: {
|
|
253
|
-
tags: {
|
|
254
|
-
serializedName: "tags",
|
|
255
|
-
type: {
|
|
256
|
-
name: "Dictionary",
|
|
257
|
-
value: {
|
|
258
|
-
type: {
|
|
259
|
-
name: "String"
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
sku: {
|
|
265
|
-
serializedName: "sku",
|
|
266
|
-
type: {
|
|
267
|
-
name: "Composite",
|
|
268
|
-
className: "Sku"
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
var ValidationResult = {
|
|
275
|
-
serializedName: "ValidationResult",
|
|
276
|
-
type: {
|
|
277
|
-
name: "Composite",
|
|
278
|
-
className: "ValidationResult",
|
|
279
|
-
modelProperties: {
|
|
280
|
-
status: {
|
|
281
|
-
serializedName: "status",
|
|
282
|
-
type: {
|
|
283
|
-
name: "String"
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
var ErrorAdditionalInfo = {
|
|
290
|
-
serializedName: "ErrorAdditionalInfo",
|
|
291
|
-
type: {
|
|
292
|
-
name: "Composite",
|
|
293
|
-
className: "ErrorAdditionalInfo",
|
|
294
|
-
modelProperties: {
|
|
295
|
-
type: {
|
|
296
|
-
readOnly: true,
|
|
297
|
-
serializedName: "type",
|
|
298
|
-
type: {
|
|
299
|
-
name: "String"
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
info: {
|
|
303
|
-
readOnly: true,
|
|
304
|
-
serializedName: "info",
|
|
305
|
-
type: {
|
|
306
|
-
name: "Object"
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
var ErrorError = {
|
|
313
|
-
serializedName: "Error_error",
|
|
314
|
-
type: {
|
|
315
|
-
name: "Composite",
|
|
316
|
-
className: "ErrorError",
|
|
317
|
-
modelProperties: {
|
|
318
|
-
code: {
|
|
319
|
-
readOnly: true,
|
|
320
|
-
serializedName: "code",
|
|
321
|
-
type: {
|
|
322
|
-
name: "String"
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
message: {
|
|
326
|
-
readOnly: true,
|
|
327
|
-
serializedName: "message",
|
|
328
|
-
type: {
|
|
329
|
-
name: "String"
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
target: {
|
|
333
|
-
readOnly: true,
|
|
334
|
-
serializedName: "target",
|
|
335
|
-
type: {
|
|
336
|
-
name: "String"
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
details: {
|
|
340
|
-
readOnly: true,
|
|
341
|
-
serializedName: "details",
|
|
342
|
-
type: {
|
|
343
|
-
name: "Sequence",
|
|
344
|
-
element: {
|
|
345
|
-
type: {
|
|
346
|
-
name: "Composite",
|
|
347
|
-
className: "ErrorModel"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
additionalInfo: {
|
|
353
|
-
readOnly: true,
|
|
354
|
-
serializedName: "additionalInfo",
|
|
355
|
-
type: {
|
|
356
|
-
name: "Sequence",
|
|
357
|
-
element: {
|
|
358
|
-
type: {
|
|
359
|
-
name: "Composite",
|
|
360
|
-
className: "ErrorAdditionalInfo"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
var ErrorModel = {
|
|
369
|
-
serializedName: "Error",
|
|
370
|
-
type: {
|
|
371
|
-
name: "Composite",
|
|
372
|
-
className: "ErrorModel",
|
|
373
|
-
modelProperties: {
|
|
374
|
-
error: {
|
|
375
|
-
serializedName: "error",
|
|
376
|
-
type: {
|
|
377
|
-
name: "Composite",
|
|
378
|
-
className: "ErrorError"
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
var OperationDisplay = {
|
|
385
|
-
serializedName: "OperationDisplay",
|
|
386
|
-
type: {
|
|
387
|
-
name: "Composite",
|
|
388
|
-
className: "OperationDisplay",
|
|
389
|
-
modelProperties: {
|
|
390
|
-
provider: {
|
|
391
|
-
serializedName: "provider",
|
|
392
|
-
type: {
|
|
393
|
-
name: "String"
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
resource: {
|
|
397
|
-
serializedName: "resource",
|
|
398
|
-
type: {
|
|
399
|
-
name: "String"
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
operation: {
|
|
403
|
-
serializedName: "operation",
|
|
404
|
-
type: {
|
|
405
|
-
name: "String"
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
description: {
|
|
409
|
-
serializedName: "description",
|
|
410
|
-
type: {
|
|
411
|
-
name: "String"
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
var OperationDetail = {
|
|
418
|
-
serializedName: "OperationDetail",
|
|
419
|
-
type: {
|
|
420
|
-
name: "Composite",
|
|
421
|
-
className: "OperationDetail",
|
|
422
|
-
modelProperties: {
|
|
423
|
-
name: {
|
|
424
|
-
serializedName: "name",
|
|
425
|
-
type: {
|
|
426
|
-
name: "String"
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
isDataAction: {
|
|
430
|
-
serializedName: "isDataAction",
|
|
431
|
-
type: {
|
|
432
|
-
name: "Boolean"
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
display: {
|
|
436
|
-
serializedName: "display",
|
|
437
|
-
type: {
|
|
438
|
-
name: "Composite",
|
|
439
|
-
className: "OperationDisplay"
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
origin: {
|
|
443
|
-
serializedName: "origin",
|
|
444
|
-
type: {
|
|
445
|
-
name: "String"
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
properties: {
|
|
449
|
-
serializedName: "properties",
|
|
450
|
-
type: {
|
|
451
|
-
name: "Object"
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
var BotResponseList = {
|
|
458
|
-
serializedName: "BotResponseList",
|
|
459
|
-
type: {
|
|
460
|
-
name: "Composite",
|
|
461
|
-
className: "BotResponseList",
|
|
462
|
-
modelProperties: {
|
|
463
|
-
nextLink: {
|
|
464
|
-
readOnly: true,
|
|
465
|
-
serializedName: "nextLink",
|
|
466
|
-
type: {
|
|
467
|
-
name: "String"
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
value: {
|
|
471
|
-
readOnly: true,
|
|
472
|
-
serializedName: "",
|
|
473
|
-
type: {
|
|
474
|
-
name: "Sequence",
|
|
475
|
-
element: {
|
|
476
|
-
type: {
|
|
477
|
-
name: "Composite",
|
|
478
|
-
className: "HealthBot"
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
var AvailableOperations = {
|
|
487
|
-
serializedName: "AvailableOperations",
|
|
488
|
-
type: {
|
|
489
|
-
name: "Composite",
|
|
490
|
-
className: "AvailableOperations",
|
|
491
|
-
modelProperties: {
|
|
492
|
-
value: {
|
|
493
|
-
serializedName: "",
|
|
494
|
-
type: {
|
|
495
|
-
name: "Sequence",
|
|
496
|
-
element: {
|
|
497
|
-
type: {
|
|
498
|
-
name: "Composite",
|
|
499
|
-
className: "OperationDetail"
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
nextLink: {
|
|
505
|
-
serializedName: "nextLink",
|
|
506
|
-
type: {
|
|
507
|
-
name: "String"
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
|
515
|
-
__proto__: null,
|
|
516
|
-
CloudError: CloudError,
|
|
517
|
-
BaseResource: BaseResource,
|
|
518
|
-
Sku: Sku,
|
|
519
|
-
SystemData: SystemData,
|
|
520
|
-
Resource: Resource,
|
|
521
|
-
TrackedResource: TrackedResource,
|
|
522
|
-
HealthBotProperties: HealthBotProperties,
|
|
523
|
-
HealthBot: HealthBot,
|
|
524
|
-
HealthBotUpdateParameters: HealthBotUpdateParameters,
|
|
525
|
-
ValidationResult: ValidationResult,
|
|
526
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
527
|
-
ErrorError: ErrorError,
|
|
528
|
-
ErrorModel: ErrorModel,
|
|
529
|
-
OperationDisplay: OperationDisplay,
|
|
530
|
-
OperationDetail: OperationDetail,
|
|
531
|
-
BotResponseList: BotResponseList,
|
|
532
|
-
AvailableOperations: AvailableOperations
|
|
533
|
-
});
|
|
534
|
-
|
|
535
|
-
/*
|
|
536
|
-
* Copyright (c) Microsoft Corporation.
|
|
537
|
-
* Licensed under the MIT License.
|
|
538
|
-
*
|
|
539
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
540
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
541
|
-
*/
|
|
542
|
-
|
|
543
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
544
|
-
__proto__: null,
|
|
545
|
-
BaseResource: BaseResource,
|
|
546
|
-
BotResponseList: BotResponseList,
|
|
547
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
548
|
-
ErrorError: ErrorError,
|
|
549
|
-
ErrorModel: ErrorModel,
|
|
550
|
-
HealthBot: HealthBot,
|
|
551
|
-
HealthBotProperties: HealthBotProperties,
|
|
552
|
-
HealthBotUpdateParameters: HealthBotUpdateParameters,
|
|
553
|
-
Resource: Resource,
|
|
554
|
-
Sku: Sku,
|
|
555
|
-
SystemData: SystemData,
|
|
556
|
-
TrackedResource: TrackedResource
|
|
557
|
-
});
|
|
558
|
-
|
|
559
|
-
/*
|
|
560
|
-
* Copyright (c) Microsoft Corporation.
|
|
561
|
-
* Licensed under the MIT License.
|
|
562
|
-
*
|
|
563
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
564
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
565
|
-
* regenerated.
|
|
566
|
-
*/
|
|
567
|
-
var acceptLanguage = {
|
|
568
|
-
parameterPath: "acceptLanguage",
|
|
569
|
-
mapper: {
|
|
570
|
-
serializedName: "accept-language",
|
|
571
|
-
defaultValue: 'en-US',
|
|
572
|
-
type: {
|
|
573
|
-
name: "String"
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
var apiVersion = {
|
|
578
|
-
parameterPath: "apiVersion",
|
|
579
|
-
mapper: {
|
|
580
|
-
required: true,
|
|
581
|
-
serializedName: "api-version",
|
|
582
|
-
type: {
|
|
583
|
-
name: "String"
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
var botName = {
|
|
588
|
-
parameterPath: "botName",
|
|
589
|
-
mapper: {
|
|
590
|
-
required: true,
|
|
591
|
-
serializedName: "botName",
|
|
592
|
-
constraints: {
|
|
593
|
-
MaxLength: 64,
|
|
594
|
-
MinLength: 2,
|
|
595
|
-
Pattern: /^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/
|
|
596
|
-
},
|
|
597
|
-
type: {
|
|
598
|
-
name: "String"
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
var nextPageLink = {
|
|
603
|
-
parameterPath: "nextPageLink",
|
|
604
|
-
mapper: {
|
|
605
|
-
required: true,
|
|
606
|
-
serializedName: "nextLink",
|
|
607
|
-
type: {
|
|
608
|
-
name: "String"
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
skipEncoding: true
|
|
612
|
-
};
|
|
613
|
-
var resourceGroupName = {
|
|
614
|
-
parameterPath: "resourceGroupName",
|
|
615
|
-
mapper: {
|
|
616
|
-
required: true,
|
|
617
|
-
serializedName: "resourceGroupName",
|
|
618
|
-
constraints: {
|
|
619
|
-
MaxLength: 64,
|
|
620
|
-
MinLength: 2,
|
|
621
|
-
Pattern: /^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/
|
|
622
|
-
},
|
|
623
|
-
type: {
|
|
624
|
-
name: "String"
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
var subscriptionId = {
|
|
629
|
-
parameterPath: "subscriptionId",
|
|
630
|
-
mapper: {
|
|
631
|
-
required: true,
|
|
632
|
-
serializedName: "subscriptionId",
|
|
633
|
-
type: {
|
|
634
|
-
name: "String"
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
/*
|
|
640
|
-
* Copyright (c) Microsoft Corporation.
|
|
641
|
-
* Licensed under the MIT License.
|
|
642
|
-
*
|
|
643
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
644
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
645
|
-
* regenerated.
|
|
646
|
-
*/
|
|
647
|
-
/** Class representing a Bots. */
|
|
648
|
-
var Bots = /** @class */ (function () {
|
|
649
|
-
/**
|
|
650
|
-
* Create a Bots.
|
|
651
|
-
* @param {HealthbotClientContext} client Reference to the service client.
|
|
652
|
-
*/
|
|
653
|
-
function Bots(client) {
|
|
654
|
-
this.client = client;
|
|
655
|
-
}
|
|
656
|
-
/**
|
|
657
|
-
* Create a new HealthBot.
|
|
658
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
659
|
-
* @param botName The name of the Bot resource.
|
|
660
|
-
* @param parameters The parameters to provide for the created bot.
|
|
661
|
-
* @param [options] The optional parameters
|
|
662
|
-
* @returns Promise<Models.BotsCreateResponse>
|
|
663
|
-
*/
|
|
664
|
-
Bots.prototype.create = function (resourceGroupName, botName, parameters, options) {
|
|
665
|
-
return this.beginCreate(resourceGroupName, botName, parameters, options)
|
|
666
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
667
|
-
};
|
|
668
|
-
Bots.prototype.get = function (resourceGroupName, botName, options, callback) {
|
|
669
|
-
return this.client.sendOperationRequest({
|
|
670
|
-
resourceGroupName: resourceGroupName,
|
|
671
|
-
botName: botName,
|
|
672
|
-
options: options
|
|
673
|
-
}, getOperationSpec, callback);
|
|
674
|
-
};
|
|
675
|
-
Bots.prototype.update = function (resourceGroupName, botName, parameters, options, callback) {
|
|
676
|
-
return this.client.sendOperationRequest({
|
|
677
|
-
resourceGroupName: resourceGroupName,
|
|
678
|
-
botName: botName,
|
|
679
|
-
parameters: parameters,
|
|
680
|
-
options: options
|
|
681
|
-
}, updateOperationSpec, callback);
|
|
682
|
-
};
|
|
683
|
-
/**
|
|
684
|
-
* Delete a HealthBot.
|
|
685
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
686
|
-
* @param botName The name of the Bot resource.
|
|
687
|
-
* @param [options] The optional parameters
|
|
688
|
-
* @returns Promise<msRest.RestResponse>
|
|
689
|
-
*/
|
|
690
|
-
Bots.prototype.deleteMethod = function (resourceGroupName, botName, options) {
|
|
691
|
-
return this.beginDeleteMethod(resourceGroupName, botName, options)
|
|
692
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
693
|
-
};
|
|
694
|
-
Bots.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
|
|
695
|
-
return this.client.sendOperationRequest({
|
|
696
|
-
resourceGroupName: resourceGroupName,
|
|
697
|
-
options: options
|
|
698
|
-
}, listByResourceGroupOperationSpec, callback);
|
|
699
|
-
};
|
|
700
|
-
Bots.prototype.list = function (options, callback) {
|
|
701
|
-
return this.client.sendOperationRequest({
|
|
702
|
-
options: options
|
|
703
|
-
}, listOperationSpec, callback);
|
|
704
|
-
};
|
|
705
|
-
/**
|
|
706
|
-
* Create a new HealthBot.
|
|
707
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
708
|
-
* @param botName The name of the Bot resource.
|
|
709
|
-
* @param parameters The parameters to provide for the created bot.
|
|
710
|
-
* @param [options] The optional parameters
|
|
711
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
712
|
-
*/
|
|
713
|
-
Bots.prototype.beginCreate = function (resourceGroupName, botName, parameters, options) {
|
|
714
|
-
return this.client.sendLRORequest({
|
|
715
|
-
resourceGroupName: resourceGroupName,
|
|
716
|
-
botName: botName,
|
|
717
|
-
parameters: parameters,
|
|
718
|
-
options: options
|
|
719
|
-
}, beginCreateOperationSpec, options);
|
|
720
|
-
};
|
|
721
|
-
/**
|
|
722
|
-
* Delete a HealthBot.
|
|
723
|
-
* @param resourceGroupName The name of the Bot resource group in the user subscription.
|
|
724
|
-
* @param botName The name of the Bot resource.
|
|
725
|
-
* @param [options] The optional parameters
|
|
726
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
727
|
-
*/
|
|
728
|
-
Bots.prototype.beginDeleteMethod = function (resourceGroupName, botName, options) {
|
|
729
|
-
return this.client.sendLRORequest({
|
|
730
|
-
resourceGroupName: resourceGroupName,
|
|
731
|
-
botName: botName,
|
|
732
|
-
options: options
|
|
733
|
-
}, beginDeleteMethodOperationSpec, options);
|
|
734
|
-
};
|
|
735
|
-
Bots.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
|
|
736
|
-
return this.client.sendOperationRequest({
|
|
737
|
-
nextPageLink: nextPageLink,
|
|
738
|
-
options: options
|
|
739
|
-
}, listByResourceGroupNextOperationSpec, callback);
|
|
740
|
-
};
|
|
741
|
-
Bots.prototype.listNext = function (nextPageLink, options, callback) {
|
|
742
|
-
return this.client.sendOperationRequest({
|
|
743
|
-
nextPageLink: nextPageLink,
|
|
744
|
-
options: options
|
|
745
|
-
}, listNextOperationSpec, callback);
|
|
746
|
-
};
|
|
747
|
-
return Bots;
|
|
748
|
-
}());
|
|
749
|
-
// Operation Specifications
|
|
750
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
751
|
-
var getOperationSpec = {
|
|
752
|
-
httpMethod: "GET",
|
|
753
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
754
|
-
urlParameters: [
|
|
755
|
-
subscriptionId,
|
|
756
|
-
resourceGroupName,
|
|
757
|
-
botName
|
|
758
|
-
],
|
|
759
|
-
queryParameters: [
|
|
760
|
-
apiVersion
|
|
761
|
-
],
|
|
762
|
-
headerParameters: [
|
|
763
|
-
acceptLanguage
|
|
764
|
-
],
|
|
765
|
-
responses: {
|
|
766
|
-
200: {
|
|
767
|
-
bodyMapper: HealthBot
|
|
768
|
-
},
|
|
769
|
-
default: {
|
|
770
|
-
bodyMapper: ErrorModel
|
|
771
|
-
}
|
|
772
|
-
},
|
|
773
|
-
serializer: serializer
|
|
774
|
-
};
|
|
775
|
-
var updateOperationSpec = {
|
|
776
|
-
httpMethod: "PATCH",
|
|
777
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
778
|
-
urlParameters: [
|
|
779
|
-
subscriptionId,
|
|
780
|
-
resourceGroupName,
|
|
781
|
-
botName
|
|
782
|
-
],
|
|
783
|
-
queryParameters: [
|
|
784
|
-
apiVersion
|
|
785
|
-
],
|
|
786
|
-
headerParameters: [
|
|
787
|
-
acceptLanguage
|
|
788
|
-
],
|
|
789
|
-
requestBody: {
|
|
790
|
-
parameterPath: "parameters",
|
|
791
|
-
mapper: __assign(__assign({}, HealthBotUpdateParameters), { required: true })
|
|
792
|
-
},
|
|
793
|
-
responses: {
|
|
794
|
-
200: {
|
|
795
|
-
bodyMapper: HealthBot
|
|
796
|
-
},
|
|
797
|
-
201: {
|
|
798
|
-
bodyMapper: HealthBot
|
|
799
|
-
},
|
|
800
|
-
default: {
|
|
801
|
-
bodyMapper: ErrorModel
|
|
802
|
-
}
|
|
803
|
-
},
|
|
804
|
-
serializer: serializer
|
|
805
|
-
};
|
|
806
|
-
var listByResourceGroupOperationSpec = {
|
|
807
|
-
httpMethod: "GET",
|
|
808
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots",
|
|
809
|
-
urlParameters: [
|
|
810
|
-
resourceGroupName,
|
|
811
|
-
subscriptionId
|
|
812
|
-
],
|
|
813
|
-
queryParameters: [
|
|
814
|
-
apiVersion
|
|
815
|
-
],
|
|
816
|
-
headerParameters: [
|
|
817
|
-
acceptLanguage
|
|
818
|
-
],
|
|
819
|
-
responses: {
|
|
820
|
-
200: {
|
|
821
|
-
bodyMapper: BotResponseList
|
|
822
|
-
},
|
|
823
|
-
default: {
|
|
824
|
-
bodyMapper: ErrorModel
|
|
825
|
-
}
|
|
826
|
-
},
|
|
827
|
-
serializer: serializer
|
|
828
|
-
};
|
|
829
|
-
var listOperationSpec = {
|
|
830
|
-
httpMethod: "GET",
|
|
831
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HealthBot/healthBots",
|
|
832
|
-
urlParameters: [
|
|
833
|
-
subscriptionId
|
|
834
|
-
],
|
|
835
|
-
queryParameters: [
|
|
836
|
-
apiVersion
|
|
837
|
-
],
|
|
838
|
-
headerParameters: [
|
|
839
|
-
acceptLanguage
|
|
840
|
-
],
|
|
841
|
-
responses: {
|
|
842
|
-
200: {
|
|
843
|
-
bodyMapper: BotResponseList
|
|
844
|
-
},
|
|
845
|
-
default: {
|
|
846
|
-
bodyMapper: ErrorModel
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
|
-
serializer: serializer
|
|
850
|
-
};
|
|
851
|
-
var beginCreateOperationSpec = {
|
|
852
|
-
httpMethod: "PUT",
|
|
853
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
854
|
-
urlParameters: [
|
|
855
|
-
subscriptionId,
|
|
856
|
-
resourceGroupName,
|
|
857
|
-
botName
|
|
858
|
-
],
|
|
859
|
-
queryParameters: [
|
|
860
|
-
apiVersion
|
|
861
|
-
],
|
|
862
|
-
headerParameters: [
|
|
863
|
-
acceptLanguage
|
|
864
|
-
],
|
|
865
|
-
requestBody: {
|
|
866
|
-
parameterPath: "parameters",
|
|
867
|
-
mapper: __assign(__assign({}, HealthBot), { required: true })
|
|
868
|
-
},
|
|
869
|
-
responses: {
|
|
870
|
-
200: {
|
|
871
|
-
bodyMapper: HealthBot
|
|
872
|
-
},
|
|
873
|
-
201: {
|
|
874
|
-
bodyMapper: HealthBot
|
|
875
|
-
},
|
|
876
|
-
default: {
|
|
877
|
-
bodyMapper: ErrorModel
|
|
878
|
-
}
|
|
879
|
-
},
|
|
880
|
-
serializer: serializer
|
|
881
|
-
};
|
|
882
|
-
var beginDeleteMethodOperationSpec = {
|
|
883
|
-
httpMethod: "DELETE",
|
|
884
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}",
|
|
885
|
-
urlParameters: [
|
|
886
|
-
subscriptionId,
|
|
887
|
-
resourceGroupName,
|
|
888
|
-
botName
|
|
889
|
-
],
|
|
890
|
-
queryParameters: [
|
|
891
|
-
apiVersion
|
|
892
|
-
],
|
|
893
|
-
headerParameters: [
|
|
894
|
-
acceptLanguage
|
|
895
|
-
],
|
|
896
|
-
responses: {
|
|
897
|
-
200: {},
|
|
898
|
-
202: {},
|
|
899
|
-
204: {},
|
|
900
|
-
default: {
|
|
901
|
-
bodyMapper: ErrorModel
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
serializer: serializer
|
|
905
|
-
};
|
|
906
|
-
var listByResourceGroupNextOperationSpec = {
|
|
907
|
-
httpMethod: "GET",
|
|
908
|
-
baseUrl: "https://management.azure.com",
|
|
909
|
-
path: "{nextLink}",
|
|
910
|
-
urlParameters: [
|
|
911
|
-
nextPageLink
|
|
912
|
-
],
|
|
913
|
-
queryParameters: [
|
|
914
|
-
apiVersion
|
|
915
|
-
],
|
|
916
|
-
headerParameters: [
|
|
917
|
-
acceptLanguage
|
|
918
|
-
],
|
|
919
|
-
responses: {
|
|
920
|
-
200: {
|
|
921
|
-
bodyMapper: BotResponseList
|
|
922
|
-
},
|
|
923
|
-
default: {
|
|
924
|
-
bodyMapper: ErrorModel
|
|
925
|
-
}
|
|
926
|
-
},
|
|
927
|
-
serializer: serializer
|
|
928
|
-
};
|
|
929
|
-
var listNextOperationSpec = {
|
|
930
|
-
httpMethod: "GET",
|
|
931
|
-
baseUrl: "https://management.azure.com",
|
|
932
|
-
path: "{nextLink}",
|
|
933
|
-
urlParameters: [
|
|
934
|
-
nextPageLink
|
|
935
|
-
],
|
|
936
|
-
queryParameters: [
|
|
937
|
-
apiVersion
|
|
938
|
-
],
|
|
939
|
-
headerParameters: [
|
|
940
|
-
acceptLanguage
|
|
941
|
-
],
|
|
942
|
-
responses: {
|
|
943
|
-
200: {
|
|
944
|
-
bodyMapper: BotResponseList
|
|
945
|
-
},
|
|
946
|
-
default: {
|
|
947
|
-
bodyMapper: ErrorModel
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
serializer: serializer
|
|
951
|
-
};
|
|
952
|
-
|
|
953
|
-
/*
|
|
954
|
-
* Copyright (c) Microsoft Corporation.
|
|
955
|
-
* Licensed under the MIT License.
|
|
956
|
-
*
|
|
957
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
958
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
959
|
-
*/
|
|
960
|
-
|
|
961
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
962
|
-
__proto__: null,
|
|
963
|
-
AvailableOperations: AvailableOperations,
|
|
964
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
965
|
-
ErrorError: ErrorError,
|
|
966
|
-
ErrorModel: ErrorModel,
|
|
967
|
-
OperationDetail: OperationDetail,
|
|
968
|
-
OperationDisplay: OperationDisplay
|
|
969
|
-
});
|
|
970
|
-
|
|
971
|
-
/*
|
|
972
|
-
* Copyright (c) Microsoft Corporation.
|
|
973
|
-
* Licensed under the MIT License.
|
|
974
|
-
*
|
|
975
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
976
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
977
|
-
* regenerated.
|
|
978
|
-
*/
|
|
979
|
-
/** Class representing a Operations. */
|
|
980
|
-
var Operations = /** @class */ (function () {
|
|
981
|
-
/**
|
|
982
|
-
* Create a Operations.
|
|
983
|
-
* @param {HealthbotClientContext} client Reference to the service client.
|
|
984
|
-
*/
|
|
985
|
-
function Operations(client) {
|
|
986
|
-
this.client = client;
|
|
987
|
-
}
|
|
988
|
-
Operations.prototype.list = function (options, callback) {
|
|
989
|
-
return this.client.sendOperationRequest({
|
|
990
|
-
options: options
|
|
991
|
-
}, listOperationSpec$1, callback);
|
|
992
|
-
};
|
|
993
|
-
Operations.prototype.listNext = function (nextPageLink, options, callback) {
|
|
994
|
-
return this.client.sendOperationRequest({
|
|
995
|
-
nextPageLink: nextPageLink,
|
|
996
|
-
options: options
|
|
997
|
-
}, listNextOperationSpec$1, callback);
|
|
998
|
-
};
|
|
999
|
-
return Operations;
|
|
1000
|
-
}());
|
|
1001
|
-
// Operation Specifications
|
|
1002
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
1003
|
-
var listOperationSpec$1 = {
|
|
1004
|
-
httpMethod: "GET",
|
|
1005
|
-
path: "providers/Microsoft.HealthBot/operations",
|
|
1006
|
-
queryParameters: [
|
|
1007
|
-
apiVersion
|
|
1008
|
-
],
|
|
1009
|
-
headerParameters: [
|
|
1010
|
-
acceptLanguage
|
|
1011
|
-
],
|
|
1012
|
-
responses: {
|
|
1013
|
-
200: {
|
|
1014
|
-
bodyMapper: AvailableOperations
|
|
1015
|
-
},
|
|
1016
|
-
default: {
|
|
1017
|
-
bodyMapper: ErrorModel
|
|
1018
|
-
}
|
|
1019
|
-
},
|
|
1020
|
-
serializer: serializer$1
|
|
1021
|
-
};
|
|
1022
|
-
var listNextOperationSpec$1 = {
|
|
1023
|
-
httpMethod: "GET",
|
|
1024
|
-
baseUrl: "https://management.azure.com",
|
|
1025
|
-
path: "{nextLink}",
|
|
1026
|
-
urlParameters: [
|
|
1027
|
-
nextPageLink
|
|
1028
|
-
],
|
|
1029
|
-
queryParameters: [
|
|
1030
|
-
apiVersion
|
|
1031
|
-
],
|
|
1032
|
-
headerParameters: [
|
|
1033
|
-
acceptLanguage
|
|
1034
|
-
],
|
|
1035
|
-
responses: {
|
|
1036
|
-
200: {
|
|
1037
|
-
bodyMapper: AvailableOperations
|
|
1038
|
-
},
|
|
1039
|
-
default: {
|
|
1040
|
-
bodyMapper: ErrorModel
|
|
1041
|
-
}
|
|
1042
|
-
},
|
|
1043
|
-
serializer: serializer$1
|
|
1044
|
-
};
|
|
1045
|
-
|
|
1046
|
-
/*
|
|
1047
|
-
* Copyright (c) Microsoft Corporation.
|
|
1048
|
-
* Licensed under the MIT License.
|
|
1049
|
-
*
|
|
1050
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1051
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1052
|
-
* regenerated.
|
|
1053
|
-
*/
|
|
1054
|
-
var packageName = "@azure/arm-healthbot";
|
|
1055
|
-
var packageVersion = "1.1.0";
|
|
1056
|
-
var HealthbotClientContext = /** @class */ (function (_super) {
|
|
1057
|
-
__extends(HealthbotClientContext, _super);
|
|
1058
|
-
/**
|
|
1059
|
-
* Initializes a new instance of the HealthbotClient class.
|
|
1060
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1061
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1062
|
-
* more information about these credentials, see
|
|
1063
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1064
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1065
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
1066
|
-
* @param subscriptionId Azure Subscription ID.
|
|
1067
|
-
* @param [options] The parameter options
|
|
1068
|
-
*/
|
|
1069
|
-
function HealthbotClientContext(credentials, subscriptionId, options) {
|
|
1070
|
-
var _this = this;
|
|
1071
|
-
if (credentials == undefined) {
|
|
1072
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
1073
|
-
}
|
|
1074
|
-
if (subscriptionId == undefined) {
|
|
1075
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
1076
|
-
}
|
|
1077
|
-
if (!options) {
|
|
1078
|
-
options = {};
|
|
1079
|
-
}
|
|
1080
|
-
if (!options.userAgent) {
|
|
1081
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
1082
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
1083
|
-
}
|
|
1084
|
-
_this = _super.call(this, credentials, options) || this;
|
|
1085
|
-
_this.apiVersion = '2020-12-08';
|
|
1086
|
-
_this.acceptLanguage = 'en-US';
|
|
1087
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
1088
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
1089
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
1090
|
-
_this.credentials = credentials;
|
|
1091
|
-
_this.subscriptionId = subscriptionId;
|
|
1092
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
1093
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
1094
|
-
}
|
|
1095
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
1096
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
1097
|
-
}
|
|
1098
|
-
return _this;
|
|
1099
|
-
}
|
|
1100
|
-
return HealthbotClientContext;
|
|
1101
|
-
}(msRestAzure.AzureServiceClient));
|
|
1102
|
-
|
|
1103
|
-
/*
|
|
1104
|
-
* Copyright (c) Microsoft Corporation.
|
|
1105
|
-
* Licensed under the MIT License.
|
|
1106
|
-
*
|
|
1107
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1108
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1109
|
-
* regenerated.
|
|
1110
|
-
*/
|
|
1111
|
-
var HealthbotClient = /** @class */ (function (_super) {
|
|
1112
|
-
__extends(HealthbotClient, _super);
|
|
1113
|
-
/**
|
|
1114
|
-
* Initializes a new instance of the HealthbotClient class.
|
|
1115
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
1116
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
1117
|
-
* more information about these credentials, see
|
|
1118
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
1119
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
1120
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
1121
|
-
* @param subscriptionId Azure Subscription ID.
|
|
1122
|
-
* @param [options] The parameter options
|
|
1123
|
-
*/
|
|
1124
|
-
function HealthbotClient(credentials, subscriptionId, options) {
|
|
1125
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
1126
|
-
_this.bots = new Bots(_this);
|
|
1127
|
-
_this.operations = new Operations(_this);
|
|
1128
|
-
return _this;
|
|
1129
|
-
}
|
|
1130
|
-
return HealthbotClient;
|
|
1131
|
-
}(HealthbotClientContext));
|
|
1132
|
-
|
|
1133
|
-
exports.Bots = Bots;
|
|
1134
|
-
exports.HealthbotClient = HealthbotClient;
|
|
1135
|
-
exports.HealthbotClientContext = HealthbotClientContext;
|
|
1136
|
-
exports.HealthbotMappers = mappers;
|
|
1137
|
-
exports.HealthbotModels = index;
|
|
1138
|
-
exports.Operations = Operations;
|
|
1139
|
-
|
|
1140
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1141
|
-
|
|
1142
|
-
})));
|
|
1143
|
-
//# sourceMappingURL=arm-healthbot.js.map
|