@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,180 @@
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 { DeletedWorkspaces } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
15
+ import {
16
+ Workspace,
17
+ DeletedWorkspacesListOptionalParams,
18
+ DeletedWorkspacesListByResourceGroupOptionalParams,
19
+ DeletedWorkspacesListResponse,
20
+ DeletedWorkspacesListByResourceGroupResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing DeletedWorkspaces operations. */
25
+ export class DeletedWorkspacesImpl implements DeletedWorkspaces {
26
+ private readonly client: OperationalInsightsManagementClientContext;
27
+
28
+ /**
29
+ * Initialize a new instance of the class DeletedWorkspaces class.
30
+ * @param client Reference to the service client
31
+ */
32
+ constructor(client: OperationalInsightsManagementClientContext) {
33
+ this.client = client;
34
+ }
35
+
36
+ /**
37
+ * Gets recently deleted workspaces in a subscription, available for recovery.
38
+ * @param options The options parameters.
39
+ */
40
+ public list(
41
+ options?: DeletedWorkspacesListOptionalParams
42
+ ): PagedAsyncIterableIterator<Workspace> {
43
+ const iter = this.listPagingAll(options);
44
+ return {
45
+ next() {
46
+ return iter.next();
47
+ },
48
+ [Symbol.asyncIterator]() {
49
+ return this;
50
+ },
51
+ byPage: () => {
52
+ return this.listPagingPage(options);
53
+ }
54
+ };
55
+ }
56
+
57
+ private async *listPagingPage(
58
+ options?: DeletedWorkspacesListOptionalParams
59
+ ): AsyncIterableIterator<Workspace[]> {
60
+ let result = await this._list(options);
61
+ yield result.value || [];
62
+ }
63
+
64
+ private async *listPagingAll(
65
+ options?: DeletedWorkspacesListOptionalParams
66
+ ): AsyncIterableIterator<Workspace> {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
70
+ }
71
+
72
+ /**
73
+ * Gets recently deleted workspaces in a resource group, available for recovery.
74
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
75
+ * @param options The options parameters.
76
+ */
77
+ public listByResourceGroup(
78
+ resourceGroupName: string,
79
+ options?: DeletedWorkspacesListByResourceGroupOptionalParams
80
+ ): PagedAsyncIterableIterator<Workspace> {
81
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
82
+ return {
83
+ next() {
84
+ return iter.next();
85
+ },
86
+ [Symbol.asyncIterator]() {
87
+ return this;
88
+ },
89
+ byPage: () => {
90
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
91
+ }
92
+ };
93
+ }
94
+
95
+ private async *listByResourceGroupPagingPage(
96
+ resourceGroupName: string,
97
+ options?: DeletedWorkspacesListByResourceGroupOptionalParams
98
+ ): AsyncIterableIterator<Workspace[]> {
99
+ let result = await this._listByResourceGroup(resourceGroupName, options);
100
+ yield result.value || [];
101
+ }
102
+
103
+ private async *listByResourceGroupPagingAll(
104
+ resourceGroupName: string,
105
+ options?: DeletedWorkspacesListByResourceGroupOptionalParams
106
+ ): AsyncIterableIterator<Workspace> {
107
+ for await (const page of this.listByResourceGroupPagingPage(
108
+ resourceGroupName,
109
+ options
110
+ )) {
111
+ yield* page;
112
+ }
113
+ }
114
+
115
+ /**
116
+ * Gets recently deleted workspaces in a subscription, available for recovery.
117
+ * @param options The options parameters.
118
+ */
119
+ private _list(
120
+ options?: DeletedWorkspacesListOptionalParams
121
+ ): Promise<DeletedWorkspacesListResponse> {
122
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
123
+ }
124
+
125
+ /**
126
+ * Gets recently deleted workspaces in a resource group, available for recovery.
127
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
128
+ * @param options The options parameters.
129
+ */
130
+ private _listByResourceGroup(
131
+ resourceGroupName: string,
132
+ options?: DeletedWorkspacesListByResourceGroupOptionalParams
133
+ ): Promise<DeletedWorkspacesListByResourceGroupResponse> {
134
+ return this.client.sendOperationRequest(
135
+ { resourceGroupName, options },
136
+ listByResourceGroupOperationSpec
137
+ );
138
+ }
139
+ }
140
+ // Operation Specifications
141
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
142
+
143
+ const listOperationSpec: coreClient.OperationSpec = {
144
+ path:
145
+ "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces",
146
+ httpMethod: "GET",
147
+ responses: {
148
+ 200: {
149
+ bodyMapper: Mappers.WorkspaceListResult
150
+ },
151
+ default: {
152
+ bodyMapper: Mappers.ErrorResponse
153
+ }
154
+ },
155
+ queryParameters: [Parameters.apiVersion2],
156
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
157
+ headerParameters: [Parameters.accept],
158
+ serializer
159
+ };
160
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
161
+ path:
162
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces",
163
+ httpMethod: "GET",
164
+ responses: {
165
+ 200: {
166
+ bodyMapper: Mappers.WorkspaceListResult
167
+ },
168
+ default: {
169
+ bodyMapper: Mappers.ErrorResponse
170
+ }
171
+ },
172
+ queryParameters: [Parameters.apiVersion2],
173
+ urlParameters: [
174
+ Parameters.$host,
175
+ Parameters.subscriptionId,
176
+ Parameters.resourceGroupName
177
+ ],
178
+ headerParameters: [Parameters.accept],
179
+ serializer
180
+ };
@@ -0,0 +1,64 @@
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 { Gateways } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
14
+ import { GatewaysDeleteOptionalParams } from "../models";
15
+
16
+ /** Class containing Gateways operations. */
17
+ export class GatewaysImpl implements Gateways {
18
+ private readonly client: OperationalInsightsManagementClientContext;
19
+
20
+ /**
21
+ * Initialize a new instance of the class Gateways class.
22
+ * @param client Reference to the service client
23
+ */
24
+ constructor(client: OperationalInsightsManagementClientContext) {
25
+ this.client = client;
26
+ }
27
+
28
+ /**
29
+ * Delete a Log Analytics gateway.
30
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
31
+ * @param workspaceName The name of the workspace.
32
+ * @param gatewayId The Log Analytics gateway Id.
33
+ * @param options The options parameters.
34
+ */
35
+ delete(
36
+ resourceGroupName: string,
37
+ workspaceName: string,
38
+ gatewayId: string,
39
+ options?: GatewaysDeleteOptionalParams
40
+ ): Promise<void> {
41
+ return this.client.sendOperationRequest(
42
+ { resourceGroupName, workspaceName, gatewayId, options },
43
+ deleteOperationSpec
44
+ );
45
+ }
46
+ }
47
+ // Operation Specifications
48
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
49
+
50
+ const deleteOperationSpec: coreClient.OperationSpec = {
51
+ path:
52
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}",
53
+ httpMethod: "DELETE",
54
+ responses: { 200: {} },
55
+ queryParameters: [Parameters.apiVersion],
56
+ urlParameters: [
57
+ Parameters.$host,
58
+ Parameters.subscriptionId,
59
+ Parameters.resourceGroupName,
60
+ Parameters.workspaceName,
61
+ Parameters.gatewayId
62
+ ],
63
+ serializer
64
+ };
@@ -0,0 +1,27 @@
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
+ export * from "./dataExports";
10
+ export * from "./dataSources";
11
+ export * from "./intelligencePacks";
12
+ export * from "./linkedServices";
13
+ export * from "./linkedStorageAccounts";
14
+ export * from "./managementGroups";
15
+ export * from "./operationStatuses";
16
+ export * from "./sharedKeysOperations";
17
+ export * from "./usages";
18
+ export * from "./storageInsightConfigs";
19
+ export * from "./savedSearches";
20
+ export * from "./availableServiceTiers";
21
+ export * from "./gateways";
22
+ export * from "./schema";
23
+ export * from "./workspacePurge";
24
+ export * from "./operations";
25
+ export * from "./clusters";
26
+ export * from "./workspaces";
27
+ export * from "./deletedWorkspaces";
@@ -0,0 +1,147 @@
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 { IntelligencePacks } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
14
+ import {
15
+ IntelligencePacksDisableOptionalParams,
16
+ IntelligencePacksEnableOptionalParams,
17
+ IntelligencePacksListOptionalParams,
18
+ IntelligencePacksListResponse
19
+ } from "../models";
20
+
21
+ /** Class containing IntelligencePacks operations. */
22
+ export class IntelligencePacksImpl implements IntelligencePacks {
23
+ private readonly client: OperationalInsightsManagementClientContext;
24
+
25
+ /**
26
+ * Initialize a new instance of the class IntelligencePacks class.
27
+ * @param client Reference to the service client
28
+ */
29
+ constructor(client: OperationalInsightsManagementClientContext) {
30
+ this.client = client;
31
+ }
32
+
33
+ /**
34
+ * Disables an intelligence pack for a given workspace.
35
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
36
+ * @param workspaceName The name of the workspace.
37
+ * @param intelligencePackName The name of the intelligence pack to be disabled.
38
+ * @param options The options parameters.
39
+ */
40
+ disable(
41
+ resourceGroupName: string,
42
+ workspaceName: string,
43
+ intelligencePackName: string,
44
+ options?: IntelligencePacksDisableOptionalParams
45
+ ): Promise<void> {
46
+ return this.client.sendOperationRequest(
47
+ { resourceGroupName, workspaceName, intelligencePackName, options },
48
+ disableOperationSpec
49
+ );
50
+ }
51
+
52
+ /**
53
+ * Enables an intelligence pack for a given workspace.
54
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
55
+ * @param workspaceName The name of the workspace.
56
+ * @param intelligencePackName The name of the intelligence pack to be enabled.
57
+ * @param options The options parameters.
58
+ */
59
+ enable(
60
+ resourceGroupName: string,
61
+ workspaceName: string,
62
+ intelligencePackName: string,
63
+ options?: IntelligencePacksEnableOptionalParams
64
+ ): Promise<void> {
65
+ return this.client.sendOperationRequest(
66
+ { resourceGroupName, workspaceName, intelligencePackName, options },
67
+ enableOperationSpec
68
+ );
69
+ }
70
+
71
+ /**
72
+ * Lists all the intelligence packs possible and whether they are enabled or disabled for a given
73
+ * workspace.
74
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
75
+ * @param workspaceName The name of the workspace.
76
+ * @param options The options parameters.
77
+ */
78
+ list(
79
+ resourceGroupName: string,
80
+ workspaceName: string,
81
+ options?: IntelligencePacksListOptionalParams
82
+ ): Promise<IntelligencePacksListResponse> {
83
+ return this.client.sendOperationRequest(
84
+ { resourceGroupName, workspaceName, options },
85
+ listOperationSpec
86
+ );
87
+ }
88
+ }
89
+ // Operation Specifications
90
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
91
+
92
+ const disableOperationSpec: coreClient.OperationSpec = {
93
+ path:
94
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable",
95
+ httpMethod: "POST",
96
+ responses: { 200: {} },
97
+ queryParameters: [Parameters.apiVersion],
98
+ urlParameters: [
99
+ Parameters.$host,
100
+ Parameters.subscriptionId,
101
+ Parameters.resourceGroupName,
102
+ Parameters.workspaceName,
103
+ Parameters.intelligencePackName
104
+ ],
105
+ serializer
106
+ };
107
+ const enableOperationSpec: coreClient.OperationSpec = {
108
+ path:
109
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable",
110
+ httpMethod: "POST",
111
+ responses: { 200: {} },
112
+ queryParameters: [Parameters.apiVersion],
113
+ urlParameters: [
114
+ Parameters.$host,
115
+ Parameters.subscriptionId,
116
+ Parameters.resourceGroupName,
117
+ Parameters.workspaceName,
118
+ Parameters.intelligencePackName
119
+ ],
120
+ serializer
121
+ };
122
+ const listOperationSpec: coreClient.OperationSpec = {
123
+ path:
124
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks",
125
+ httpMethod: "GET",
126
+ responses: {
127
+ 200: {
128
+ bodyMapper: {
129
+ type: {
130
+ name: "Sequence",
131
+ element: {
132
+ type: { name: "Composite", className: "IntelligencePack" }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ },
138
+ queryParameters: [Parameters.apiVersion],
139
+ urlParameters: [
140
+ Parameters.$host,
141
+ Parameters.subscriptionId,
142
+ Parameters.resourceGroupName,
143
+ Parameters.workspaceName
144
+ ],
145
+ headerParameters: [Parameters.accept],
146
+ serializer
147
+ };