@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
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/models/parameters.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,kBASnC,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,uBAS/B,CAAC"}
@@ -1,29 +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
7
- * regenerated.
8
- */
9
- export var acceptLanguage = {
10
- parameterPath: "acceptLanguage",
11
- mapper: {
12
- serializedName: "accept-language",
13
- defaultValue: 'en-US',
14
- type: {
15
- name: "String"
16
- }
17
- }
18
- };
19
- export var apiVersion = {
20
- parameterPath: "apiVersion",
21
- mapper: {
22
- required: true,
23
- serializedName: "api-version",
24
- type: {
25
- name: "String"
26
- }
27
- }
28
- };
29
- //# sourceMappingURL=parameters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,IAAM,cAAc,GAA8B;IACvD,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,OAAO;QACrB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AACF,MAAM,CAAC,IAAM,UAAU,GAAmC;IACxD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AASA,cAAc,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,cAAc,CAAC"}
@@ -1,28 +0,0 @@
1
- import * as msRest from "@azure/ms-rest-js";
2
- import * as Models from "../models";
3
- import { ResourceGraphClientContext } from "../resourceGraphClientContext";
4
- /** Class representing a Operations. */
5
- export declare class Operations {
6
- private readonly client;
7
- /**
8
- * Create a Operations.
9
- * @param {ResourceGraphClientContext} client Reference to the service client.
10
- */
11
- constructor(client: ResourceGraphClientContext);
12
- /**
13
- * Lists all of the available REST API operations.
14
- * @param [options] The optional parameters
15
- * @returns Promise<Models.OperationsListResponse>
16
- */
17
- list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
18
- /**
19
- * @param callback The callback
20
- */
21
- list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
22
- /**
23
- * @param options The optional parameters
24
- * @param callback The callback
25
- */
26
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
27
- }
28
- //# sourceMappingURL=operations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/operations/operations.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAE3E,uCAAuC;AACvC,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC;IACjF;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,mBAAmB,CAAC,GAAG,IAAI;IACxE;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,mBAAmB,CAAC,GAAG,IAAI;CAS7G"}
@@ -1,50 +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
7
- * regenerated.
8
- */
9
- import * as msRest from "@azure/ms-rest-js";
10
- import * as Mappers from "../models/operationsMappers";
11
- import * as Parameters from "../models/parameters";
12
- /** Class representing a Operations. */
13
- var Operations = /** @class */ (function () {
14
- /**
15
- * Create a Operations.
16
- * @param {ResourceGraphClientContext} client Reference to the service client.
17
- */
18
- function Operations(client) {
19
- this.client = client;
20
- }
21
- Operations.prototype.list = function (options, callback) {
22
- return this.client.sendOperationRequest({
23
- options: options
24
- }, listOperationSpec, callback);
25
- };
26
- return Operations;
27
- }());
28
- export { Operations };
29
- // Operation Specifications
30
- var serializer = new msRest.Serializer(Mappers);
31
- var listOperationSpec = {
32
- httpMethod: "GET",
33
- path: "providers/Microsoft.ResourceGraph/operations",
34
- queryParameters: [
35
- Parameters.apiVersion
36
- ],
37
- headerParameters: [
38
- Parameters.acceptLanguage
39
- ],
40
- responses: {
41
- 200: {
42
- bodyMapper: Mappers.OperationListResult
43
- },
44
- default: {
45
- bodyMapper: Mappers.ErrorResponse
46
- }
47
- },
48
- serializer: serializer
49
- };
50
- //# sourceMappingURL=operations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAGnD,uCAAuC;AACvC;IAGE;;;OAGG;IACH,oBAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAiBD,yBAAI,GAAJ,UAAK,OAAwF,EAAE,QAA6D;QAC1J,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,OAAO,SAAA;SACR,EACD,iBAAiB,EACjB,QAAQ,CAA2C,CAAC;IACxD,CAAC;IACH,iBAAC;AAAD,CAAC,AAlCD,IAkCC;;AAED,2BAA2B;AAC3B,IAAM,UAAU,GAAG,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAClD,IAAM,iBAAiB,GAAyB;IAC9C,UAAU,EAAE,KAAK;IACjB,IAAI,EAAE,8CAA8C;IACpD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,cAAc;KAC1B;IACD,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,UAAU,YAAA;CACX,CAAC"}
@@ -1,35 +0,0 @@
1
- import * as msRest from "@azure/ms-rest-js";
2
- import * as Models from "./models";
3
- import * as Mappers from "./models/mappers";
4
- import * as operations from "./operations";
5
- import { ResourceGraphClientContext } from "./resourceGraphClientContext";
6
- declare class ResourceGraphClient extends ResourceGraphClientContext {
7
- operations: operations.Operations;
8
- /**
9
- * Initializes a new instance of the ResourceGraphClient class.
10
- * @param credentials Credentials needed for the client to connect to Azure.
11
- * @param [options] The parameter options
12
- */
13
- constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ResourceGraphClientOptions);
14
- /**
15
- * Queries the resources managed by Azure Resource Manager for scopes specified in the request.
16
- * @param query Request specifying query and its options.
17
- * @param [options] The optional parameters
18
- * @returns Promise<Models.ResourcesResponse>
19
- */
20
- resources(query: Models.QueryRequest, options?: msRest.RequestOptionsBase): Promise<Models.ResourcesResponse>;
21
- /**
22
- * @param query Request specifying query and its options.
23
- * @param callback The callback
24
- */
25
- resources(query: Models.QueryRequest, callback: msRest.ServiceCallback<Models.QueryResponse>): void;
26
- /**
27
- * @param query Request specifying query and its options.
28
- * @param options The optional parameters
29
- * @param callback The callback
30
- */
31
- resources(query: Models.QueryRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.QueryResponse>): void;
32
- }
33
- export { ResourceGraphClient, ResourceGraphClientContext, Models as ResourceGraphModels, Mappers as ResourceGraphMappers };
34
- export * from "./operations";
35
- //# sourceMappingURL=resourceGraphClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceGraphClient.d.ts","sourceRoot":"","sources":["../src/resourceGraphClient.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAG1E,cAAM,mBAAoB,SAAQ,0BAA0B;IAE1D,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAElC;;;;OAIG;gBACS,WAAW,EAAE,MAAM,CAAC,wBAAwB,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,0BAA0B;IAKrG;;;;;OAKG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC;IAC7G;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI;IACnG;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI;CAUxI;AA+BD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,MAAM,IAAI,mBAAmB,EAC7B,OAAO,IAAI,oBAAoB,EAChC,CAAC;AACF,cAAc,cAAc,CAAC"}
@@ -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
7
- * regenerated.
8
- */
9
- import { __assign, __extends } from "tslib";
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "./models";
12
- import * as Mappers from "./models/mappers";
13
- import * as Parameters from "./models/parameters";
14
- import * as operations from "./operations";
15
- import { ResourceGraphClientContext } from "./resourceGraphClientContext";
16
- var ResourceGraphClient = /** @class */ (function (_super) {
17
- __extends(ResourceGraphClient, _super);
18
- /**
19
- * Initializes a new instance of the ResourceGraphClient class.
20
- * @param credentials Credentials needed for the client to connect to Azure.
21
- * @param [options] The parameter options
22
- */
23
- function ResourceGraphClient(credentials, options) {
24
- var _this = _super.call(this, credentials, options) || this;
25
- _this.operations = new operations.Operations(_this);
26
- return _this;
27
- }
28
- ResourceGraphClient.prototype.resources = function (query, options, callback) {
29
- return this.sendOperationRequest({
30
- query: query,
31
- options: options
32
- }, resourcesOperationSpec, callback);
33
- };
34
- return ResourceGraphClient;
35
- }(ResourceGraphClientContext));
36
- // Operation Specifications
37
- var serializer = new msRest.Serializer(Mappers);
38
- var resourcesOperationSpec = {
39
- httpMethod: "POST",
40
- path: "providers/Microsoft.ResourceGraph/resources",
41
- queryParameters: [
42
- Parameters.apiVersion
43
- ],
44
- headerParameters: [
45
- Parameters.acceptLanguage
46
- ],
47
- requestBody: {
48
- parameterPath: "query",
49
- mapper: __assign(__assign({}, Mappers.QueryRequest), { required: true })
50
- },
51
- responses: {
52
- 200: {
53
- bodyMapper: Mappers.QueryResponse
54
- },
55
- default: {
56
- bodyMapper: Mappers.ErrorResponse
57
- }
58
- },
59
- serializer: serializer
60
- };
61
- export { ResourceGraphClient, ResourceGraphClientContext, Models as ResourceGraphModels, Mappers as ResourceGraphMappers };
62
- export * from "./operations";
63
- //# sourceMappingURL=resourceGraphClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceGraphClient.js","sourceRoot":"","sources":["../src/resourceGraphClient.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAG1E;IAAkC,uCAA0B;IAI1D;;;;OAIG;IACH,6BAAY,WAA4C,EAAE,OAA2C;QAArG,YACE,kBAAM,WAAW,EAAE,OAAO,CAAC,SAE5B;QADC,KAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,UAAU,CAAC,KAAI,CAAC,CAAC;;IACpD,CAAC;IAoBD,uCAAS,GAAT,UAAU,KAA0B,EAAE,OAAkF,EAAE,QAAuD;QAC/K,OAAO,IAAI,CAAC,oBAAoB,CAC9B;YACE,KAAK,OAAA;YACL,OAAO,SAAA;SACR,EACD,sBAAsB,EACtB,QAAQ,CAAsC,CAAC;IACnD,CAAC;IACH,0BAAC;AAAD,CAAC,AAzCD,CAAkC,0BAA0B,GAyC3D;AAED,2BAA2B;AAC3B,IAAM,UAAU,GAAG,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAClD,IAAM,sBAAsB,GAAyB;IACnD,UAAU,EAAE,MAAM;IAClB,IAAI,EAAE,6CAA6C;IACnD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,cAAc;KAC1B;IACD,WAAW,EAAE;QACX,aAAa,EAAE,OAAO;QACtB,MAAM,wBACD,OAAO,CAAC,YAAY,KACvB,QAAQ,EAAE,IAAI,GACf;KACF;IACD,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,UAAU,YAAA;CACX,CAAC;AAEF,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,MAAM,IAAI,mBAAmB,EAC7B,OAAO,IAAI,oBAAoB,EAChC,CAAC;AACF,cAAc,cAAc,CAAC"}
@@ -1,14 +0,0 @@
1
- import * as Models from "./models";
2
- import * as msRest from "@azure/ms-rest-js";
3
- import * as msRestAzure from "@azure/ms-rest-azure-js";
4
- export declare class ResourceGraphClientContext extends msRestAzure.AzureServiceClient {
5
- credentials: msRest.ServiceClientCredentials;
6
- apiVersion?: string;
7
- /**
8
- * Initializes a new instance of the ResourceGraphClient class.
9
- * @param credentials Credentials needed for the client to connect to Azure.
10
- * @param [options] The parameter options
11
- */
12
- constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ResourceGraphClientOptions);
13
- }
14
- //# sourceMappingURL=resourceGraphClientContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceGraphClientContext.d.ts","sourceRoot":"","sources":["../src/resourceGraphClientContext.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AAKvD,qBAAa,0BAA2B,SAAQ,WAAW,CAAC,kBAAkB;IAC5E,WAAW,EAAE,MAAM,CAAC,wBAAwB,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;gBACS,WAAW,EAAE,MAAM,CAAC,wBAAwB,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,0BAA0B;CA6BtG"}
@@ -1,50 +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
7
- * regenerated.
8
- */
9
- import { __extends } from "tslib";
10
- import * as msRestAzure from "@azure/ms-rest-azure-js";
11
- var packageName = "@azure/arm-resourcegraph";
12
- var packageVersion = "4.0.0";
13
- var ResourceGraphClientContext = /** @class */ (function (_super) {
14
- __extends(ResourceGraphClientContext, _super);
15
- /**
16
- * Initializes a new instance of the ResourceGraphClient class.
17
- * @param credentials Credentials needed for the client to connect to Azure.
18
- * @param [options] The parameter options
19
- */
20
- function ResourceGraphClientContext(credentials, options) {
21
- var _this = this;
22
- if (credentials == undefined) {
23
- throw new Error('\'credentials\' cannot be null.');
24
- }
25
- if (!options) {
26
- options = {};
27
- }
28
- if (!options.userAgent) {
29
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
30
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
31
- }
32
- _this = _super.call(this, credentials, options) || this;
33
- _this.apiVersion = '2021-03-01';
34
- _this.acceptLanguage = 'en-US';
35
- _this.longRunningOperationRetryTimeout = 30;
36
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
37
- _this.requestContentType = "application/json; charset=utf-8";
38
- _this.credentials = credentials;
39
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
40
- _this.acceptLanguage = options.acceptLanguage;
41
- }
42
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
43
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
44
- }
45
- return _this;
46
- }
47
- return ResourceGraphClientContext;
48
- }(msRestAzure.AzureServiceClient));
49
- export { ResourceGraphClientContext };
50
- //# sourceMappingURL=resourceGraphClientContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceGraphClientContext.js","sourceRoot":"","sources":["../src/resourceGraphClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAIH,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AAEvD,IAAM,WAAW,GAAG,0BAA0B,CAAC;AAC/C,IAAM,cAAc,GAAG,OAAO,CAAC;AAE/B;IAAgD,8CAA8B;IAI5E;;;;OAIG;IACH,oCAAY,WAA4C,EAAE,OAA2C;QAArG,iBA4BC;QA3BC,IAAI,WAAW,IAAI,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,IAAM,gBAAgB,GAAG,WAAW,CAAC,wBAAwB,EAAE,CAAC;YAChE,OAAO,CAAC,SAAS,GAAM,WAAW,SAAI,cAAc,SAAI,gBAAkB,CAAC;SAC5E;QAED,QAAA,kBAAM,WAAW,EAAE,OAAO,CAAC,SAAC;QAE5B,KAAI,CAAC,UAAU,GAAG,YAAY,CAAC;QAC/B,KAAI,CAAC,cAAc,GAAG,OAAO,CAAC;QAC9B,KAAI,CAAC,gCAAgC,GAAG,EAAE,CAAC;QAC3C,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,KAAI,CAAC,OAAO,IAAI,8BAA8B,CAAC;QACjF,KAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAC5D,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS,EAAE;YAC3E,KAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;SAC9C;QACD,IAAI,OAAO,CAAC,gCAAgC,KAAK,IAAI,IAAI,OAAO,CAAC,gCAAgC,KAAK,SAAS,EAAE;YAC/G,KAAI,CAAC,gCAAgC,GAAG,OAAO,CAAC,gCAAgC,CAAC;SAClF;;IACH,CAAC;IACH,iCAAC;AAAD,CAAC,AAtCD,CAAgD,WAAW,CAAC,kBAAkB,GAsC7E"}
@@ -1,55 +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
7
- * regenerated.
8
- */
9
-
10
- import * as Models from "./models";
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
-
14
- const packageName = "@azure/arm-resourcegraph";
15
- const packageVersion = "4.0.0";
16
-
17
- export class ResourceGraphClientContext extends msRestAzure.AzureServiceClient {
18
- credentials: msRest.ServiceClientCredentials;
19
- apiVersion?: string;
20
-
21
- /**
22
- * Initializes a new instance of the ResourceGraphClient class.
23
- * @param credentials Credentials needed for the client to connect to Azure.
24
- * @param [options] The parameter options
25
- */
26
- constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ResourceGraphClientOptions) {
27
- if (credentials == undefined) {
28
- throw new Error('\'credentials\' cannot be null.');
29
- }
30
-
31
- if (!options) {
32
- options = {};
33
- }
34
- if (!options.userAgent) {
35
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
36
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
37
- }
38
-
39
- super(credentials, options);
40
-
41
- this.apiVersion = '2021-03-01';
42
- this.acceptLanguage = 'en-US';
43
- this.longRunningOperationRetryTimeout = 30;
44
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
45
- this.requestContentType = "application/json; charset=utf-8";
46
- this.credentials = credentials;
47
-
48
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
49
- this.acceptLanguage = options.acceptLanguage;
50
- }
51
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
52
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
53
- }
54
- }
55
- }