@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,406 @@
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
+ OperationParameter,
11
+ OperationURLParameter,
12
+ OperationQueryParameter
13
+ } from "@azure/core-client";
14
+ import {
15
+ DataExport as DataExportMapper,
16
+ DataSource as DataSourceMapper,
17
+ LinkedService as LinkedServiceMapper,
18
+ LinkedStorageAccountsResource as LinkedStorageAccountsResourceMapper,
19
+ StorageInsight as StorageInsightMapper,
20
+ SavedSearch as SavedSearchMapper,
21
+ WorkspacePurgeBody as WorkspacePurgeBodyMapper,
22
+ Cluster as ClusterMapper,
23
+ ClusterPatch as ClusterPatchMapper,
24
+ Workspace as WorkspaceMapper,
25
+ WorkspacePatch as WorkspacePatchMapper
26
+ } from "../models/mappers";
27
+
28
+ export const accept: OperationParameter = {
29
+ parameterPath: "accept",
30
+ mapper: {
31
+ defaultValue: "application/json",
32
+ isConstant: true,
33
+ serializedName: "Accept",
34
+ type: {
35
+ name: "String"
36
+ }
37
+ }
38
+ };
39
+
40
+ export const $host: OperationURLParameter = {
41
+ parameterPath: "$host",
42
+ mapper: {
43
+ serializedName: "$host",
44
+ required: true,
45
+ type: {
46
+ name: "String"
47
+ }
48
+ },
49
+ skipEncoding: true
50
+ };
51
+
52
+ export const subscriptionId: OperationURLParameter = {
53
+ parameterPath: "subscriptionId",
54
+ mapper: {
55
+ constraints: {
56
+ MinLength: 1
57
+ },
58
+ serializedName: "subscriptionId",
59
+ required: true,
60
+ type: {
61
+ name: "String"
62
+ }
63
+ }
64
+ };
65
+
66
+ export const resourceGroupName: OperationURLParameter = {
67
+ parameterPath: "resourceGroupName",
68
+ mapper: {
69
+ constraints: {
70
+ MaxLength: 90,
71
+ MinLength: 1
72
+ },
73
+ serializedName: "resourceGroupName",
74
+ required: true,
75
+ type: {
76
+ name: "String"
77
+ }
78
+ }
79
+ };
80
+
81
+ export const workspaceName: OperationURLParameter = {
82
+ parameterPath: "workspaceName",
83
+ mapper: {
84
+ constraints: {
85
+ Pattern: new RegExp("^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$"),
86
+ MaxLength: 63,
87
+ MinLength: 4
88
+ },
89
+ serializedName: "workspaceName",
90
+ required: true,
91
+ type: {
92
+ name: "String"
93
+ }
94
+ }
95
+ };
96
+
97
+ export const apiVersion: OperationQueryParameter = {
98
+ parameterPath: "apiVersion",
99
+ mapper: {
100
+ defaultValue: "2020-08-01",
101
+ isConstant: true,
102
+ serializedName: "api-version",
103
+ type: {
104
+ name: "String"
105
+ }
106
+ }
107
+ };
108
+
109
+ export const contentType: OperationParameter = {
110
+ parameterPath: ["options", "contentType"],
111
+ mapper: {
112
+ defaultValue: "application/json",
113
+ isConstant: true,
114
+ serializedName: "Content-Type",
115
+ type: {
116
+ name: "String"
117
+ }
118
+ }
119
+ };
120
+
121
+ export const parameters: OperationParameter = {
122
+ parameterPath: "parameters",
123
+ mapper: DataExportMapper
124
+ };
125
+
126
+ export const dataExportName: OperationURLParameter = {
127
+ parameterPath: "dataExportName",
128
+ mapper: {
129
+ constraints: {
130
+ Pattern: new RegExp("^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$"),
131
+ MaxLength: 63,
132
+ MinLength: 4
133
+ },
134
+ serializedName: "dataExportName",
135
+ required: true,
136
+ type: {
137
+ name: "String"
138
+ }
139
+ }
140
+ };
141
+
142
+ export const dataExportName1: OperationURLParameter = {
143
+ parameterPath: "dataExportName",
144
+ mapper: {
145
+ serializedName: "dataExportName",
146
+ required: true,
147
+ type: {
148
+ name: "String"
149
+ }
150
+ }
151
+ };
152
+
153
+ export const parameters1: OperationParameter = {
154
+ parameterPath: "parameters",
155
+ mapper: DataSourceMapper
156
+ };
157
+
158
+ export const dataSourceName: OperationURLParameter = {
159
+ parameterPath: "dataSourceName",
160
+ mapper: {
161
+ serializedName: "dataSourceName",
162
+ required: true,
163
+ type: {
164
+ name: "String"
165
+ }
166
+ }
167
+ };
168
+
169
+ export const filter: OperationQueryParameter = {
170
+ parameterPath: "filter",
171
+ mapper: {
172
+ serializedName: "$filter",
173
+ required: true,
174
+ type: {
175
+ name: "String"
176
+ }
177
+ }
178
+ };
179
+
180
+ export const skiptoken: OperationQueryParameter = {
181
+ parameterPath: ["options", "skiptoken"],
182
+ mapper: {
183
+ serializedName: "$skiptoken",
184
+ type: {
185
+ name: "String"
186
+ }
187
+ }
188
+ };
189
+
190
+ export const nextLink: OperationURLParameter = {
191
+ parameterPath: "nextLink",
192
+ mapper: {
193
+ serializedName: "nextLink",
194
+ required: true,
195
+ type: {
196
+ name: "String"
197
+ }
198
+ },
199
+ skipEncoding: true
200
+ };
201
+
202
+ export const intelligencePackName: OperationURLParameter = {
203
+ parameterPath: "intelligencePackName",
204
+ mapper: {
205
+ serializedName: "intelligencePackName",
206
+ required: true,
207
+ type: {
208
+ name: "String"
209
+ }
210
+ }
211
+ };
212
+
213
+ export const parameters2: OperationParameter = {
214
+ parameterPath: "parameters",
215
+ mapper: LinkedServiceMapper
216
+ };
217
+
218
+ export const linkedServiceName: OperationURLParameter = {
219
+ parameterPath: "linkedServiceName",
220
+ mapper: {
221
+ serializedName: "linkedServiceName",
222
+ required: true,
223
+ type: {
224
+ name: "String"
225
+ }
226
+ }
227
+ };
228
+
229
+ export const parameters3: OperationParameter = {
230
+ parameterPath: "parameters",
231
+ mapper: LinkedStorageAccountsResourceMapper
232
+ };
233
+
234
+ export const dataSourceType: OperationURLParameter = {
235
+ parameterPath: "dataSourceType",
236
+ mapper: {
237
+ serializedName: "dataSourceType",
238
+ required: true,
239
+ type: {
240
+ name: "Enum",
241
+ allowedValues: ["CustomLogs", "AzureWatson", "Query", "Alerts"]
242
+ }
243
+ }
244
+ };
245
+
246
+ export const location: OperationURLParameter = {
247
+ parameterPath: "location",
248
+ mapper: {
249
+ serializedName: "location",
250
+ required: true,
251
+ type: {
252
+ name: "String"
253
+ }
254
+ }
255
+ };
256
+
257
+ export const asyncOperationId: OperationURLParameter = {
258
+ parameterPath: "asyncOperationId",
259
+ mapper: {
260
+ serializedName: "asyncOperationId",
261
+ required: true,
262
+ type: {
263
+ name: "String"
264
+ }
265
+ }
266
+ };
267
+
268
+ export const parameters4: OperationParameter = {
269
+ parameterPath: "parameters",
270
+ mapper: StorageInsightMapper
271
+ };
272
+
273
+ export const storageInsightName: OperationURLParameter = {
274
+ parameterPath: "storageInsightName",
275
+ mapper: {
276
+ serializedName: "storageInsightName",
277
+ required: true,
278
+ type: {
279
+ name: "String"
280
+ }
281
+ }
282
+ };
283
+
284
+ export const savedSearchId: OperationURLParameter = {
285
+ parameterPath: "savedSearchId",
286
+ mapper: {
287
+ serializedName: "savedSearchId",
288
+ required: true,
289
+ type: {
290
+ name: "String"
291
+ }
292
+ }
293
+ };
294
+
295
+ export const parameters5: OperationParameter = {
296
+ parameterPath: "parameters",
297
+ mapper: SavedSearchMapper
298
+ };
299
+
300
+ export const gatewayId: OperationURLParameter = {
301
+ parameterPath: "gatewayId",
302
+ mapper: {
303
+ serializedName: "gatewayId",
304
+ required: true,
305
+ type: {
306
+ name: "String"
307
+ }
308
+ }
309
+ };
310
+
311
+ export const body: OperationParameter = {
312
+ parameterPath: "body",
313
+ mapper: WorkspacePurgeBodyMapper
314
+ };
315
+
316
+ export const purgeId: OperationURLParameter = {
317
+ parameterPath: "purgeId",
318
+ mapper: {
319
+ serializedName: "purgeId",
320
+ required: true,
321
+ type: {
322
+ name: "String"
323
+ }
324
+ }
325
+ };
326
+
327
+ export const apiVersion1: OperationQueryParameter = {
328
+ parameterPath: "apiVersion",
329
+ mapper: {
330
+ defaultValue: "2020-10-01",
331
+ isConstant: true,
332
+ serializedName: "api-version",
333
+ type: {
334
+ name: "String"
335
+ }
336
+ }
337
+ };
338
+
339
+ export const apiVersion2: OperationQueryParameter = {
340
+ parameterPath: "apiVersion",
341
+ mapper: {
342
+ defaultValue: "2021-06-01",
343
+ isConstant: true,
344
+ serializedName: "api-version",
345
+ type: {
346
+ name: "String"
347
+ }
348
+ }
349
+ };
350
+
351
+ export const parameters6: OperationParameter = {
352
+ parameterPath: "parameters",
353
+ mapper: ClusterMapper
354
+ };
355
+
356
+ export const clusterName: OperationURLParameter = {
357
+ parameterPath: "clusterName",
358
+ mapper: {
359
+ constraints: {
360
+ Pattern: new RegExp("^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$"),
361
+ MaxLength: 63,
362
+ MinLength: 4
363
+ },
364
+ serializedName: "clusterName",
365
+ required: true,
366
+ type: {
367
+ name: "String"
368
+ }
369
+ }
370
+ };
371
+
372
+ export const clusterName1: OperationURLParameter = {
373
+ parameterPath: "clusterName",
374
+ mapper: {
375
+ serializedName: "clusterName",
376
+ required: true,
377
+ type: {
378
+ name: "String"
379
+ }
380
+ }
381
+ };
382
+
383
+ export const parameters7: OperationParameter = {
384
+ parameterPath: "parameters",
385
+ mapper: ClusterPatchMapper
386
+ };
387
+
388
+ export const parameters8: OperationParameter = {
389
+ parameterPath: "parameters",
390
+ mapper: WorkspaceMapper
391
+ };
392
+
393
+ export const force: OperationQueryParameter = {
394
+ parameterPath: ["options", "force"],
395
+ mapper: {
396
+ serializedName: "force",
397
+ type: {
398
+ name: "Boolean"
399
+ }
400
+ }
401
+ };
402
+
403
+ export const parameters9: OperationParameter = {
404
+ parameterPath: "parameters",
405
+ mapper: WorkspacePatchMapper
406
+ };
@@ -0,0 +1,108 @@
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 * as coreAuth from "@azure/core-auth";
10
+ import {
11
+ DataExportsImpl,
12
+ DataSourcesImpl,
13
+ IntelligencePacksImpl,
14
+ LinkedServicesImpl,
15
+ LinkedStorageAccountsImpl,
16
+ ManagementGroupsImpl,
17
+ OperationStatusesImpl,
18
+ SharedKeysOperationsImpl,
19
+ UsagesImpl,
20
+ StorageInsightConfigsImpl,
21
+ SavedSearchesImpl,
22
+ AvailableServiceTiersImpl,
23
+ GatewaysImpl,
24
+ SchemaImpl,
25
+ WorkspacePurgeImpl,
26
+ OperationsImpl,
27
+ ClustersImpl,
28
+ WorkspacesImpl,
29
+ DeletedWorkspacesImpl
30
+ } from "./operations";
31
+ import {
32
+ DataExports,
33
+ DataSources,
34
+ IntelligencePacks,
35
+ LinkedServices,
36
+ LinkedStorageAccounts,
37
+ ManagementGroups,
38
+ OperationStatuses,
39
+ SharedKeysOperations,
40
+ Usages,
41
+ StorageInsightConfigs,
42
+ SavedSearches,
43
+ AvailableServiceTiers,
44
+ Gateways,
45
+ Schema,
46
+ WorkspacePurge,
47
+ Operations,
48
+ Clusters,
49
+ Workspaces,
50
+ DeletedWorkspaces
51
+ } from "./operationsInterfaces";
52
+ import { OperationalInsightsManagementClientContext } from "./operationalInsightsManagementClientContext";
53
+ import { OperationalInsightsManagementClientOptionalParams } from "./models";
54
+
55
+ export class OperationalInsightsManagementClient extends OperationalInsightsManagementClientContext {
56
+ /**
57
+ * Initializes a new instance of the OperationalInsightsManagementClient class.
58
+ * @param credentials Subscription credentials which uniquely identify client subscription.
59
+ * @param subscriptionId The ID of the target subscription.
60
+ * @param options The parameter options
61
+ */
62
+ constructor(
63
+ credentials: coreAuth.TokenCredential,
64
+ subscriptionId: string,
65
+ options?: OperationalInsightsManagementClientOptionalParams
66
+ ) {
67
+ super(credentials, subscriptionId, options);
68
+ this.dataExports = new DataExportsImpl(this);
69
+ this.dataSources = new DataSourcesImpl(this);
70
+ this.intelligencePacks = new IntelligencePacksImpl(this);
71
+ this.linkedServices = new LinkedServicesImpl(this);
72
+ this.linkedStorageAccounts = new LinkedStorageAccountsImpl(this);
73
+ this.managementGroups = new ManagementGroupsImpl(this);
74
+ this.operationStatuses = new OperationStatusesImpl(this);
75
+ this.sharedKeysOperations = new SharedKeysOperationsImpl(this);
76
+ this.usages = new UsagesImpl(this);
77
+ this.storageInsightConfigs = new StorageInsightConfigsImpl(this);
78
+ this.savedSearches = new SavedSearchesImpl(this);
79
+ this.availableServiceTiers = new AvailableServiceTiersImpl(this);
80
+ this.gateways = new GatewaysImpl(this);
81
+ this.schema = new SchemaImpl(this);
82
+ this.workspacePurge = new WorkspacePurgeImpl(this);
83
+ this.operations = new OperationsImpl(this);
84
+ this.clusters = new ClustersImpl(this);
85
+ this.workspaces = new WorkspacesImpl(this);
86
+ this.deletedWorkspaces = new DeletedWorkspacesImpl(this);
87
+ }
88
+
89
+ dataExports: DataExports;
90
+ dataSources: DataSources;
91
+ intelligencePacks: IntelligencePacks;
92
+ linkedServices: LinkedServices;
93
+ linkedStorageAccounts: LinkedStorageAccounts;
94
+ managementGroups: ManagementGroups;
95
+ operationStatuses: OperationStatuses;
96
+ sharedKeysOperations: SharedKeysOperations;
97
+ usages: Usages;
98
+ storageInsightConfigs: StorageInsightConfigs;
99
+ savedSearches: SavedSearches;
100
+ availableServiceTiers: AvailableServiceTiers;
101
+ gateways: Gateways;
102
+ schema: Schema;
103
+ workspacePurge: WorkspacePurge;
104
+ operations: Operations;
105
+ clusters: Clusters;
106
+ workspaces: Workspaces;
107
+ deletedWorkspaces: DeletedWorkspaces;
108
+ }
@@ -0,0 +1,68 @@
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 * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import { OperationalInsightsManagementClientOptionalParams } from "./models";
12
+
13
+ export class OperationalInsightsManagementClientContext extends coreClient.ServiceClient {
14
+ $host: string;
15
+ subscriptionId: string;
16
+
17
+ /**
18
+ * Initializes a new instance of the OperationalInsightsManagementClientContext class.
19
+ * @param credentials Subscription credentials which uniquely identify client subscription.
20
+ * @param subscriptionId The ID of the target subscription.
21
+ * @param options The parameter options
22
+ */
23
+ constructor(
24
+ credentials: coreAuth.TokenCredential,
25
+ subscriptionId: string,
26
+ options?: OperationalInsightsManagementClientOptionalParams
27
+ ) {
28
+ if (credentials === undefined) {
29
+ throw new Error("'credentials' cannot be null");
30
+ }
31
+ if (subscriptionId === undefined) {
32
+ throw new Error("'subscriptionId' cannot be null");
33
+ }
34
+
35
+ // Initializing default values for options
36
+ if (!options) {
37
+ options = {};
38
+ }
39
+ const defaults: OperationalInsightsManagementClientOptionalParams = {
40
+ requestContentType: "application/json; charset=utf-8",
41
+ credential: credentials
42
+ };
43
+
44
+ const packageDetails = `azsdk-js-arm-operationalinsights/8.0.0-beta.1`;
45
+ const userAgentPrefix =
46
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
47
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
48
+ : `${packageDetails}`;
49
+
50
+ if (!options.credentialScopes) {
51
+ options.credentialScopes = ["https://management.azure.com/.default"];
52
+ }
53
+ const optionsWithDefaults = {
54
+ ...defaults,
55
+ ...options,
56
+ userAgentOptions: {
57
+ userAgentPrefix
58
+ },
59
+ baseUri: options.endpoint || "https://management.azure.com"
60
+ };
61
+ super(optionsWithDefaults);
62
+ // Parameter assignments
63
+ this.subscriptionId = subscriptionId;
64
+
65
+ // Assigning values to Constant parameters
66
+ this.$host = options.$host || "https://management.azure.com";
67
+ }
68
+ }
@@ -0,0 +1,76 @@
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 { AvailableServiceTiers } 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
+ AvailableServiceTiersListByWorkspaceOptionalParams,
16
+ AvailableServiceTiersListByWorkspaceResponse
17
+ } from "../models";
18
+
19
+ /** Class containing AvailableServiceTiers operations. */
20
+ export class AvailableServiceTiersImpl implements AvailableServiceTiers {
21
+ private readonly client: OperationalInsightsManagementClientContext;
22
+
23
+ /**
24
+ * Initialize a new instance of the class AvailableServiceTiers class.
25
+ * @param client Reference to the service client
26
+ */
27
+ constructor(client: OperationalInsightsManagementClientContext) {
28
+ this.client = client;
29
+ }
30
+
31
+ /**
32
+ * Gets the available service tiers for the workspace.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param workspaceName The name of the workspace.
35
+ * @param options The options parameters.
36
+ */
37
+ listByWorkspace(
38
+ resourceGroupName: string,
39
+ workspaceName: string,
40
+ options?: AvailableServiceTiersListByWorkspaceOptionalParams
41
+ ): Promise<AvailableServiceTiersListByWorkspaceResponse> {
42
+ return this.client.sendOperationRequest(
43
+ { resourceGroupName, workspaceName, options },
44
+ listByWorkspaceOperationSpec
45
+ );
46
+ }
47
+ }
48
+ // Operation Specifications
49
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
50
+
51
+ const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
52
+ path:
53
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers",
54
+ httpMethod: "GET",
55
+ responses: {
56
+ 200: {
57
+ bodyMapper: {
58
+ type: {
59
+ name: "Sequence",
60
+ element: {
61
+ type: { name: "Composite", className: "AvailableServiceTier" }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ },
67
+ queryParameters: [Parameters.apiVersion],
68
+ urlParameters: [
69
+ Parameters.$host,
70
+ Parameters.subscriptionId,
71
+ Parameters.resourceGroupName,
72
+ Parameters.workspaceName
73
+ ],
74
+ headerParameters: [Parameters.accept],
75
+ serializer
76
+ };