@azure/arm-timeseriesinsights 1.2.1 → 2.0.0-alpha.20220131.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.
Files changed (179) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +72 -73
  4. package/dist/index.js +3489 -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/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +1102 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +109 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +94 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/dist-esm/src/models/mappers.js +1965 -0
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +26 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +225 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/accessPolicies.d.ts +65 -0
  29. package/dist-esm/src/operations/accessPolicies.d.ts.map +1 -0
  30. package/dist-esm/src/operations/accessPolicies.js +212 -0
  31. package/dist-esm/src/operations/accessPolicies.js.map +1 -0
  32. package/dist-esm/src/operations/environments.d.ts +78 -0
  33. package/dist-esm/src/operations/environments.d.ts.map +1 -0
  34. package/dist-esm/src/operations/environments.js +314 -0
  35. package/dist-esm/src/operations/environments.js.map +1 -0
  36. package/dist-esm/src/operations/eventSources.d.ts +66 -0
  37. package/dist-esm/src/operations/eventSources.d.ts.map +1 -0
  38. package/dist-esm/src/operations/eventSources.js +213 -0
  39. package/dist-esm/src/operations/eventSources.js.map +1 -0
  40. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/{esm → dist-esm/src}/operations/index.js +3 -5
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +32 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +120 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/referenceDataSets.d.ts +66 -0
  49. package/dist-esm/src/operations/referenceDataSets.d.ts.map +1 -0
  50. package/dist-esm/src/operations/referenceDataSets.js +213 -0
  51. package/dist-esm/src/operations/referenceDataSets.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/accessPolicies.d.ts +57 -0
  53. package/dist-esm/src/operationsInterfaces/accessPolicies.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/accessPolicies.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/accessPolicies.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/environments.d.ts +70 -0
  57. package/dist-esm/src/operationsInterfaces/environments.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/environments.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/environments.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/eventSources.d.ts +58 -0
  61. package/dist-esm/src/operationsInterfaces/eventSources.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/eventSources.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/eventSources.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/referenceDataSets.d.ts +58 -0
  73. package/dist-esm/src/operationsInterfaces/referenceDataSets.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/referenceDataSets.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/referenceDataSets.js.map +1 -0
  76. package/dist-esm/src/timeSeriesInsightsClient.d.ts +22 -0
  77. package/dist-esm/src/timeSeriesInsightsClient.d.ts.map +1 -0
  78. package/dist-esm/src/timeSeriesInsightsClient.js +55 -0
  79. package/dist-esm/src/timeSeriesInsightsClient.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +73 -21
  85. package/review/arm-timeseriesinsights.api.md +943 -0
  86. package/rollup.config.js +181 -30
  87. package/src/index.ts +12 -0
  88. package/src/lroImpl.ts +34 -0
  89. package/src/models/index.ts +1032 -1259
  90. package/src/models/mappers.ts +1568 -811
  91. package/src/models/parameters.ts +157 -69
  92. package/src/operations/accessPolicies.ts +144 -250
  93. package/src/operations/environments.ts +322 -267
  94. package/src/operations/eventSources.ts +144 -250
  95. package/src/operations/index.ts +3 -5
  96. package/src/operations/operations.ts +87 -73
  97. package/src/operations/referenceDataSets.ts +144 -250
  98. package/src/operationsInterfaces/accessPolicies.ts +103 -0
  99. package/src/operationsInterfaces/environments.ts +135 -0
  100. package/src/operationsInterfaces/eventSources.ts +104 -0
  101. package/src/operationsInterfaces/index.ts +13 -0
  102. package/src/operationsInterfaces/operations.ts +22 -0
  103. package/src/operationsInterfaces/referenceDataSets.ts +104 -0
  104. package/src/timeSeriesInsightsClient.ts +82 -37
  105. package/tsconfig.json +3 -3
  106. package/types/arm-timeseriesinsights.d.ts +1523 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-timeseriesinsights.js +0 -2796
  109. package/dist/arm-timeseriesinsights.js.map +0 -1
  110. package/dist/arm-timeseriesinsights.min.js +0 -1
  111. package/dist/arm-timeseriesinsights.min.js.map +0 -1
  112. package/esm/models/accessPoliciesMappers.d.ts +0 -2
  113. package/esm/models/accessPoliciesMappers.d.ts.map +0 -1
  114. package/esm/models/accessPoliciesMappers.js +0 -9
  115. package/esm/models/accessPoliciesMappers.js.map +0 -1
  116. package/esm/models/environmentsMappers.d.ts +0 -2
  117. package/esm/models/environmentsMappers.d.ts.map +0 -1
  118. package/esm/models/environmentsMappers.js +0 -9
  119. package/esm/models/environmentsMappers.js.map +0 -1
  120. package/esm/models/eventSourcesMappers.d.ts +0 -2
  121. package/esm/models/eventSourcesMappers.d.ts.map +0 -1
  122. package/esm/models/eventSourcesMappers.js +0 -9
  123. package/esm/models/eventSourcesMappers.js.map +0 -1
  124. package/esm/models/index.d.ts +0 -1413
  125. package/esm/models/index.d.ts.map +0 -1
  126. package/esm/models/index.js +0 -8
  127. package/esm/models/index.js.map +0 -1
  128. package/esm/models/mappers.d.ts +0 -54
  129. package/esm/models/mappers.d.ts.map +0 -1
  130. package/esm/models/mappers.js +0 -1321
  131. package/esm/models/mappers.js.map +0 -1
  132. package/esm/models/operationsMappers.d.ts +0 -2
  133. package/esm/models/operationsMappers.d.ts.map +0 -1
  134. package/esm/models/operationsMappers.js +0 -9
  135. package/esm/models/operationsMappers.js.map +0 -1
  136. package/esm/models/parameters.d.ts +0 -16
  137. package/esm/models/parameters.d.ts.map +0 -1
  138. package/esm/models/parameters.js +0 -173
  139. package/esm/models/parameters.js.map +0 -1
  140. package/esm/models/referenceDataSetsMappers.d.ts +0 -2
  141. package/esm/models/referenceDataSetsMappers.d.ts.map +0 -1
  142. package/esm/models/referenceDataSetsMappers.js +0 -9
  143. package/esm/models/referenceDataSetsMappers.js.map +0 -1
  144. package/esm/operations/accessPolicies.d.ts +0 -165
  145. package/esm/operations/accessPolicies.d.ts.map +0 -1
  146. package/esm/operations/accessPolicies.js +0 -203
  147. package/esm/operations/accessPolicies.js.map +0 -1
  148. package/esm/operations/environments.d.ts +0 -139
  149. package/esm/operations/environments.d.ts.map +0 -1
  150. package/esm/operations/environments.js +0 -268
  151. package/esm/operations/environments.js.map +0 -1
  152. package/esm/operations/eventSources.d.ts +0 -166
  153. package/esm/operations/eventSources.d.ts.map +0 -1
  154. package/esm/operations/eventSources.js +0 -203
  155. package/esm/operations/eventSources.js.map +0 -1
  156. package/esm/operations/index.d.ts.map +0 -1
  157. package/esm/operations/index.js.map +0 -1
  158. package/esm/operations/operations.d.ts +0 -46
  159. package/esm/operations/operations.d.ts.map +0 -1
  160. package/esm/operations/operations.js +0 -77
  161. package/esm/operations/operations.js.map +0 -1
  162. package/esm/operations/referenceDataSets.d.ts +0 -166
  163. package/esm/operations/referenceDataSets.d.ts.map +0 -1
  164. package/esm/operations/referenceDataSets.js +0 -203
  165. package/esm/operations/referenceDataSets.js.map +0 -1
  166. package/esm/timeSeriesInsightsClient.d.ts +0 -22
  167. package/esm/timeSeriesInsightsClient.d.ts.map +0 -1
  168. package/esm/timeSeriesInsightsClient.js +0 -37
  169. package/esm/timeSeriesInsightsClient.js.map +0 -1
  170. package/esm/timeSeriesInsightsClientContext.d.ts +0 -16
  171. package/esm/timeSeriesInsightsClientContext.d.ts.map +0 -1
  172. package/esm/timeSeriesInsightsClientContext.js +0 -56
  173. package/esm/timeSeriesInsightsClientContext.js.map +0 -1
  174. package/src/models/accessPoliciesMappers.ts +0 -30
  175. package/src/models/environmentsMappers.ts +0 -35
  176. package/src/models/eventSourcesMappers.ts +0 -39
  177. package/src/models/operationsMappers.ts +0 -15
  178. package/src/models/referenceDataSetsMappers.ts +0 -35
  179. package/src/timeSeriesInsightsClientContext.ts +0 -62
package/dist/index.js ADDED
@@ -0,0 +1,3489 @@
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 (KnownEnvironmentKind) {
17
+ KnownEnvironmentKind["Gen1"] = "Gen1";
18
+ KnownEnvironmentKind["Gen2"] = "Gen2";
19
+ })(exports.KnownEnvironmentKind || (exports.KnownEnvironmentKind = {}));
20
+ (function (KnownSkuName) {
21
+ KnownSkuName["S1"] = "S1";
22
+ KnownSkuName["S2"] = "S2";
23
+ KnownSkuName["P1"] = "P1";
24
+ KnownSkuName["L1"] = "L1";
25
+ })(exports.KnownSkuName || (exports.KnownSkuName = {}));
26
+ (function (KnownEnvironmentResourceKind) {
27
+ KnownEnvironmentResourceKind["Gen1"] = "Gen1";
28
+ KnownEnvironmentResourceKind["Gen2"] = "Gen2";
29
+ })(exports.KnownEnvironmentResourceKind || (exports.KnownEnvironmentResourceKind = {}));
30
+ (function (KnownEventSourceKind) {
31
+ KnownEventSourceKind["MicrosoftEventHub"] = "Microsoft.EventHub";
32
+ KnownEventSourceKind["MicrosoftIoTHub"] = "Microsoft.IoTHub";
33
+ })(exports.KnownEventSourceKind || (exports.KnownEventSourceKind = {}));
34
+ (function (KnownLocalTimestampFormat) {
35
+ KnownLocalTimestampFormat["Embedded"] = "Embedded";
36
+ })(exports.KnownLocalTimestampFormat || (exports.KnownLocalTimestampFormat = {}));
37
+ (function (KnownEventSourceResourceKind) {
38
+ KnownEventSourceResourceKind["MicrosoftEventHub"] = "Microsoft.EventHub";
39
+ KnownEventSourceResourceKind["MicrosoftIoTHub"] = "Microsoft.IoTHub";
40
+ })(exports.KnownEventSourceResourceKind || (exports.KnownEventSourceResourceKind = {}));
41
+ (function (KnownReferenceDataKeyPropertyType) {
42
+ KnownReferenceDataKeyPropertyType["String"] = "String";
43
+ KnownReferenceDataKeyPropertyType["Double"] = "Double";
44
+ KnownReferenceDataKeyPropertyType["Bool"] = "Bool";
45
+ KnownReferenceDataKeyPropertyType["DateTime"] = "DateTime";
46
+ })(exports.KnownReferenceDataKeyPropertyType || (exports.KnownReferenceDataKeyPropertyType = {}));
47
+ (function (KnownDataStringComparisonBehavior) {
48
+ KnownDataStringComparisonBehavior["Ordinal"] = "Ordinal";
49
+ KnownDataStringComparisonBehavior["OrdinalIgnoreCase"] = "OrdinalIgnoreCase";
50
+ })(exports.KnownDataStringComparisonBehavior || (exports.KnownDataStringComparisonBehavior = {}));
51
+ (function (KnownProvisioningState) {
52
+ KnownProvisioningState["Accepted"] = "Accepted";
53
+ KnownProvisioningState["Creating"] = "Creating";
54
+ KnownProvisioningState["Updating"] = "Updating";
55
+ KnownProvisioningState["Succeeded"] = "Succeeded";
56
+ KnownProvisioningState["Failed"] = "Failed";
57
+ KnownProvisioningState["Deleting"] = "Deleting";
58
+ })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
59
+ (function (KnownAccessPolicyRole) {
60
+ KnownAccessPolicyRole["Reader"] = "Reader";
61
+ KnownAccessPolicyRole["Contributor"] = "Contributor";
62
+ })(exports.KnownAccessPolicyRole || (exports.KnownAccessPolicyRole = {}));
63
+ (function (KnownStorageLimitExceededBehavior) {
64
+ KnownStorageLimitExceededBehavior["PurgeOldData"] = "PurgeOldData";
65
+ KnownStorageLimitExceededBehavior["PauseIngress"] = "PauseIngress";
66
+ })(exports.KnownStorageLimitExceededBehavior || (exports.KnownStorageLimitExceededBehavior = {}));
67
+ (function (KnownPropertyType) {
68
+ KnownPropertyType["String"] = "String";
69
+ })(exports.KnownPropertyType || (exports.KnownPropertyType = {}));
70
+ (function (KnownIngressState) {
71
+ KnownIngressState["Disabled"] = "Disabled";
72
+ KnownIngressState["Ready"] = "Ready";
73
+ KnownIngressState["Running"] = "Running";
74
+ KnownIngressState["Paused"] = "Paused";
75
+ KnownIngressState["Unknown"] = "Unknown";
76
+ })(exports.KnownIngressState || (exports.KnownIngressState = {}));
77
+ (function (KnownWarmStoragePropertiesState) {
78
+ KnownWarmStoragePropertiesState["Ok"] = "Ok";
79
+ KnownWarmStoragePropertiesState["Error"] = "Error";
80
+ KnownWarmStoragePropertiesState["Unknown"] = "Unknown";
81
+ })(exports.KnownWarmStoragePropertiesState || (exports.KnownWarmStoragePropertiesState = {}));
82
+ (function (KnownIngressStartAtType) {
83
+ KnownIngressStartAtType["EarliestAvailable"] = "EarliestAvailable";
84
+ KnownIngressStartAtType["EventSourceCreationTime"] = "EventSourceCreationTime";
85
+ KnownIngressStartAtType["CustomEnqueuedTime"] = "CustomEnqueuedTime";
86
+ })(exports.KnownIngressStartAtType || (exports.KnownIngressStartAtType = {}));
87
+
88
+ /*
89
+ * Copyright (c) Microsoft Corporation.
90
+ * Licensed under the MIT License.
91
+ *
92
+ * Code generated by Microsoft (R) AutoRest Code Generator.
93
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
94
+ */
95
+ const OperationListResult = {
96
+ type: {
97
+ name: "Composite",
98
+ className: "OperationListResult",
99
+ modelProperties: {
100
+ value: {
101
+ serializedName: "value",
102
+ readOnly: true,
103
+ type: {
104
+ name: "Sequence",
105
+ element: {
106
+ type: {
107
+ name: "Composite",
108
+ className: "Operation"
109
+ }
110
+ }
111
+ }
112
+ },
113
+ nextLink: {
114
+ serializedName: "nextLink",
115
+ readOnly: true,
116
+ type: {
117
+ name: "String"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ };
123
+ const Operation = {
124
+ type: {
125
+ name: "Composite",
126
+ className: "Operation",
127
+ modelProperties: {
128
+ name: {
129
+ serializedName: "name",
130
+ readOnly: true,
131
+ type: {
132
+ name: "String"
133
+ }
134
+ },
135
+ display: {
136
+ serializedName: "display",
137
+ type: {
138
+ name: "Composite",
139
+ className: "OperationDisplay"
140
+ }
141
+ },
142
+ origin: {
143
+ serializedName: "origin",
144
+ type: {
145
+ name: "String"
146
+ }
147
+ },
148
+ serviceSpecification: {
149
+ serializedName: "properties.serviceSpecification",
150
+ type: {
151
+ name: "Composite",
152
+ className: "ServiceSpecification"
153
+ }
154
+ }
155
+ }
156
+ }
157
+ };
158
+ const OperationDisplay = {
159
+ type: {
160
+ name: "Composite",
161
+ className: "OperationDisplay",
162
+ modelProperties: {
163
+ provider: {
164
+ serializedName: "provider",
165
+ readOnly: true,
166
+ type: {
167
+ name: "String"
168
+ }
169
+ },
170
+ resource: {
171
+ serializedName: "resource",
172
+ readOnly: true,
173
+ type: {
174
+ name: "String"
175
+ }
176
+ },
177
+ operation: {
178
+ serializedName: "operation",
179
+ readOnly: true,
180
+ type: {
181
+ name: "String"
182
+ }
183
+ },
184
+ description: {
185
+ serializedName: "description",
186
+ readOnly: true,
187
+ type: {
188
+ name: "String"
189
+ }
190
+ }
191
+ }
192
+ }
193
+ };
194
+ const ServiceSpecification = {
195
+ type: {
196
+ name: "Composite",
197
+ className: "ServiceSpecification",
198
+ modelProperties: {
199
+ metricSpecifications: {
200
+ serializedName: "metricSpecifications",
201
+ type: {
202
+ name: "Sequence",
203
+ element: {
204
+ type: {
205
+ name: "Composite",
206
+ className: "MetricSpecification"
207
+ }
208
+ }
209
+ }
210
+ },
211
+ logSpecifications: {
212
+ serializedName: "logSpecifications",
213
+ type: {
214
+ name: "Sequence",
215
+ element: {
216
+ type: {
217
+ name: "Composite",
218
+ className: "LogSpecification"
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
225
+ };
226
+ const MetricSpecification = {
227
+ type: {
228
+ name: "Composite",
229
+ className: "MetricSpecification",
230
+ modelProperties: {
231
+ name: {
232
+ serializedName: "name",
233
+ type: {
234
+ name: "String"
235
+ }
236
+ },
237
+ displayName: {
238
+ serializedName: "displayName",
239
+ type: {
240
+ name: "String"
241
+ }
242
+ },
243
+ displayDescription: {
244
+ serializedName: "displayDescription",
245
+ type: {
246
+ name: "String"
247
+ }
248
+ },
249
+ unit: {
250
+ serializedName: "unit",
251
+ type: {
252
+ name: "String"
253
+ }
254
+ },
255
+ dimensions: {
256
+ serializedName: "dimensions",
257
+ type: {
258
+ name: "Sequence",
259
+ element: {
260
+ type: {
261
+ name: "Composite",
262
+ className: "Dimension"
263
+ }
264
+ }
265
+ }
266
+ },
267
+ aggregationType: {
268
+ serializedName: "aggregationType",
269
+ type: {
270
+ name: "String"
271
+ }
272
+ },
273
+ availabilities: {
274
+ serializedName: "availabilities",
275
+ type: {
276
+ name: "Sequence",
277
+ element: {
278
+ type: {
279
+ name: "Composite",
280
+ className: "MetricAvailability"
281
+ }
282
+ }
283
+ }
284
+ },
285
+ category: {
286
+ serializedName: "category",
287
+ type: {
288
+ name: "String"
289
+ }
290
+ },
291
+ resourceIdDimensionNameOverride: {
292
+ serializedName: "resourceIdDimensionNameOverride",
293
+ type: {
294
+ name: "String"
295
+ }
296
+ }
297
+ }
298
+ }
299
+ };
300
+ const Dimension = {
301
+ type: {
302
+ name: "Composite",
303
+ className: "Dimension",
304
+ modelProperties: {
305
+ name: {
306
+ serializedName: "name",
307
+ type: {
308
+ name: "String"
309
+ }
310
+ },
311
+ displayName: {
312
+ serializedName: "displayName",
313
+ type: {
314
+ name: "String"
315
+ }
316
+ }
317
+ }
318
+ }
319
+ };
320
+ const MetricAvailability = {
321
+ type: {
322
+ name: "Composite",
323
+ className: "MetricAvailability",
324
+ modelProperties: {
325
+ timeGrain: {
326
+ serializedName: "timeGrain",
327
+ type: {
328
+ name: "String"
329
+ }
330
+ },
331
+ blobDuration: {
332
+ serializedName: "blobDuration",
333
+ type: {
334
+ name: "String"
335
+ }
336
+ }
337
+ }
338
+ }
339
+ };
340
+ const LogSpecification = {
341
+ type: {
342
+ name: "Composite",
343
+ className: "LogSpecification",
344
+ modelProperties: {
345
+ name: {
346
+ serializedName: "name",
347
+ type: {
348
+ name: "String"
349
+ }
350
+ },
351
+ displayName: {
352
+ serializedName: "displayName",
353
+ type: {
354
+ name: "String"
355
+ }
356
+ }
357
+ }
358
+ }
359
+ };
360
+ const CloudError = {
361
+ type: {
362
+ name: "Composite",
363
+ className: "CloudError",
364
+ modelProperties: {
365
+ error: {
366
+ serializedName: "error",
367
+ type: {
368
+ name: "Composite",
369
+ className: "CloudErrorBody"
370
+ }
371
+ }
372
+ }
373
+ }
374
+ };
375
+ const CloudErrorBody = {
376
+ type: {
377
+ name: "Composite",
378
+ className: "CloudErrorBody",
379
+ modelProperties: {
380
+ code: {
381
+ serializedName: "code",
382
+ type: {
383
+ name: "String"
384
+ }
385
+ },
386
+ message: {
387
+ serializedName: "message",
388
+ type: {
389
+ name: "String"
390
+ }
391
+ },
392
+ target: {
393
+ serializedName: "target",
394
+ type: {
395
+ name: "String"
396
+ }
397
+ },
398
+ details: {
399
+ serializedName: "details",
400
+ type: {
401
+ name: "Sequence",
402
+ element: {
403
+ type: {
404
+ name: "Composite",
405
+ className: "CloudErrorBody"
406
+ }
407
+ }
408
+ }
409
+ }
410
+ }
411
+ }
412
+ };
413
+ const Sku = {
414
+ type: {
415
+ name: "Composite",
416
+ className: "Sku",
417
+ modelProperties: {
418
+ name: {
419
+ serializedName: "name",
420
+ required: true,
421
+ type: {
422
+ name: "String"
423
+ }
424
+ },
425
+ capacity: {
426
+ constraints: {
427
+ InclusiveMaximum: 10,
428
+ InclusiveMinimum: 1
429
+ },
430
+ serializedName: "capacity",
431
+ required: true,
432
+ type: {
433
+ name: "Number"
434
+ }
435
+ }
436
+ }
437
+ }
438
+ };
439
+ const CreateOrUpdateTrackedResourceProperties = {
440
+ type: {
441
+ name: "Composite",
442
+ className: "CreateOrUpdateTrackedResourceProperties",
443
+ modelProperties: {
444
+ location: {
445
+ serializedName: "location",
446
+ required: true,
447
+ type: {
448
+ name: "String"
449
+ }
450
+ },
451
+ tags: {
452
+ serializedName: "tags",
453
+ type: {
454
+ name: "Dictionary",
455
+ value: { type: { name: "String" } }
456
+ }
457
+ }
458
+ }
459
+ }
460
+ };
461
+ const Resource = {
462
+ type: {
463
+ name: "Composite",
464
+ className: "Resource",
465
+ modelProperties: {
466
+ id: {
467
+ serializedName: "id",
468
+ readOnly: true,
469
+ type: {
470
+ name: "String"
471
+ }
472
+ },
473
+ name: {
474
+ serializedName: "name",
475
+ readOnly: true,
476
+ type: {
477
+ name: "String"
478
+ }
479
+ },
480
+ type: {
481
+ serializedName: "type",
482
+ readOnly: true,
483
+ type: {
484
+ name: "String"
485
+ }
486
+ }
487
+ }
488
+ }
489
+ };
490
+ const EnvironmentUpdateParameters = {
491
+ type: {
492
+ name: "Composite",
493
+ className: "EnvironmentUpdateParameters",
494
+ uberParent: "EnvironmentUpdateParameters",
495
+ polymorphicDiscriminator: {
496
+ serializedName: "kind",
497
+ clientName: "kind"
498
+ },
499
+ modelProperties: {
500
+ kind: {
501
+ serializedName: "kind",
502
+ required: true,
503
+ type: {
504
+ name: "String"
505
+ }
506
+ },
507
+ tags: {
508
+ serializedName: "tags",
509
+ type: {
510
+ name: "Dictionary",
511
+ value: { type: { name: "String" } }
512
+ }
513
+ }
514
+ }
515
+ }
516
+ };
517
+ const EnvironmentListResponse = {
518
+ type: {
519
+ name: "Composite",
520
+ className: "EnvironmentListResponse",
521
+ modelProperties: {
522
+ value: {
523
+ serializedName: "value",
524
+ type: {
525
+ name: "Sequence",
526
+ element: {
527
+ type: {
528
+ name: "Composite",
529
+ className: "EnvironmentResource"
530
+ }
531
+ }
532
+ }
533
+ }
534
+ }
535
+ }
536
+ };
537
+ const LocalTimestamp = {
538
+ type: {
539
+ name: "Composite",
540
+ className: "LocalTimestamp",
541
+ modelProperties: {
542
+ format: {
543
+ serializedName: "format",
544
+ type: {
545
+ name: "String"
546
+ }
547
+ },
548
+ timeZoneOffset: {
549
+ serializedName: "timeZoneOffset",
550
+ type: {
551
+ name: "Composite",
552
+ className: "LocalTimestampTimeZoneOffset"
553
+ }
554
+ }
555
+ }
556
+ }
557
+ };
558
+ const LocalTimestampTimeZoneOffset = {
559
+ type: {
560
+ name: "Composite",
561
+ className: "LocalTimestampTimeZoneOffset",
562
+ modelProperties: {
563
+ propertyName: {
564
+ serializedName: "propertyName",
565
+ type: {
566
+ name: "String"
567
+ }
568
+ }
569
+ }
570
+ }
571
+ };
572
+ const EventSourceUpdateParameters = {
573
+ type: {
574
+ name: "Composite",
575
+ className: "EventSourceUpdateParameters",
576
+ uberParent: "EventSourceUpdateParameters",
577
+ polymorphicDiscriminator: {
578
+ serializedName: "kind",
579
+ clientName: "kind"
580
+ },
581
+ modelProperties: {
582
+ kind: {
583
+ serializedName: "kind",
584
+ required: true,
585
+ type: {
586
+ name: "String"
587
+ }
588
+ },
589
+ tags: {
590
+ serializedName: "tags",
591
+ type: {
592
+ name: "Dictionary",
593
+ value: { type: { name: "String" } }
594
+ }
595
+ }
596
+ }
597
+ }
598
+ };
599
+ const EventSourceListResponse = {
600
+ type: {
601
+ name: "Composite",
602
+ className: "EventSourceListResponse",
603
+ modelProperties: {
604
+ value: {
605
+ serializedName: "value",
606
+ type: {
607
+ name: "Sequence",
608
+ element: {
609
+ type: {
610
+ name: "Composite",
611
+ className: "EventSourceResource"
612
+ }
613
+ }
614
+ }
615
+ }
616
+ }
617
+ }
618
+ };
619
+ const ReferenceDataSetCreationProperties = {
620
+ type: {
621
+ name: "Composite",
622
+ className: "ReferenceDataSetCreationProperties",
623
+ modelProperties: {
624
+ keyProperties: {
625
+ serializedName: "keyProperties",
626
+ required: true,
627
+ type: {
628
+ name: "Sequence",
629
+ element: {
630
+ type: {
631
+ name: "Composite",
632
+ className: "ReferenceDataSetKeyProperty"
633
+ }
634
+ }
635
+ }
636
+ },
637
+ dataStringComparisonBehavior: {
638
+ serializedName: "dataStringComparisonBehavior",
639
+ type: {
640
+ name: "String"
641
+ }
642
+ }
643
+ }
644
+ }
645
+ };
646
+ const ReferenceDataSetKeyProperty = {
647
+ type: {
648
+ name: "Composite",
649
+ className: "ReferenceDataSetKeyProperty",
650
+ modelProperties: {
651
+ name: {
652
+ serializedName: "name",
653
+ type: {
654
+ name: "String"
655
+ }
656
+ },
657
+ type: {
658
+ serializedName: "type",
659
+ type: {
660
+ name: "String"
661
+ }
662
+ }
663
+ }
664
+ }
665
+ };
666
+ const ResourceProperties = {
667
+ type: {
668
+ name: "Composite",
669
+ className: "ResourceProperties",
670
+ modelProperties: {
671
+ provisioningState: {
672
+ serializedName: "provisioningState",
673
+ readOnly: true,
674
+ type: {
675
+ name: "String"
676
+ }
677
+ },
678
+ creationTime: {
679
+ serializedName: "creationTime",
680
+ readOnly: true,
681
+ type: {
682
+ name: "DateTime"
683
+ }
684
+ }
685
+ }
686
+ }
687
+ };
688
+ const ReferenceDataSetUpdateParameters = {
689
+ type: {
690
+ name: "Composite",
691
+ className: "ReferenceDataSetUpdateParameters",
692
+ modelProperties: {
693
+ tags: {
694
+ serializedName: "tags",
695
+ type: {
696
+ name: "Dictionary",
697
+ value: { type: { name: "String" } }
698
+ }
699
+ }
700
+ }
701
+ }
702
+ };
703
+ const ReferenceDataSetListResponse = {
704
+ type: {
705
+ name: "Composite",
706
+ className: "ReferenceDataSetListResponse",
707
+ modelProperties: {
708
+ value: {
709
+ serializedName: "value",
710
+ type: {
711
+ name: "Sequence",
712
+ element: {
713
+ type: {
714
+ name: "Composite",
715
+ className: "ReferenceDataSetResource"
716
+ }
717
+ }
718
+ }
719
+ }
720
+ }
721
+ }
722
+ };
723
+ const AccessPolicyCreateOrUpdateParameters = {
724
+ type: {
725
+ name: "Composite",
726
+ className: "AccessPolicyCreateOrUpdateParameters",
727
+ modelProperties: {
728
+ principalObjectId: {
729
+ serializedName: "properties.principalObjectId",
730
+ type: {
731
+ name: "String"
732
+ }
733
+ },
734
+ description: {
735
+ serializedName: "properties.description",
736
+ type: {
737
+ name: "String"
738
+ }
739
+ },
740
+ roles: {
741
+ serializedName: "properties.roles",
742
+ type: {
743
+ name: "Sequence",
744
+ element: {
745
+ type: {
746
+ name: "String"
747
+ }
748
+ }
749
+ }
750
+ }
751
+ }
752
+ }
753
+ };
754
+ const AccessPolicyUpdateParameters = {
755
+ type: {
756
+ name: "Composite",
757
+ className: "AccessPolicyUpdateParameters",
758
+ modelProperties: {
759
+ description: {
760
+ serializedName: "properties.description",
761
+ type: {
762
+ name: "String"
763
+ }
764
+ },
765
+ roles: {
766
+ serializedName: "properties.roles",
767
+ type: {
768
+ name: "Sequence",
769
+ element: {
770
+ type: {
771
+ name: "String"
772
+ }
773
+ }
774
+ }
775
+ }
776
+ }
777
+ }
778
+ };
779
+ const AccessPolicyListResponse = {
780
+ type: {
781
+ name: "Composite",
782
+ className: "AccessPolicyListResponse",
783
+ modelProperties: {
784
+ value: {
785
+ serializedName: "value",
786
+ type: {
787
+ name: "Sequence",
788
+ element: {
789
+ type: {
790
+ name: "Composite",
791
+ className: "AccessPolicyResource"
792
+ }
793
+ }
794
+ }
795
+ }
796
+ }
797
+ }
798
+ };
799
+ const WarmStoreConfigurationProperties = {
800
+ type: {
801
+ name: "Composite",
802
+ className: "WarmStoreConfigurationProperties",
803
+ modelProperties: {
804
+ dataRetention: {
805
+ serializedName: "dataRetention",
806
+ required: true,
807
+ type: {
808
+ name: "TimeSpan"
809
+ }
810
+ }
811
+ }
812
+ }
813
+ };
814
+ const Gen2StorageConfigurationInput = {
815
+ type: {
816
+ name: "Composite",
817
+ className: "Gen2StorageConfigurationInput",
818
+ modelProperties: {
819
+ accountName: {
820
+ serializedName: "accountName",
821
+ required: true,
822
+ type: {
823
+ name: "String"
824
+ }
825
+ },
826
+ managementKey: {
827
+ serializedName: "managementKey",
828
+ required: true,
829
+ type: {
830
+ name: "String"
831
+ }
832
+ }
833
+ }
834
+ }
835
+ };
836
+ const Gen2StorageConfigurationOutput = {
837
+ type: {
838
+ name: "Composite",
839
+ className: "Gen2StorageConfigurationOutput",
840
+ modelProperties: {
841
+ accountName: {
842
+ serializedName: "accountName",
843
+ required: true,
844
+ type: {
845
+ name: "String"
846
+ }
847
+ }
848
+ }
849
+ }
850
+ };
851
+ const Gen2StorageConfigurationMutableProperties = {
852
+ type: {
853
+ name: "Composite",
854
+ className: "Gen2StorageConfigurationMutableProperties",
855
+ modelProperties: {
856
+ managementKey: {
857
+ serializedName: "managementKey",
858
+ required: true,
859
+ type: {
860
+ name: "String"
861
+ }
862
+ }
863
+ }
864
+ }
865
+ };
866
+ const Gen1EnvironmentCreationProperties = {
867
+ type: {
868
+ name: "Composite",
869
+ className: "Gen1EnvironmentCreationProperties",
870
+ modelProperties: {
871
+ dataRetentionTime: {
872
+ serializedName: "dataRetentionTime",
873
+ required: true,
874
+ type: {
875
+ name: "TimeSpan"
876
+ }
877
+ },
878
+ storageLimitExceededBehavior: {
879
+ serializedName: "storageLimitExceededBehavior",
880
+ type: {
881
+ name: "String"
882
+ }
883
+ },
884
+ partitionKeyProperties: {
885
+ serializedName: "partitionKeyProperties",
886
+ type: {
887
+ name: "Sequence",
888
+ element: {
889
+ type: {
890
+ name: "Composite",
891
+ className: "TimeSeriesIdProperty"
892
+ }
893
+ }
894
+ }
895
+ }
896
+ }
897
+ }
898
+ };
899
+ const TimeSeriesIdProperty = {
900
+ type: {
901
+ name: "Composite",
902
+ className: "TimeSeriesIdProperty",
903
+ modelProperties: {
904
+ name: {
905
+ serializedName: "name",
906
+ type: {
907
+ name: "String"
908
+ }
909
+ },
910
+ type: {
911
+ serializedName: "type",
912
+ type: {
913
+ name: "String"
914
+ }
915
+ }
916
+ }
917
+ }
918
+ };
919
+ const EnvironmentStatus = {
920
+ type: {
921
+ name: "Composite",
922
+ className: "EnvironmentStatus",
923
+ modelProperties: {
924
+ ingress: {
925
+ serializedName: "ingress",
926
+ type: {
927
+ name: "Composite",
928
+ className: "IngressEnvironmentStatus"
929
+ }
930
+ },
931
+ warmStorage: {
932
+ serializedName: "warmStorage",
933
+ type: {
934
+ name: "Composite",
935
+ className: "WarmStorageEnvironmentStatus"
936
+ }
937
+ }
938
+ }
939
+ }
940
+ };
941
+ const IngressEnvironmentStatus = {
942
+ type: {
943
+ name: "Composite",
944
+ className: "IngressEnvironmentStatus",
945
+ modelProperties: {
946
+ state: {
947
+ serializedName: "state",
948
+ type: {
949
+ name: "String"
950
+ }
951
+ },
952
+ stateDetails: {
953
+ serializedName: "stateDetails",
954
+ type: {
955
+ name: "Composite",
956
+ className: "EnvironmentStateDetails"
957
+ }
958
+ }
959
+ }
960
+ }
961
+ };
962
+ const EnvironmentStateDetails = {
963
+ type: {
964
+ name: "Composite",
965
+ className: "EnvironmentStateDetails",
966
+ modelProperties: {
967
+ code: {
968
+ serializedName: "code",
969
+ type: {
970
+ name: "String"
971
+ }
972
+ },
973
+ message: {
974
+ serializedName: "message",
975
+ type: {
976
+ name: "String"
977
+ }
978
+ }
979
+ }
980
+ }
981
+ };
982
+ const WarmStorageEnvironmentStatus = {
983
+ type: {
984
+ name: "Composite",
985
+ className: "WarmStorageEnvironmentStatus",
986
+ modelProperties: {
987
+ state: {
988
+ serializedName: "propertiesUsage.state",
989
+ type: {
990
+ name: "String"
991
+ }
992
+ },
993
+ currentCount: {
994
+ constraints: {
995
+ InclusiveMaximum: 10,
996
+ InclusiveMinimum: 1
997
+ },
998
+ serializedName: "propertiesUsage.stateDetails.currentCount",
999
+ type: {
1000
+ name: "Number"
1001
+ }
1002
+ },
1003
+ maxCount: {
1004
+ constraints: {
1005
+ InclusiveMaximum: 10,
1006
+ InclusiveMinimum: 1
1007
+ },
1008
+ serializedName: "propertiesUsage.stateDetails.maxCount",
1009
+ type: {
1010
+ name: "Number"
1011
+ }
1012
+ }
1013
+ }
1014
+ }
1015
+ };
1016
+ const EventSourceMutableProperties = {
1017
+ type: {
1018
+ name: "Composite",
1019
+ className: "EventSourceMutableProperties",
1020
+ modelProperties: {
1021
+ timestampPropertyName: {
1022
+ serializedName: "timestampPropertyName",
1023
+ type: {
1024
+ name: "String"
1025
+ }
1026
+ }
1027
+ }
1028
+ }
1029
+ };
1030
+ const EnvironmentCreateOrUpdateParameters = {
1031
+ serializedName: "EnvironmentCreateOrUpdateParameters",
1032
+ type: {
1033
+ name: "Composite",
1034
+ className: "EnvironmentCreateOrUpdateParameters",
1035
+ uberParent: "CreateOrUpdateTrackedResourceProperties",
1036
+ polymorphicDiscriminator: {
1037
+ serializedName: "kind",
1038
+ clientName: "kind"
1039
+ },
1040
+ modelProperties: Object.assign(Object.assign({}, CreateOrUpdateTrackedResourceProperties.type.modelProperties), { kind: {
1041
+ serializedName: "kind",
1042
+ required: true,
1043
+ type: {
1044
+ name: "String"
1045
+ }
1046
+ }, sku: {
1047
+ serializedName: "sku",
1048
+ type: {
1049
+ name: "Composite",
1050
+ className: "Sku"
1051
+ }
1052
+ } })
1053
+ }
1054
+ };
1055
+ const EventSourceCreateOrUpdateParameters = {
1056
+ serializedName: "EventSourceCreateOrUpdateParameters",
1057
+ type: {
1058
+ name: "Composite",
1059
+ className: "EventSourceCreateOrUpdateParameters",
1060
+ uberParent: "CreateOrUpdateTrackedResourceProperties",
1061
+ polymorphicDiscriminator: {
1062
+ serializedName: "kind",
1063
+ clientName: "kind"
1064
+ },
1065
+ modelProperties: Object.assign(Object.assign({}, CreateOrUpdateTrackedResourceProperties.type.modelProperties), { kind: {
1066
+ serializedName: "kind",
1067
+ required: true,
1068
+ type: {
1069
+ name: "String"
1070
+ }
1071
+ }, localTimestamp: {
1072
+ serializedName: "localTimestamp",
1073
+ type: {
1074
+ name: "Composite",
1075
+ className: "LocalTimestamp"
1076
+ }
1077
+ } })
1078
+ }
1079
+ };
1080
+ const ReferenceDataSetCreateOrUpdateParameters = {
1081
+ type: {
1082
+ name: "Composite",
1083
+ className: "ReferenceDataSetCreateOrUpdateParameters",
1084
+ modelProperties: Object.assign(Object.assign({}, CreateOrUpdateTrackedResourceProperties.type.modelProperties), { keyProperties: {
1085
+ serializedName: "properties.keyProperties",
1086
+ required: true,
1087
+ type: {
1088
+ name: "Sequence",
1089
+ element: {
1090
+ type: {
1091
+ name: "Composite",
1092
+ className: "ReferenceDataSetKeyProperty"
1093
+ }
1094
+ }
1095
+ }
1096
+ }, dataStringComparisonBehavior: {
1097
+ serializedName: "properties.dataStringComparisonBehavior",
1098
+ type: {
1099
+ name: "String"
1100
+ }
1101
+ } })
1102
+ }
1103
+ };
1104
+ const TrackedResource = {
1105
+ type: {
1106
+ name: "Composite",
1107
+ className: "TrackedResource",
1108
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
1109
+ serializedName: "location",
1110
+ required: true,
1111
+ type: {
1112
+ name: "String"
1113
+ }
1114
+ }, tags: {
1115
+ serializedName: "tags",
1116
+ type: {
1117
+ name: "Dictionary",
1118
+ value: { type: { name: "String" } }
1119
+ }
1120
+ } })
1121
+ }
1122
+ };
1123
+ const AccessPolicyResource = {
1124
+ type: {
1125
+ name: "Composite",
1126
+ className: "AccessPolicyResource",
1127
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { principalObjectId: {
1128
+ serializedName: "properties.principalObjectId",
1129
+ type: {
1130
+ name: "String"
1131
+ }
1132
+ }, description: {
1133
+ serializedName: "properties.description",
1134
+ type: {
1135
+ name: "String"
1136
+ }
1137
+ }, roles: {
1138
+ serializedName: "properties.roles",
1139
+ type: {
1140
+ name: "Sequence",
1141
+ element: {
1142
+ type: {
1143
+ name: "String"
1144
+ }
1145
+ }
1146
+ }
1147
+ } })
1148
+ }
1149
+ };
1150
+ const Gen1EnvironmentUpdateParameters = {
1151
+ serializedName: "Gen1",
1152
+ type: {
1153
+ name: "Composite",
1154
+ className: "Gen1EnvironmentUpdateParameters",
1155
+ uberParent: "EnvironmentUpdateParameters",
1156
+ polymorphicDiscriminator: EnvironmentUpdateParameters.type.polymorphicDiscriminator,
1157
+ modelProperties: Object.assign(Object.assign({}, EnvironmentUpdateParameters.type.modelProperties), { sku: {
1158
+ serializedName: "sku",
1159
+ type: {
1160
+ name: "Composite",
1161
+ className: "Sku"
1162
+ }
1163
+ }, dataRetentionTime: {
1164
+ serializedName: "properties.dataRetentionTime",
1165
+ type: {
1166
+ name: "TimeSpan"
1167
+ }
1168
+ }, storageLimitExceededBehavior: {
1169
+ serializedName: "properties.storageLimitExceededBehavior",
1170
+ type: {
1171
+ name: "String"
1172
+ }
1173
+ } })
1174
+ }
1175
+ };
1176
+ const Gen2EnvironmentUpdateParameters = {
1177
+ serializedName: "Gen2",
1178
+ type: {
1179
+ name: "Composite",
1180
+ className: "Gen2EnvironmentUpdateParameters",
1181
+ uberParent: "EnvironmentUpdateParameters",
1182
+ polymorphicDiscriminator: EnvironmentUpdateParameters.type.polymorphicDiscriminator,
1183
+ modelProperties: Object.assign(Object.assign({}, EnvironmentUpdateParameters.type.modelProperties), { storageConfiguration: {
1184
+ serializedName: "properties.storageConfiguration",
1185
+ type: {
1186
+ name: "Composite",
1187
+ className: "Gen2StorageConfigurationMutableProperties"
1188
+ }
1189
+ }, warmStoreConfiguration: {
1190
+ serializedName: "properties.warmStoreConfiguration",
1191
+ type: {
1192
+ name: "Composite",
1193
+ className: "WarmStoreConfigurationProperties"
1194
+ }
1195
+ } })
1196
+ }
1197
+ };
1198
+ const EventHubEventSourceUpdateParameters = {
1199
+ serializedName: "Microsoft.EventHub",
1200
+ type: {
1201
+ name: "Composite",
1202
+ className: "EventHubEventSourceUpdateParameters",
1203
+ uberParent: "EventSourceUpdateParameters",
1204
+ polymorphicDiscriminator: EventSourceUpdateParameters.type.polymorphicDiscriminator,
1205
+ modelProperties: Object.assign(Object.assign({}, EventSourceUpdateParameters.type.modelProperties), { timestampPropertyName: {
1206
+ serializedName: "properties.timestampPropertyName",
1207
+ type: {
1208
+ name: "String"
1209
+ }
1210
+ }, sharedAccessKey: {
1211
+ serializedName: "properties.sharedAccessKey",
1212
+ type: {
1213
+ name: "String"
1214
+ }
1215
+ } })
1216
+ }
1217
+ };
1218
+ const IoTHubEventSourceUpdateParameters = {
1219
+ serializedName: "Microsoft.IoTHub",
1220
+ type: {
1221
+ name: "Composite",
1222
+ className: "IoTHubEventSourceUpdateParameters",
1223
+ uberParent: "EventSourceUpdateParameters",
1224
+ polymorphicDiscriminator: EventSourceUpdateParameters.type.polymorphicDiscriminator,
1225
+ modelProperties: Object.assign(Object.assign({}, EventSourceUpdateParameters.type.modelProperties), { timestampPropertyName: {
1226
+ serializedName: "properties.timestampPropertyName",
1227
+ type: {
1228
+ name: "String"
1229
+ }
1230
+ }, sharedAccessKey: {
1231
+ serializedName: "properties.sharedAccessKey",
1232
+ type: {
1233
+ name: "String"
1234
+ }
1235
+ } })
1236
+ }
1237
+ };
1238
+ const ReferenceDataSetResourceProperties = {
1239
+ type: {
1240
+ name: "Composite",
1241
+ className: "ReferenceDataSetResourceProperties",
1242
+ modelProperties: Object.assign(Object.assign({}, ReferenceDataSetCreationProperties.type.modelProperties), ResourceProperties.type.modelProperties)
1243
+ }
1244
+ };
1245
+ const EnvironmentResourceProperties = {
1246
+ type: {
1247
+ name: "Composite",
1248
+ className: "EnvironmentResourceProperties",
1249
+ modelProperties: Object.assign(Object.assign({}, ResourceProperties.type.modelProperties), { dataAccessId: {
1250
+ serializedName: "dataAccessId",
1251
+ readOnly: true,
1252
+ type: {
1253
+ name: "Uuid"
1254
+ }
1255
+ }, dataAccessFqdn: {
1256
+ serializedName: "dataAccessFqdn",
1257
+ readOnly: true,
1258
+ type: {
1259
+ name: "String"
1260
+ }
1261
+ }, status: {
1262
+ serializedName: "status",
1263
+ type: {
1264
+ name: "Composite",
1265
+ className: "EnvironmentStatus"
1266
+ }
1267
+ } })
1268
+ }
1269
+ };
1270
+ const EventSourceCommonProperties = {
1271
+ type: {
1272
+ name: "Composite",
1273
+ className: "EventSourceCommonProperties",
1274
+ modelProperties: Object.assign(Object.assign({}, ResourceProperties.type.modelProperties), { timestampPropertyName: {
1275
+ serializedName: "timestampPropertyName",
1276
+ type: {
1277
+ name: "String"
1278
+ }
1279
+ }, localTimestamp: {
1280
+ serializedName: "localTimestamp",
1281
+ type: {
1282
+ name: "Composite",
1283
+ className: "LocalTimestamp"
1284
+ }
1285
+ }, type: {
1286
+ serializedName: "ingressStartAt.type",
1287
+ type: {
1288
+ name: "String"
1289
+ }
1290
+ }, time: {
1291
+ serializedName: "ingressStartAt.time",
1292
+ type: {
1293
+ name: "String"
1294
+ }
1295
+ } })
1296
+ }
1297
+ };
1298
+ const Gen1EnvironmentResourceProperties = {
1299
+ type: {
1300
+ name: "Composite",
1301
+ className: "Gen1EnvironmentResourceProperties",
1302
+ modelProperties: Object.assign(Object.assign({}, Gen1EnvironmentCreationProperties.type.modelProperties), EnvironmentResourceProperties.type.modelProperties)
1303
+ }
1304
+ };
1305
+ const EventHubEventSourceMutableProperties = {
1306
+ type: {
1307
+ name: "Composite",
1308
+ className: "EventHubEventSourceMutableProperties",
1309
+ modelProperties: Object.assign(Object.assign({}, EventSourceMutableProperties.type.modelProperties), { sharedAccessKey: {
1310
+ serializedName: "sharedAccessKey",
1311
+ type: {
1312
+ name: "String"
1313
+ }
1314
+ } })
1315
+ }
1316
+ };
1317
+ const IoTHubEventSourceMutableProperties = {
1318
+ type: {
1319
+ name: "Composite",
1320
+ className: "IoTHubEventSourceMutableProperties",
1321
+ modelProperties: Object.assign(Object.assign({}, EventSourceMutableProperties.type.modelProperties), { sharedAccessKey: {
1322
+ serializedName: "sharedAccessKey",
1323
+ type: {
1324
+ name: "String"
1325
+ }
1326
+ } })
1327
+ }
1328
+ };
1329
+ const Gen1EnvironmentCreateOrUpdateParameters = {
1330
+ serializedName: "Gen1",
1331
+ type: {
1332
+ name: "Composite",
1333
+ className: "Gen1EnvironmentCreateOrUpdateParameters",
1334
+ uberParent: "CreateOrUpdateTrackedResourceProperties",
1335
+ polymorphicDiscriminator: CreateOrUpdateTrackedResourceProperties.type.polymorphicDiscriminator,
1336
+ modelProperties: Object.assign(Object.assign({}, EnvironmentCreateOrUpdateParameters.type.modelProperties), { dataRetentionTime: {
1337
+ serializedName: "properties.dataRetentionTime",
1338
+ required: true,
1339
+ type: {
1340
+ name: "TimeSpan"
1341
+ }
1342
+ }, storageLimitExceededBehavior: {
1343
+ serializedName: "properties.storageLimitExceededBehavior",
1344
+ type: {
1345
+ name: "String"
1346
+ }
1347
+ }, partitionKeyProperties: {
1348
+ serializedName: "properties.partitionKeyProperties",
1349
+ type: {
1350
+ name: "Sequence",
1351
+ element: {
1352
+ type: {
1353
+ name: "Composite",
1354
+ className: "TimeSeriesIdProperty"
1355
+ }
1356
+ }
1357
+ }
1358
+ } })
1359
+ }
1360
+ };
1361
+ const Gen2EnvironmentCreateOrUpdateParameters = {
1362
+ serializedName: "Gen2",
1363
+ type: {
1364
+ name: "Composite",
1365
+ className: "Gen2EnvironmentCreateOrUpdateParameters",
1366
+ uberParent: "CreateOrUpdateTrackedResourceProperties",
1367
+ polymorphicDiscriminator: CreateOrUpdateTrackedResourceProperties.type.polymorphicDiscriminator,
1368
+ modelProperties: Object.assign(Object.assign({}, EnvironmentCreateOrUpdateParameters.type.modelProperties), { timeSeriesIdProperties: {
1369
+ serializedName: "properties.timeSeriesIdProperties",
1370
+ required: true,
1371
+ type: {
1372
+ name: "Sequence",
1373
+ element: {
1374
+ type: {
1375
+ name: "Composite",
1376
+ className: "TimeSeriesIdProperty"
1377
+ }
1378
+ }
1379
+ }
1380
+ }, storageConfiguration: {
1381
+ serializedName: "properties.storageConfiguration",
1382
+ type: {
1383
+ name: "Composite",
1384
+ className: "Gen2StorageConfigurationInput"
1385
+ }
1386
+ }, warmStoreConfiguration: {
1387
+ serializedName: "properties.warmStoreConfiguration",
1388
+ type: {
1389
+ name: "Composite",
1390
+ className: "WarmStoreConfigurationProperties"
1391
+ }
1392
+ } })
1393
+ }
1394
+ };
1395
+ const EventHubEventSourceCreateOrUpdateParameters = {
1396
+ serializedName: "Microsoft.EventHub",
1397
+ type: {
1398
+ name: "Composite",
1399
+ className: "EventHubEventSourceCreateOrUpdateParameters",
1400
+ uberParent: "CreateOrUpdateTrackedResourceProperties",
1401
+ polymorphicDiscriminator: CreateOrUpdateTrackedResourceProperties.type.polymorphicDiscriminator,
1402
+ modelProperties: Object.assign(Object.assign({}, EventSourceCreateOrUpdateParameters.type.modelProperties), { provisioningState: {
1403
+ serializedName: "properties.provisioningState",
1404
+ readOnly: true,
1405
+ type: {
1406
+ name: "String"
1407
+ }
1408
+ }, creationTime: {
1409
+ serializedName: "properties.creationTime",
1410
+ readOnly: true,
1411
+ type: {
1412
+ name: "DateTime"
1413
+ }
1414
+ }, timestampPropertyName: {
1415
+ serializedName: "properties.timestampPropertyName",
1416
+ type: {
1417
+ name: "String"
1418
+ }
1419
+ }, localTimestampPropertiesLocalTimestamp: {
1420
+ serializedName: "properties.localTimestamp",
1421
+ type: {
1422
+ name: "Composite",
1423
+ className: "LocalTimestamp"
1424
+ }
1425
+ }, type: {
1426
+ serializedName: "properties.ingressStartAt.type",
1427
+ type: {
1428
+ name: "String"
1429
+ }
1430
+ }, time: {
1431
+ serializedName: "properties.ingressStartAt.time",
1432
+ type: {
1433
+ name: "String"
1434
+ }
1435
+ }, eventSourceResourceId: {
1436
+ serializedName: "properties.eventSourceResourceId",
1437
+ required: true,
1438
+ type: {
1439
+ name: "String"
1440
+ }
1441
+ }, serviceBusNamespace: {
1442
+ serializedName: "properties.serviceBusNamespace",
1443
+ required: true,
1444
+ type: {
1445
+ name: "String"
1446
+ }
1447
+ }, eventHubName: {
1448
+ serializedName: "properties.eventHubName",
1449
+ required: true,
1450
+ type: {
1451
+ name: "String"
1452
+ }
1453
+ }, consumerGroupName: {
1454
+ serializedName: "properties.consumerGroupName",
1455
+ required: true,
1456
+ type: {
1457
+ name: "String"
1458
+ }
1459
+ }, keyName: {
1460
+ serializedName: "properties.keyName",
1461
+ required: true,
1462
+ type: {
1463
+ name: "String"
1464
+ }
1465
+ }, sharedAccessKey: {
1466
+ serializedName: "properties.sharedAccessKey",
1467
+ required: true,
1468
+ type: {
1469
+ name: "String"
1470
+ }
1471
+ } })
1472
+ }
1473
+ };
1474
+ const IoTHubEventSourceCreateOrUpdateParameters = {
1475
+ serializedName: "Microsoft.IoTHub",
1476
+ type: {
1477
+ name: "Composite",
1478
+ className: "IoTHubEventSourceCreateOrUpdateParameters",
1479
+ uberParent: "CreateOrUpdateTrackedResourceProperties",
1480
+ polymorphicDiscriminator: CreateOrUpdateTrackedResourceProperties.type.polymorphicDiscriminator,
1481
+ modelProperties: Object.assign(Object.assign({}, EventSourceCreateOrUpdateParameters.type.modelProperties), { provisioningState: {
1482
+ serializedName: "properties.provisioningState",
1483
+ readOnly: true,
1484
+ type: {
1485
+ name: "String"
1486
+ }
1487
+ }, creationTime: {
1488
+ serializedName: "properties.creationTime",
1489
+ readOnly: true,
1490
+ type: {
1491
+ name: "DateTime"
1492
+ }
1493
+ }, timestampPropertyName: {
1494
+ serializedName: "properties.timestampPropertyName",
1495
+ type: {
1496
+ name: "String"
1497
+ }
1498
+ }, localTimestampPropertiesLocalTimestamp: {
1499
+ serializedName: "properties.localTimestamp",
1500
+ type: {
1501
+ name: "Composite",
1502
+ className: "LocalTimestamp"
1503
+ }
1504
+ }, type: {
1505
+ serializedName: "properties.ingressStartAt.type",
1506
+ type: {
1507
+ name: "String"
1508
+ }
1509
+ }, time: {
1510
+ serializedName: "properties.ingressStartAt.time",
1511
+ type: {
1512
+ name: "String"
1513
+ }
1514
+ }, eventSourceResourceId: {
1515
+ serializedName: "properties.eventSourceResourceId",
1516
+ required: true,
1517
+ type: {
1518
+ name: "String"
1519
+ }
1520
+ }, iotHubName: {
1521
+ serializedName: "properties.iotHubName",
1522
+ required: true,
1523
+ type: {
1524
+ name: "String"
1525
+ }
1526
+ }, consumerGroupName: {
1527
+ serializedName: "properties.consumerGroupName",
1528
+ required: true,
1529
+ type: {
1530
+ name: "String"
1531
+ }
1532
+ }, keyName: {
1533
+ serializedName: "properties.keyName",
1534
+ required: true,
1535
+ type: {
1536
+ name: "String"
1537
+ }
1538
+ }, sharedAccessKey: {
1539
+ serializedName: "properties.sharedAccessKey",
1540
+ required: true,
1541
+ type: {
1542
+ name: "String"
1543
+ }
1544
+ } })
1545
+ }
1546
+ };
1547
+ const EnvironmentResource = {
1548
+ serializedName: "EnvironmentResource",
1549
+ type: {
1550
+ name: "Composite",
1551
+ className: "EnvironmentResource",
1552
+ uberParent: "Resource",
1553
+ polymorphicDiscriminator: {
1554
+ serializedName: "kind",
1555
+ clientName: "kind"
1556
+ },
1557
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1558
+ serializedName: "sku",
1559
+ type: {
1560
+ name: "Composite",
1561
+ className: "Sku"
1562
+ }
1563
+ }, kind: {
1564
+ serializedName: "kind",
1565
+ required: true,
1566
+ type: {
1567
+ name: "String"
1568
+ }
1569
+ } })
1570
+ }
1571
+ };
1572
+ const EventSourceResource = {
1573
+ serializedName: "EventSourceResource",
1574
+ type: {
1575
+ name: "Composite",
1576
+ className: "EventSourceResource",
1577
+ uberParent: "Resource",
1578
+ polymorphicDiscriminator: {
1579
+ serializedName: "kind",
1580
+ clientName: "kind"
1581
+ },
1582
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { kind: {
1583
+ serializedName: "kind",
1584
+ required: true,
1585
+ type: {
1586
+ name: "String"
1587
+ }
1588
+ } })
1589
+ }
1590
+ };
1591
+ const ReferenceDataSetResource = {
1592
+ type: {
1593
+ name: "Composite",
1594
+ className: "ReferenceDataSetResource",
1595
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { keyProperties: {
1596
+ serializedName: "properties.keyProperties",
1597
+ type: {
1598
+ name: "Sequence",
1599
+ element: {
1600
+ type: {
1601
+ name: "Composite",
1602
+ className: "ReferenceDataSetKeyProperty"
1603
+ }
1604
+ }
1605
+ }
1606
+ }, dataStringComparisonBehavior: {
1607
+ serializedName: "properties.dataStringComparisonBehavior",
1608
+ type: {
1609
+ name: "String"
1610
+ }
1611
+ }, provisioningState: {
1612
+ serializedName: "properties.provisioningState",
1613
+ readOnly: true,
1614
+ type: {
1615
+ name: "String"
1616
+ }
1617
+ }, creationTime: {
1618
+ serializedName: "properties.creationTime",
1619
+ readOnly: true,
1620
+ type: {
1621
+ name: "DateTime"
1622
+ }
1623
+ } })
1624
+ }
1625
+ };
1626
+ const Gen2EnvironmentResourceProperties = {
1627
+ type: {
1628
+ name: "Composite",
1629
+ className: "Gen2EnvironmentResourceProperties",
1630
+ modelProperties: Object.assign(Object.assign({}, EnvironmentResourceProperties.type.modelProperties), { timeSeriesIdProperties: {
1631
+ serializedName: "timeSeriesIdProperties",
1632
+ required: true,
1633
+ type: {
1634
+ name: "Sequence",
1635
+ element: {
1636
+ type: {
1637
+ name: "Composite",
1638
+ className: "TimeSeriesIdProperty"
1639
+ }
1640
+ }
1641
+ }
1642
+ }, storageConfiguration: {
1643
+ serializedName: "storageConfiguration",
1644
+ type: {
1645
+ name: "Composite",
1646
+ className: "Gen2StorageConfigurationOutput"
1647
+ }
1648
+ }, warmStoreConfiguration: {
1649
+ serializedName: "warmStoreConfiguration",
1650
+ type: {
1651
+ name: "Composite",
1652
+ className: "WarmStoreConfigurationProperties"
1653
+ }
1654
+ } })
1655
+ }
1656
+ };
1657
+ const AzureEventSourceProperties = {
1658
+ type: {
1659
+ name: "Composite",
1660
+ className: "AzureEventSourceProperties",
1661
+ modelProperties: Object.assign(Object.assign({}, EventSourceCommonProperties.type.modelProperties), { eventSourceResourceId: {
1662
+ serializedName: "eventSourceResourceId",
1663
+ required: true,
1664
+ type: {
1665
+ name: "String"
1666
+ }
1667
+ } })
1668
+ }
1669
+ };
1670
+ const Gen1EnvironmentResource = {
1671
+ serializedName: "Gen1",
1672
+ type: {
1673
+ name: "Composite",
1674
+ className: "Gen1EnvironmentResource",
1675
+ uberParent: "Resource",
1676
+ polymorphicDiscriminator: Resource.type.polymorphicDiscriminator,
1677
+ modelProperties: Object.assign(Object.assign({}, EnvironmentResource.type.modelProperties), { dataRetentionTime: {
1678
+ serializedName: "properties.dataRetentionTime",
1679
+ required: true,
1680
+ type: {
1681
+ name: "TimeSpan"
1682
+ }
1683
+ }, storageLimitExceededBehavior: {
1684
+ serializedName: "properties.storageLimitExceededBehavior",
1685
+ type: {
1686
+ name: "String"
1687
+ }
1688
+ }, partitionKeyProperties: {
1689
+ serializedName: "properties.partitionKeyProperties",
1690
+ type: {
1691
+ name: "Sequence",
1692
+ element: {
1693
+ type: {
1694
+ name: "Composite",
1695
+ className: "TimeSeriesIdProperty"
1696
+ }
1697
+ }
1698
+ }
1699
+ }, provisioningState: {
1700
+ serializedName: "properties.provisioningState",
1701
+ readOnly: true,
1702
+ type: {
1703
+ name: "String"
1704
+ }
1705
+ }, creationTime: {
1706
+ serializedName: "properties.creationTime",
1707
+ readOnly: true,
1708
+ type: {
1709
+ name: "DateTime"
1710
+ }
1711
+ }, dataAccessId: {
1712
+ serializedName: "properties.dataAccessId",
1713
+ readOnly: true,
1714
+ type: {
1715
+ name: "Uuid"
1716
+ }
1717
+ }, dataAccessFqdn: {
1718
+ serializedName: "properties.dataAccessFqdn",
1719
+ readOnly: true,
1720
+ type: {
1721
+ name: "String"
1722
+ }
1723
+ }, status: {
1724
+ serializedName: "properties.status",
1725
+ type: {
1726
+ name: "Composite",
1727
+ className: "EnvironmentStatus"
1728
+ }
1729
+ } })
1730
+ }
1731
+ };
1732
+ const Gen2EnvironmentResource = {
1733
+ serializedName: "Gen2",
1734
+ type: {
1735
+ name: "Composite",
1736
+ className: "Gen2EnvironmentResource",
1737
+ uberParent: "Resource",
1738
+ polymorphicDiscriminator: Resource.type.polymorphicDiscriminator,
1739
+ modelProperties: Object.assign(Object.assign({}, EnvironmentResource.type.modelProperties), { provisioningState: {
1740
+ serializedName: "properties.provisioningState",
1741
+ readOnly: true,
1742
+ type: {
1743
+ name: "String"
1744
+ }
1745
+ }, creationTime: {
1746
+ serializedName: "properties.creationTime",
1747
+ readOnly: true,
1748
+ type: {
1749
+ name: "DateTime"
1750
+ }
1751
+ }, dataAccessId: {
1752
+ serializedName: "properties.dataAccessId",
1753
+ readOnly: true,
1754
+ type: {
1755
+ name: "Uuid"
1756
+ }
1757
+ }, dataAccessFqdn: {
1758
+ serializedName: "properties.dataAccessFqdn",
1759
+ readOnly: true,
1760
+ type: {
1761
+ name: "String"
1762
+ }
1763
+ }, status: {
1764
+ serializedName: "properties.status",
1765
+ type: {
1766
+ name: "Composite",
1767
+ className: "EnvironmentStatus"
1768
+ }
1769
+ }, timeSeriesIdProperties: {
1770
+ serializedName: "properties.timeSeriesIdProperties",
1771
+ required: true,
1772
+ type: {
1773
+ name: "Sequence",
1774
+ element: {
1775
+ type: {
1776
+ name: "Composite",
1777
+ className: "TimeSeriesIdProperty"
1778
+ }
1779
+ }
1780
+ }
1781
+ }, storageConfiguration: {
1782
+ serializedName: "properties.storageConfiguration",
1783
+ type: {
1784
+ name: "Composite",
1785
+ className: "Gen2StorageConfigurationOutput"
1786
+ }
1787
+ }, warmStoreConfiguration: {
1788
+ serializedName: "properties.warmStoreConfiguration",
1789
+ type: {
1790
+ name: "Composite",
1791
+ className: "WarmStoreConfigurationProperties"
1792
+ }
1793
+ } })
1794
+ }
1795
+ };
1796
+ const EventHubEventSourceResource = {
1797
+ serializedName: "Microsoft.EventHub",
1798
+ type: {
1799
+ name: "Composite",
1800
+ className: "EventHubEventSourceResource",
1801
+ uberParent: "Resource",
1802
+ polymorphicDiscriminator: Resource.type.polymorphicDiscriminator,
1803
+ modelProperties: Object.assign(Object.assign({}, EventSourceResource.type.modelProperties), { provisioningState: {
1804
+ serializedName: "properties.provisioningState",
1805
+ readOnly: true,
1806
+ type: {
1807
+ name: "String"
1808
+ }
1809
+ }, creationTime: {
1810
+ serializedName: "properties.creationTime",
1811
+ readOnly: true,
1812
+ type: {
1813
+ name: "DateTime"
1814
+ }
1815
+ }, timestampPropertyName: {
1816
+ serializedName: "properties.timestampPropertyName",
1817
+ type: {
1818
+ name: "String"
1819
+ }
1820
+ }, localTimestamp: {
1821
+ serializedName: "properties.localTimestamp",
1822
+ type: {
1823
+ name: "Composite",
1824
+ className: "LocalTimestamp"
1825
+ }
1826
+ }, typePropertiesIngressStartAtType: {
1827
+ serializedName: "properties.ingressStartAt.type",
1828
+ type: {
1829
+ name: "String"
1830
+ }
1831
+ }, time: {
1832
+ serializedName: "properties.ingressStartAt.time",
1833
+ type: {
1834
+ name: "String"
1835
+ }
1836
+ }, eventSourceResourceId: {
1837
+ serializedName: "properties.eventSourceResourceId",
1838
+ required: true,
1839
+ type: {
1840
+ name: "String"
1841
+ }
1842
+ }, serviceBusNamespace: {
1843
+ serializedName: "properties.serviceBusNamespace",
1844
+ required: true,
1845
+ type: {
1846
+ name: "String"
1847
+ }
1848
+ }, eventHubName: {
1849
+ serializedName: "properties.eventHubName",
1850
+ required: true,
1851
+ type: {
1852
+ name: "String"
1853
+ }
1854
+ }, consumerGroupName: {
1855
+ serializedName: "properties.consumerGroupName",
1856
+ required: true,
1857
+ type: {
1858
+ name: "String"
1859
+ }
1860
+ }, keyName: {
1861
+ serializedName: "properties.keyName",
1862
+ required: true,
1863
+ type: {
1864
+ name: "String"
1865
+ }
1866
+ } })
1867
+ }
1868
+ };
1869
+ const IoTHubEventSourceResource = {
1870
+ serializedName: "Microsoft.IoTHub",
1871
+ type: {
1872
+ name: "Composite",
1873
+ className: "IoTHubEventSourceResource",
1874
+ uberParent: "Resource",
1875
+ polymorphicDiscriminator: Resource.type.polymorphicDiscriminator,
1876
+ modelProperties: Object.assign(Object.assign({}, EventSourceResource.type.modelProperties), { provisioningState: {
1877
+ serializedName: "properties.provisioningState",
1878
+ readOnly: true,
1879
+ type: {
1880
+ name: "String"
1881
+ }
1882
+ }, creationTime: {
1883
+ serializedName: "properties.creationTime",
1884
+ readOnly: true,
1885
+ type: {
1886
+ name: "DateTime"
1887
+ }
1888
+ }, timestampPropertyName: {
1889
+ serializedName: "properties.timestampPropertyName",
1890
+ type: {
1891
+ name: "String"
1892
+ }
1893
+ }, localTimestamp: {
1894
+ serializedName: "properties.localTimestamp",
1895
+ type: {
1896
+ name: "Composite",
1897
+ className: "LocalTimestamp"
1898
+ }
1899
+ }, typePropertiesIngressStartAtType: {
1900
+ serializedName: "properties.ingressStartAt.type",
1901
+ type: {
1902
+ name: "String"
1903
+ }
1904
+ }, time: {
1905
+ serializedName: "properties.ingressStartAt.time",
1906
+ type: {
1907
+ name: "String"
1908
+ }
1909
+ }, eventSourceResourceId: {
1910
+ serializedName: "properties.eventSourceResourceId",
1911
+ required: true,
1912
+ type: {
1913
+ name: "String"
1914
+ }
1915
+ }, iotHubName: {
1916
+ serializedName: "properties.iotHubName",
1917
+ required: true,
1918
+ type: {
1919
+ name: "String"
1920
+ }
1921
+ }, consumerGroupName: {
1922
+ serializedName: "properties.consumerGroupName",
1923
+ required: true,
1924
+ type: {
1925
+ name: "String"
1926
+ }
1927
+ }, keyName: {
1928
+ serializedName: "properties.keyName",
1929
+ required: true,
1930
+ type: {
1931
+ name: "String"
1932
+ }
1933
+ } })
1934
+ }
1935
+ };
1936
+ const EventHubEventSourceCommonProperties = {
1937
+ type: {
1938
+ name: "Composite",
1939
+ className: "EventHubEventSourceCommonProperties",
1940
+ modelProperties: Object.assign(Object.assign({}, AzureEventSourceProperties.type.modelProperties), { serviceBusNamespace: {
1941
+ serializedName: "serviceBusNamespace",
1942
+ required: true,
1943
+ type: {
1944
+ name: "String"
1945
+ }
1946
+ }, eventHubName: {
1947
+ serializedName: "eventHubName",
1948
+ required: true,
1949
+ type: {
1950
+ name: "String"
1951
+ }
1952
+ }, consumerGroupName: {
1953
+ serializedName: "consumerGroupName",
1954
+ required: true,
1955
+ type: {
1956
+ name: "String"
1957
+ }
1958
+ }, keyName: {
1959
+ serializedName: "keyName",
1960
+ required: true,
1961
+ type: {
1962
+ name: "String"
1963
+ }
1964
+ } })
1965
+ }
1966
+ };
1967
+ const IoTHubEventSourceCommonProperties = {
1968
+ type: {
1969
+ name: "Composite",
1970
+ className: "IoTHubEventSourceCommonProperties",
1971
+ modelProperties: Object.assign(Object.assign({}, AzureEventSourceProperties.type.modelProperties), { iotHubName: {
1972
+ serializedName: "iotHubName",
1973
+ required: true,
1974
+ type: {
1975
+ name: "String"
1976
+ }
1977
+ }, consumerGroupName: {
1978
+ serializedName: "consumerGroupName",
1979
+ required: true,
1980
+ type: {
1981
+ name: "String"
1982
+ }
1983
+ }, keyName: {
1984
+ serializedName: "keyName",
1985
+ required: true,
1986
+ type: {
1987
+ name: "String"
1988
+ }
1989
+ } })
1990
+ }
1991
+ };
1992
+ const EventHubEventSourceCreationProperties = {
1993
+ type: {
1994
+ name: "Composite",
1995
+ className: "EventHubEventSourceCreationProperties",
1996
+ modelProperties: Object.assign(Object.assign({}, EventHubEventSourceCommonProperties.type.modelProperties), { sharedAccessKey: {
1997
+ serializedName: "sharedAccessKey",
1998
+ required: true,
1999
+ type: {
2000
+ name: "String"
2001
+ }
2002
+ } })
2003
+ }
2004
+ };
2005
+ const EventHubEventSourceResourceProperties = {
2006
+ type: {
2007
+ name: "Composite",
2008
+ className: "EventHubEventSourceResourceProperties",
2009
+ modelProperties: Object.assign({}, EventHubEventSourceCommonProperties.type.modelProperties)
2010
+ }
2011
+ };
2012
+ const IoTHubEventSourceCreationProperties = {
2013
+ type: {
2014
+ name: "Composite",
2015
+ className: "IoTHubEventSourceCreationProperties",
2016
+ modelProperties: Object.assign(Object.assign({}, IoTHubEventSourceCommonProperties.type.modelProperties), { sharedAccessKey: {
2017
+ serializedName: "sharedAccessKey",
2018
+ required: true,
2019
+ type: {
2020
+ name: "String"
2021
+ }
2022
+ } })
2023
+ }
2024
+ };
2025
+ const IoTHubEventSourceResourceProperties = {
2026
+ type: {
2027
+ name: "Composite",
2028
+ className: "IoTHubEventSourceResourceProperties",
2029
+ modelProperties: Object.assign({}, IoTHubEventSourceCommonProperties.type.modelProperties)
2030
+ }
2031
+ };
2032
+ let discriminators = {
2033
+ EnvironmentUpdateParameters: EnvironmentUpdateParameters,
2034
+ EventSourceUpdateParameters: EventSourceUpdateParameters,
2035
+ "CreateOrUpdateTrackedResourceProperties.EnvironmentCreateOrUpdateParameters": EnvironmentCreateOrUpdateParameters,
2036
+ "CreateOrUpdateTrackedResourceProperties.EventSourceCreateOrUpdateParameters": EventSourceCreateOrUpdateParameters,
2037
+ "EnvironmentUpdateParameters.Gen1": Gen1EnvironmentUpdateParameters,
2038
+ "EnvironmentUpdateParameters.Gen2": Gen2EnvironmentUpdateParameters,
2039
+ "EventSourceUpdateParameters.Microsoft.EventHub": EventHubEventSourceUpdateParameters,
2040
+ "EventSourceUpdateParameters.Microsoft.IoTHub": IoTHubEventSourceUpdateParameters,
2041
+ "CreateOrUpdateTrackedResourceProperties.Gen1": Gen1EnvironmentCreateOrUpdateParameters,
2042
+ "CreateOrUpdateTrackedResourceProperties.Gen2": Gen2EnvironmentCreateOrUpdateParameters,
2043
+ "CreateOrUpdateTrackedResourceProperties.Microsoft.EventHub": EventHubEventSourceCreateOrUpdateParameters,
2044
+ "CreateOrUpdateTrackedResourceProperties.Microsoft.IoTHub": IoTHubEventSourceCreateOrUpdateParameters,
2045
+ "Resource.EnvironmentResource": EnvironmentResource,
2046
+ "Resource.EventSourceResource": EventSourceResource,
2047
+ "Resource.Gen1": Gen1EnvironmentResource,
2048
+ "Resource.Gen2": Gen2EnvironmentResource,
2049
+ "Resource.Microsoft.EventHub": EventHubEventSourceResource,
2050
+ "Resource.Microsoft.IoTHub": IoTHubEventSourceResource
2051
+ };
2052
+
2053
+ var Mappers = /*#__PURE__*/Object.freeze({
2054
+ __proto__: null,
2055
+ OperationListResult: OperationListResult,
2056
+ Operation: Operation,
2057
+ OperationDisplay: OperationDisplay,
2058
+ ServiceSpecification: ServiceSpecification,
2059
+ MetricSpecification: MetricSpecification,
2060
+ Dimension: Dimension,
2061
+ MetricAvailability: MetricAvailability,
2062
+ LogSpecification: LogSpecification,
2063
+ CloudError: CloudError,
2064
+ CloudErrorBody: CloudErrorBody,
2065
+ Sku: Sku,
2066
+ CreateOrUpdateTrackedResourceProperties: CreateOrUpdateTrackedResourceProperties,
2067
+ Resource: Resource,
2068
+ EnvironmentUpdateParameters: EnvironmentUpdateParameters,
2069
+ EnvironmentListResponse: EnvironmentListResponse,
2070
+ LocalTimestamp: LocalTimestamp,
2071
+ LocalTimestampTimeZoneOffset: LocalTimestampTimeZoneOffset,
2072
+ EventSourceUpdateParameters: EventSourceUpdateParameters,
2073
+ EventSourceListResponse: EventSourceListResponse,
2074
+ ReferenceDataSetCreationProperties: ReferenceDataSetCreationProperties,
2075
+ ReferenceDataSetKeyProperty: ReferenceDataSetKeyProperty,
2076
+ ResourceProperties: ResourceProperties,
2077
+ ReferenceDataSetUpdateParameters: ReferenceDataSetUpdateParameters,
2078
+ ReferenceDataSetListResponse: ReferenceDataSetListResponse,
2079
+ AccessPolicyCreateOrUpdateParameters: AccessPolicyCreateOrUpdateParameters,
2080
+ AccessPolicyUpdateParameters: AccessPolicyUpdateParameters,
2081
+ AccessPolicyListResponse: AccessPolicyListResponse,
2082
+ WarmStoreConfigurationProperties: WarmStoreConfigurationProperties,
2083
+ Gen2StorageConfigurationInput: Gen2StorageConfigurationInput,
2084
+ Gen2StorageConfigurationOutput: Gen2StorageConfigurationOutput,
2085
+ Gen2StorageConfigurationMutableProperties: Gen2StorageConfigurationMutableProperties,
2086
+ Gen1EnvironmentCreationProperties: Gen1EnvironmentCreationProperties,
2087
+ TimeSeriesIdProperty: TimeSeriesIdProperty,
2088
+ EnvironmentStatus: EnvironmentStatus,
2089
+ IngressEnvironmentStatus: IngressEnvironmentStatus,
2090
+ EnvironmentStateDetails: EnvironmentStateDetails,
2091
+ WarmStorageEnvironmentStatus: WarmStorageEnvironmentStatus,
2092
+ EventSourceMutableProperties: EventSourceMutableProperties,
2093
+ EnvironmentCreateOrUpdateParameters: EnvironmentCreateOrUpdateParameters,
2094
+ EventSourceCreateOrUpdateParameters: EventSourceCreateOrUpdateParameters,
2095
+ ReferenceDataSetCreateOrUpdateParameters: ReferenceDataSetCreateOrUpdateParameters,
2096
+ TrackedResource: TrackedResource,
2097
+ AccessPolicyResource: AccessPolicyResource,
2098
+ Gen1EnvironmentUpdateParameters: Gen1EnvironmentUpdateParameters,
2099
+ Gen2EnvironmentUpdateParameters: Gen2EnvironmentUpdateParameters,
2100
+ EventHubEventSourceUpdateParameters: EventHubEventSourceUpdateParameters,
2101
+ IoTHubEventSourceUpdateParameters: IoTHubEventSourceUpdateParameters,
2102
+ ReferenceDataSetResourceProperties: ReferenceDataSetResourceProperties,
2103
+ EnvironmentResourceProperties: EnvironmentResourceProperties,
2104
+ EventSourceCommonProperties: EventSourceCommonProperties,
2105
+ Gen1EnvironmentResourceProperties: Gen1EnvironmentResourceProperties,
2106
+ EventHubEventSourceMutableProperties: EventHubEventSourceMutableProperties,
2107
+ IoTHubEventSourceMutableProperties: IoTHubEventSourceMutableProperties,
2108
+ Gen1EnvironmentCreateOrUpdateParameters: Gen1EnvironmentCreateOrUpdateParameters,
2109
+ Gen2EnvironmentCreateOrUpdateParameters: Gen2EnvironmentCreateOrUpdateParameters,
2110
+ EventHubEventSourceCreateOrUpdateParameters: EventHubEventSourceCreateOrUpdateParameters,
2111
+ IoTHubEventSourceCreateOrUpdateParameters: IoTHubEventSourceCreateOrUpdateParameters,
2112
+ EnvironmentResource: EnvironmentResource,
2113
+ EventSourceResource: EventSourceResource,
2114
+ ReferenceDataSetResource: ReferenceDataSetResource,
2115
+ Gen2EnvironmentResourceProperties: Gen2EnvironmentResourceProperties,
2116
+ AzureEventSourceProperties: AzureEventSourceProperties,
2117
+ Gen1EnvironmentResource: Gen1EnvironmentResource,
2118
+ Gen2EnvironmentResource: Gen2EnvironmentResource,
2119
+ EventHubEventSourceResource: EventHubEventSourceResource,
2120
+ IoTHubEventSourceResource: IoTHubEventSourceResource,
2121
+ EventHubEventSourceCommonProperties: EventHubEventSourceCommonProperties,
2122
+ IoTHubEventSourceCommonProperties: IoTHubEventSourceCommonProperties,
2123
+ EventHubEventSourceCreationProperties: EventHubEventSourceCreationProperties,
2124
+ EventHubEventSourceResourceProperties: EventHubEventSourceResourceProperties,
2125
+ IoTHubEventSourceCreationProperties: IoTHubEventSourceCreationProperties,
2126
+ IoTHubEventSourceResourceProperties: IoTHubEventSourceResourceProperties,
2127
+ discriminators: discriminators
2128
+ });
2129
+
2130
+ /*
2131
+ * Copyright (c) Microsoft Corporation.
2132
+ * Licensed under the MIT License.
2133
+ *
2134
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2135
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2136
+ */
2137
+ const accept = {
2138
+ parameterPath: "accept",
2139
+ mapper: {
2140
+ defaultValue: "application/json",
2141
+ isConstant: true,
2142
+ serializedName: "Accept",
2143
+ type: {
2144
+ name: "String"
2145
+ }
2146
+ }
2147
+ };
2148
+ const $host = {
2149
+ parameterPath: "$host",
2150
+ mapper: {
2151
+ serializedName: "$host",
2152
+ required: true,
2153
+ type: {
2154
+ name: "String"
2155
+ }
2156
+ },
2157
+ skipEncoding: true
2158
+ };
2159
+ const apiVersion = {
2160
+ parameterPath: "apiVersion",
2161
+ mapper: {
2162
+ defaultValue: "2020-05-15",
2163
+ isConstant: true,
2164
+ serializedName: "api-version",
2165
+ type: {
2166
+ name: "String"
2167
+ }
2168
+ }
2169
+ };
2170
+ const nextLink = {
2171
+ parameterPath: "nextLink",
2172
+ mapper: {
2173
+ serializedName: "nextLink",
2174
+ required: true,
2175
+ type: {
2176
+ name: "String"
2177
+ }
2178
+ },
2179
+ skipEncoding: true
2180
+ };
2181
+ const contentType = {
2182
+ parameterPath: ["options", "contentType"],
2183
+ mapper: {
2184
+ defaultValue: "application/json",
2185
+ isConstant: true,
2186
+ serializedName: "Content-Type",
2187
+ type: {
2188
+ name: "String"
2189
+ }
2190
+ }
2191
+ };
2192
+ const parameters = {
2193
+ parameterPath: "parameters",
2194
+ mapper: EnvironmentCreateOrUpdateParameters
2195
+ };
2196
+ const subscriptionId = {
2197
+ parameterPath: "subscriptionId",
2198
+ mapper: {
2199
+ serializedName: "subscriptionId",
2200
+ required: true,
2201
+ type: {
2202
+ name: "String"
2203
+ }
2204
+ }
2205
+ };
2206
+ const resourceGroupName = {
2207
+ parameterPath: "resourceGroupName",
2208
+ mapper: {
2209
+ serializedName: "resourceGroupName",
2210
+ required: true,
2211
+ type: {
2212
+ name: "String"
2213
+ }
2214
+ }
2215
+ };
2216
+ const environmentName = {
2217
+ parameterPath: "environmentName",
2218
+ mapper: {
2219
+ constraints: {
2220
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
2221
+ MaxLength: 90,
2222
+ MinLength: 1
2223
+ },
2224
+ serializedName: "environmentName",
2225
+ required: true,
2226
+ type: {
2227
+ name: "String"
2228
+ }
2229
+ }
2230
+ };
2231
+ const environmentName1 = {
2232
+ parameterPath: "environmentName",
2233
+ mapper: {
2234
+ serializedName: "environmentName",
2235
+ required: true,
2236
+ type: {
2237
+ name: "String"
2238
+ }
2239
+ }
2240
+ };
2241
+ const expand = {
2242
+ parameterPath: ["options", "expand"],
2243
+ mapper: {
2244
+ serializedName: "$expand",
2245
+ type: {
2246
+ name: "String"
2247
+ }
2248
+ }
2249
+ };
2250
+ const environmentUpdateParameters = {
2251
+ parameterPath: "environmentUpdateParameters",
2252
+ mapper: EnvironmentUpdateParameters
2253
+ };
2254
+ const parameters1 = {
2255
+ parameterPath: "parameters",
2256
+ mapper: EventSourceCreateOrUpdateParameters
2257
+ };
2258
+ const eventSourceName = {
2259
+ parameterPath: "eventSourceName",
2260
+ mapper: {
2261
+ constraints: {
2262
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
2263
+ MaxLength: 90,
2264
+ MinLength: 1
2265
+ },
2266
+ serializedName: "eventSourceName",
2267
+ required: true,
2268
+ type: {
2269
+ name: "String"
2270
+ }
2271
+ }
2272
+ };
2273
+ const eventSourceName1 = {
2274
+ parameterPath: "eventSourceName",
2275
+ mapper: {
2276
+ serializedName: "eventSourceName",
2277
+ required: true,
2278
+ type: {
2279
+ name: "String"
2280
+ }
2281
+ }
2282
+ };
2283
+ const eventSourceUpdateParameters = {
2284
+ parameterPath: "eventSourceUpdateParameters",
2285
+ mapper: EventSourceUpdateParameters
2286
+ };
2287
+ const parameters2 = {
2288
+ parameterPath: "parameters",
2289
+ mapper: ReferenceDataSetCreateOrUpdateParameters
2290
+ };
2291
+ const referenceDataSetName = {
2292
+ parameterPath: "referenceDataSetName",
2293
+ mapper: {
2294
+ constraints: {
2295
+ Pattern: new RegExp("^[A-Za-z0-9]"),
2296
+ MaxLength: 63,
2297
+ MinLength: 3
2298
+ },
2299
+ serializedName: "referenceDataSetName",
2300
+ required: true,
2301
+ type: {
2302
+ name: "String"
2303
+ }
2304
+ }
2305
+ };
2306
+ const referenceDataSetName1 = {
2307
+ parameterPath: "referenceDataSetName",
2308
+ mapper: {
2309
+ serializedName: "referenceDataSetName",
2310
+ required: true,
2311
+ type: {
2312
+ name: "String"
2313
+ }
2314
+ }
2315
+ };
2316
+ const referenceDataSetUpdateParameters = {
2317
+ parameterPath: "referenceDataSetUpdateParameters",
2318
+ mapper: ReferenceDataSetUpdateParameters
2319
+ };
2320
+ const parameters3 = {
2321
+ parameterPath: "parameters",
2322
+ mapper: AccessPolicyCreateOrUpdateParameters
2323
+ };
2324
+ const accessPolicyName = {
2325
+ parameterPath: "accessPolicyName",
2326
+ mapper: {
2327
+ constraints: {
2328
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
2329
+ MaxLength: 90,
2330
+ MinLength: 1
2331
+ },
2332
+ serializedName: "accessPolicyName",
2333
+ required: true,
2334
+ type: {
2335
+ name: "String"
2336
+ }
2337
+ }
2338
+ };
2339
+ const accessPolicyName1 = {
2340
+ parameterPath: "accessPolicyName",
2341
+ mapper: {
2342
+ serializedName: "accessPolicyName",
2343
+ required: true,
2344
+ type: {
2345
+ name: "String"
2346
+ }
2347
+ }
2348
+ };
2349
+ const accessPolicyUpdateParameters = {
2350
+ parameterPath: "accessPolicyUpdateParameters",
2351
+ mapper: AccessPolicyUpdateParameters
2352
+ };
2353
+
2354
+ /*
2355
+ * Copyright (c) Microsoft Corporation.
2356
+ * Licensed under the MIT License.
2357
+ *
2358
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2359
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2360
+ */
2361
+ /// <reference lib="esnext.asynciterable" />
2362
+ /** Class containing Operations operations. */
2363
+ class OperationsImpl {
2364
+ /**
2365
+ * Initialize a new instance of the class Operations class.
2366
+ * @param client Reference to the service client
2367
+ */
2368
+ constructor(client) {
2369
+ this.client = client;
2370
+ }
2371
+ /**
2372
+ * Lists all of the available Time Series Insights related operations.
2373
+ * @param options The options parameters.
2374
+ */
2375
+ list(options) {
2376
+ const iter = this.listPagingAll(options);
2377
+ return {
2378
+ next() {
2379
+ return iter.next();
2380
+ },
2381
+ [Symbol.asyncIterator]() {
2382
+ return this;
2383
+ },
2384
+ byPage: () => {
2385
+ return this.listPagingPage(options);
2386
+ }
2387
+ };
2388
+ }
2389
+ listPagingPage(options) {
2390
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2391
+ let result = yield tslib.__await(this._list(options));
2392
+ yield yield tslib.__await(result.value || []);
2393
+ let continuationToken = result.nextLink;
2394
+ while (continuationToken) {
2395
+ result = yield tslib.__await(this._listNext(continuationToken, options));
2396
+ continuationToken = result.nextLink;
2397
+ yield yield tslib.__await(result.value || []);
2398
+ }
2399
+ });
2400
+ }
2401
+ listPagingAll(options) {
2402
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2403
+ var e_1, _a;
2404
+ try {
2405
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2406
+ const page = _c.value;
2407
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2408
+ }
2409
+ }
2410
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2411
+ finally {
2412
+ try {
2413
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2414
+ }
2415
+ finally { if (e_1) throw e_1.error; }
2416
+ }
2417
+ });
2418
+ }
2419
+ /**
2420
+ * Lists all of the available Time Series Insights related operations.
2421
+ * @param options The options parameters.
2422
+ */
2423
+ _list(options) {
2424
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
2425
+ }
2426
+ /**
2427
+ * ListNext
2428
+ * @param nextLink The nextLink from the previous successful call to the List method.
2429
+ * @param options The options parameters.
2430
+ */
2431
+ _listNext(nextLink, options) {
2432
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
2433
+ }
2434
+ }
2435
+ // Operation Specifications
2436
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
2437
+ const listOperationSpec = {
2438
+ path: "/providers/Microsoft.TimeSeriesInsights/operations",
2439
+ httpMethod: "GET",
2440
+ responses: {
2441
+ 200: {
2442
+ bodyMapper: OperationListResult
2443
+ },
2444
+ default: {
2445
+ bodyMapper: CloudError
2446
+ }
2447
+ },
2448
+ queryParameters: [apiVersion],
2449
+ urlParameters: [$host],
2450
+ headerParameters: [accept],
2451
+ serializer
2452
+ };
2453
+ const listNextOperationSpec = {
2454
+ path: "{nextLink}",
2455
+ httpMethod: "GET",
2456
+ responses: {
2457
+ 200: {
2458
+ bodyMapper: OperationListResult
2459
+ },
2460
+ default: {
2461
+ bodyMapper: CloudError
2462
+ }
2463
+ },
2464
+ queryParameters: [apiVersion],
2465
+ urlParameters: [$host, nextLink],
2466
+ headerParameters: [accept],
2467
+ serializer
2468
+ };
2469
+
2470
+ /*
2471
+ * Copyright (c) Microsoft Corporation.
2472
+ * Licensed under the MIT License.
2473
+ *
2474
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2475
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2476
+ */
2477
+ class LroImpl {
2478
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
2479
+ this.sendOperationFn = sendOperationFn;
2480
+ this.args = args;
2481
+ this.spec = spec;
2482
+ this.requestPath = requestPath;
2483
+ this.requestMethod = requestMethod;
2484
+ }
2485
+ sendInitialRequest() {
2486
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2487
+ return this.sendOperationFn(this.args, this.spec);
2488
+ });
2489
+ }
2490
+ sendPollRequest(path) {
2491
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2492
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
2493
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
2494
+ });
2495
+ }
2496
+ }
2497
+
2498
+ /*
2499
+ * Copyright (c) Microsoft Corporation.
2500
+ * Licensed under the MIT License.
2501
+ *
2502
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2503
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2504
+ */
2505
+ /** Class containing Environments operations. */
2506
+ class EnvironmentsImpl {
2507
+ /**
2508
+ * Initialize a new instance of the class Environments class.
2509
+ * @param client Reference to the service client
2510
+ */
2511
+ constructor(client) {
2512
+ this.client = client;
2513
+ }
2514
+ /**
2515
+ * Create or update an environment in the specified subscription and resource group.
2516
+ * @param resourceGroupName Name of an Azure Resource group.
2517
+ * @param environmentName Name of the environment
2518
+ * @param parameters Parameters for creating an environment resource.
2519
+ * @param options The options parameters.
2520
+ */
2521
+ beginCreateOrUpdate(resourceGroupName, environmentName, parameters, options) {
2522
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2523
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2524
+ return this.client.sendOperationRequest(args, spec);
2525
+ });
2526
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2527
+ var _a;
2528
+ let currentRawResponse = undefined;
2529
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2530
+ const callback = (rawResponse, flatResponse) => {
2531
+ currentRawResponse = rawResponse;
2532
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2533
+ };
2534
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2535
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2536
+ return {
2537
+ flatResponse,
2538
+ rawResponse: {
2539
+ statusCode: currentRawResponse.status,
2540
+ body: currentRawResponse.parsedBody,
2541
+ headers: currentRawResponse.headers.toJSON()
2542
+ }
2543
+ };
2544
+ });
2545
+ const lro = new LroImpl(sendOperation, { resourceGroupName, environmentName, parameters, options }, createOrUpdateOperationSpec);
2546
+ return new coreLro.LroEngine(lro, {
2547
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2548
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2549
+ });
2550
+ });
2551
+ }
2552
+ /**
2553
+ * Create or update an environment in the specified subscription and resource group.
2554
+ * @param resourceGroupName Name of an Azure Resource group.
2555
+ * @param environmentName Name of the environment
2556
+ * @param parameters Parameters for creating an environment resource.
2557
+ * @param options The options parameters.
2558
+ */
2559
+ beginCreateOrUpdateAndWait(resourceGroupName, environmentName, parameters, options) {
2560
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2561
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, environmentName, parameters, options);
2562
+ return poller.pollUntilDone();
2563
+ });
2564
+ }
2565
+ /**
2566
+ * Gets the environment with the specified name in the specified subscription and resource group.
2567
+ * @param resourceGroupName Name of an Azure Resource group.
2568
+ * @param environmentName The name of the Time Series Insights environment associated with the
2569
+ * specified resource group.
2570
+ * @param options The options parameters.
2571
+ */
2572
+ get(resourceGroupName, environmentName, options) {
2573
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, getOperationSpec);
2574
+ }
2575
+ /**
2576
+ * Updates the environment with the specified name in the specified subscription and resource group.
2577
+ * @param resourceGroupName Name of an Azure Resource group.
2578
+ * @param environmentName The name of the Time Series Insights environment associated with the
2579
+ * specified resource group.
2580
+ * @param environmentUpdateParameters Request object that contains the updated information for the
2581
+ * environment.
2582
+ * @param options The options parameters.
2583
+ */
2584
+ beginUpdate(resourceGroupName, environmentName, environmentUpdateParameters, options) {
2585
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2586
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2587
+ return this.client.sendOperationRequest(args, spec);
2588
+ });
2589
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2590
+ var _a;
2591
+ let currentRawResponse = undefined;
2592
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2593
+ const callback = (rawResponse, flatResponse) => {
2594
+ currentRawResponse = rawResponse;
2595
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2596
+ };
2597
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2598
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2599
+ return {
2600
+ flatResponse,
2601
+ rawResponse: {
2602
+ statusCode: currentRawResponse.status,
2603
+ body: currentRawResponse.parsedBody,
2604
+ headers: currentRawResponse.headers.toJSON()
2605
+ }
2606
+ };
2607
+ });
2608
+ const lro = new LroImpl(sendOperation, {
2609
+ resourceGroupName,
2610
+ environmentName,
2611
+ environmentUpdateParameters,
2612
+ options
2613
+ }, updateOperationSpec);
2614
+ return new coreLro.LroEngine(lro, {
2615
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2616
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2617
+ });
2618
+ });
2619
+ }
2620
+ /**
2621
+ * Updates the environment with the specified name in the specified subscription and resource group.
2622
+ * @param resourceGroupName Name of an Azure Resource group.
2623
+ * @param environmentName The name of the Time Series Insights environment associated with the
2624
+ * specified resource group.
2625
+ * @param environmentUpdateParameters Request object that contains the updated information for the
2626
+ * environment.
2627
+ * @param options The options parameters.
2628
+ */
2629
+ beginUpdateAndWait(resourceGroupName, environmentName, environmentUpdateParameters, options) {
2630
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2631
+ const poller = yield this.beginUpdate(resourceGroupName, environmentName, environmentUpdateParameters, options);
2632
+ return poller.pollUntilDone();
2633
+ });
2634
+ }
2635
+ /**
2636
+ * Deletes the environment with the specified name in the specified subscription and resource group.
2637
+ * @param resourceGroupName Name of an Azure Resource group.
2638
+ * @param environmentName The name of the Time Series Insights environment associated with the
2639
+ * specified resource group.
2640
+ * @param options The options parameters.
2641
+ */
2642
+ delete(resourceGroupName, environmentName, options) {
2643
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, deleteOperationSpec);
2644
+ }
2645
+ /**
2646
+ * Lists all the available environments associated with the subscription and within the specified
2647
+ * resource group.
2648
+ * @param resourceGroupName Name of an Azure Resource group.
2649
+ * @param options The options parameters.
2650
+ */
2651
+ listByResourceGroup(resourceGroupName, options) {
2652
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2653
+ }
2654
+ /**
2655
+ * Lists all the available environments within a subscription, irrespective of the resource groups.
2656
+ * @param options The options parameters.
2657
+ */
2658
+ listBySubscription(options) {
2659
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
2660
+ }
2661
+ }
2662
+ // Operation Specifications
2663
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
2664
+ const createOrUpdateOperationSpec = {
2665
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
2666
+ httpMethod: "PUT",
2667
+ responses: {
2668
+ 200: {
2669
+ bodyMapper: EnvironmentResource
2670
+ },
2671
+ 201: {
2672
+ bodyMapper: EnvironmentResource
2673
+ },
2674
+ 202: {
2675
+ bodyMapper: EnvironmentResource
2676
+ },
2677
+ 204: {
2678
+ bodyMapper: EnvironmentResource
2679
+ },
2680
+ default: {
2681
+ bodyMapper: CloudError
2682
+ }
2683
+ },
2684
+ requestBody: parameters,
2685
+ queryParameters: [apiVersion],
2686
+ urlParameters: [
2687
+ $host,
2688
+ subscriptionId,
2689
+ resourceGroupName,
2690
+ environmentName
2691
+ ],
2692
+ headerParameters: [accept, contentType],
2693
+ mediaType: "json",
2694
+ serializer: serializer$1
2695
+ };
2696
+ const getOperationSpec = {
2697
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
2698
+ httpMethod: "GET",
2699
+ responses: {
2700
+ 200: {
2701
+ bodyMapper: EnvironmentResource
2702
+ },
2703
+ default: {
2704
+ bodyMapper: CloudError
2705
+ }
2706
+ },
2707
+ queryParameters: [apiVersion, expand],
2708
+ urlParameters: [
2709
+ $host,
2710
+ subscriptionId,
2711
+ resourceGroupName,
2712
+ environmentName1
2713
+ ],
2714
+ headerParameters: [accept],
2715
+ serializer: serializer$1
2716
+ };
2717
+ const updateOperationSpec = {
2718
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
2719
+ httpMethod: "PATCH",
2720
+ responses: {
2721
+ 200: {
2722
+ bodyMapper: EnvironmentResource
2723
+ },
2724
+ 201: {
2725
+ bodyMapper: EnvironmentResource
2726
+ },
2727
+ 202: {
2728
+ bodyMapper: EnvironmentResource
2729
+ },
2730
+ 204: {
2731
+ bodyMapper: EnvironmentResource
2732
+ },
2733
+ default: {
2734
+ bodyMapper: CloudError
2735
+ }
2736
+ },
2737
+ requestBody: environmentUpdateParameters,
2738
+ queryParameters: [apiVersion],
2739
+ urlParameters: [
2740
+ $host,
2741
+ subscriptionId,
2742
+ resourceGroupName,
2743
+ environmentName1
2744
+ ],
2745
+ headerParameters: [accept, contentType],
2746
+ mediaType: "json",
2747
+ serializer: serializer$1
2748
+ };
2749
+ const deleteOperationSpec = {
2750
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}",
2751
+ httpMethod: "DELETE",
2752
+ responses: {
2753
+ 200: {},
2754
+ 204: {},
2755
+ default: {
2756
+ bodyMapper: CloudError
2757
+ }
2758
+ },
2759
+ queryParameters: [apiVersion],
2760
+ urlParameters: [
2761
+ $host,
2762
+ subscriptionId,
2763
+ resourceGroupName,
2764
+ environmentName1
2765
+ ],
2766
+ headerParameters: [accept],
2767
+ serializer: serializer$1
2768
+ };
2769
+ const listByResourceGroupOperationSpec = {
2770
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments",
2771
+ httpMethod: "GET",
2772
+ responses: {
2773
+ 200: {
2774
+ bodyMapper: EnvironmentListResponse
2775
+ },
2776
+ default: {
2777
+ bodyMapper: CloudError
2778
+ }
2779
+ },
2780
+ queryParameters: [apiVersion],
2781
+ urlParameters: [
2782
+ $host,
2783
+ subscriptionId,
2784
+ resourceGroupName
2785
+ ],
2786
+ headerParameters: [accept],
2787
+ serializer: serializer$1
2788
+ };
2789
+ const listBySubscriptionOperationSpec = {
2790
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.TimeSeriesInsights/environments",
2791
+ httpMethod: "GET",
2792
+ responses: {
2793
+ 200: {
2794
+ bodyMapper: EnvironmentListResponse
2795
+ },
2796
+ default: {
2797
+ bodyMapper: CloudError
2798
+ }
2799
+ },
2800
+ queryParameters: [apiVersion],
2801
+ urlParameters: [$host, subscriptionId],
2802
+ headerParameters: [accept],
2803
+ serializer: serializer$1
2804
+ };
2805
+
2806
+ /*
2807
+ * Copyright (c) Microsoft Corporation.
2808
+ * Licensed under the MIT License.
2809
+ *
2810
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2811
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2812
+ */
2813
+ /** Class containing EventSources operations. */
2814
+ class EventSourcesImpl {
2815
+ /**
2816
+ * Initialize a new instance of the class EventSources class.
2817
+ * @param client Reference to the service client
2818
+ */
2819
+ constructor(client) {
2820
+ this.client = client;
2821
+ }
2822
+ /**
2823
+ * Create or update an event source under the specified environment.
2824
+ * @param resourceGroupName Name of an Azure Resource group.
2825
+ * @param environmentName The name of the Time Series Insights environment associated with the
2826
+ * specified resource group.
2827
+ * @param eventSourceName Name of the event source.
2828
+ * @param parameters Parameters for creating an event source resource.
2829
+ * @param options The options parameters.
2830
+ */
2831
+ createOrUpdate(resourceGroupName, environmentName, eventSourceName, parameters, options) {
2832
+ return this.client.sendOperationRequest({
2833
+ resourceGroupName,
2834
+ environmentName,
2835
+ eventSourceName,
2836
+ parameters,
2837
+ options
2838
+ }, createOrUpdateOperationSpec$1);
2839
+ }
2840
+ /**
2841
+ * Gets the event source with the specified name in the specified environment.
2842
+ * @param resourceGroupName Name of an Azure Resource group.
2843
+ * @param environmentName The name of the Time Series Insights environment associated with the
2844
+ * specified resource group.
2845
+ * @param eventSourceName The name of the Time Series Insights event source associated with the
2846
+ * specified environment.
2847
+ * @param options The options parameters.
2848
+ */
2849
+ get(resourceGroupName, environmentName, eventSourceName, options) {
2850
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, eventSourceName, options }, getOperationSpec$1);
2851
+ }
2852
+ /**
2853
+ * Updates the event source with the specified name in the specified subscription, resource group, and
2854
+ * environment.
2855
+ * @param resourceGroupName Name of an Azure Resource group.
2856
+ * @param environmentName The name of the Time Series Insights environment associated with the
2857
+ * specified resource group.
2858
+ * @param eventSourceName The name of the Time Series Insights event source associated with the
2859
+ * specified environment.
2860
+ * @param eventSourceUpdateParameters Request object that contains the updated information for the
2861
+ * event source.
2862
+ * @param options The options parameters.
2863
+ */
2864
+ update(resourceGroupName, environmentName, eventSourceName, eventSourceUpdateParameters, options) {
2865
+ return this.client.sendOperationRequest({
2866
+ resourceGroupName,
2867
+ environmentName,
2868
+ eventSourceName,
2869
+ eventSourceUpdateParameters,
2870
+ options
2871
+ }, updateOperationSpec$1);
2872
+ }
2873
+ /**
2874
+ * Deletes the event source with the specified name in the specified subscription, resource group, and
2875
+ * environment
2876
+ * @param resourceGroupName Name of an Azure Resource group.
2877
+ * @param environmentName The name of the Time Series Insights environment associated with the
2878
+ * specified resource group.
2879
+ * @param eventSourceName The name of the Time Series Insights event source associated with the
2880
+ * specified environment.
2881
+ * @param options The options parameters.
2882
+ */
2883
+ delete(resourceGroupName, environmentName, eventSourceName, options) {
2884
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, eventSourceName, options }, deleteOperationSpec$1);
2885
+ }
2886
+ /**
2887
+ * Lists all the available event sources associated with the subscription and within the specified
2888
+ * resource group and environment.
2889
+ * @param resourceGroupName Name of an Azure Resource group.
2890
+ * @param environmentName The name of the Time Series Insights environment associated with the
2891
+ * specified resource group.
2892
+ * @param options The options parameters.
2893
+ */
2894
+ listByEnvironment(resourceGroupName, environmentName, options) {
2895
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec);
2896
+ }
2897
+ }
2898
+ // Operation Specifications
2899
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
2900
+ const createOrUpdateOperationSpec$1 = {
2901
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}",
2902
+ httpMethod: "PUT",
2903
+ responses: {
2904
+ 200: {
2905
+ bodyMapper: EventSourceResource
2906
+ },
2907
+ 201: {
2908
+ bodyMapper: EventSourceResource
2909
+ },
2910
+ default: {
2911
+ bodyMapper: CloudError
2912
+ }
2913
+ },
2914
+ requestBody: parameters1,
2915
+ queryParameters: [apiVersion],
2916
+ urlParameters: [
2917
+ $host,
2918
+ subscriptionId,
2919
+ resourceGroupName,
2920
+ environmentName1,
2921
+ eventSourceName
2922
+ ],
2923
+ headerParameters: [accept, contentType],
2924
+ mediaType: "json",
2925
+ serializer: serializer$2
2926
+ };
2927
+ const getOperationSpec$1 = {
2928
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}",
2929
+ httpMethod: "GET",
2930
+ responses: {
2931
+ 200: {
2932
+ bodyMapper: EventSourceResource
2933
+ },
2934
+ default: {
2935
+ bodyMapper: CloudError
2936
+ }
2937
+ },
2938
+ queryParameters: [apiVersion],
2939
+ urlParameters: [
2940
+ $host,
2941
+ subscriptionId,
2942
+ resourceGroupName,
2943
+ environmentName1,
2944
+ eventSourceName1
2945
+ ],
2946
+ headerParameters: [accept],
2947
+ serializer: serializer$2
2948
+ };
2949
+ const updateOperationSpec$1 = {
2950
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}",
2951
+ httpMethod: "PATCH",
2952
+ responses: {
2953
+ 200: {
2954
+ bodyMapper: EventSourceResource
2955
+ },
2956
+ default: {
2957
+ bodyMapper: CloudError
2958
+ }
2959
+ },
2960
+ requestBody: eventSourceUpdateParameters,
2961
+ queryParameters: [apiVersion],
2962
+ urlParameters: [
2963
+ $host,
2964
+ subscriptionId,
2965
+ resourceGroupName,
2966
+ environmentName1,
2967
+ eventSourceName1
2968
+ ],
2969
+ headerParameters: [accept, contentType],
2970
+ mediaType: "json",
2971
+ serializer: serializer$2
2972
+ };
2973
+ const deleteOperationSpec$1 = {
2974
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}",
2975
+ httpMethod: "DELETE",
2976
+ responses: {
2977
+ 200: {},
2978
+ 204: {},
2979
+ default: {
2980
+ bodyMapper: CloudError
2981
+ }
2982
+ },
2983
+ queryParameters: [apiVersion],
2984
+ urlParameters: [
2985
+ $host,
2986
+ subscriptionId,
2987
+ resourceGroupName,
2988
+ environmentName1,
2989
+ eventSourceName1
2990
+ ],
2991
+ headerParameters: [accept],
2992
+ serializer: serializer$2
2993
+ };
2994
+ const listByEnvironmentOperationSpec = {
2995
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources",
2996
+ httpMethod: "GET",
2997
+ responses: {
2998
+ 200: {
2999
+ bodyMapper: EventSourceListResponse
3000
+ },
3001
+ default: {
3002
+ bodyMapper: CloudError
3003
+ }
3004
+ },
3005
+ queryParameters: [apiVersion],
3006
+ urlParameters: [
3007
+ $host,
3008
+ subscriptionId,
3009
+ resourceGroupName,
3010
+ environmentName1
3011
+ ],
3012
+ headerParameters: [accept],
3013
+ serializer: serializer$2
3014
+ };
3015
+
3016
+ /*
3017
+ * Copyright (c) Microsoft Corporation.
3018
+ * Licensed under the MIT License.
3019
+ *
3020
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3021
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3022
+ */
3023
+ /** Class containing ReferenceDataSets operations. */
3024
+ class ReferenceDataSetsImpl {
3025
+ /**
3026
+ * Initialize a new instance of the class ReferenceDataSets class.
3027
+ * @param client Reference to the service client
3028
+ */
3029
+ constructor(client) {
3030
+ this.client = client;
3031
+ }
3032
+ /**
3033
+ * Create or update a reference data set in the specified environment.
3034
+ * @param resourceGroupName Name of an Azure Resource group.
3035
+ * @param environmentName The name of the Time Series Insights environment associated with the
3036
+ * specified resource group.
3037
+ * @param referenceDataSetName Name of the reference data set.
3038
+ * @param parameters Parameters for creating a reference data set.
3039
+ * @param options The options parameters.
3040
+ */
3041
+ createOrUpdate(resourceGroupName, environmentName, referenceDataSetName, parameters, options) {
3042
+ return this.client.sendOperationRequest({
3043
+ resourceGroupName,
3044
+ environmentName,
3045
+ referenceDataSetName,
3046
+ parameters,
3047
+ options
3048
+ }, createOrUpdateOperationSpec$2);
3049
+ }
3050
+ /**
3051
+ * Gets the reference data set with the specified name in the specified environment.
3052
+ * @param resourceGroupName Name of an Azure Resource group.
3053
+ * @param environmentName The name of the Time Series Insights environment associated with the
3054
+ * specified resource group.
3055
+ * @param referenceDataSetName The name of the Time Series Insights reference data set associated with
3056
+ * the specified environment.
3057
+ * @param options The options parameters.
3058
+ */
3059
+ get(resourceGroupName, environmentName, referenceDataSetName, options) {
3060
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, referenceDataSetName, options }, getOperationSpec$2);
3061
+ }
3062
+ /**
3063
+ * Updates the reference data set with the specified name in the specified subscription, resource
3064
+ * group, and environment.
3065
+ * @param resourceGroupName Name of an Azure Resource group.
3066
+ * @param environmentName The name of the Time Series Insights environment associated with the
3067
+ * specified resource group.
3068
+ * @param referenceDataSetName The name of the Time Series Insights reference data set associated with
3069
+ * the specified environment.
3070
+ * @param referenceDataSetUpdateParameters Request object that contains the updated information for the
3071
+ * reference data set.
3072
+ * @param options The options parameters.
3073
+ */
3074
+ update(resourceGroupName, environmentName, referenceDataSetName, referenceDataSetUpdateParameters, options) {
3075
+ return this.client.sendOperationRequest({
3076
+ resourceGroupName,
3077
+ environmentName,
3078
+ referenceDataSetName,
3079
+ referenceDataSetUpdateParameters,
3080
+ options
3081
+ }, updateOperationSpec$2);
3082
+ }
3083
+ /**
3084
+ * Deletes the reference data set with the specified name in the specified subscription, resource
3085
+ * group, and environment
3086
+ * @param resourceGroupName Name of an Azure Resource group.
3087
+ * @param environmentName The name of the Time Series Insights environment associated with the
3088
+ * specified resource group.
3089
+ * @param referenceDataSetName The name of the Time Series Insights reference data set associated with
3090
+ * the specified environment.
3091
+ * @param options The options parameters.
3092
+ */
3093
+ delete(resourceGroupName, environmentName, referenceDataSetName, options) {
3094
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, referenceDataSetName, options }, deleteOperationSpec$2);
3095
+ }
3096
+ /**
3097
+ * Lists all the available reference data sets associated with the subscription and within the
3098
+ * specified resource group and environment.
3099
+ * @param resourceGroupName Name of an Azure Resource group.
3100
+ * @param environmentName The name of the Time Series Insights environment associated with the
3101
+ * specified resource group.
3102
+ * @param options The options parameters.
3103
+ */
3104
+ listByEnvironment(resourceGroupName, environmentName, options) {
3105
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec$1);
3106
+ }
3107
+ }
3108
+ // Operation Specifications
3109
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
3110
+ const createOrUpdateOperationSpec$2 = {
3111
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}",
3112
+ httpMethod: "PUT",
3113
+ responses: {
3114
+ 200: {
3115
+ bodyMapper: ReferenceDataSetResource
3116
+ },
3117
+ 201: {
3118
+ bodyMapper: ReferenceDataSetResource
3119
+ },
3120
+ default: {
3121
+ bodyMapper: CloudError
3122
+ }
3123
+ },
3124
+ requestBody: parameters2,
3125
+ queryParameters: [apiVersion],
3126
+ urlParameters: [
3127
+ $host,
3128
+ subscriptionId,
3129
+ resourceGroupName,
3130
+ environmentName1,
3131
+ referenceDataSetName
3132
+ ],
3133
+ headerParameters: [accept, contentType],
3134
+ mediaType: "json",
3135
+ serializer: serializer$3
3136
+ };
3137
+ const getOperationSpec$2 = {
3138
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}",
3139
+ httpMethod: "GET",
3140
+ responses: {
3141
+ 200: {
3142
+ bodyMapper: ReferenceDataSetResource
3143
+ },
3144
+ default: {
3145
+ bodyMapper: CloudError
3146
+ }
3147
+ },
3148
+ queryParameters: [apiVersion],
3149
+ urlParameters: [
3150
+ $host,
3151
+ subscriptionId,
3152
+ resourceGroupName,
3153
+ environmentName1,
3154
+ referenceDataSetName1
3155
+ ],
3156
+ headerParameters: [accept],
3157
+ serializer: serializer$3
3158
+ };
3159
+ const updateOperationSpec$2 = {
3160
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}",
3161
+ httpMethod: "PATCH",
3162
+ responses: {
3163
+ 200: {
3164
+ bodyMapper: ReferenceDataSetResource
3165
+ },
3166
+ default: {
3167
+ bodyMapper: CloudError
3168
+ }
3169
+ },
3170
+ requestBody: referenceDataSetUpdateParameters,
3171
+ queryParameters: [apiVersion],
3172
+ urlParameters: [
3173
+ $host,
3174
+ subscriptionId,
3175
+ resourceGroupName,
3176
+ environmentName1,
3177
+ referenceDataSetName1
3178
+ ],
3179
+ headerParameters: [accept, contentType],
3180
+ mediaType: "json",
3181
+ serializer: serializer$3
3182
+ };
3183
+ const deleteOperationSpec$2 = {
3184
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}",
3185
+ httpMethod: "DELETE",
3186
+ responses: {
3187
+ 200: {},
3188
+ 204: {},
3189
+ default: {
3190
+ bodyMapper: CloudError
3191
+ }
3192
+ },
3193
+ queryParameters: [apiVersion],
3194
+ urlParameters: [
3195
+ $host,
3196
+ subscriptionId,
3197
+ resourceGroupName,
3198
+ environmentName1,
3199
+ referenceDataSetName1
3200
+ ],
3201
+ headerParameters: [accept],
3202
+ serializer: serializer$3
3203
+ };
3204
+ const listByEnvironmentOperationSpec$1 = {
3205
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets",
3206
+ httpMethod: "GET",
3207
+ responses: {
3208
+ 200: {
3209
+ bodyMapper: ReferenceDataSetListResponse
3210
+ },
3211
+ default: {
3212
+ bodyMapper: CloudError
3213
+ }
3214
+ },
3215
+ queryParameters: [apiVersion],
3216
+ urlParameters: [
3217
+ $host,
3218
+ subscriptionId,
3219
+ resourceGroupName,
3220
+ environmentName1
3221
+ ],
3222
+ headerParameters: [accept],
3223
+ serializer: serializer$3
3224
+ };
3225
+
3226
+ /*
3227
+ * Copyright (c) Microsoft Corporation.
3228
+ * Licensed under the MIT License.
3229
+ *
3230
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3231
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3232
+ */
3233
+ /** Class containing AccessPolicies operations. */
3234
+ class AccessPoliciesImpl {
3235
+ /**
3236
+ * Initialize a new instance of the class AccessPolicies class.
3237
+ * @param client Reference to the service client
3238
+ */
3239
+ constructor(client) {
3240
+ this.client = client;
3241
+ }
3242
+ /**
3243
+ * Create or update an access policy in the specified environment.
3244
+ * @param resourceGroupName Name of an Azure Resource group.
3245
+ * @param environmentName The name of the Time Series Insights environment associated with the
3246
+ * specified resource group.
3247
+ * @param accessPolicyName Name of the access policy.
3248
+ * @param parameters Parameters for creating an access policy.
3249
+ * @param options The options parameters.
3250
+ */
3251
+ createOrUpdate(resourceGroupName, environmentName, accessPolicyName, parameters, options) {
3252
+ return this.client.sendOperationRequest({
3253
+ resourceGroupName,
3254
+ environmentName,
3255
+ accessPolicyName,
3256
+ parameters,
3257
+ options
3258
+ }, createOrUpdateOperationSpec$3);
3259
+ }
3260
+ /**
3261
+ * Gets the access policy with the specified name in the specified environment.
3262
+ * @param resourceGroupName Name of an Azure Resource group.
3263
+ * @param environmentName The name of the Time Series Insights environment associated with the
3264
+ * specified resource group.
3265
+ * @param accessPolicyName The name of the Time Series Insights access policy associated with the
3266
+ * specified environment.
3267
+ * @param options The options parameters.
3268
+ */
3269
+ get(resourceGroupName, environmentName, accessPolicyName, options) {
3270
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, accessPolicyName, options }, getOperationSpec$3);
3271
+ }
3272
+ /**
3273
+ * Updates the access policy with the specified name in the specified subscription, resource group, and
3274
+ * environment.
3275
+ * @param resourceGroupName Name of an Azure Resource group.
3276
+ * @param environmentName The name of the Time Series Insights environment associated with the
3277
+ * specified resource group.
3278
+ * @param accessPolicyName The name of the Time Series Insights access policy associated with the
3279
+ * specified environment.
3280
+ * @param accessPolicyUpdateParameters Request object that contains the updated information for the
3281
+ * access policy.
3282
+ * @param options The options parameters.
3283
+ */
3284
+ update(resourceGroupName, environmentName, accessPolicyName, accessPolicyUpdateParameters, options) {
3285
+ return this.client.sendOperationRequest({
3286
+ resourceGroupName,
3287
+ environmentName,
3288
+ accessPolicyName,
3289
+ accessPolicyUpdateParameters,
3290
+ options
3291
+ }, updateOperationSpec$3);
3292
+ }
3293
+ /**
3294
+ * Deletes the access policy with the specified name in the specified subscription, resource group, and
3295
+ * environment
3296
+ * @param resourceGroupName Name of an Azure Resource group.
3297
+ * @param environmentName The name of the Time Series Insights environment associated with the
3298
+ * specified resource group.
3299
+ * @param accessPolicyName The name of the Time Series Insights access policy associated with the
3300
+ * specified environment.
3301
+ * @param options The options parameters.
3302
+ */
3303
+ delete(resourceGroupName, environmentName, accessPolicyName, options) {
3304
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, accessPolicyName, options }, deleteOperationSpec$3);
3305
+ }
3306
+ /**
3307
+ * Lists all the available access policies associated with the environment.
3308
+ * @param resourceGroupName Name of an Azure Resource group.
3309
+ * @param environmentName The name of the Time Series Insights environment associated with the
3310
+ * specified resource group.
3311
+ * @param options The options parameters.
3312
+ */
3313
+ listByEnvironment(resourceGroupName, environmentName, options) {
3314
+ return this.client.sendOperationRequest({ resourceGroupName, environmentName, options }, listByEnvironmentOperationSpec$2);
3315
+ }
3316
+ }
3317
+ // Operation Specifications
3318
+ const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
3319
+ const createOrUpdateOperationSpec$3 = {
3320
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
3321
+ httpMethod: "PUT",
3322
+ responses: {
3323
+ 200: {
3324
+ bodyMapper: AccessPolicyResource
3325
+ },
3326
+ 201: {
3327
+ bodyMapper: AccessPolicyResource
3328
+ },
3329
+ default: {
3330
+ bodyMapper: CloudError
3331
+ }
3332
+ },
3333
+ requestBody: parameters3,
3334
+ queryParameters: [apiVersion],
3335
+ urlParameters: [
3336
+ $host,
3337
+ subscriptionId,
3338
+ resourceGroupName,
3339
+ environmentName1,
3340
+ accessPolicyName
3341
+ ],
3342
+ headerParameters: [accept, contentType],
3343
+ mediaType: "json",
3344
+ serializer: serializer$4
3345
+ };
3346
+ const getOperationSpec$3 = {
3347
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
3348
+ httpMethod: "GET",
3349
+ responses: {
3350
+ 200: {
3351
+ bodyMapper: AccessPolicyResource
3352
+ },
3353
+ default: {
3354
+ bodyMapper: CloudError
3355
+ }
3356
+ },
3357
+ queryParameters: [apiVersion],
3358
+ urlParameters: [
3359
+ $host,
3360
+ subscriptionId,
3361
+ resourceGroupName,
3362
+ environmentName1,
3363
+ accessPolicyName1
3364
+ ],
3365
+ headerParameters: [accept],
3366
+ serializer: serializer$4
3367
+ };
3368
+ const updateOperationSpec$3 = {
3369
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
3370
+ httpMethod: "PATCH",
3371
+ responses: {
3372
+ 200: {
3373
+ bodyMapper: AccessPolicyResource
3374
+ },
3375
+ default: {
3376
+ bodyMapper: CloudError
3377
+ }
3378
+ },
3379
+ requestBody: accessPolicyUpdateParameters,
3380
+ queryParameters: [apiVersion],
3381
+ urlParameters: [
3382
+ $host,
3383
+ subscriptionId,
3384
+ resourceGroupName,
3385
+ environmentName1,
3386
+ accessPolicyName1
3387
+ ],
3388
+ headerParameters: [accept, contentType],
3389
+ mediaType: "json",
3390
+ serializer: serializer$4
3391
+ };
3392
+ const deleteOperationSpec$3 = {
3393
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}",
3394
+ httpMethod: "DELETE",
3395
+ responses: {
3396
+ 200: {},
3397
+ 204: {},
3398
+ default: {
3399
+ bodyMapper: CloudError
3400
+ }
3401
+ },
3402
+ queryParameters: [apiVersion],
3403
+ urlParameters: [
3404
+ $host,
3405
+ subscriptionId,
3406
+ resourceGroupName,
3407
+ environmentName1,
3408
+ accessPolicyName1
3409
+ ],
3410
+ headerParameters: [accept],
3411
+ serializer: serializer$4
3412
+ };
3413
+ const listByEnvironmentOperationSpec$2 = {
3414
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies",
3415
+ httpMethod: "GET",
3416
+ responses: {
3417
+ 200: {
3418
+ bodyMapper: AccessPolicyListResponse
3419
+ },
3420
+ default: {
3421
+ bodyMapper: CloudError
3422
+ }
3423
+ },
3424
+ queryParameters: [apiVersion],
3425
+ urlParameters: [
3426
+ $host,
3427
+ subscriptionId,
3428
+ resourceGroupName,
3429
+ environmentName1
3430
+ ],
3431
+ headerParameters: [accept],
3432
+ serializer: serializer$4
3433
+ };
3434
+
3435
+ /*
3436
+ * Copyright (c) Microsoft Corporation.
3437
+ * Licensed under the MIT License.
3438
+ *
3439
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3440
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3441
+ */
3442
+ class TimeSeriesInsightsClient extends coreClient.ServiceClient {
3443
+ /**
3444
+ * Initializes a new instance of the TimeSeriesInsightsClient class.
3445
+ * @param credentials Subscription credentials which uniquely identify client subscription.
3446
+ * @param subscriptionId Azure Subscription ID.
3447
+ * @param options The parameter options
3448
+ */
3449
+ constructor(credentials, subscriptionId, options) {
3450
+ if (credentials === undefined) {
3451
+ throw new Error("'credentials' cannot be null");
3452
+ }
3453
+ if (subscriptionId === undefined) {
3454
+ throw new Error("'subscriptionId' cannot be null");
3455
+ }
3456
+ // Initializing default values for options
3457
+ if (!options) {
3458
+ options = {};
3459
+ }
3460
+ const defaults = {
3461
+ requestContentType: "application/json; charset=utf-8",
3462
+ credential: credentials
3463
+ };
3464
+ const packageDetails = `azsdk-js-arm-timeseriesinsights/2.0.0`;
3465
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3466
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3467
+ : `${packageDetails}`;
3468
+ if (!options.credentialScopes) {
3469
+ options.credentialScopes = ["https://management.azure.com/.default"];
3470
+ }
3471
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3472
+ userAgentPrefix
3473
+ }, baseUri: options.endpoint || "https://management.azure.com" });
3474
+ super(optionsWithDefaults);
3475
+ // Parameter assignments
3476
+ this.subscriptionId = subscriptionId;
3477
+ // Assigning values to Constant parameters
3478
+ this.$host = options.$host || "https://management.azure.com";
3479
+ this.apiVersion = options.apiVersion || "2020-05-15";
3480
+ this.operations = new OperationsImpl(this);
3481
+ this.environments = new EnvironmentsImpl(this);
3482
+ this.eventSources = new EventSourcesImpl(this);
3483
+ this.referenceDataSets = new ReferenceDataSetsImpl(this);
3484
+ this.accessPolicies = new AccessPoliciesImpl(this);
3485
+ }
3486
+ }
3487
+
3488
+ exports.TimeSeriesInsightsClient = TimeSeriesInsightsClient;
3489
+ //# sourceMappingURL=index.js.map