@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,41 @@
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
+
9
+ import {
10
+ SharedKeysGetSharedKeysOptionalParams,
11
+ SharedKeysGetSharedKeysResponse,
12
+ SharedKeysRegenerateOptionalParams,
13
+ SharedKeysRegenerateResponse
14
+ } from "../models";
15
+
16
+ /** Interface representing a SharedKeysOperations. */
17
+ export interface SharedKeysOperations {
18
+ /**
19
+ * Gets the shared keys for a workspace.
20
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
21
+ * @param workspaceName The name of the workspace.
22
+ * @param options The options parameters.
23
+ */
24
+ getSharedKeys(
25
+ resourceGroupName: string,
26
+ workspaceName: string,
27
+ options?: SharedKeysGetSharedKeysOptionalParams
28
+ ): Promise<SharedKeysGetSharedKeysResponse>;
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(
37
+ resourceGroupName: string,
38
+ workspaceName: string,
39
+ options?: SharedKeysRegenerateOptionalParams
40
+ ): Promise<SharedKeysRegenerateResponse>;
41
+ }
@@ -0,0 +1,75 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ StorageInsight,
12
+ StorageInsightConfigsListByWorkspaceOptionalParams,
13
+ StorageInsightConfigsCreateOrUpdateOptionalParams,
14
+ StorageInsightConfigsCreateOrUpdateResponse,
15
+ StorageInsightConfigsGetOptionalParams,
16
+ StorageInsightConfigsGetResponse,
17
+ StorageInsightConfigsDeleteOptionalParams
18
+ } from "../models";
19
+
20
+ /// <reference lib="esnext.asynciterable" />
21
+ /** Interface representing a StorageInsightConfigs. */
22
+ export interface StorageInsightConfigs {
23
+ /**
24
+ * Lists the storage insight instances within a workspace
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param workspaceName The name of the workspace.
27
+ * @param options The options parameters.
28
+ */
29
+ listByWorkspace(
30
+ resourceGroupName: string,
31
+ workspaceName: string,
32
+ options?: StorageInsightConfigsListByWorkspaceOptionalParams
33
+ ): PagedAsyncIterableIterator<StorageInsight>;
34
+ /**
35
+ * Create or update a storage insight.
36
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
37
+ * @param workspaceName The name of the workspace.
38
+ * @param storageInsightName Name of the storageInsightsConfigs resource
39
+ * @param parameters The parameters required to create or update a storage insight.
40
+ * @param options The options parameters.
41
+ */
42
+ createOrUpdate(
43
+ resourceGroupName: string,
44
+ workspaceName: string,
45
+ storageInsightName: string,
46
+ parameters: StorageInsight,
47
+ options?: StorageInsightConfigsCreateOrUpdateOptionalParams
48
+ ): Promise<StorageInsightConfigsCreateOrUpdateResponse>;
49
+ /**
50
+ * Gets a storage insight instance.
51
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
52
+ * @param workspaceName The name of the workspace.
53
+ * @param storageInsightName Name of the storageInsightsConfigs resource
54
+ * @param options The options parameters.
55
+ */
56
+ get(
57
+ resourceGroupName: string,
58
+ workspaceName: string,
59
+ storageInsightName: string,
60
+ options?: StorageInsightConfigsGetOptionalParams
61
+ ): Promise<StorageInsightConfigsGetResponse>;
62
+ /**
63
+ * Deletes a storageInsightsConfigs resource
64
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
+ * @param workspaceName The name of the workspace.
66
+ * @param storageInsightName Name of the storageInsightsConfigs resource
67
+ * @param options The options parameters.
68
+ */
69
+ delete(
70
+ resourceGroupName: string,
71
+ workspaceName: string,
72
+ storageInsightName: string,
73
+ options?: StorageInsightConfigsDeleteOptionalParams
74
+ ): Promise<void>;
75
+ }
@@ -0,0 +1,26 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { UsageMetric, UsagesListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Usages. */
14
+ export interface Usages {
15
+ /**
16
+ * Gets a list of usage metrics for a workspace.
17
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
18
+ * @param workspaceName The name of the workspace.
19
+ * @param options The options parameters.
20
+ */
21
+ list(
22
+ resourceGroupName: string,
23
+ workspaceName: string,
24
+ options?: UsagesListOptionalParams
25
+ ): PagedAsyncIterableIterator<UsageMetric>;
26
+ }
@@ -0,0 +1,52 @@
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
+
9
+ import {
10
+ WorkspacePurgeBody,
11
+ WorkspacePurgePurgeOptionalParams,
12
+ WorkspacePurgePurgeResponse,
13
+ WorkspacePurgeGetPurgeStatusOptionalParams,
14
+ WorkspacePurgeGetPurgeStatusResponse
15
+ } from "../models";
16
+
17
+ /** Interface representing a WorkspacePurge. */
18
+ export interface WorkspacePurge {
19
+ /**
20
+ * Purges data in an Log Analytics workspace by a set of user-defined filters.
21
+ *
22
+ * In order to manage system resources, purge requests are throttled at 50 requests per hour. You
23
+ * should batch the execution of purge requests by sending a single command whose predicate includes
24
+ * all user identities that require purging. Use the in operator to specify multiple identities. You
25
+ * should run the query prior to using for a purge request to verify that the results are expected.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param workspaceName The name of the workspace.
28
+ * @param body Describes the body of a request to purge data in a single table of an Log Analytics
29
+ * Workspace
30
+ * @param options The options parameters.
31
+ */
32
+ purge(
33
+ resourceGroupName: string,
34
+ workspaceName: string,
35
+ body: WorkspacePurgeBody,
36
+ options?: WorkspacePurgePurgeOptionalParams
37
+ ): Promise<WorkspacePurgePurgeResponse>;
38
+ /**
39
+ * Gets status of an ongoing purge operation.
40
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
+ * @param workspaceName The name of the workspace.
42
+ * @param purgeId In a purge status request, this is the Id of the operation the status of which is
43
+ * returned.
44
+ * @param options The options parameters.
45
+ */
46
+ getPurgeStatus(
47
+ resourceGroupName: string,
48
+ workspaceName: string,
49
+ purgeId: string,
50
+ options?: WorkspacePurgeGetPurgeStatusOptionalParams
51
+ ): Promise<WorkspacePurgeGetPurgeStatusResponse>;
52
+ }
@@ -0,0 +1,125 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ Workspace,
13
+ WorkspacesListOptionalParams,
14
+ WorkspacesListByResourceGroupOptionalParams,
15
+ WorkspacesCreateOrUpdateOptionalParams,
16
+ WorkspacesCreateOrUpdateResponse,
17
+ WorkspacesDeleteOptionalParams,
18
+ WorkspacesGetOptionalParams,
19
+ WorkspacesGetResponse,
20
+ WorkspacePatch,
21
+ WorkspacesUpdateOptionalParams,
22
+ WorkspacesUpdateResponse
23
+ } from "../models";
24
+
25
+ /// <reference lib="esnext.asynciterable" />
26
+ /** Interface representing a Workspaces. */
27
+ export interface Workspaces {
28
+ /**
29
+ * Gets the workspaces in a subscription.
30
+ * @param options The options parameters.
31
+ */
32
+ list(
33
+ options?: WorkspacesListOptionalParams
34
+ ): PagedAsyncIterableIterator<Workspace>;
35
+ /**
36
+ * Gets workspaces in a resource group.
37
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
38
+ * @param options The options parameters.
39
+ */
40
+ listByResourceGroup(
41
+ resourceGroupName: string,
42
+ options?: WorkspacesListByResourceGroupOptionalParams
43
+ ): PagedAsyncIterableIterator<Workspace>;
44
+ /**
45
+ * Create or update a workspace.
46
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
47
+ * @param workspaceName The name of the workspace.
48
+ * @param parameters The parameters required to create or update a workspace.
49
+ * @param options The options parameters.
50
+ */
51
+ beginCreateOrUpdate(
52
+ resourceGroupName: string,
53
+ workspaceName: string,
54
+ parameters: Workspace,
55
+ options?: WorkspacesCreateOrUpdateOptionalParams
56
+ ): Promise<
57
+ PollerLike<
58
+ PollOperationState<WorkspacesCreateOrUpdateResponse>,
59
+ WorkspacesCreateOrUpdateResponse
60
+ >
61
+ >;
62
+ /**
63
+ * Create or update a workspace.
64
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
+ * @param workspaceName The name of the workspace.
66
+ * @param parameters The parameters required to create or update a workspace.
67
+ * @param options The options parameters.
68
+ */
69
+ beginCreateOrUpdateAndWait(
70
+ resourceGroupName: string,
71
+ workspaceName: string,
72
+ parameters: Workspace,
73
+ options?: WorkspacesCreateOrUpdateOptionalParams
74
+ ): Promise<WorkspacesCreateOrUpdateResponse>;
75
+ /**
76
+ * Deletes a workspace resource. To recover the workspace, create it again with the same name, in the
77
+ * same subscription, resource group and location. The name is kept for 14 days and cannot be used for
78
+ * another workspace. To remove the workspace completely and release the name, use the force flag.
79
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
80
+ * @param workspaceName The name of the workspace.
81
+ * @param options The options parameters.
82
+ */
83
+ beginDelete(
84
+ resourceGroupName: string,
85
+ workspaceName: string,
86
+ options?: WorkspacesDeleteOptionalParams
87
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
88
+ /**
89
+ * Deletes a workspace resource. To recover the workspace, create it again with the same name, in the
90
+ * same subscription, resource group and location. The name is kept for 14 days and cannot be used for
91
+ * another workspace. To remove the workspace completely and release the name, use the force flag.
92
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
93
+ * @param workspaceName The name of the workspace.
94
+ * @param options The options parameters.
95
+ */
96
+ beginDeleteAndWait(
97
+ resourceGroupName: string,
98
+ workspaceName: string,
99
+ options?: WorkspacesDeleteOptionalParams
100
+ ): Promise<void>;
101
+ /**
102
+ * Gets a workspace instance.
103
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
104
+ * @param workspaceName The name of the workspace.
105
+ * @param options The options parameters.
106
+ */
107
+ get(
108
+ resourceGroupName: string,
109
+ workspaceName: string,
110
+ options?: WorkspacesGetOptionalParams
111
+ ): Promise<WorkspacesGetResponse>;
112
+ /**
113
+ * Updates a workspace.
114
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
115
+ * @param workspaceName The name of the workspace.
116
+ * @param parameters The parameters required to patch a workspace.
117
+ * @param options The options parameters.
118
+ */
119
+ update(
120
+ resourceGroupName: string,
121
+ workspaceName: string,
122
+ parameters: WorkspacePatch,
123
+ options?: WorkspacesUpdateOptionalParams
124
+ ): Promise<WorkspacesUpdateResponse>;
125
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "es6",
4
+ "moduleResolution": "node",
5
+ "strict": true,
6
+ "target": "es6",
7
+ "sourceMap": true,
8
+ "declarationMap": true,
9
+ "esModuleInterop": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "lib": ["es6", "dom"],
13
+ "declaration": true,
14
+ "outDir": "./dist-esm",
15
+ "importHelpers": true
16
+ },
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
+ "exclude": ["node_modules"]
19
+ }