@azure/arm-resourcegraph 5.0.0-beta.2 → 5.0.0-beta.4

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 (269) hide show
  1. package/CHANGELOG.md +14 -4
  2. package/LICENSE +4 -4
  3. package/README.md +27 -18
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +4 -3
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/models/index.d.ts +13 -13
  9. package/dist/browser/models/index.d.ts.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/models/mappers.js +14 -6
  12. package/dist/browser/models/mappers.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  14. package/dist/browser/models/parameters.js.map +1 -0
  15. package/dist/browser/operations/index.d.ts +2 -0
  16. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  17. package/{dist-esm/src → dist/browser}/operations/index.js +1 -1
  18. package/dist/browser/operations/index.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  20. package/dist/browser/operations/operations.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/operations.js +16 -27
  22. package/dist/browser/operations/operations.js.map +1 -0
  23. package/dist/browser/operationsInterfaces/index.d.ts +2 -0
  24. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  25. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +1 -1
  26. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  28. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  29. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  30. package/dist/browser/package.json +3 -0
  31. package/dist/browser/pagingHelper.d.ts +13 -0
  32. package/dist/browser/pagingHelper.d.ts.map +1 -0
  33. package/dist/browser/pagingHelper.js +30 -0
  34. package/dist/browser/pagingHelper.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/resourceGraphClient.d.ts +4 -2
  36. package/dist/browser/resourceGraphClient.d.ts.map +1 -0
  37. package/{dist-esm/src → dist/browser}/resourceGraphClient.js +59 -23
  38. package/dist/browser/resourceGraphClient.js.map +1 -0
  39. package/dist/commonjs/index.d.ts +5 -0
  40. package/dist/commonjs/index.d.ts.map +1 -0
  41. package/dist/commonjs/index.js +19 -0
  42. package/dist/commonjs/index.js.map +1 -0
  43. package/{types/arm-resourcegraph.d.ts → dist/commonjs/models/index.d.ts} +216 -284
  44. package/dist/commonjs/models/index.d.ts.map +1 -0
  45. package/dist/commonjs/models/index.js +10 -0
  46. package/dist/commonjs/models/index.js.map +1 -0
  47. package/dist/commonjs/models/mappers.d.ts +26 -0
  48. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  49. package/dist/commonjs/models/mappers.js +666 -0
  50. package/dist/commonjs/models/mappers.js.map +1 -0
  51. package/dist/commonjs/models/parameters.d.ts +8 -0
  52. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  53. package/dist/commonjs/models/parameters.js +64 -0
  54. package/dist/commonjs/models/parameters.js.map +1 -0
  55. package/dist/commonjs/operations/index.d.ts +2 -0
  56. package/dist/commonjs/operations/index.d.ts.map +1 -0
  57. package/dist/commonjs/operations/index.js +12 -0
  58. package/dist/commonjs/operations/index.js.map +1 -0
  59. package/dist/commonjs/operations/operations.d.ts +26 -0
  60. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  61. package/dist/commonjs/operations/operations.js +84 -0
  62. package/dist/commonjs/operations/operations.js.map +1 -0
  63. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
  64. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  65. package/dist/commonjs/operationsInterfaces/index.js +12 -0
  66. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  67. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  68. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  69. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  70. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  71. package/dist/commonjs/package.json +3 -0
  72. package/dist/commonjs/pagingHelper.d.ts +13 -0
  73. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  74. package/dist/commonjs/pagingHelper.js +34 -0
  75. package/dist/commonjs/pagingHelper.js.map +1 -0
  76. package/dist/commonjs/resourceGraphClient.d.ts +30 -0
  77. package/dist/commonjs/resourceGraphClient.d.ts.map +1 -0
  78. package/dist/commonjs/resourceGraphClient.js +162 -0
  79. package/dist/commonjs/resourceGraphClient.js.map +1 -0
  80. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  81. package/dist/esm/index.d.ts +5 -0
  82. package/dist/esm/index.d.ts.map +1 -0
  83. package/{src/index.ts → dist/esm/index.js} +5 -4
  84. package/dist/esm/index.js.map +1 -0
  85. package/dist/esm/models/index.d.ts +216 -0
  86. package/dist/esm/models/index.d.ts.map +1 -0
  87. package/{src/operations/index.ts → dist/esm/models/index.js} +2 -2
  88. package/dist/esm/models/index.js.map +1 -0
  89. package/dist/esm/models/mappers.d.ts +26 -0
  90. package/dist/esm/models/mappers.d.ts.map +1 -0
  91. package/dist/{index.js → esm/models/mappers.js} +35 -344
  92. package/dist/esm/models/mappers.js.map +1 -0
  93. package/dist/esm/models/parameters.d.ts +8 -0
  94. package/dist/esm/models/parameters.d.ts.map +1 -0
  95. package/dist/esm/models/parameters.js +61 -0
  96. package/dist/esm/models/parameters.js.map +1 -0
  97. package/dist/esm/operations/index.d.ts +2 -0
  98. package/dist/esm/operations/index.d.ts.map +1 -0
  99. package/dist/esm/operations/index.js +9 -0
  100. package/dist/esm/operations/index.js.map +1 -0
  101. package/dist/esm/operations/operations.d.ts +26 -0
  102. package/dist/esm/operations/operations.d.ts.map +1 -0
  103. package/dist/esm/operations/operations.js +79 -0
  104. package/dist/esm/operations/operations.js.map +1 -0
  105. package/dist/esm/operationsInterfaces/index.d.ts +2 -0
  106. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  107. package/dist/esm/operationsInterfaces/index.js +9 -0
  108. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  109. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  110. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  111. package/dist/esm/operationsInterfaces/operations.js +9 -0
  112. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  113. package/dist/esm/package.json +3 -0
  114. package/dist/esm/pagingHelper.d.ts +13 -0
  115. package/dist/esm/pagingHelper.d.ts.map +1 -0
  116. package/dist/esm/pagingHelper.js +30 -0
  117. package/dist/esm/pagingHelper.js.map +1 -0
  118. package/dist/esm/resourceGraphClient.d.ts +30 -0
  119. package/dist/esm/resourceGraphClient.d.ts.map +1 -0
  120. package/dist/esm/resourceGraphClient.js +157 -0
  121. package/dist/esm/resourceGraphClient.js.map +1 -0
  122. package/dist/react-native/index.d.ts +5 -0
  123. package/dist/react-native/index.d.ts.map +1 -0
  124. package/dist/react-native/index.js +13 -0
  125. package/dist/react-native/index.js.map +1 -0
  126. package/dist/react-native/models/index.d.ts +216 -0
  127. package/dist/react-native/models/index.d.ts.map +1 -0
  128. package/{src/operationsInterfaces/index.ts → dist/react-native/models/index.js} +2 -2
  129. package/dist/react-native/models/index.js.map +1 -0
  130. package/dist/react-native/models/mappers.d.ts +26 -0
  131. package/dist/react-native/models/mappers.d.ts.map +1 -0
  132. package/dist/react-native/models/mappers.js +663 -0
  133. package/dist/react-native/models/mappers.js.map +1 -0
  134. package/dist/react-native/models/parameters.d.ts +8 -0
  135. package/dist/react-native/models/parameters.d.ts.map +1 -0
  136. package/dist/react-native/models/parameters.js +61 -0
  137. package/dist/react-native/models/parameters.js.map +1 -0
  138. package/dist/react-native/operations/index.d.ts +2 -0
  139. package/dist/react-native/operations/index.d.ts.map +1 -0
  140. package/dist/react-native/operations/index.js +9 -0
  141. package/dist/react-native/operations/index.js.map +1 -0
  142. package/dist/react-native/operations/operations.d.ts +26 -0
  143. package/dist/react-native/operations/operations.d.ts.map +1 -0
  144. package/dist/react-native/operations/operations.js +79 -0
  145. package/dist/react-native/operations/operations.js.map +1 -0
  146. package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
  147. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  148. package/dist/react-native/operationsInterfaces/index.js +9 -0
  149. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  150. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  151. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  152. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  153. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  154. package/dist/react-native/package.json +3 -0
  155. package/dist/react-native/pagingHelper.d.ts +13 -0
  156. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  157. package/dist/react-native/pagingHelper.js +30 -0
  158. package/dist/react-native/pagingHelper.js.map +1 -0
  159. package/dist/react-native/resourceGraphClient.d.ts +30 -0
  160. package/dist/react-native/resourceGraphClient.d.ts.map +1 -0
  161. package/dist/react-native/resourceGraphClient.js +157 -0
  162. package/dist/react-native/resourceGraphClient.js.map +1 -0
  163. package/package.json +83 -68
  164. package/review/{arm-resourcegraph.api.md → arm-resourcegraph-node.api.md} +10 -7
  165. package/dist/index.js.map +0 -1
  166. package/dist/index.min.js +0 -1
  167. package/dist/index.min.js.map +0 -1
  168. package/dist-esm/samples-dev/accessAPropertiesField.d.ts +0 -2
  169. package/dist-esm/samples-dev/accessAPropertiesField.d.ts.map +0 -1
  170. package/dist-esm/samples-dev/accessAPropertiesField.js +0 -32
  171. package/dist-esm/samples-dev/accessAPropertiesField.js.map +0 -1
  172. package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts +0 -2
  173. package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts.map +0 -1
  174. package/dist-esm/samples-dev/basicManagementGroupQuery.js +0 -32
  175. package/dist-esm/samples-dev/basicManagementGroupQuery.js.map +0 -1
  176. package/dist-esm/samples-dev/basicQuery.d.ts +0 -2
  177. package/dist-esm/samples-dev/basicQuery.d.ts.map +0 -1
  178. package/dist-esm/samples-dev/basicQuery.js +0 -32
  179. package/dist-esm/samples-dev/basicQuery.js.map +0 -1
  180. package/dist-esm/samples-dev/basicTenantQuery.d.ts +0 -2
  181. package/dist-esm/samples-dev/basicTenantQuery.d.ts.map +0 -1
  182. package/dist-esm/samples-dev/basicTenantQuery.js +0 -31
  183. package/dist-esm/samples-dev/basicTenantQuery.js.map +0 -1
  184. package/dist-esm/samples-dev/complexQuery.d.ts +0 -2
  185. package/dist-esm/samples-dev/complexQuery.d.ts.map +0 -1
  186. package/dist-esm/samples-dev/complexQuery.js +0 -32
  187. package/dist-esm/samples-dev/complexQuery.js.map +0 -1
  188. package/dist-esm/samples-dev/filterResources.d.ts +0 -2
  189. package/dist-esm/samples-dev/filterResources.d.ts.map +0 -1
  190. package/dist-esm/samples-dev/filterResources.js +0 -32
  191. package/dist-esm/samples-dev/filterResources.js.map +0 -1
  192. package/dist-esm/samples-dev/firstPageQuery.d.ts +0 -2
  193. package/dist-esm/samples-dev/firstPageQuery.d.ts.map +0 -1
  194. package/dist-esm/samples-dev/firstPageQuery.js +0 -33
  195. package/dist-esm/samples-dev/firstPageQuery.js.map +0 -1
  196. package/dist-esm/samples-dev/nextPageQuery.d.ts +0 -2
  197. package/dist-esm/samples-dev/nextPageQuery.d.ts.map +0 -1
  198. package/dist-esm/samples-dev/nextPageQuery.js +0 -35
  199. package/dist-esm/samples-dev/nextPageQuery.js.map +0 -1
  200. package/dist-esm/samples-dev/operationsList.d.ts +0 -2
  201. package/dist-esm/samples-dev/operationsList.d.ts.map +0 -1
  202. package/dist-esm/samples-dev/operationsList.js +0 -42
  203. package/dist-esm/samples-dev/operationsList.js.map +0 -1
  204. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  205. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  206. package/dist-esm/samples-dev/operationsListSample.js +0 -42
  207. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  208. package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts +0 -2
  209. package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts.map +0 -1
  210. package/dist-esm/samples-dev/queryWithAFacetRequest.js +0 -51
  211. package/dist-esm/samples-dev/queryWithAFacetRequest.js.map +0 -1
  212. package/dist-esm/samples-dev/randomPageQuery.d.ts +0 -2
  213. package/dist-esm/samples-dev/randomPageQuery.d.ts.map +0 -1
  214. package/dist-esm/samples-dev/randomPageQuery.js +0 -33
  215. package/dist-esm/samples-dev/randomPageQuery.js.map +0 -1
  216. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts +0 -2
  217. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts.map +0 -1
  218. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js +0 -38
  219. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js.map +0 -1
  220. package/dist-esm/samples-dev/resourceHistoryQuery.d.ts +0 -2
  221. package/dist-esm/samples-dev/resourceHistoryQuery.d.ts.map +0 -1
  222. package/dist-esm/samples-dev/resourceHistoryQuery.js +0 -38
  223. package/dist-esm/samples-dev/resourceHistoryQuery.js.map +0 -1
  224. package/dist-esm/samples-dev/resourcesHistorySample.d.ts +0 -2
  225. package/dist-esm/samples-dev/resourcesHistorySample.d.ts.map +0 -1
  226. package/dist-esm/samples-dev/resourcesHistorySample.js +0 -63
  227. package/dist-esm/samples-dev/resourcesHistorySample.js.map +0 -1
  228. package/dist-esm/samples-dev/resourcesSample.d.ts +0 -2
  229. package/dist-esm/samples-dev/resourcesSample.d.ts.map +0 -1
  230. package/dist-esm/samples-dev/resourcesSample.js +0 -245
  231. package/dist-esm/samples-dev/resourcesSample.js.map +0 -1
  232. package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts +0 -2
  233. package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts.map +0 -1
  234. package/dist-esm/samples-dev/summarizeResourcesByLocation.js +0 -32
  235. package/dist-esm/samples-dev/summarizeResourcesByLocation.js.map +0 -1
  236. package/dist-esm/src/index.d.ts +0 -5
  237. package/dist-esm/src/index.d.ts.map +0 -1
  238. package/dist-esm/src/index.js.map +0 -1
  239. package/dist-esm/src/models/index.d.ts.map +0 -1
  240. package/dist-esm/src/models/index.js.map +0 -1
  241. package/dist-esm/src/models/mappers.js.map +0 -1
  242. package/dist-esm/src/models/parameters.js.map +0 -1
  243. package/dist-esm/src/operations/index.d.ts +0 -2
  244. package/dist-esm/src/operations/index.js.map +0 -1
  245. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  246. package/dist-esm/src/operations/operations.js.map +0 -1
  247. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
  248. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  249. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  250. package/dist-esm/src/resourceGraphClient.d.ts.map +0 -1
  251. package/dist-esm/src/resourceGraphClient.js.map +0 -1
  252. package/dist-esm/test/sampleTest.d.ts +0 -2
  253. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  254. package/dist-esm/test/sampleTest.js +0 -40
  255. package/dist-esm/test/sampleTest.js.map +0 -1
  256. package/rollup.config.js +0 -122
  257. package/src/models/index.ts +0 -260
  258. package/src/models/mappers.ts +0 -684
  259. package/src/models/parameters.ts +0 -75
  260. package/src/operations/operations.ts +0 -98
  261. package/src/operationsInterfaces/operations.ts +0 -22
  262. package/src/resourceGraphClient.ts +0 -173
  263. package/tsconfig.json +0 -33
  264. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  265. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  266. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  267. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  268. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  269. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
@@ -1,32 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
- *
14
- * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesComplexQuery.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function complexQuery() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = {
22
- query: "Resources | project id, name, type, location | where type =~ 'Microsoft.Compute/virtualMachines' | summarize count() by location | top 3 by count_",
23
- subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
24
- };
25
- const credential = new DefaultAzureCredential();
26
- const client = new ResourceGraphClient(credential);
27
- const result = yield client.resources(query);
28
- console.log(result);
29
- });
30
- }
31
- complexQuery().catch(console.error);
32
- //# sourceMappingURL=complexQuery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"complexQuery.js","sourceRoot":"","sources":["../../samples-dev/complexQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,YAAY;;QACzB,MAAM,KAAK,GAAiB;YAC1B,KAAK,EACH,oJAAoJ;YACtJ,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=filterResources.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterResources.d.ts","sourceRoot":"","sources":["../../samples-dev/filterResources.ts"],"names":[],"mappings":""}
@@ -1,32 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
- *
14
- * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesFilterQuery.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function filterResources() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = {
22
- query: "Resources | project id, name, type, location | where type =~ 'Microsoft.Compute/virtualMachines' | limit 3",
23
- subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
24
- };
25
- const credential = new DefaultAzureCredential();
26
- const client = new ResourceGraphClient(credential);
27
- const result = yield client.resources(query);
28
- console.log(result);
29
- });
30
- }
31
- filterResources().catch(console.error);
32
- //# sourceMappingURL=filterResources.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterResources.js","sourceRoot":"","sources":["../../samples-dev/filterResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,eAAe;;QAC5B,MAAM,KAAK,GAAiB;YAC1B,KAAK,EACH,4GAA4G;YAC9G,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=firstPageQuery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"firstPageQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/firstPageQuery.ts"],"names":[],"mappings":""}
@@ -1,33 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
- *
14
- * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesFirstPageQuery.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function firstPageQuery() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = {
22
- options: { skip: 0, top: 3 },
23
- query: "Resources | where name contains 'test' | project id, name, type, location",
24
- subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
25
- };
26
- const credential = new DefaultAzureCredential();
27
- const client = new ResourceGraphClient(credential);
28
- const result = yield client.resources(query);
29
- console.log(result);
30
- });
31
- }
32
- firstPageQuery().catch(console.error);
33
- //# sourceMappingURL=firstPageQuery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"firstPageQuery.js","sourceRoot":"","sources":["../../samples-dev/firstPageQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,cAAc;;QAC3B,MAAM,KAAK,GAAiB;YAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE;YAC5B,KAAK,EACH,2EAA2E;YAC7E,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=nextPageQuery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nextPageQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/nextPageQuery.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
- *
14
- * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesNextPageQuery.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function nextPageQuery() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = {
22
- options: {
23
- skipToken: "eyAibm8iOiAibHVjayIsICJidXQiOiAibmljZSIsICJ0cnkiOiAiISIgfQ=="
24
- },
25
- query: "Resources | where name contains 'test' | project id, name, type, location",
26
- subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
27
- };
28
- const credential = new DefaultAzureCredential();
29
- const client = new ResourceGraphClient(credential);
30
- const result = yield client.resources(query);
31
- console.log(result);
32
- });
33
- }
34
- nextPageQuery().catch(console.error);
35
- //# sourceMappingURL=nextPageQuery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nextPageQuery.js","sourceRoot":"","sources":["../../samples-dev/nextPageQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,aAAa;;QAC1B,MAAM,KAAK,GAAiB;YAC1B,OAAO,EAAE;gBACP,SAAS,EAAE,8DAA8D;aAC1E;YACD,KAAK,EACH,2EAA2E;YAC7E,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=operationsList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationsList.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsList.ts"],"names":[],"mappings":""}
@@ -1,42 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __asyncValues, __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Lists all of the available REST API operations.
13
- *
14
- * @summary Lists all of the available REST API operations.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/OperationsList.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function operationsList() {
20
- var e_1, _a;
21
- return __awaiter(this, void 0, void 0, function* () {
22
- const credential = new DefaultAzureCredential();
23
- const client = new ResourceGraphClient(credential);
24
- const resArray = new Array();
25
- try {
26
- for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
27
- let item = _c.value;
28
- resArray.push(item);
29
- }
30
- }
31
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
32
- finally {
33
- try {
34
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
35
- }
36
- finally { if (e_1) throw e_1.error; }
37
- }
38
- console.log(resArray);
39
- });
40
- }
41
- operationsList().catch(console.error);
42
- //# sourceMappingURL=operationsList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationsList.js","sourceRoot":"","sources":["../../samples-dev/operationsList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,cAAc;;;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=operationsListSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
@@ -1,42 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __asyncValues, __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- /**
14
- * This sample demonstrates how to Lists all of the available REST API operations.
15
- *
16
- * @summary Lists all of the available REST API operations.
17
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/OperationsList.json
18
- */
19
- function operationsList() {
20
- var e_1, _a;
21
- return __awaiter(this, void 0, void 0, function* () {
22
- const credential = new DefaultAzureCredential();
23
- const client = new ResourceGraphClient(credential);
24
- const resArray = new Array();
25
- try {
26
- for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
27
- let item = _c.value;
28
- resArray.push(item);
29
- }
30
- }
31
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
32
- finally {
33
- try {
34
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
35
- }
36
- finally { if (e_1) throw e_1.error; }
37
- }
38
- console.log(resArray);
39
- });
40
- }
41
- operationsList().catch(console.error);
42
- //# sourceMappingURL=operationsListSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=queryWithAFacetRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryWithAFacetRequest.d.ts","sourceRoot":"","sources":["../../samples-dev/queryWithAFacetRequest.ts"],"names":[],"mappings":""}
@@ -1,51 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
- *
14
- * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesFacetQuery.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function queryWithAFacetRequest() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = {
22
- facets: [
23
- { expression: "location", options: { top: 3, sortOrder: "desc" } },
24
- {
25
- expression: "properties.storageProfile.osDisk.osType",
26
- options: { top: 3, sortOrder: "desc" }
27
- },
28
- {
29
- expression: "nonExistingColumn",
30
- options: { top: 3, sortOrder: "desc" }
31
- },
32
- {
33
- expression: "resourceGroup",
34
- options: { top: 3, sortBy: "tolower(resourceGroup)", sortOrder: "asc" }
35
- },
36
- {
37
- expression: "resourceGroup",
38
- options: { top: 3, filter: "resourceGroup contains 'test'" }
39
- }
40
- ],
41
- query: "Resources | where type =~ 'Microsoft.Compute/virtualMachines' | project id, name, location, resourceGroup, properties.storageProfile.osDisk.osType | limit 5",
42
- subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
43
- };
44
- const credential = new DefaultAzureCredential();
45
- const client = new ResourceGraphClient(credential);
46
- const result = yield client.resources(query);
47
- console.log(result);
48
- });
49
- }
50
- queryWithAFacetRequest().catch(console.error);
51
- //# sourceMappingURL=queryWithAFacetRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryWithAFacetRequest.js","sourceRoot":"","sources":["../../samples-dev/queryWithAFacetRequest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,KAAK,GAAiB;YAC1B,MAAM,EAAE;gBACN,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;gBAClE;oBACE,UAAU,EAAE,yCAAyC;oBACrD,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE;iBACvC;gBACD;oBACE,UAAU,EAAE,mBAAmB;oBAC/B,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE;iBACvC;gBACD;oBACE,UAAU,EAAE,eAAe;oBAC3B,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,wBAAwB,EAAE,SAAS,EAAE,KAAK,EAAE;iBACxE;gBACD;oBACE,UAAU,EAAE,eAAe;oBAC3B,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,+BAA+B,EAAE;iBAC7D;aACF;YACD,KAAK,EACH,8JAA8J;YAChK,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=randomPageQuery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"randomPageQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/randomPageQuery.ts"],"names":[],"mappings":""}
@@ -1,33 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to Queries the resources managed by Azure Resource Manager for scopes specified in the request.
13
- *
14
- * @summary Queries the resources managed by Azure Resource Manager for scopes specified in the request.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesRandomPageQuery.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function randomPageQuery() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = {
22
- options: { skip: 10, top: 2 },
23
- query: "Resources | where name contains 'test' | project id, name, type, location",
24
- subscriptions: ["cfbbd179-59d2-4052-aa06-9270a38aa9d6"]
25
- };
26
- const credential = new DefaultAzureCredential();
27
- const client = new ResourceGraphClient(credential);
28
- const result = yield client.resources(query);
29
- console.log(result);
30
- });
31
- }
32
- randomPageQuery().catch(console.error);
33
- //# sourceMappingURL=randomPageQuery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"randomPageQuery.js","sourceRoot":"","sources":["../../samples-dev/randomPageQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAgB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,eAAe;;QAC5B,MAAM,KAAK,GAAiB;YAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE;YAC7B,KAAK,EACH,2EAA2E;YAC7E,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=resourceHistoryManagementGroupScopeQuery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceHistoryManagementGroupScopeQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/resourceHistoryManagementGroupScopeQuery.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to List all snapshots of a resource for a given time interval.
13
- *
14
- * @summary List all snapshots of a resource for a given time interval.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesHistoryMgsGet.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function resourceHistoryManagementGroupScopeQuery() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const request = {
22
- managementGroups: ["e927f598-c1d4-4f72-8541-95d83a6a4ac8", "ProductionMG"],
23
- options: {
24
- interval: {
25
- end: new Date("2020-11-12T01:25:00.0000000Z"),
26
- start: new Date("2020-11-12T01:00:00.0000000Z")
27
- }
28
- },
29
- query: "where name =~ 'cpu-utilization' | project id, name, properties"
30
- };
31
- const credential = new DefaultAzureCredential();
32
- const client = new ResourceGraphClient(credential);
33
- const result = yield client.resourcesHistory(request);
34
- console.log(result);
35
- });
36
- }
37
- resourceHistoryManagementGroupScopeQuery().catch(console.error);
38
- //# sourceMappingURL=resourceHistoryManagementGroupScopeQuery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceHistoryManagementGroupScopeQuery.js","sourceRoot":"","sources":["../../samples-dev/resourceHistoryManagementGroupScopeQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,wCAAwC;;QACrD,MAAM,OAAO,GAA4B;YACvC,gBAAgB,EAAE,CAAC,sCAAsC,EAAE,cAAc,CAAC;YAC1E,OAAO,EAAE;gBACP,QAAQ,EAAE;oBACR,GAAG,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;oBAC7C,KAAK,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;iBAChD;aACF;YACD,KAAK,EAAE,gEAAgE;SACxE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wCAAwC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=resourceHistoryQuery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceHistoryQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/resourceHistoryQuery.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- /**
12
- * This sample demonstrates how to List all snapshots of a resource for a given time interval.
13
- *
14
- * @summary List all snapshots of a resource for a given time interval.
15
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesHistoryGet.json
16
- */
17
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
- import { DefaultAzureCredential } from "@azure/identity";
19
- function resourceHistoryQuery() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const request = {
22
- options: {
23
- interval: {
24
- end: new Date("2020-11-12T01:25:00.0000000Z"),
25
- start: new Date("2020-11-12T01:00:00.0000000Z")
26
- }
27
- },
28
- query: "where name =~ 'cpu-utilization' | project id, name, properties",
29
- subscriptions: ["a7f33fdb-e646-4f15-89aa-3a360210861e"]
30
- };
31
- const credential = new DefaultAzureCredential();
32
- const client = new ResourceGraphClient(credential);
33
- const result = yield client.resourcesHistory(request);
34
- console.log(result);
35
- });
36
- }
37
- resourceHistoryQuery().catch(console.error);
38
- //# sourceMappingURL=resourceHistoryQuery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceHistoryQuery.js","sourceRoot":"","sources":["../../samples-dev/resourceHistoryQuery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oBAAoB;;QACjC,MAAM,OAAO,GAA4B;YACvC,OAAO,EAAE;gBACP,QAAQ,EAAE;oBACR,GAAG,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;oBAC7C,KAAK,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;iBAChD;aACF;YACD,KAAK,EAAE,gEAAgE;YACvE,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=resourcesHistorySample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourcesHistorySample.d.ts","sourceRoot":"","sources":["../../samples-dev/resourcesHistorySample.ts"],"names":[],"mappings":""}
@@ -1,63 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- // Copyright (c) Microsoft Corporation.
10
- // Licensed under the MIT License.
11
- import { ResourceGraphClient } from "@azure/arm-resourcegraph";
12
- import { DefaultAzureCredential } from "@azure/identity";
13
- /**
14
- * This sample demonstrates how to List all snapshots of a resource for a given time interval.
15
- *
16
- * @summary List all snapshots of a resource for a given time interval.
17
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesHistoryMgsGet.json
18
- */
19
- function resourceHistoryManagementGroupScopeQuery() {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const request = {
22
- managementGroups: ["e927f598-c1d4-4f72-8541-95d83a6a4ac8", "ProductionMG"],
23
- options: {
24
- interval: {
25
- end: new Date("2020-11-12T01:25:00.0000000Z"),
26
- start: new Date("2020-11-12T01:00:00.0000000Z")
27
- }
28
- },
29
- query: "where name =~ 'cpu-utilization' | project id, name, properties"
30
- };
31
- const credential = new DefaultAzureCredential();
32
- const client = new ResourceGraphClient(credential);
33
- const result = yield client.resourcesHistory(request);
34
- console.log(result);
35
- });
36
- }
37
- resourceHistoryManagementGroupScopeQuery().catch(console.error);
38
- /**
39
- * This sample demonstrates how to List all snapshots of a resource for a given time interval.
40
- *
41
- * @summary List all snapshots of a resource for a given time interval.
42
- * x-ms-original-file: specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2021-06-01-preview/examples/ResourcesHistoryGet.json
43
- */
44
- function resourceHistoryQuery() {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- const request = {
47
- options: {
48
- interval: {
49
- end: new Date("2020-11-12T01:25:00.0000000Z"),
50
- start: new Date("2020-11-12T01:00:00.0000000Z")
51
- }
52
- },
53
- query: "where name =~ 'cpu-utilization' | project id, name, properties",
54
- subscriptions: ["a7f33fdb-e646-4f15-89aa-3a360210861e"]
55
- };
56
- const credential = new DefaultAzureCredential();
57
- const client = new ResourceGraphClient(credential);
58
- const result = yield client.resourcesHistory(request);
59
- console.log(result);
60
- });
61
- }
62
- resourceHistoryQuery().catch(console.error);
63
- //# sourceMappingURL=resourcesHistorySample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourcesHistorySample.js","sourceRoot":"","sources":["../../samples-dev/resourcesHistorySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,mBAAmB,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wCAAwC;;QACrD,MAAM,OAAO,GAA4B;YACvC,gBAAgB,EAAE,CAAC,sCAAsC,EAAE,cAAc,CAAC;YAC1E,OAAO,EAAE;gBACP,QAAQ,EAAE;oBACR,GAAG,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;oBAC7C,KAAK,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;iBAChD;aACF;YACD,KAAK,EAAE,gEAAgE;SACxE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wCAAwC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEhE;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,OAAO,GAA4B;YACvC,OAAO,EAAE;gBACP,QAAQ,EAAE;oBACR,GAAG,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;oBAC7C,KAAK,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;iBAChD;aACF;YACD,KAAK,EAAE,gEAAgE;YACvE,aAAa,EAAE,CAAC,sCAAsC,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=resourcesSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourcesSample.d.ts","sourceRoot":"","sources":["../../samples-dev/resourcesSample.ts"],"names":[],"mappings":""}