@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.
Files changed (118) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +1301 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/healthbotClient.d.ts +19 -0
  9. package/dist-esm/src/healthbotClient.d.ts.map +1 -0
  10. package/dist-esm/src/healthbotClient.js +52 -0
  11. package/dist-esm/src/healthbotClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +309 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +16 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +19 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +252 -199
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +12 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +112 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/bots.d.ts +99 -0
  33. package/dist-esm/src/operations/bots.d.ts.map +1 -0
  34. package/dist-esm/src/operations/bots.js +454 -0
  35. package/dist-esm/src/operations/bots.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +1 -2
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +32 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +120 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/bots.d.ts +63 -0
  45. package/dist-esm/src/operationsInterfaces/bots.d.ts.map +1 -0
  46. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/bots.js} +2 -1
  47. package/dist-esm/src/operationsInterfaces/bots.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/index.js} +3 -2
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  53. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  56. package/dist-esm/test/sampleTest.d.ts +2 -0
  57. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  58. package/dist-esm/test/sampleTest.js +40 -0
  59. package/dist-esm/test/sampleTest.js.map +1 -0
  60. package/package.json +65 -32
  61. package/review/arm-healthbot.api.md +271 -0
  62. package/rollup.config.js +181 -30
  63. package/src/healthbotClient.ts +62 -34
  64. package/src/index.ts +12 -0
  65. package/src/lroImpl.ts +34 -0
  66. package/src/models/index.ts +239 -394
  67. package/src/models/mappers.ts +260 -204
  68. package/src/models/parameters.ts +81 -33
  69. package/src/operations/bots.ts +424 -322
  70. package/src/operations/index.ts +1 -2
  71. package/src/operations/operations.ts +87 -75
  72. package/src/operationsInterfaces/bots.ts +116 -0
  73. package/src/{models/operationsMappers.ts → operationsInterfaces/index.ts} +2 -8
  74. package/src/operationsInterfaces/operations.ts +22 -0
  75. package/tsconfig.json +3 -3
  76. package/types/arm-healthbot.d.ts +439 -0
  77. package/types/tsdoc-metadata.json +11 -0
  78. package/dist/arm-healthbot.js +0 -1143
  79. package/dist/arm-healthbot.js.map +0 -1
  80. package/dist/arm-healthbot.min.js +0 -1
  81. package/dist/arm-healthbot.min.js.map +0 -1
  82. package/esm/healthbotClient.d.ts +0 -25
  83. package/esm/healthbotClient.d.ts.map +0 -1
  84. package/esm/healthbotClient.js +0 -38
  85. package/esm/healthbotClient.js.map +0 -1
  86. package/esm/healthbotClientContext.d.ts +0 -22
  87. package/esm/healthbotClientContext.d.ts.map +0 -1
  88. package/esm/healthbotClientContext.js +0 -60
  89. package/esm/healthbotClientContext.js.map +0 -1
  90. package/esm/models/botsMappers.d.ts +0 -2
  91. package/esm/models/botsMappers.d.ts.map +0 -1
  92. package/esm/models/botsMappers.js +0 -9
  93. package/esm/models/botsMappers.js.map +0 -1
  94. package/esm/models/index.d.ts +0 -464
  95. package/esm/models/index.d.ts.map +0 -1
  96. package/esm/models/index.js.map +0 -1
  97. package/esm/models/mappers.d.ts +0 -19
  98. package/esm/models/mappers.d.ts.map +0 -1
  99. package/esm/models/mappers.js.map +0 -1
  100. package/esm/models/operationsMappers.d.ts +0 -2
  101. package/esm/models/operationsMappers.d.ts.map +0 -1
  102. package/esm/models/operationsMappers.js.map +0 -1
  103. package/esm/models/parameters.d.ts +0 -8
  104. package/esm/models/parameters.d.ts.map +0 -1
  105. package/esm/models/parameters.js +0 -80
  106. package/esm/models/parameters.js.map +0 -1
  107. package/esm/operations/bots.d.ts +0 -162
  108. package/esm/operations/bots.d.ts.map +0 -1
  109. package/esm/operations/bots.js +0 -319
  110. package/esm/operations/bots.js.map +0 -1
  111. package/esm/operations/index.d.ts.map +0 -1
  112. package/esm/operations/index.js.map +0 -1
  113. package/esm/operations/operations.d.ts +0 -46
  114. package/esm/operations/operations.d.ts.map +0 -1
  115. package/esm/operations/operations.js +0 -79
  116. package/esm/operations/operations.js.map +0 -1
  117. package/src/healthbotClientContext.ts +0 -67
  118. package/src/models/botsMappers.ts +0 -22
@@ -6,501 +6,346 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
13
-
14
- /**
15
- * The resource model definition representing SKU
16
- */
11
+ /** The resource model definition representing SKU */
17
12
  export interface Sku {
18
- /**
19
- * The name of the HealthBot SKU. Possible values include: 'F0', 'S1', 'C0'
20
- */
13
+ /** The name of the Azure Health Bot SKU */
21
14
  name: SkuName;
22
15
  }
23
16
 
24
- /**
25
- * Read only system data
26
- */
27
- export interface SystemData {
17
+ /** Identity for the resource. */
18
+ export interface Identity {
28
19
  /**
29
- * The identity that created the resource.
20
+ * The principal ID of resource identity. This property will only be provided for a system assigned identity.
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
30
22
  */
31
- createdBy?: string;
23
+ readonly principalId?: string;
32
24
  /**
33
- * The type of identity that created the resource. Possible values include: 'User',
34
- * 'Application', 'ManagedIdentity', 'Key'
25
+ * The tenant ID of resource. This property will only be provided for a system assigned identity.
26
+ * NOTE: This property will not be serialized. It can only be populated by the server.
35
27
  */
36
- createdByType?: IdentityType;
28
+ readonly tenantId?: string;
29
+ /** The identity type. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the Azure Health Bot */
30
+ type?: ResourceIdentityType;
37
31
  /**
38
- * The timestamp of resource creation (UTC)
32
+ * The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form:
33
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
34
+ *
39
35
  */
40
- createdAt?: Date;
41
- /**
42
- * The identity that last modified the resource.
43
- */
44
- lastModifiedBy?: string;
45
- /**
46
- * The type of identity that last modified the resource. Possible values include: 'User',
47
- * 'Application', 'ManagedIdentity', 'Key'
48
- */
49
- lastModifiedByType?: IdentityType;
50
- /**
51
- * The timestamp of resource last modification (UTC)
52
- */
53
- lastModifiedAt?: Date;
36
+ userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity };
54
37
  }
55
38
 
56
- /**
57
- * The resource model definition for a ARM tracked top level resource
58
- */
59
- export interface Resource extends BaseResource {
39
+ /** The details of the user assigned managed identity used by the Video Analyzer resource. */
40
+ export interface UserAssignedIdentity {
60
41
  /**
61
- * Fully qualified resource Id for the resource.
62
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
42
+ * The principal ID of user assigned identity.
43
+ * NOTE: This property will not be serialized. It can only be populated by the server.
63
44
  */
64
- readonly id?: string;
45
+ readonly principalId?: string;
65
46
  /**
66
- * The name of the resource
67
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
68
- */
69
- readonly name?: string;
70
- /**
71
- * The type of the resource.
72
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
47
+ * The client ID of user assigned identity.
48
+ * NOTE: This property will not be serialized. It can only be populated by the server.
73
49
  */
74
- readonly type?: string;
75
- /**
76
- * Metadata pertaining to creation and last modification of the resource
77
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
78
- */
79
- readonly systemData?: SystemData;
80
- }
81
-
82
- /**
83
- * The resource model definition for a ARM tracked top level resource
84
- */
85
- export interface TrackedResource extends Resource {
86
- /**
87
- * Resource tags.
88
- */
89
- tags?: { [propertyName: string]: string };
90
- /**
91
- * The geo-location where the resource lives
92
- */
93
- location: string;
50
+ readonly clientId?: string;
94
51
  }
95
52
 
96
- /**
97
- * The properties of a HealthBot. The Health Bot Service is a cloud platform that empowers
98
- * developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual
99
- * health assistants and health bots, that help them improve processes and reduce costs.
100
- * @summary HealthBotProperties
101
- */
53
+ /** The properties of a Azure Health Bot. The Health Bot Service is a cloud platform that empowers developers in Healthcare organizations to build and deploy their compliant, AI-powered virtual health assistants and health bots, that help them improve processes and reduce costs. */
102
54
  export interface HealthBotProperties {
103
55
  /**
104
- * The provisioning state of the Healthbot resource.
105
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
56
+ * The provisioning state of the Azure Health Bot resource.
57
+ * NOTE: This property will not be serialized. It can only be populated by the server.
106
58
  */
107
59
  readonly provisioningState?: string;
108
60
  /**
109
61
  * The link.
110
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
62
+ * NOTE: This property will not be serialized. It can only be populated by the server.
111
63
  */
112
64
  readonly botManagementPortalLink?: string;
113
65
  }
114
66
 
115
- /**
116
- * HealthBot resource definition
117
- */
118
- export interface HealthBot extends TrackedResource {
67
+ /** The resource model definition for a ARM tracked top level resource */
68
+ export interface Resource {
119
69
  /**
120
- * SKU of the HealthBot.
70
+ * Fully qualified resource Id for the resource.
71
+ * NOTE: This property will not be serialized. It can only be populated by the server.
121
72
  */
122
- sku: Sku;
73
+ readonly id?: string;
123
74
  /**
124
- * The set of properties specific to Healthbot resource.
75
+ * The name of the resource
76
+ * NOTE: This property will not be serialized. It can only be populated by the server.
125
77
  */
126
- properties?: HealthBotProperties;
127
- }
128
-
129
- /**
130
- * Parameters for updating a HealthBot.
131
- */
132
- export interface HealthBotUpdateParameters {
78
+ readonly name?: string;
133
79
  /**
134
- * Tags for a HealthBot.
80
+ * The type of the resource.
81
+ * NOTE: This property will not be serialized. It can only be populated by the server.
135
82
  */
136
- tags?: { [propertyName: string]: string };
83
+ readonly type?: string;
137
84
  /**
138
- * SKU of the HealthBot.
85
+ * Metadata pertaining to creation and last modification of the resource
86
+ * NOTE: This property will not be serialized. It can only be populated by the server.
139
87
  */
140
- sku?: Sku;
88
+ readonly systemData?: SystemData;
141
89
  }
142
90
 
143
- /**
144
- * The response returned from validation process
145
- * @summary ValidationResult
146
- */
147
- export interface ValidationResult {
148
- /**
149
- * The status code of the response validation.
150
- */
151
- status?: string;
91
+ /** Read only system data */
92
+ export interface SystemData {
93
+ /** The identity that created the resource. */
94
+ createdBy?: string;
95
+ /** The type of identity that created the resource */
96
+ createdByType?: IdentityType;
97
+ /** The timestamp of resource creation (UTC) */
98
+ createdAt?: Date;
99
+ /** The identity that last modified the resource. */
100
+ lastModifiedBy?: string;
101
+ /** The type of identity that last modified the resource */
102
+ lastModifiedByType?: IdentityType;
103
+ /** The timestamp of resource last modification (UTC) */
104
+ lastModifiedAt?: Date;
152
105
  }
153
106
 
154
- /**
155
- * The resource management error additional info.
156
- */
157
- export interface ErrorAdditionalInfo {
158
- /**
159
- * The additional info type.
160
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
161
- */
162
- readonly type?: string;
163
- /**
164
- * The additional info.
165
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
166
- */
167
- readonly info?: any;
107
+ /** The resource management error response. */
108
+ export interface ErrorModel {
109
+ /** The error object. */
110
+ error?: ErrorError;
168
111
  }
169
112
 
170
- /**
171
- * The error object.
172
- */
113
+ /** The error object. */
173
114
  export interface ErrorError {
174
115
  /**
175
116
  * The error code.
176
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
117
+ * NOTE: This property will not be serialized. It can only be populated by the server.
177
118
  */
178
119
  readonly code?: string;
179
120
  /**
180
121
  * The error message.
181
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
122
+ * NOTE: This property will not be serialized. It can only be populated by the server.
182
123
  */
183
124
  readonly message?: string;
184
125
  /**
185
126
  * The error target.
186
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
127
+ * NOTE: This property will not be serialized. It can only be populated by the server.
187
128
  */
188
129
  readonly target?: string;
189
130
  /**
190
131
  * The error details.
191
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
132
+ * NOTE: This property will not be serialized. It can only be populated by the server.
192
133
  */
193
134
  readonly details?: ErrorModel[];
194
135
  /**
195
136
  * The error additional info.
196
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
137
+ * NOTE: This property will not be serialized. It can only be populated by the server.
197
138
  */
198
139
  readonly additionalInfo?: ErrorAdditionalInfo[];
199
140
  }
200
141
 
201
- /**
202
- * The resource management error response.
203
- */
204
- export interface ErrorModel {
142
+ /** The resource management error additional info. */
143
+ export interface ErrorAdditionalInfo {
205
144
  /**
206
- * The error object.
145
+ * The additional info type.
146
+ * NOTE: This property will not be serialized. It can only be populated by the server.
207
147
  */
208
- error?: ErrorError;
209
- }
210
-
211
- /**
212
- * Operation display payload
213
- */
214
- export interface OperationDisplay {
148
+ readonly type?: string;
215
149
  /**
216
- * Resource provider of the operation
150
+ * The additional info.
151
+ * NOTE: This property will not be serialized. It can only be populated by the server.
217
152
  */
218
- provider?: string;
153
+ readonly info?: Record<string, unknown>;
154
+ }
155
+
156
+ /** Parameters for updating a Azure Health Bot. */
157
+ export interface HealthBotUpdateParameters {
158
+ /** Tags for a Azure Health Bot. */
159
+ tags?: { [propertyName: string]: string };
160
+ /** SKU of the Azure Health Bot. */
161
+ sku?: Sku;
162
+ /** The identity of the Azure Health Bot. */
163
+ identity?: Identity;
164
+ location?: string;
165
+ }
166
+
167
+ /** The list of Azure Health Bot operation response. */
168
+ export interface BotResponseList {
219
169
  /**
220
- * Resource of the operation
170
+ * The link used to get the next page of bot service resources.
171
+ * NOTE: This property will not be serialized. It can only be populated by the server.
221
172
  */
222
- resource?: string;
173
+ readonly nextLink?: string;
223
174
  /**
224
- * Localized friendly name for the operation
175
+ * Gets the list of Azure Health Bot results and their properties.
176
+ * NOTE: This property will not be serialized. It can only be populated by the server.
225
177
  */
226
- operation?: string;
178
+ readonly value?: HealthBot[];
179
+ }
180
+
181
+ /** Available operations of the service */
182
+ export interface AvailableOperations {
183
+ /** Collection of available operation details */
184
+ value?: OperationDetail[];
227
185
  /**
228
- * Localized friendly description for the operation
186
+ * URL client should use to fetch the next page (per server side paging).
187
+ * It's null for now, added for future use.
229
188
  */
230
- description?: string;
189
+ nextLink?: string;
231
190
  }
232
191
 
233
- /**
234
- * Operation detail payload
235
- */
192
+ /** Operation detail payload */
236
193
  export interface OperationDetail {
237
- /**
238
- * Name of the operation
239
- */
194
+ /** Name of the operation */
240
195
  name?: string;
241
- /**
242
- * Indicates whether the operation is a data action
243
- */
196
+ /** Indicates whether the operation is a data action */
244
197
  isDataAction?: boolean;
245
- /**
246
- * Display of the operation
247
- */
198
+ /** Display of the operation */
248
199
  display?: OperationDisplay;
249
- /**
250
- * Origin of the operation
251
- */
200
+ /** Origin of the operation */
252
201
  origin?: string;
253
- /**
254
- * Additional properties.
255
- */
256
- properties?: any;
202
+ /** Additional properties. */
203
+ properties?: Record<string, unknown>;
257
204
  }
258
205
 
259
- /**
260
- * An interface representing HealthbotClientOptions.
261
- */
262
- export interface HealthbotClientOptions extends AzureServiceClientOptions {
263
- baseUri?: string;
206
+ /** Operation display payload */
207
+ export interface OperationDisplay {
208
+ /** Resource provider of the operation */
209
+ provider?: string;
210
+ /** Resource of the operation */
211
+ resource?: string;
212
+ /** Localized friendly name for the operation */
213
+ operation?: string;
214
+ /** Localized friendly description for the operation */
215
+ description?: string;
264
216
  }
265
217
 
266
- /**
267
- * @interface
268
- * The list of Healthbot operation response.
269
- * @extends Array<HealthBot>
270
- */
271
- export interface BotResponseList extends Array<HealthBot> {
272
- /**
273
- * The link used to get the next page of bot service resources.
274
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
275
- */
276
- readonly nextLink?: string;
218
+ /** The response returned from validation process */
219
+ export interface ValidationResult {
220
+ /** The status code of the response validation. */
221
+ status?: string;
277
222
  }
278
223
 
279
- /**
280
- * @interface
281
- * Available operations of the service
282
- * @extends Array<OperationDetail>
283
- */
284
- export interface AvailableOperations extends Array<OperationDetail> {
285
- /**
286
- * URL client should use to fetch the next page (per server side paging).
287
- * It's null for now, added for future use.
288
- */
289
- nextLink?: string;
224
+ /** The resource model definition for a ARM tracked top level resource */
225
+ export type TrackedResource = Resource & {
226
+ /** Resource tags. */
227
+ tags?: { [propertyName: string]: string };
228
+ /** The geo-location where the resource lives */
229
+ location: string;
230
+ };
231
+
232
+ /** Azure Health Bot resource definition */
233
+ export type HealthBot = TrackedResource & {
234
+ /** SKU of the Azure Health Bot. */
235
+ sku: Sku;
236
+ /** The identity of the Azure Health Bot. */
237
+ identity?: Identity;
238
+ /** The set of properties specific to Azure Health Bot resource. */
239
+ properties?: HealthBotProperties;
240
+ };
241
+
242
+ /** Known values of {@link IdentityType} that the service accepts. */
243
+ export enum KnownIdentityType {
244
+ User = "User",
245
+ Application = "Application",
246
+ ManagedIdentity = "ManagedIdentity",
247
+ Key = "Key"
290
248
  }
291
249
 
292
250
  /**
293
- * Defines values for SkuName.
294
- * Possible values include: 'F0', 'S1', 'C0'
295
- * @readonly
296
- * @enum {string}
251
+ * Defines values for IdentityType. \
252
+ * {@link KnownIdentityType} can be used interchangeably with IdentityType,
253
+ * this enum contains the known values that the service supports.
254
+ * ### Known values supported by the service
255
+ * **User** \
256
+ * **Application** \
257
+ * **ManagedIdentity** \
258
+ * **Key**
297
259
  */
298
- export type SkuName = 'F0' | 'S1' | 'C0';
260
+ export type IdentityType = string;
261
+ /** Defines values for SkuName. */
262
+ export type SkuName = "F0" | "S1" | "C0";
263
+ /** Defines values for ResourceIdentityType. */
264
+ export type ResourceIdentityType =
265
+ | "SystemAssigned"
266
+ | "UserAssigned"
267
+ | "SystemAssigned, UserAssigned"
268
+ | "None";
269
+
270
+ /** Optional parameters. */
271
+ export interface BotsCreateOptionalParams extends coreClient.OperationOptions {
272
+ /** Delay to wait until next poll, in milliseconds. */
273
+ updateIntervalInMs?: number;
274
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
275
+ resumeFrom?: string;
276
+ }
299
277
 
300
- /**
301
- * Defines values for IdentityType.
302
- * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
303
- * @readonly
304
- * @enum {string}
305
- */
306
- export type IdentityType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';
278
+ /** Contains response data for the create operation. */
279
+ export type BotsCreateResponse = HealthBot;
307
280
 
308
- /**
309
- * Contains response data for the create operation.
310
- */
311
- export type BotsCreateResponse = HealthBot & {
312
- /**
313
- * The underlying HTTP response.
314
- */
315
- _response: msRest.HttpResponse & {
316
- /**
317
- * The response body as text (string format)
318
- */
319
- bodyAsText: string;
320
-
321
- /**
322
- * The response body as parsed JSON or XML
323
- */
324
- parsedBody: HealthBot;
325
- };
326
- };
281
+ /** Optional parameters. */
282
+ export interface BotsGetOptionalParams extends coreClient.OperationOptions {}
327
283
 
328
- /**
329
- * Contains response data for the get operation.
330
- */
331
- export type BotsGetResponse = HealthBot & {
332
- /**
333
- * The underlying HTTP response.
334
- */
335
- _response: msRest.HttpResponse & {
336
- /**
337
- * The response body as text (string format)
338
- */
339
- bodyAsText: string;
340
-
341
- /**
342
- * The response body as parsed JSON or XML
343
- */
344
- parsedBody: HealthBot;
345
- };
346
- };
284
+ /** Contains response data for the get operation. */
285
+ export type BotsGetResponse = HealthBot;
347
286
 
348
- /**
349
- * Contains response data for the update operation.
350
- */
351
- export type BotsUpdateResponse = HealthBot & {
352
- /**
353
- * The underlying HTTP response.
354
- */
355
- _response: msRest.HttpResponse & {
356
- /**
357
- * The response body as text (string format)
358
- */
359
- bodyAsText: string;
360
-
361
- /**
362
- * The response body as parsed JSON or XML
363
- */
364
- parsedBody: HealthBot;
365
- };
366
- };
287
+ /** Optional parameters. */
288
+ export interface BotsUpdateOptionalParams extends coreClient.OperationOptions {}
367
289
 
368
- /**
369
- * Contains response data for the listByResourceGroup operation.
370
- */
371
- export type BotsListByResourceGroupResponse = BotResponseList & {
372
- /**
373
- * The underlying HTTP response.
374
- */
375
- _response: msRest.HttpResponse & {
376
- /**
377
- * The response body as text (string format)
378
- */
379
- bodyAsText: string;
380
-
381
- /**
382
- * The response body as parsed JSON or XML
383
- */
384
- parsedBody: BotResponseList;
385
- };
386
- };
290
+ /** Contains response data for the update operation. */
291
+ export type BotsUpdateResponse = HealthBot;
387
292
 
388
- /**
389
- * Contains response data for the list operation.
390
- */
391
- export type BotsListResponse = BotResponseList & {
392
- /**
393
- * The underlying HTTP response.
394
- */
395
- _response: msRest.HttpResponse & {
396
- /**
397
- * The response body as text (string format)
398
- */
399
- bodyAsText: string;
400
-
401
- /**
402
- * The response body as parsed JSON or XML
403
- */
404
- parsedBody: BotResponseList;
405
- };
406
- };
293
+ /** Optional parameters. */
294
+ export interface BotsDeleteOptionalParams extends coreClient.OperationOptions {
295
+ /** Delay to wait until next poll, in milliseconds. */
296
+ updateIntervalInMs?: number;
297
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
298
+ resumeFrom?: string;
299
+ }
407
300
 
408
- /**
409
- * Contains response data for the beginCreate operation.
410
- */
411
- export type BotsBeginCreateResponse = HealthBot & {
412
- /**
413
- * The underlying HTTP response.
414
- */
415
- _response: msRest.HttpResponse & {
416
- /**
417
- * The response body as text (string format)
418
- */
419
- bodyAsText: string;
420
-
421
- /**
422
- * The response body as parsed JSON or XML
423
- */
424
- parsedBody: HealthBot;
425
- };
426
- };
301
+ /** Optional parameters. */
302
+ export interface BotsListByResourceGroupOptionalParams
303
+ extends coreClient.OperationOptions {}
427
304
 
428
- /**
429
- * Contains response data for the listByResourceGroupNext operation.
430
- */
431
- export type BotsListByResourceGroupNextResponse = BotResponseList & {
432
- /**
433
- * The underlying HTTP response.
434
- */
435
- _response: msRest.HttpResponse & {
436
- /**
437
- * The response body as text (string format)
438
- */
439
- bodyAsText: string;
440
-
441
- /**
442
- * The response body as parsed JSON or XML
443
- */
444
- parsedBody: BotResponseList;
445
- };
446
- };
305
+ /** Contains response data for the listByResourceGroup operation. */
306
+ export type BotsListByResourceGroupResponse = BotResponseList;
447
307
 
448
- /**
449
- * Contains response data for the listNext operation.
450
- */
451
- export type BotsListNextResponse = BotResponseList & {
452
- /**
453
- * The underlying HTTP response.
454
- */
455
- _response: msRest.HttpResponse & {
456
- /**
457
- * The response body as text (string format)
458
- */
459
- bodyAsText: string;
460
-
461
- /**
462
- * The response body as parsed JSON or XML
463
- */
464
- parsedBody: BotResponseList;
465
- };
466
- };
308
+ /** Optional parameters. */
309
+ export interface BotsListOptionalParams extends coreClient.OperationOptions {}
467
310
 
468
- /**
469
- * Contains response data for the list operation.
470
- */
471
- export type OperationsListResponse = AvailableOperations & {
472
- /**
473
- * The underlying HTTP response.
474
- */
475
- _response: msRest.HttpResponse & {
476
- /**
477
- * The response body as text (string format)
478
- */
479
- bodyAsText: string;
480
-
481
- /**
482
- * The response body as parsed JSON or XML
483
- */
484
- parsedBody: AvailableOperations;
485
- };
486
- };
311
+ /** Contains response data for the list operation. */
312
+ export type BotsListResponse = BotResponseList;
487
313
 
488
- /**
489
- * Contains response data for the listNext operation.
490
- */
491
- export type OperationsListNextResponse = AvailableOperations & {
492
- /**
493
- * The underlying HTTP response.
494
- */
495
- _response: msRest.HttpResponse & {
496
- /**
497
- * The response body as text (string format)
498
- */
499
- bodyAsText: string;
500
-
501
- /**
502
- * The response body as parsed JSON or XML
503
- */
504
- parsedBody: AvailableOperations;
505
- };
506
- };
314
+ /** Optional parameters. */
315
+ export interface BotsListByResourceGroupNextOptionalParams
316
+ extends coreClient.OperationOptions {}
317
+
318
+ /** Contains response data for the listByResourceGroupNext operation. */
319
+ export type BotsListByResourceGroupNextResponse = BotResponseList;
320
+
321
+ /** Optional parameters. */
322
+ export interface BotsListNextOptionalParams
323
+ extends coreClient.OperationOptions {}
324
+
325
+ /** Contains response data for the listNext operation. */
326
+ export type BotsListNextResponse = BotResponseList;
327
+
328
+ /** Optional parameters. */
329
+ export interface OperationsListOptionalParams
330
+ extends coreClient.OperationOptions {}
331
+
332
+ /** Contains response data for the list operation. */
333
+ export type OperationsListResponse = AvailableOperations;
334
+
335
+ /** Optional parameters. */
336
+ export interface OperationsListNextOptionalParams
337
+ extends coreClient.OperationOptions {}
338
+
339
+ /** Contains response data for the listNext operation. */
340
+ export type OperationsListNextResponse = AvailableOperations;
341
+
342
+ /** Optional parameters. */
343
+ export interface HealthbotClientOptionalParams
344
+ extends coreClient.ServiceClientOptions {
345
+ /** server parameter */
346
+ $host?: string;
347
+ /** Api Version */
348
+ apiVersion?: string;
349
+ /** Overrides client endpoint. */
350
+ endpoint?: string;
351
+ }