@azure/arm-operationalinsights 8.0.0-beta.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 (252) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +21 -0
  3. package/README.md +94 -0
  4. package/dist/index.js +5674 -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 +6 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +13 -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 +1418 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +157 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +64 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/dist-esm/src/models/mappers.js +2023 -0
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +40 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +351 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operationalInsightsManagementClient.d.ts +33 -0
  29. package/dist-esm/src/operationalInsightsManagementClient.d.ts.map +1 -0
  30. package/dist-esm/src/operationalInsightsManagementClient.js +40 -0
  31. package/dist-esm/src/operationalInsightsManagementClient.js.map +1 -0
  32. package/dist-esm/src/operationalInsightsManagementClientContext.d.ts +15 -0
  33. package/dist-esm/src/operationalInsightsManagementClientContext.d.ts.map +1 -0
  34. package/dist-esm/src/operationalInsightsManagementClientContext.js +48 -0
  35. package/dist-esm/src/operationalInsightsManagementClientContext.js.map +1 -0
  36. package/dist-esm/src/operations/availableServiceTiers.d.ts +20 -0
  37. package/dist-esm/src/operations/availableServiceTiers.d.ts.map +1 -0
  38. package/dist-esm/src/operations/availableServiceTiers.js +57 -0
  39. package/dist-esm/src/operations/availableServiceTiers.js.map +1 -0
  40. package/dist-esm/src/operations/clusters.d.ts +99 -0
  41. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  42. package/dist-esm/src/operations/clusters.js +450 -0
  43. package/dist-esm/src/operations/clusters.js.map +1 -0
  44. package/dist-esm/src/operations/dataExports.d.ts +55 -0
  45. package/dist-esm/src/operations/dataExports.d.ts.map +1 -0
  46. package/dist-esm/src/operations/dataExports.js +200 -0
  47. package/dist-esm/src/operations/dataExports.js.map +1 -0
  48. package/dist-esm/src/operations/dataSources.d.ts +66 -0
  49. package/dist-esm/src/operations/dataSources.d.ts.map +1 -0
  50. package/dist-esm/src/operations/dataSources.js +230 -0
  51. package/dist-esm/src/operations/dataSources.js.map +1 -0
  52. package/dist-esm/src/operations/deletedWorkspaces.d.ts +40 -0
  53. package/dist-esm/src/operations/deletedWorkspaces.d.ts.map +1 -0
  54. package/dist-esm/src/operations/deletedWorkspaces.js +161 -0
  55. package/dist-esm/src/operations/deletedWorkspaces.js.map +1 -0
  56. package/dist-esm/src/operations/gateways.d.ts +21 -0
  57. package/dist-esm/src/operations/gateways.d.ts.map +1 -0
  58. package/dist-esm/src/operations/gateways.js +47 -0
  59. package/dist-esm/src/operations/gateways.js.map +1 -0
  60. package/dist-esm/src/operations/index.d.ts +20 -0
  61. package/dist-esm/src/operations/index.d.ts.map +1 -0
  62. package/dist-esm/src/operations/index.js +27 -0
  63. package/dist-esm/src/operations/index.js.map +1 -0
  64. package/dist-esm/src/operations/intelligencePacks.d.ts +37 -0
  65. package/dist-esm/src/operations/intelligencePacks.d.ts.map +1 -0
  66. package/dist-esm/src/operations/intelligencePacks.js +106 -0
  67. package/dist-esm/src/operations/intelligencePacks.js.map +1 -0
  68. package/dist-esm/src/operations/linkedServices.d.ts +73 -0
  69. package/dist-esm/src/operations/linkedServices.d.ts.map +1 -0
  70. package/dist-esm/src/operations/linkedServices.js +295 -0
  71. package/dist-esm/src/operations/linkedServices.js.map +1 -0
  72. package/dist-esm/src/operations/linkedStorageAccounts.d.ts +60 -0
  73. package/dist-esm/src/operations/linkedStorageAccounts.d.ts.map +1 -0
  74. package/dist-esm/src/operations/linkedStorageAccounts.js +186 -0
  75. package/dist-esm/src/operations/linkedStorageAccounts.js.map +1 -0
  76. package/dist-esm/src/operations/managementGroups.d.ts +30 -0
  77. package/dist-esm/src/operations/managementGroups.d.ts.map +1 -0
  78. package/dist-esm/src/operations/managementGroups.js +96 -0
  79. package/dist-esm/src/operations/managementGroups.js.map +1 -0
  80. package/dist-esm/src/operations/operationStatuses.d.ts +20 -0
  81. package/dist-esm/src/operations/operationStatuses.d.ts.map +1 -0
  82. package/dist-esm/src/operations/operationStatuses.js +50 -0
  83. package/dist-esm/src/operations/operationStatuses.js.map +1 -0
  84. package/dist-esm/src/operations/operations.d.ts +32 -0
  85. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  86. package/dist-esm/src/operations/operations.js +120 -0
  87. package/dist-esm/src/operations/operations.js.map +1 -0
  88. package/dist-esm/src/operations/savedSearches.d.ts +45 -0
  89. package/dist-esm/src/operations/savedSearches.d.ts.map +1 -0
  90. package/dist-esm/src/operations/savedSearches.js +135 -0
  91. package/dist-esm/src/operations/savedSearches.js.map +1 -0
  92. package/dist-esm/src/operations/schema.d.ts +20 -0
  93. package/dist-esm/src/operations/schema.d.ts.map +1 -0
  94. package/dist-esm/src/operations/schema.js +50 -0
  95. package/dist-esm/src/operations/schema.js.map +1 -0
  96. package/dist-esm/src/operations/sharedKeysOperations.d.ts +28 -0
  97. package/dist-esm/src/operations/sharedKeysOperations.d.ts.map +1 -0
  98. package/dist-esm/src/operations/sharedKeysOperations.js +78 -0
  99. package/dist-esm/src/operations/sharedKeysOperations.js.map +1 -0
  100. package/dist-esm/src/operations/storageInsightConfigs.d.ts +63 -0
  101. package/dist-esm/src/operations/storageInsightConfigs.d.ts.map +1 -0
  102. package/dist-esm/src/operations/storageInsightConfigs.js +225 -0
  103. package/dist-esm/src/operations/storageInsightConfigs.js.map +1 -0
  104. package/dist-esm/src/operations/usages.d.ts +30 -0
  105. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  106. package/dist-esm/src/operations/usages.js +96 -0
  107. package/dist-esm/src/operations/usages.js.map +1 -0
  108. package/dist-esm/src/operations/workspacePurge.d.ts +36 -0
  109. package/dist-esm/src/operations/workspacePurge.d.ts.map +1 -0
  110. package/dist-esm/src/operations/workspacePurge.js +90 -0
  111. package/dist-esm/src/operations/workspacePurge.js.map +1 -0
  112. package/dist-esm/src/operations/workspaces.d.ts +90 -0
  113. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  114. package/dist-esm/src/operations/workspaces.js +384 -0
  115. package/dist-esm/src/operations/workspaces.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/availableServiceTiers.d.ts +12 -0
  117. package/dist-esm/src/operationsInterfaces/availableServiceTiers.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/availableServiceTiers.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/availableServiceTiers.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/clusters.d.ts +63 -0
  121. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/dataExports.d.ts +38 -0
  125. package/dist-esm/src/operationsInterfaces/dataExports.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/dataExports.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/dataExports.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/dataSources.d.ts +39 -0
  129. package/dist-esm/src/operationsInterfaces/dataSources.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/dataSources.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/dataSources.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/deletedWorkspaces.d.ts +17 -0
  133. package/dist-esm/src/operationsInterfaces/deletedWorkspaces.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/deletedWorkspaces.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/deletedWorkspaces.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/gateways.d.ts +13 -0
  137. package/dist-esm/src/operationsInterfaces/gateways.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/gateways.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/gateways.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/index.d.ts +20 -0
  141. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/index.js +27 -0
  143. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/intelligencePacks.d.ts +29 -0
  145. package/dist-esm/src/operationsInterfaces/intelligencePacks.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/intelligencePacks.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/intelligencePacks.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/linkedServices.d.ts +56 -0
  149. package/dist-esm/src/operationsInterfaces/linkedServices.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/linkedServices.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/linkedServices.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/linkedStorageAccounts.d.ts +42 -0
  153. package/dist-esm/src/operationsInterfaces/linkedStorageAccounts.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/linkedStorageAccounts.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/linkedStorageAccounts.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/managementGroups.d.ts +13 -0
  157. package/dist-esm/src/operationsInterfaces/managementGroups.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/managementGroups.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/managementGroups.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/operationStatuses.d.ts +12 -0
  161. package/dist-esm/src/operationsInterfaces/operationStatuses.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/operationStatuses.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/operationStatuses.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  165. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/savedSearches.d.ts +37 -0
  169. package/dist-esm/src/operationsInterfaces/savedSearches.d.ts.map +1 -0
  170. package/dist-esm/src/operationsInterfaces/savedSearches.js +9 -0
  171. package/dist-esm/src/operationsInterfaces/savedSearches.js.map +1 -0
  172. package/dist-esm/src/operationsInterfaces/schema.d.ts +12 -0
  173. package/dist-esm/src/operationsInterfaces/schema.d.ts.map +1 -0
  174. package/dist-esm/src/operationsInterfaces/schema.js +9 -0
  175. package/dist-esm/src/operationsInterfaces/schema.js.map +1 -0
  176. package/dist-esm/src/operationsInterfaces/sharedKeysOperations.d.ts +20 -0
  177. package/dist-esm/src/operationsInterfaces/sharedKeysOperations.d.ts.map +1 -0
  178. package/dist-esm/src/operationsInterfaces/sharedKeysOperations.js +9 -0
  179. package/dist-esm/src/operationsInterfaces/sharedKeysOperations.js.map +1 -0
  180. package/dist-esm/src/operationsInterfaces/storageInsightConfigs.d.ts +38 -0
  181. package/dist-esm/src/operationsInterfaces/storageInsightConfigs.d.ts.map +1 -0
  182. package/dist-esm/src/operationsInterfaces/storageInsightConfigs.js +9 -0
  183. package/dist-esm/src/operationsInterfaces/storageInsightConfigs.js.map +1 -0
  184. package/dist-esm/src/operationsInterfaces/usages.d.ts +13 -0
  185. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  186. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  187. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  188. package/dist-esm/src/operationsInterfaces/workspacePurge.d.ts +28 -0
  189. package/dist-esm/src/operationsInterfaces/workspacePurge.d.ts.map +1 -0
  190. package/dist-esm/src/operationsInterfaces/workspacePurge.js +9 -0
  191. package/dist-esm/src/operationsInterfaces/workspacePurge.js.map +1 -0
  192. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +67 -0
  193. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  195. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  196. package/dist-esm/test/sampleTest.d.ts +2 -0
  197. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  198. package/dist-esm/test/sampleTest.js +40 -0
  199. package/dist-esm/test/sampleTest.js.map +1 -0
  200. package/package.json +92 -0
  201. package/review/arm-operationalinsights.api.md +1349 -0
  202. package/rollup.config.js +188 -0
  203. package/src/index.ts +13 -0
  204. package/src/lroImpl.ts +34 -0
  205. package/src/models/index.ts +1622 -0
  206. package/src/models/mappers.ts +2183 -0
  207. package/src/models/parameters.ts +406 -0
  208. package/src/operationalInsightsManagementClient.ts +108 -0
  209. package/src/operationalInsightsManagementClientContext.ts +68 -0
  210. package/src/operations/availableServiceTiers.ts +76 -0
  211. package/src/operations/clusters.ts +591 -0
  212. package/src/operations/dataExports.ts +272 -0
  213. package/src/operations/dataSources.ts +328 -0
  214. package/src/operations/deletedWorkspaces.ts +180 -0
  215. package/src/operations/gateways.ts +64 -0
  216. package/src/operations/index.ts +27 -0
  217. package/src/operations/intelligencePacks.ts +147 -0
  218. package/src/operations/linkedServices.ts +430 -0
  219. package/src/operations/linkedStorageAccounts.ts +259 -0
  220. package/src/operations/managementGroups.ts +120 -0
  221. package/src/operations/operationStatuses.ts +69 -0
  222. package/src/operations/operations.ts +137 -0
  223. package/src/operations/savedSearches.ts +191 -0
  224. package/src/operations/schema.ts +66 -0
  225. package/src/operations/sharedKeysOperations.ts +108 -0
  226. package/src/operations/storageInsightConfigs.ts +313 -0
  227. package/src/operations/usages.ts +120 -0
  228. package/src/operations/workspacePurge.ts +123 -0
  229. package/src/operations/workspaces.ts +502 -0
  230. package/src/operationsInterfaces/availableServiceTiers.ts +27 -0
  231. package/src/operationsInterfaces/clusters.ts +121 -0
  232. package/src/operationsInterfaces/dataExports.ts +75 -0
  233. package/src/operationsInterfaces/dataSources.ts +77 -0
  234. package/src/operationsInterfaces/deletedWorkspaces.ts +35 -0
  235. package/src/operationsInterfaces/gateways.ts +26 -0
  236. package/src/operationsInterfaces/index.ts +27 -0
  237. package/src/operationsInterfaces/intelligencePacks.ts +56 -0
  238. package/src/operationsInterfaces/linkedServices.ts +115 -0
  239. package/src/operationsInterfaces/linkedStorageAccounts.ts +80 -0
  240. package/src/operationsInterfaces/managementGroups.ts +26 -0
  241. package/src/operationsInterfaces/operationStatuses.ts +27 -0
  242. package/src/operationsInterfaces/operations.ts +22 -0
  243. package/src/operationsInterfaces/savedSearches.ts +74 -0
  244. package/src/operationsInterfaces/schema.ts +24 -0
  245. package/src/operationsInterfaces/sharedKeysOperations.ts +41 -0
  246. package/src/operationsInterfaces/storageInsightConfigs.ts +75 -0
  247. package/src/operationsInterfaces/usages.ts +26 -0
  248. package/src/operationsInterfaces/workspacePurge.ts +52 -0
  249. package/src/operationsInterfaces/workspaces.ts +125 -0
  250. package/tsconfig.json +19 -0
  251. package/types/arm-operationalinsights.d.ts +2190 -0
  252. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing SharedKeysOperations operations. */
12
+ export class SharedKeysOperationsImpl {
13
+ /**
14
+ * Initialize a new instance of the class SharedKeysOperations class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Gets the shared keys for a workspace.
22
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
23
+ * @param workspaceName The name of the workspace.
24
+ * @param options The options parameters.
25
+ */
26
+ getSharedKeys(resourceGroupName, workspaceName, options) {
27
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getSharedKeysOperationSpec);
28
+ }
29
+ /**
30
+ * Regenerates the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft
31
+ * Operational Insights agents to the workspace.
32
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
+ * @param workspaceName The name of the workspace.
34
+ * @param options The options parameters.
35
+ */
36
+ regenerate(resourceGroupName, workspaceName, options) {
37
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, regenerateOperationSpec);
38
+ }
39
+ }
40
+ // Operation Specifications
41
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
42
+ const getSharedKeysOperationSpec = {
43
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/sharedKeys",
44
+ httpMethod: "POST",
45
+ responses: {
46
+ 200: {
47
+ bodyMapper: Mappers.SharedKeys
48
+ }
49
+ },
50
+ queryParameters: [Parameters.apiVersion],
51
+ urlParameters: [
52
+ Parameters.$host,
53
+ Parameters.subscriptionId,
54
+ Parameters.resourceGroupName,
55
+ Parameters.workspaceName
56
+ ],
57
+ headerParameters: [Parameters.accept],
58
+ serializer
59
+ };
60
+ const regenerateOperationSpec = {
61
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey",
62
+ httpMethod: "POST",
63
+ responses: {
64
+ 200: {
65
+ bodyMapper: Mappers.SharedKeys
66
+ }
67
+ },
68
+ queryParameters: [Parameters.apiVersion],
69
+ urlParameters: [
70
+ Parameters.$host,
71
+ Parameters.subscriptionId,
72
+ Parameters.resourceGroupName,
73
+ Parameters.workspaceName
74
+ ],
75
+ headerParameters: [Parameters.accept],
76
+ serializer
77
+ };
78
+ //# sourceMappingURL=sharedKeysOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sharedKeysOperations.js","sourceRoot":"","sources":["../../../src/operations/sharedKeysOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AASnD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAkD;QAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,aAAqB,EACrB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CACR,iBAAyB,EACzB,aAAqB,EACrB,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,kJAAkJ;IACpJ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EACF,2JAA2J;IAC7J,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { StorageInsightConfigs } from "../operationsInterfaces";
3
+ import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
4
+ import { StorageInsight, StorageInsightConfigsListByWorkspaceOptionalParams, StorageInsightConfigsCreateOrUpdateOptionalParams, StorageInsightConfigsCreateOrUpdateResponse, StorageInsightConfigsGetOptionalParams, StorageInsightConfigsGetResponse, StorageInsightConfigsDeleteOptionalParams } from "../models";
5
+ /** Class containing StorageInsightConfigs operations. */
6
+ export declare class StorageInsightConfigsImpl implements StorageInsightConfigs {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class StorageInsightConfigs class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: OperationalInsightsManagementClientContext);
13
+ /**
14
+ * Lists the storage insight instances within a workspace
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param workspaceName The name of the workspace.
17
+ * @param options The options parameters.
18
+ */
19
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: StorageInsightConfigsListByWorkspaceOptionalParams): PagedAsyncIterableIterator<StorageInsight>;
20
+ private listByWorkspacePagingPage;
21
+ private listByWorkspacePagingAll;
22
+ /**
23
+ * Create or update a storage insight.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param workspaceName The name of the workspace.
26
+ * @param storageInsightName Name of the storageInsightsConfigs resource
27
+ * @param parameters The parameters required to create or update a storage insight.
28
+ * @param options The options parameters.
29
+ */
30
+ createOrUpdate(resourceGroupName: string, workspaceName: string, storageInsightName: string, parameters: StorageInsight, options?: StorageInsightConfigsCreateOrUpdateOptionalParams): Promise<StorageInsightConfigsCreateOrUpdateResponse>;
31
+ /**
32
+ * Gets a storage insight instance.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param workspaceName The name of the workspace.
35
+ * @param storageInsightName Name of the storageInsightsConfigs resource
36
+ * @param options The options parameters.
37
+ */
38
+ get(resourceGroupName: string, workspaceName: string, storageInsightName: string, options?: StorageInsightConfigsGetOptionalParams): Promise<StorageInsightConfigsGetResponse>;
39
+ /**
40
+ * Deletes a storageInsightsConfigs resource
41
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
42
+ * @param workspaceName The name of the workspace.
43
+ * @param storageInsightName Name of the storageInsightsConfigs resource
44
+ * @param options The options parameters.
45
+ */
46
+ delete(resourceGroupName: string, workspaceName: string, storageInsightName: string, options?: StorageInsightConfigsDeleteOptionalParams): Promise<void>;
47
+ /**
48
+ * Lists the storage insight instances within a workspace
49
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
50
+ * @param workspaceName The name of the workspace.
51
+ * @param options The options parameters.
52
+ */
53
+ private _listByWorkspace;
54
+ /**
55
+ * ListByWorkspaceNext
56
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
57
+ * @param workspaceName The name of the workspace.
58
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
59
+ * @param options The options parameters.
60
+ */
61
+ private _listByWorkspaceNext;
62
+ }
63
+ //# sourceMappingURL=storageInsightConfigs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageInsightConfigs.d.ts","sourceRoot":"","sources":["../../../src/operations/storageInsightConfigs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAIhE,OAAO,EAAE,0CAA0C,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EACL,cAAc,EAEd,kDAAkD,EAClD,iDAAiD,EACjD,2CAA2C,EAC3C,sCAAsC,EACtC,gCAAgC,EAChC,yCAAyC,EAG1C,MAAM,WAAW,CAAC;AAGnB,yDAAyD;AACzD,qBAAa,yBAA0B,YAAW,qBAAqB;IACrE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;IAEpE;;;OAGG;gBACS,MAAM,EAAE,0CAA0C;IAI9D;;;;;OAKG;IACI,eAAe,CACpB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,0BAA0B,CAAC,cAAc,CAAC;YAuB9B,yBAAyB;YAwBzB,wBAAwB;IAcvC;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,cAAc,EAC1B,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC;IAavD;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAWxB;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;CAW7B"}
@@ -0,0 +1,225 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing StorageInsightConfigs operations. */
14
+ export class StorageInsightConfigsImpl {
15
+ /**
16
+ * Initialize a new instance of the class StorageInsightConfigs class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists the storage insight instances within a workspace
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param workspaceName The name of the workspace.
26
+ * @param options The options parameters.
27
+ */
28
+ listByWorkspace(resourceGroupName, workspaceName, options) {
29
+ const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options);
39
+ }
40
+ };
41
+ }
42
+ listByWorkspacePagingPage(resourceGroupName, workspaceName, options) {
43
+ return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
44
+ let result = yield __await(this._listByWorkspace(resourceGroupName, workspaceName, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.odataNextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
49
+ continuationToken = result.odataNextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
55
+ return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Create or update a storage insight.
74
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
75
+ * @param workspaceName The name of the workspace.
76
+ * @param storageInsightName Name of the storageInsightsConfigs resource
77
+ * @param parameters The parameters required to create or update a storage insight.
78
+ * @param options The options parameters.
79
+ */
80
+ createOrUpdate(resourceGroupName, workspaceName, storageInsightName, parameters, options) {
81
+ return this.client.sendOperationRequest({
82
+ resourceGroupName,
83
+ workspaceName,
84
+ storageInsightName,
85
+ parameters,
86
+ options
87
+ }, createOrUpdateOperationSpec);
88
+ }
89
+ /**
90
+ * Gets a storage insight instance.
91
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
92
+ * @param workspaceName The name of the workspace.
93
+ * @param storageInsightName Name of the storageInsightsConfigs resource
94
+ * @param options The options parameters.
95
+ */
96
+ get(resourceGroupName, workspaceName, storageInsightName, options) {
97
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, storageInsightName, options }, getOperationSpec);
98
+ }
99
+ /**
100
+ * Deletes a storageInsightsConfigs resource
101
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
102
+ * @param workspaceName The name of the workspace.
103
+ * @param storageInsightName Name of the storageInsightsConfigs resource
104
+ * @param options The options parameters.
105
+ */
106
+ delete(resourceGroupName, workspaceName, storageInsightName, options) {
107
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, storageInsightName, options }, deleteOperationSpec);
108
+ }
109
+ /**
110
+ * Lists the storage insight instances within a workspace
111
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
112
+ * @param workspaceName The name of the workspace.
113
+ * @param options The options parameters.
114
+ */
115
+ _listByWorkspace(resourceGroupName, workspaceName, options) {
116
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listByWorkspaceOperationSpec);
117
+ }
118
+ /**
119
+ * ListByWorkspaceNext
120
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
121
+ * @param workspaceName The name of the workspace.
122
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
123
+ * @param options The options parameters.
124
+ */
125
+ _listByWorkspaceNext(resourceGroupName, workspaceName, nextLink, options) {
126
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listByWorkspaceNextOperationSpec);
127
+ }
128
+ }
129
+ // Operation Specifications
130
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
131
+ const createOrUpdateOperationSpec = {
132
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}",
133
+ httpMethod: "PUT",
134
+ responses: {
135
+ 200: {
136
+ bodyMapper: Mappers.StorageInsight
137
+ },
138
+ 201: {
139
+ bodyMapper: Mappers.StorageInsight
140
+ }
141
+ },
142
+ requestBody: Parameters.parameters4,
143
+ queryParameters: [Parameters.apiVersion],
144
+ urlParameters: [
145
+ Parameters.$host,
146
+ Parameters.subscriptionId,
147
+ Parameters.resourceGroupName,
148
+ Parameters.workspaceName,
149
+ Parameters.storageInsightName
150
+ ],
151
+ headerParameters: [Parameters.accept, Parameters.contentType],
152
+ mediaType: "json",
153
+ serializer
154
+ };
155
+ const getOperationSpec = {
156
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}",
157
+ httpMethod: "GET",
158
+ responses: {
159
+ 200: {
160
+ bodyMapper: Mappers.StorageInsight
161
+ }
162
+ },
163
+ queryParameters: [Parameters.apiVersion],
164
+ urlParameters: [
165
+ Parameters.$host,
166
+ Parameters.subscriptionId,
167
+ Parameters.resourceGroupName,
168
+ Parameters.workspaceName,
169
+ Parameters.storageInsightName
170
+ ],
171
+ headerParameters: [Parameters.accept],
172
+ serializer
173
+ };
174
+ const deleteOperationSpec = {
175
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}",
176
+ httpMethod: "DELETE",
177
+ responses: { 200: {}, 204: {} },
178
+ queryParameters: [Parameters.apiVersion],
179
+ urlParameters: [
180
+ Parameters.$host,
181
+ Parameters.subscriptionId,
182
+ Parameters.resourceGroupName,
183
+ Parameters.workspaceName,
184
+ Parameters.storageInsightName
185
+ ],
186
+ serializer
187
+ };
188
+ const listByWorkspaceOperationSpec = {
189
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs",
190
+ httpMethod: "GET",
191
+ responses: {
192
+ 200: {
193
+ bodyMapper: Mappers.StorageInsightListResult
194
+ }
195
+ },
196
+ queryParameters: [Parameters.apiVersion],
197
+ urlParameters: [
198
+ Parameters.$host,
199
+ Parameters.subscriptionId,
200
+ Parameters.resourceGroupName,
201
+ Parameters.workspaceName
202
+ ],
203
+ headerParameters: [Parameters.accept],
204
+ serializer
205
+ };
206
+ const listByWorkspaceNextOperationSpec = {
207
+ path: "{nextLink}",
208
+ httpMethod: "GET",
209
+ responses: {
210
+ 200: {
211
+ bodyMapper: Mappers.StorageInsightListResult
212
+ }
213
+ },
214
+ queryParameters: [Parameters.apiVersion],
215
+ urlParameters: [
216
+ Parameters.$host,
217
+ Parameters.subscriptionId,
218
+ Parameters.resourceGroupName,
219
+ Parameters.workspaceName,
220
+ Parameters.nextLink
221
+ ],
222
+ headerParameters: [Parameters.accept],
223
+ serializer
224
+ };
225
+ //# sourceMappingURL=storageInsightConfigs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageInsightConfigs.js","sourceRoot":"","sources":["../../../src/operations/storageInsightConfigs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAkD;QAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA4D;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC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UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EACF,6JAA6J;IAC/J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Usages } from "../operationsInterfaces";
3
+ import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
4
+ import { UsageMetric, UsagesListOptionalParams } from "../models";
5
+ /** Class containing Usages operations. */
6
+ export declare class UsagesImpl implements Usages {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Usages class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: OperationalInsightsManagementClientContext);
13
+ /**
14
+ * Gets a list of usage metrics for a workspace.
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param workspaceName The name of the workspace.
17
+ * @param options The options parameters.
18
+ */
19
+ list(resourceGroupName: string, workspaceName: string, options?: UsagesListOptionalParams): PagedAsyncIterableIterator<UsageMetric>;
20
+ private listPagingPage;
21
+ private listPagingAll;
22
+ /**
23
+ * Gets a list of usage metrics for a workspace.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param workspaceName The name of the workspace.
26
+ * @param options The options parameters.
27
+ */
28
+ private _list;
29
+ }
30
+ //# sourceMappingURL=usages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usages.d.ts","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAIjD,OAAO,EAAE,0CAA0C,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EACL,WAAW,EACX,wBAAwB,EAEzB,MAAM,WAAW,CAAC;AAGnB,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;IAEpE;;;OAGG;gBACS,MAAM,EAAE,0CAA0C;IAI9D;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,WAAW,CAAC;YAe3B,cAAc;YASd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;CAUd"}
@@ -0,0 +1,96 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Usages operations. */
14
+ export class UsagesImpl {
15
+ /**
16
+ * Initialize a new instance of the class Usages class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets a list of usage metrics for a workspace.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param workspaceName The name of the workspace.
26
+ * @param options The options parameters.
27
+ */
28
+ list(resourceGroupName, workspaceName, options) {
29
+ const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listPagingPage(resourceGroupName, workspaceName, options);
39
+ }
40
+ };
41
+ }
42
+ listPagingPage(resourceGroupName, workspaceName, options) {
43
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
44
+ let result = yield __await(this._list(resourceGroupName, workspaceName, options));
45
+ yield yield __await(result.value || []);
46
+ });
47
+ }
48
+ listPagingAll(resourceGroupName, workspaceName, options) {
49
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
50
+ var e_1, _a;
51
+ try {
52
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
53
+ const page = _c.value;
54
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
55
+ }
56
+ }
57
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
58
+ finally {
59
+ try {
60
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
61
+ }
62
+ finally { if (e_1) throw e_1.error; }
63
+ }
64
+ });
65
+ }
66
+ /**
67
+ * Gets a list of usage metrics for a workspace.
68
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
69
+ * @param workspaceName The name of the workspace.
70
+ * @param options The options parameters.
71
+ */
72
+ _list(resourceGroupName, workspaceName, options) {
73
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec);
74
+ }
75
+ }
76
+ // Operation Specifications
77
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
78
+ const listOperationSpec = {
79
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/usages",
80
+ httpMethod: "GET",
81
+ responses: {
82
+ 200: {
83
+ bodyMapper: Mappers.WorkspaceListUsagesResult
84
+ }
85
+ },
86
+ queryParameters: [Parameters.apiVersion],
87
+ urlParameters: [
88
+ Parameters.$host,
89
+ Parameters.subscriptionId,
90
+ Parameters.resourceGroupName,
91
+ Parameters.workspaceName
92
+ ],
93
+ headerParameters: [Parameters.accept],
94
+ serializer
95
+ };
96
+ //# sourceMappingURL=usages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAkD;QAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAAkC;QAElC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,a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U,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { WorkspacePurge } from "../operationsInterfaces";
2
+ import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
3
+ import { WorkspacePurgeBody, WorkspacePurgePurgeOptionalParams, WorkspacePurgePurgeResponse, WorkspacePurgeGetPurgeStatusOptionalParams, WorkspacePurgeGetPurgeStatusResponse } from "../models";
4
+ /** Class containing WorkspacePurge operations. */
5
+ export declare class WorkspacePurgeImpl implements WorkspacePurge {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class WorkspacePurge class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: OperationalInsightsManagementClientContext);
12
+ /**
13
+ * Purges data in an Log Analytics workspace by a set of user-defined filters.
14
+ *
15
+ * In order to manage system resources, purge requests are throttled at 50 requests per hour. You
16
+ * should batch the execution of purge requests by sending a single command whose predicate includes
17
+ * all user identities that require purging. Use the in operator to specify multiple identities. You
18
+ * should run the query prior to using for a purge request to verify that the results are expected.
19
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
20
+ * @param workspaceName The name of the workspace.
21
+ * @param body Describes the body of a request to purge data in a single table of an Log Analytics
22
+ * Workspace
23
+ * @param options The options parameters.
24
+ */
25
+ purge(resourceGroupName: string, workspaceName: string, body: WorkspacePurgeBody, options?: WorkspacePurgePurgeOptionalParams): Promise<WorkspacePurgePurgeResponse>;
26
+ /**
27
+ * Gets status of an ongoing purge operation.
28
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
29
+ * @param workspaceName The name of the workspace.
30
+ * @param purgeId In a purge status request, this is the Id of the operation the status of which is
31
+ * returned.
32
+ * @param options The options parameters.
33
+ */
34
+ getPurgeStatus(resourceGroupName: string, workspaceName: string, purgeId: string, options?: WorkspacePurgeGetPurgeStatusOptionalParams): Promise<WorkspacePurgeGetPurgeStatusResponse>;
35
+ }
36
+ //# sourceMappingURL=workspacePurge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacePurge.d.ts","sourceRoot":"","sources":["../../../src/operations/workspacePurge.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,0CAA0C,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EACL,kBAAkB,EAClB,iCAAiC,EACjC,2BAA2B,EAC3B,0CAA0C,EAC1C,oCAAoC,EACrC,MAAM,WAAW,CAAC;AAEnB,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;IAEpE;;;OAGG;gBACS,MAAM,EAAE,0CAA0C;IAI9D;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;CAMjD"}
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing WorkspacePurge operations. */
12
+ export class WorkspacePurgeImpl {
13
+ /**
14
+ * Initialize a new instance of the class WorkspacePurge class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Purges data in an Log Analytics workspace by a set of user-defined filters.
22
+ *
23
+ * In order to manage system resources, purge requests are throttled at 50 requests per hour. You
24
+ * should batch the execution of purge requests by sending a single command whose predicate includes
25
+ * all user identities that require purging. Use the in operator to specify multiple identities. You
26
+ * should run the query prior to using for a purge request to verify that the results are expected.
27
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
28
+ * @param workspaceName The name of the workspace.
29
+ * @param body Describes the body of a request to purge data in a single table of an Log Analytics
30
+ * Workspace
31
+ * @param options The options parameters.
32
+ */
33
+ purge(resourceGroupName, workspaceName, body, options) {
34
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, body, options }, purgeOperationSpec);
35
+ }
36
+ /**
37
+ * Gets status of an ongoing purge operation.
38
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
+ * @param workspaceName The name of the workspace.
40
+ * @param purgeId In a purge status request, this is the Id of the operation the status of which is
41
+ * returned.
42
+ * @param options The options parameters.
43
+ */
44
+ getPurgeStatus(resourceGroupName, workspaceName, purgeId, options) {
45
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, purgeId, options }, getPurgeStatusOperationSpec);
46
+ }
47
+ }
48
+ // Operation Specifications
49
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
50
+ const purgeOperationSpec = {
51
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purge",
52
+ httpMethod: "POST",
53
+ responses: {
54
+ 202: {
55
+ bodyMapper: Mappers.WorkspacePurgeResponse,
56
+ headersMapper: Mappers.WorkspacePurgePurgeHeaders
57
+ }
58
+ },
59
+ requestBody: Parameters.body,
60
+ queryParameters: [Parameters.apiVersion],
61
+ urlParameters: [
62
+ Parameters.$host,
63
+ Parameters.subscriptionId,
64
+ Parameters.resourceGroupName,
65
+ Parameters.workspaceName
66
+ ],
67
+ headerParameters: [Parameters.accept, Parameters.contentType],
68
+ mediaType: "json",
69
+ serializer
70
+ };
71
+ const getPurgeStatusOperationSpec = {
72
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}",
73
+ httpMethod: "GET",
74
+ responses: {
75
+ 200: {
76
+ bodyMapper: Mappers.WorkspacePurgeStatusResponse
77
+ }
78
+ },
79
+ queryParameters: [Parameters.apiVersion],
80
+ urlParameters: [
81
+ Parameters.$host,
82
+ Parameters.subscriptionId,
83
+ Parameters.resourceGroupName,
84
+ Parameters.workspaceName,
85
+ Parameters.purgeId
86
+ ],
87
+ headerParameters: [Parameters.accept],
88
+ serializer
89
+ };
90
+ //# sourceMappingURL=workspacePurge.js.map