@azure/arm-resourcegraph 4.0.0 → 5.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 (150) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +70 -70
  4. package/dist/index.js +933 -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/samples-dev/accessAPropertiesField.d.ts +2 -0
  9. package/dist-esm/samples-dev/accessAPropertiesField.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accessAPropertiesField.js +32 -0
  11. package/dist-esm/samples-dev/accessAPropertiesField.js.map +1 -0
  12. package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts +2 -0
  13. package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/basicManagementGroupQuery.js +32 -0
  15. package/dist-esm/samples-dev/basicManagementGroupQuery.js.map +1 -0
  16. package/dist-esm/samples-dev/basicQuery.d.ts +2 -0
  17. package/dist-esm/samples-dev/basicQuery.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/basicQuery.js +32 -0
  19. package/dist-esm/samples-dev/basicQuery.js.map +1 -0
  20. package/dist-esm/samples-dev/basicTenantQuery.d.ts +2 -0
  21. package/dist-esm/samples-dev/basicTenantQuery.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/basicTenantQuery.js +31 -0
  23. package/dist-esm/samples-dev/basicTenantQuery.js.map +1 -0
  24. package/dist-esm/samples-dev/complexQuery.d.ts +2 -0
  25. package/dist-esm/samples-dev/complexQuery.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/complexQuery.js +32 -0
  27. package/dist-esm/samples-dev/complexQuery.js.map +1 -0
  28. package/dist-esm/samples-dev/filterResources.d.ts +2 -0
  29. package/dist-esm/samples-dev/filterResources.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/filterResources.js +32 -0
  31. package/dist-esm/samples-dev/filterResources.js.map +1 -0
  32. package/dist-esm/samples-dev/firstPageQuery.d.ts +2 -0
  33. package/dist-esm/samples-dev/firstPageQuery.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/firstPageQuery.js +33 -0
  35. package/dist-esm/samples-dev/firstPageQuery.js.map +1 -0
  36. package/dist-esm/samples-dev/nextPageQuery.d.ts +2 -0
  37. package/dist-esm/samples-dev/nextPageQuery.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/nextPageQuery.js +35 -0
  39. package/dist-esm/samples-dev/nextPageQuery.js.map +1 -0
  40. package/dist-esm/samples-dev/operationsList.d.ts +2 -0
  41. package/dist-esm/samples-dev/operationsList.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/operationsList.js +42 -0
  43. package/dist-esm/samples-dev/operationsList.js.map +1 -0
  44. package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts +2 -0
  45. package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/queryWithAFacetRequest.js +51 -0
  47. package/dist-esm/samples-dev/queryWithAFacetRequest.js.map +1 -0
  48. package/dist-esm/samples-dev/randomPageQuery.d.ts +2 -0
  49. package/dist-esm/samples-dev/randomPageQuery.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/randomPageQuery.js +33 -0
  51. package/dist-esm/samples-dev/randomPageQuery.js.map +1 -0
  52. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts +2 -0
  53. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js +38 -0
  55. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js.map +1 -0
  56. package/dist-esm/samples-dev/resourceHistoryQuery.d.ts +2 -0
  57. package/dist-esm/samples-dev/resourceHistoryQuery.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/resourceHistoryQuery.js +38 -0
  59. package/dist-esm/samples-dev/resourceHistoryQuery.js.map +1 -0
  60. package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts +2 -0
  61. package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/summarizeResourcesByLocation.js +32 -0
  63. package/dist-esm/samples-dev/summarizeResourcesByLocation.js.map +1 -0
  64. package/dist-esm/src/index.d.ts +5 -0
  65. package/dist-esm/src/index.d.ts.map +1 -0
  66. package/dist-esm/src/index.js +12 -0
  67. package/dist-esm/src/index.js.map +1 -0
  68. package/dist-esm/src/models/index.d.ts +216 -0
  69. package/dist-esm/src/models/index.d.ts.map +1 -0
  70. package/{src/models/operationsMappers.ts → dist-esm/src/models/index.js} +2 -10
  71. package/dist-esm/src/models/index.js.map +1 -0
  72. package/dist-esm/src/models/mappers.d.ts +26 -0
  73. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  74. package/{esm → dist-esm/src}/models/mappers.js +353 -267
  75. package/dist-esm/src/models/mappers.js.map +1 -0
  76. package/dist-esm/src/models/parameters.d.ts +8 -0
  77. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  78. package/dist-esm/src/models/parameters.js +61 -0
  79. package/dist-esm/src/models/parameters.js.map +1 -0
  80. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  81. package/dist-esm/src/operations/index.d.ts.map +1 -0
  82. package/{esm → dist-esm/src}/operations/index.js +1 -2
  83. package/dist-esm/src/operations/index.js.map +1 -0
  84. package/dist-esm/src/operations/operations.d.ts +26 -0
  85. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  86. package/dist-esm/src/operations/operations.js +90 -0
  87. package/dist-esm/src/operations/operations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  89. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  90. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/index.js} +2 -2
  91. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/src/resourceGraphClient.d.ts +28 -0
  97. package/dist-esm/src/resourceGraphClient.d.ts.map +1 -0
  98. package/dist-esm/src/resourceGraphClient.js +103 -0
  99. package/dist-esm/src/resourceGraphClient.js.map +1 -0
  100. package/dist-esm/test/sampleTest.d.ts +2 -0
  101. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  102. package/dist-esm/test/sampleTest.js +40 -0
  103. package/dist-esm/test/sampleTest.js.map +1 -0
  104. package/package.json +75 -32
  105. package/review/arm-resourcegraph.api.md +214 -0
  106. package/rollup.config.js +181 -30
  107. package/src/index.ts +12 -0
  108. package/src/models/index.ts +192 -341
  109. package/src/models/mappers.ts +353 -265
  110. package/src/models/parameters.ts +53 -9
  111. package/src/operations/index.ts +1 -2
  112. package/src/operations/operations.ts +64 -39
  113. package/{esm/models/index.js → src/operationsInterfaces/index.ts} +2 -1
  114. package/src/operationsInterfaces/operations.ts +22 -0
  115. package/src/resourceGraphClient.ts +111 -59
  116. package/tsconfig.json +5 -4
  117. package/types/arm-resourcegraph.d.ts +284 -0
  118. package/types/tsdoc-metadata.json +11 -0
  119. package/dist/arm-resourcegraph.js +0 -860
  120. package/dist/arm-resourcegraph.js.map +0 -1
  121. package/dist/arm-resourcegraph.min.js +0 -1
  122. package/dist/arm-resourcegraph.min.js.map +0 -1
  123. package/esm/models/index.d.ts +0 -375
  124. package/esm/models/index.d.ts.map +0 -1
  125. package/esm/models/index.js.map +0 -1
  126. package/esm/models/mappers.d.ts +0 -25
  127. package/esm/models/mappers.d.ts.map +0 -1
  128. package/esm/models/mappers.js.map +0 -1
  129. package/esm/models/operationsMappers.d.ts +0 -2
  130. package/esm/models/operationsMappers.d.ts.map +0 -1
  131. package/esm/models/operationsMappers.js.map +0 -1
  132. package/esm/models/parameters.d.ts +0 -4
  133. package/esm/models/parameters.d.ts.map +0 -1
  134. package/esm/models/parameters.js +0 -29
  135. package/esm/models/parameters.js.map +0 -1
  136. package/esm/operations/index.d.ts.map +0 -1
  137. package/esm/operations/index.js.map +0 -1
  138. package/esm/operations/operations.d.ts +0 -28
  139. package/esm/operations/operations.d.ts.map +0 -1
  140. package/esm/operations/operations.js +0 -50
  141. package/esm/operations/operations.js.map +0 -1
  142. package/esm/resourceGraphClient.d.ts +0 -35
  143. package/esm/resourceGraphClient.d.ts.map +0 -1
  144. package/esm/resourceGraphClient.js +0 -63
  145. package/esm/resourceGraphClient.js.map +0 -1
  146. package/esm/resourceGraphClientContext.d.ts +0 -14
  147. package/esm/resourceGraphClientContext.d.ts.map +0 -1
  148. package/esm/resourceGraphClientContext.js +0 -50
  149. package/esm/resourceGraphClientContext.js.map +0 -1
  150. package/src/resourceGraphClientContext.ts +0 -55
@@ -0,0 +1,51 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=randomPageQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"randomPageQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/randomPageQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=resourceHistoryManagementGroupScopeQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceHistoryManagementGroupScopeQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/resourceHistoryManagementGroupScopeQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=resourceHistoryQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceHistoryQuery.d.ts","sourceRoot":"","sources":["../../samples-dev/resourceHistoryQuery.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=summarizeResourcesByLocation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summarizeResourcesByLocation.d.ts","sourceRoot":"","sources":["../../samples-dev/summarizeResourcesByLocation.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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/ResourcesSummarizeQuery.json
16
+ */
17
+ import { ResourceGraphClient } from "@azure/arm-resourcegraph";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function summarizeResourcesByLocation() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const query = {
22
+ query: "Resources | project id, name, type, location | summarize by location",
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
+ summarizeResourcesByLocation().catch(console.error);
32
+ //# sourceMappingURL=summarizeResourcesByLocation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summarizeResourcesByLocation.js","sourceRoot":"","sources":["../../samples-dev/summarizeResourcesByLocation.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,4BAA4B;;QACzC,MAAM,KAAK,GAAiB;YAC1B,KAAK,EACH,sEAAsE;YACxE,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,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /// <reference lib="esnext.asynciterable" />
2
+ export * from "./models";
3
+ export { ResourceGraphClient } from "./resourceGraphClient";
4
+ export * from "./operationsInterfaces";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,12 @@
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
+ /// <reference lib="esnext.asynciterable" />
9
+ export * from "./models";
10
+ export { ResourceGraphClient } from "./resourceGraphClient";
11
+ export * from "./operationsInterfaces";
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,216 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ export declare type FacetUnion = Facet | FacetResult | FacetError;
3
+ /** Describes a query to be executed. */
4
+ export interface QueryRequest {
5
+ /** Azure subscriptions against which to execute the query. */
6
+ subscriptions?: string[];
7
+ /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */
8
+ managementGroups?: string[];
9
+ /** The resources query. */
10
+ query: string;
11
+ /** The query evaluation options */
12
+ options?: QueryRequestOptions;
13
+ /** An array of facet requests to be computed against the query result. */
14
+ facets?: FacetRequest[];
15
+ }
16
+ /** The options for query evaluation */
17
+ export interface QueryRequestOptions {
18
+ /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */
19
+ skipToken?: string;
20
+ /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */
21
+ top?: number;
22
+ /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */
23
+ skip?: number;
24
+ /** Defines in which format query result returned. */
25
+ resultFormat?: ResultFormat;
26
+ /** Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case the number of subscriptions exceed allowed limits. */
27
+ allowPartialScopes?: boolean;
28
+ /** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */
29
+ authorizationScopeFilter?: AuthorizationScopeFilter;
30
+ }
31
+ /** A request to compute additional statistics (facets) over the query results. */
32
+ export interface FacetRequest {
33
+ /** The column or list of columns to summarize by */
34
+ expression: string;
35
+ /** The options for facet evaluation */
36
+ options?: FacetRequestOptions;
37
+ }
38
+ /** The options for facet evaluation */
39
+ export interface FacetRequestOptions {
40
+ /** The column name or query expression to sort on. Defaults to count if not present. */
41
+ sortBy?: string;
42
+ /** The sorting order by the selected column (count by default). */
43
+ sortOrder?: FacetSortOrder;
44
+ /** Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. */
45
+ filter?: string;
46
+ /** The maximum number of facet rows that should be returned. */
47
+ top?: number;
48
+ }
49
+ /** Query result. */
50
+ export interface QueryResponse {
51
+ /** Number of total records matching the query. */
52
+ totalRecords: number;
53
+ /** Number of records returned in the current response. In the case of paging, this is the number of records in the current page. */
54
+ count: number;
55
+ /** Indicates whether the query results are truncated. */
56
+ resultTruncated: ResultTruncated;
57
+ /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */
58
+ skipToken?: string;
59
+ /** Query output in JObject array or Table format. */
60
+ data: Record<string, unknown>;
61
+ /** Query facets. */
62
+ facets?: FacetUnion[];
63
+ }
64
+ /** A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError. */
65
+ export interface Facet {
66
+ /** Polymorphic discriminator, which specifies the different types this object can be */
67
+ resultType: "FacetResult" | "FacetError";
68
+ /** Facet expression, same as in the corresponding facet request. */
69
+ expression: string;
70
+ }
71
+ /** An error response from the API. */
72
+ export interface ErrorResponse {
73
+ /** Error information. */
74
+ error: ErrorModel;
75
+ }
76
+ /** Error details. */
77
+ export interface ErrorModel {
78
+ /** Error code identifying the specific error. */
79
+ code: string;
80
+ /** A human readable error message. */
81
+ message: string;
82
+ /** Error details */
83
+ details?: ErrorDetails[];
84
+ }
85
+ /** Error details. */
86
+ export interface ErrorDetails {
87
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
88
+ [property: string]: any;
89
+ /** Error code identifying the specific error. */
90
+ code: string;
91
+ /** A human readable error message. */
92
+ message: string;
93
+ }
94
+ /** Result of the request to list Resource Graph operations. It contains a list of operations and a URL link to get the next set of results. */
95
+ export interface OperationListResult {
96
+ /** List of Resource Graph operations supported by the Resource Graph resource provider. */
97
+ value?: Operation[];
98
+ }
99
+ /** Resource Graph REST API operation definition. */
100
+ export interface Operation {
101
+ /** Operation name: {provider}/{resource}/{operation} */
102
+ name?: string;
103
+ /** Display metadata associated with the operation. */
104
+ display?: OperationDisplay;
105
+ /** The origin of operations. */
106
+ origin?: string;
107
+ }
108
+ /** Display metadata associated with the operation. */
109
+ export interface OperationDisplay {
110
+ /** Service provider: Microsoft Resource Graph. */
111
+ provider?: string;
112
+ /** Resource on which the operation is performed etc. */
113
+ resource?: string;
114
+ /** Type of operation: get, read, delete, etc. */
115
+ operation?: string;
116
+ /** Description for the operation. */
117
+ description?: string;
118
+ }
119
+ /** Describes a history request to be executed. */
120
+ export interface ResourcesHistoryRequest {
121
+ /** Azure subscriptions against which to execute the query. */
122
+ subscriptions?: string[];
123
+ /** The resources query. */
124
+ query?: string;
125
+ /** The history request evaluation options */
126
+ options?: ResourcesHistoryRequestOptions;
127
+ /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */
128
+ managementGroups?: string[];
129
+ }
130
+ /** The options for history request evaluation */
131
+ export interface ResourcesHistoryRequestOptions {
132
+ /** The time interval used to fetch history. */
133
+ interval?: DateTimeInterval;
134
+ /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */
135
+ top?: number;
136
+ /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */
137
+ skip?: number;
138
+ /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */
139
+ skipToken?: string;
140
+ /** Defines in which format query result returned. */
141
+ resultFormat?: ResultFormat;
142
+ }
143
+ /** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */
144
+ export interface DateTimeInterval {
145
+ /** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */
146
+ start: Date;
147
+ /** A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error. */
148
+ end: Date;
149
+ }
150
+ /** Query output in tabular format. */
151
+ export interface Table {
152
+ /** Query result column descriptors. */
153
+ columns: Column[];
154
+ /** Query result rows. */
155
+ rows: Record<string, unknown>[][];
156
+ }
157
+ /** Query result column descriptor. */
158
+ export interface Column {
159
+ /** Column name. */
160
+ name: string;
161
+ /** Column data type. */
162
+ type: ColumnDataType;
163
+ }
164
+ /** Successfully executed facet containing additional statistics on the response of a query. */
165
+ export declare type FacetResult = Facet & {
166
+ /** Polymorphic discriminator, which specifies the different types this object can be */
167
+ resultType: "FacetResult";
168
+ /** Number of total records in the facet results. */
169
+ totalRecords: number;
170
+ /** Number of records returned in the facet response. */
171
+ count: number;
172
+ /** A JObject array or Table containing the desired facets. Only present if the facet is valid. */
173
+ data: Record<string, unknown>;
174
+ };
175
+ /** A facet whose execution resulted in an error. */
176
+ export declare type FacetError = Facet & {
177
+ /** Polymorphic discriminator, which specifies the different types this object can be */
178
+ resultType: "FacetError";
179
+ /** An array containing detected facet errors with details. */
180
+ errors: ErrorDetails[];
181
+ };
182
+ /** Defines values for ResultFormat. */
183
+ export declare type ResultFormat = "table" | "objectArray";
184
+ /** Defines values for AuthorizationScopeFilter. */
185
+ export declare type AuthorizationScopeFilter = "AtScopeAndBelow" | "AtScopeAndAbove" | "AtScopeExact" | "AtScopeAboveAndBelow";
186
+ /** Defines values for FacetSortOrder. */
187
+ export declare type FacetSortOrder = "asc" | "desc";
188
+ /** Defines values for ResultTruncated. */
189
+ export declare type ResultTruncated = "true" | "false";
190
+ /** Defines values for ColumnDataType. */
191
+ export declare type ColumnDataType = "string" | "integer" | "number" | "boolean" | "object" | "datetime";
192
+ /** Optional parameters. */
193
+ export interface ResourcesOptionalParams extends coreClient.OperationOptions {
194
+ }
195
+ /** Contains response data for the resources operation. */
196
+ export declare type ResourcesResponse = QueryResponse;
197
+ /** Optional parameters. */
198
+ export interface ResourcesHistoryOptionalParams extends coreClient.OperationOptions {
199
+ }
200
+ /** Contains response data for the resourcesHistory operation. */
201
+ export declare type ResourcesHistoryResponse = Record<string, unknown>;
202
+ /** Optional parameters. */
203
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
204
+ }
205
+ /** Contains response data for the list operation. */
206
+ export declare type OperationsListResponse = OperationListResult;
207
+ /** Optional parameters. */
208
+ export interface ResourceGraphClientOptionalParams extends coreClient.ServiceClientOptions {
209
+ /** server parameter */
210
+ $host?: string;
211
+ /** Api Version */
212
+ apiVersion?: string;
213
+ /** Overrides client endpoint. */
214
+ endpoint?: string;
215
+ }
216
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,oBAAY,UAAU,GAAG,KAAK,GAAG,WAAW,GAAG,UAAU,CAAC;AAE1D,wCAAwC;AACxC,MAAM,WAAW,YAAY;IAC3B,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B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avior and will be lost if the code is regenerated.
7
7
  */
8
-
9
- export {
10
- discriminators,
11
- ErrorDetails,
12
- ErrorModel,
13
- ErrorResponse,
14
- Operation,
15
- OperationDisplay,
16
- OperationListResult
17
- } from "../models/mappers";
8
+ export {};
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,26 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ export declare const QueryRequest: coreClient.CompositeMapper;
3
+ export declare const QueryRequestOptions: coreClient.CompositeMapper;
4
+ export declare const FacetRequest: coreClient.CompositeMapper;
5
+ export declare const FacetRequestOptions: coreClient.CompositeMapper;
6
+ export declare const QueryResponse: coreClient.CompositeMapper;
7
+ export declare const Facet: coreClient.CompositeMapper;
8
+ export declare const ErrorResponse: coreClient.CompositeMapper;
9
+ export declare const ErrorModel: coreClient.CompositeMapper;
10
+ export declare const ErrorDetails: coreClient.CompositeMapper;
11
+ export declare const OperationListResult: coreClient.CompositeMapper;
12
+ export declare const Operation: coreClient.CompositeMapper;
13
+ export declare const OperationDisplay: coreClient.CompositeMapper;
14
+ export declare const ResourcesHistoryRequest: coreClient.CompositeMapper;
15
+ export declare const ResourcesHistoryRequestOptions: coreClient.CompositeMapper;
16
+ export declare const DateTimeInterval: coreClient.CompositeMapper;
17
+ export declare const Table: coreClient.CompositeMapper;
18
+ export declare const Column: coreClient.CompositeMapper;
19
+ export declare const FacetResult: coreClient.CompositeMapper;
20
+ export declare const FacetError: coreClient.CompositeMapper;
21
+ export declare let discriminators: {
22
+ Facet: coreClient.CompositeMapper;
23
+ "Facet.FacetResult": coreClient.CompositeMapper;
24
+ "Facet.FacetError": coreClient.CompositeMapper;
25
+ };
26
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts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