@azure/arm-resourcehealth 3.2.1-alpha.20230522.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/CHANGELOG.md +111 -8
  2. package/dist/index.js +2621 -386
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js +1 -1
  7. package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +3 -3
  8. package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +3 -3
  9. package/dist-esm/samples-dev/availabilityStatusesListSample.js +3 -3
  10. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +4 -4
  11. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
  12. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +4 -4
  13. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
  14. package/dist-esm/samples-dev/childResourcesListSample.js +3 -3
  15. package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
  16. package/dist-esm/samples-dev/emergingIssuesGetSample.js +3 -2
  17. package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
  18. package/dist-esm/samples-dev/emergingIssuesListSample.js +1 -1
  19. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +37 -0
  22. package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js.map +1 -0
  23. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +38 -0
  26. package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -0
  27. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +43 -0
  30. package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js.map +1 -0
  31. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +44 -0
  34. package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -0
  35. package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +59 -0
  38. package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -0
  39. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +63 -0
  42. package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js.map +1 -0
  43. package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/eventsListByTenantIdSample.js +64 -0
  46. package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -0
  47. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +39 -0
  50. package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -0
  51. package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/impactedResourcesGetSample.js +38 -0
  54. package/dist-esm/samples-dev/impactedResourcesGetSample.js.map +1 -0
  55. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +62 -0
  58. package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -0
  59. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +63 -0
  62. package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -0
  63. package/dist-esm/samples-dev/metadataGetEntitySample.d.ts +2 -0
  64. package/dist-esm/samples-dev/metadataGetEntitySample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/metadataGetEntitySample.js +38 -0
  66. package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -0
  67. package/dist-esm/samples-dev/metadataListSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/metadataListSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/metadataListSample.js +58 -0
  70. package/dist-esm/samples-dev/metadataListSample.js.map +1 -0
  71. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/operationsListSample.js +37 -0
  74. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  75. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +58 -0
  78. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -0
  79. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +59 -0
  82. package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -0
  83. package/dist-esm/src/microsoftResourceHealth.d.ts +8 -4
  84. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
  85. package/dist-esm/src/microsoftResourceHealth.js +10 -6
  86. package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
  87. package/dist-esm/src/models/index.d.ts +657 -34
  88. package/dist-esm/src/models/index.d.ts.map +1 -1
  89. package/dist-esm/src/models/index.js +114 -0
  90. package/dist-esm/src/models/index.js.map +1 -1
  91. package/dist-esm/src/models/mappers.d.ts +24 -3
  92. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  93. package/dist-esm/src/models/mappers.js +883 -100
  94. package/dist-esm/src/models/mappers.js.map +1 -1
  95. package/dist-esm/src/models/parameters.d.ts +4 -0
  96. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  97. package/dist-esm/src/models/parameters.js +51 -3
  98. package/dist-esm/src/models/parameters.js.map +1 -1
  99. package/dist-esm/src/operations/availabilityStatuses.d.ts +9 -15
  100. package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -1
  101. package/dist-esm/src/operations/availabilityStatuses.js +9 -15
  102. package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
  103. package/dist-esm/src/operations/emergingIssues.d.ts +6 -5
  104. package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -1
  105. package/dist-esm/src/operations/emergingIssues.js +15 -14
  106. package/dist-esm/src/operations/emergingIssues.js.map +1 -1
  107. package/dist-esm/src/operations/eventOperations.d.ts +39 -0
  108. package/dist-esm/src/operations/eventOperations.d.ts.map +1 -0
  109. package/dist-esm/src/operations/eventOperations.js +137 -0
  110. package/dist-esm/src/operations/eventOperations.js.map +1 -0
  111. package/dist-esm/src/operations/eventsOperations.d.ts +83 -0
  112. package/dist-esm/src/operations/eventsOperations.d.ts.map +1 -0
  113. package/dist-esm/src/operations/eventsOperations.js +393 -0
  114. package/dist-esm/src/operations/eventsOperations.js.map +1 -0
  115. package/dist-esm/src/operations/impactedResources.d.ts +72 -0
  116. package/dist-esm/src/operations/impactedResources.d.ts.map +1 -0
  117. package/dist-esm/src/operations/impactedResources.js +330 -0
  118. package/dist-esm/src/operations/impactedResources.js.map +1 -0
  119. package/dist-esm/src/operations/index.d.ts +6 -1
  120. package/dist-esm/src/operations/index.d.ts.map +1 -1
  121. package/dist-esm/src/operations/index.js +6 -1
  122. package/dist-esm/src/operations/index.js.map +1 -1
  123. package/dist-esm/src/operations/metadata.d.ts +38 -0
  124. package/dist-esm/src/operations/metadata.d.ts.map +1 -0
  125. package/dist-esm/src/operations/metadata.js +162 -0
  126. package/dist-esm/src/operations/metadata.js.map +1 -0
  127. package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts +58 -0
  128. package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts.map +1 -0
  129. package/dist-esm/src/operations/securityAdvisoryImpactedResources.js +271 -0
  130. package/dist-esm/src/operations/securityAdvisoryImpactedResources.js.map +1 -0
  131. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +4 -7
  132. package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -1
  133. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +3 -2
  134. package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -1
  135. package/dist-esm/src/operationsInterfaces/eventOperations.d.ts +31 -0
  136. package/dist-esm/src/operationsInterfaces/eventOperations.d.ts.map +1 -0
  137. package/dist-esm/src/operationsInterfaces/eventOperations.js +9 -0
  138. package/dist-esm/src/operationsInterfaces/eventOperations.js.map +1 -0
  139. package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts +26 -0
  140. package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts.map +1 -0
  141. package/dist-esm/src/operationsInterfaces/eventsOperations.js +9 -0
  142. package/dist-esm/src/operationsInterfaces/eventsOperations.js.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/impactedResources.d.ts +32 -0
  144. package/dist-esm/src/operationsInterfaces/impactedResources.d.ts.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/impactedResources.js +9 -0
  146. package/dist-esm/src/operationsInterfaces/impactedResources.js.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -1
  148. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  149. package/dist-esm/src/operationsInterfaces/index.js +6 -1
  150. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  151. package/dist-esm/src/operationsInterfaces/metadata.d.ts +17 -0
  152. package/dist-esm/src/operationsInterfaces/metadata.d.ts.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/metadata.js +9 -0
  154. package/dist-esm/src/operationsInterfaces/metadata.js.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts +18 -0
  156. package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +1 -0
  157. package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js +9 -0
  158. package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js.map +1 -0
  159. package/dist-esm/test/resourcehealth_operations_test.spec.d.ts +4 -0
  160. package/dist-esm/test/resourcehealth_operations_test.spec.d.ts.map +1 -0
  161. package/dist-esm/test/resourcehealth_operations_test.spec.js +56 -0
  162. package/dist-esm/test/resourcehealth_operations_test.spec.js.map +1 -0
  163. package/package.json +6 -6
  164. package/review/arm-resourcehealth.api.md +516 -8
  165. package/src/microsoftResourceHealth.ts +29 -8
  166. package/src/models/index.ts +757 -35
  167. package/src/models/mappers.ts +956 -101
  168. package/src/models/parameters.ts +55 -3
  169. package/src/operations/availabilityStatuses.ts +9 -15
  170. package/src/operations/emergingIssues.ts +24 -18
  171. package/src/operations/eventOperations.ts +184 -0
  172. package/src/operations/eventsOperations.ts +434 -0
  173. package/src/operations/impactedResources.ts +414 -0
  174. package/src/operations/index.ts +6 -1
  175. package/src/operations/metadata.ts +182 -0
  176. package/src/operations/securityAdvisoryImpactedResources.ts +342 -0
  177. package/src/operationsInterfaces/availabilityStatuses.ts +4 -7
  178. package/src/operationsInterfaces/emergingIssues.ts +3 -0
  179. package/src/operationsInterfaces/eventOperations.ts +60 -0
  180. package/src/operationsInterfaces/eventsOperations.ts +47 -0
  181. package/src/operationsInterfaces/impactedResources.ts +63 -0
  182. package/src/operationsInterfaces/index.ts +6 -1
  183. package/src/operationsInterfaces/metadata.ts +36 -0
  184. package/src/operationsInterfaces/securityAdvisoryImpactedResources.ts +37 -0
  185. package/types/arm-resourcehealth.d.ts +853 -23
  186. package/dist-esm/test/sampleTest.d.ts +0 -2
  187. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  188. package/dist-esm/test/sampleTest.js +0 -38
  189. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -0,0 +1,72 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ImpactedResources } from "../operationsInterfaces";
3
+ import { MicrosoftResourceHealth } from "../microsoftResourceHealth";
4
+ import { EventImpactedResource, ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ImpactedResourcesListByTenantIdAndEventIdOptionalParams, ImpactedResourcesGetOptionalParams, ImpactedResourcesGetResponse, ImpactedResourcesGetByTenantIdOptionalParams, ImpactedResourcesGetByTenantIdResponse } from "../models";
5
+ /** Class containing ImpactedResources operations. */
6
+ export declare class ImpactedResourcesImpl implements ImpactedResources {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ImpactedResources class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: MicrosoftResourceHealth);
13
+ /**
14
+ * Lists impacted resources in the subscription by an event.
15
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
16
+ * @param options The options parameters.
17
+ */
18
+ listBySubscriptionIdAndEventId(eventTrackingId: string, options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams): PagedAsyncIterableIterator<EventImpactedResource>;
19
+ private listBySubscriptionIdAndEventIdPagingPage;
20
+ private listBySubscriptionIdAndEventIdPagingAll;
21
+ /**
22
+ * Lists impacted resources in the tenant by an event.
23
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
24
+ * @param options The options parameters.
25
+ */
26
+ listByTenantIdAndEventId(eventTrackingId: string, options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams): PagedAsyncIterableIterator<EventImpactedResource>;
27
+ private listByTenantIdAndEventIdPagingPage;
28
+ private listByTenantIdAndEventIdPagingAll;
29
+ /**
30
+ * Lists impacted resources in the subscription by an event.
31
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
32
+ * @param options The options parameters.
33
+ */
34
+ private _listBySubscriptionIdAndEventId;
35
+ /**
36
+ * Gets the specific impacted resource in the subscription by an event.
37
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
38
+ * @param impactedResourceName Name of the Impacted Resource.
39
+ * @param options The options parameters.
40
+ */
41
+ get(eventTrackingId: string, impactedResourceName: string, options?: ImpactedResourcesGetOptionalParams): Promise<ImpactedResourcesGetResponse>;
42
+ /**
43
+ * Lists impacted resources in the tenant by an event.
44
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
45
+ * @param options The options parameters.
46
+ */
47
+ private _listByTenantIdAndEventId;
48
+ /**
49
+ * Gets the specific impacted resource in the tenant by an event.
50
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
51
+ * @param impactedResourceName Name of the Impacted Resource.
52
+ * @param options The options parameters.
53
+ */
54
+ getByTenantId(eventTrackingId: string, impactedResourceName: string, options?: ImpactedResourcesGetByTenantIdOptionalParams): Promise<ImpactedResourcesGetByTenantIdResponse>;
55
+ /**
56
+ * ListBySubscriptionIdAndEventIdNext
57
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
58
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId
59
+ * method.
60
+ * @param options The options parameters.
61
+ */
62
+ private _listBySubscriptionIdAndEventIdNext;
63
+ /**
64
+ * ListByTenantIdAndEventIdNext
65
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
66
+ * @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId
67
+ * method.
68
+ * @param options The options parameters.
69
+ */
70
+ private _listByTenantIdAndEventIdNext;
71
+ }
72
+ //# sourceMappingURL=impactedResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"impactedResources.d.ts","sourceRoot":"","sources":["../../../src/operations/impactedResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,qBAAqB,EAErB,6DAA6D,EAG7D,uDAAuD,EAEvD,kCAAkC,EAClC,4BAA4B,EAC5B,4CAA4C,EAC5C,sCAAsC,EAGvC,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACI,8BAA8B,CACnC,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,6DAA6D,GACtE,0BAA0B,CAAC,qBAAqB,CAAC;YAyBrC,wCAAwC;YA8BxC,uCAAuC;IAYtD;;;;OAIG;IACI,wBAAwB,CAC7B,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,uDAAuD,GAChE,0BAA0B,CAAC,qBAAqB,CAAC;YAyBrC,kCAAkC;YA2BlC,iCAAiC;IAYhD;;;;OAIG;IACH,OAAO,CAAC,+BAA+B;IAUvC;;;;;OAKG;IACH,GAAG,CACD,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IAOxC;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAUjC;;;;;OAKG;IACH,aAAa,CACX,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;IAOlD;;;;;;OAMG;IACH,OAAO,CAAC,mCAAmC;IAW3C;;;;;;OAMG;IACH,OAAO,CAAC,6BAA6B;CAUtC"}
@@ -0,0 +1,330 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing ImpactedResources operations. */
15
+ export class ImpactedResourcesImpl {
16
+ /**
17
+ * Initialize a new instance of the class ImpactedResources class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Lists impacted resources in the subscription by an event.
25
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
26
+ * @param options The options parameters.
27
+ */
28
+ listBySubscriptionIdAndEventId(eventTrackingId, options) {
29
+ const iter = this.listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: (settings) => {
38
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ throw new Error("maxPageSize is not supported by this operation.");
40
+ }
41
+ return this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings);
42
+ }
43
+ };
44
+ }
45
+ listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings) {
46
+ return __asyncGenerator(this, arguments, function* listBySubscriptionIdAndEventIdPagingPage_1() {
47
+ let result;
48
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
+ if (!continuationToken) {
50
+ result = yield __await(this._listBySubscriptionIdAndEventId(eventTrackingId, options));
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield yield __await(page);
55
+ }
56
+ while (continuationToken) {
57
+ result = yield __await(this._listBySubscriptionIdAndEventIdNext(eventTrackingId, continuationToken, options));
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield yield __await(page);
62
+ }
63
+ });
64
+ }
65
+ listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options) {
66
+ return __asyncGenerator(this, arguments, function* listBySubscriptionIdAndEventIdPagingAll_1() {
67
+ var _a, e_1, _b, _c;
68
+ try {
69
+ for (var _d = true, _e = __asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
70
+ _c = _f.value;
71
+ _d = false;
72
+ try {
73
+ const page = _c;
74
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
+ }
76
+ finally {
77
+ _d = true;
78
+ }
79
+ }
80
+ }
81
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
+ finally {
83
+ try {
84
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
85
+ }
86
+ finally { if (e_1) throw e_1.error; }
87
+ }
88
+ });
89
+ }
90
+ /**
91
+ * Lists impacted resources in the tenant by an event.
92
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
93
+ * @param options The options parameters.
94
+ */
95
+ listByTenantIdAndEventId(eventTrackingId, options) {
96
+ const iter = this.listByTenantIdAndEventIdPagingAll(eventTrackingId, options);
97
+ return {
98
+ next() {
99
+ return iter.next();
100
+ },
101
+ [Symbol.asyncIterator]() {
102
+ return this;
103
+ },
104
+ byPage: (settings) => {
105
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
106
+ throw new Error("maxPageSize is not supported by this operation.");
107
+ }
108
+ return this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings);
109
+ }
110
+ };
111
+ }
112
+ listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings) {
113
+ return __asyncGenerator(this, arguments, function* listByTenantIdAndEventIdPagingPage_1() {
114
+ let result;
115
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
116
+ if (!continuationToken) {
117
+ result = yield __await(this._listByTenantIdAndEventId(eventTrackingId, options));
118
+ let page = result.value || [];
119
+ continuationToken = result.nextLink;
120
+ setContinuationToken(page, continuationToken);
121
+ yield yield __await(page);
122
+ }
123
+ while (continuationToken) {
124
+ result = yield __await(this._listByTenantIdAndEventIdNext(eventTrackingId, continuationToken, options));
125
+ continuationToken = result.nextLink;
126
+ let page = result.value || [];
127
+ setContinuationToken(page, continuationToken);
128
+ yield yield __await(page);
129
+ }
130
+ });
131
+ }
132
+ listByTenantIdAndEventIdPagingAll(eventTrackingId, options) {
133
+ return __asyncGenerator(this, arguments, function* listByTenantIdAndEventIdPagingAll_1() {
134
+ var _a, e_2, _b, _c;
135
+ try {
136
+ for (var _d = true, _e = __asyncValues(this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
137
+ _c = _f.value;
138
+ _d = false;
139
+ try {
140
+ const page = _c;
141
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
142
+ }
143
+ finally {
144
+ _d = true;
145
+ }
146
+ }
147
+ }
148
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
149
+ finally {
150
+ try {
151
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
152
+ }
153
+ finally { if (e_2) throw e_2.error; }
154
+ }
155
+ });
156
+ }
157
+ /**
158
+ * Lists impacted resources in the subscription by an event.
159
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
160
+ * @param options The options parameters.
161
+ */
162
+ _listBySubscriptionIdAndEventId(eventTrackingId, options) {
163
+ return this.client.sendOperationRequest({ eventTrackingId, options }, listBySubscriptionIdAndEventIdOperationSpec);
164
+ }
165
+ /**
166
+ * Gets the specific impacted resource in the subscription by an event.
167
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
168
+ * @param impactedResourceName Name of the Impacted Resource.
169
+ * @param options The options parameters.
170
+ */
171
+ get(eventTrackingId, impactedResourceName, options) {
172
+ return this.client.sendOperationRequest({ eventTrackingId, impactedResourceName, options }, getOperationSpec);
173
+ }
174
+ /**
175
+ * Lists impacted resources in the tenant by an event.
176
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
177
+ * @param options The options parameters.
178
+ */
179
+ _listByTenantIdAndEventId(eventTrackingId, options) {
180
+ return this.client.sendOperationRequest({ eventTrackingId, options }, listByTenantIdAndEventIdOperationSpec);
181
+ }
182
+ /**
183
+ * Gets the specific impacted resource in the tenant by an event.
184
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
185
+ * @param impactedResourceName Name of the Impacted Resource.
186
+ * @param options The options parameters.
187
+ */
188
+ getByTenantId(eventTrackingId, impactedResourceName, options) {
189
+ return this.client.sendOperationRequest({ eventTrackingId, impactedResourceName, options }, getByTenantIdOperationSpec);
190
+ }
191
+ /**
192
+ * ListBySubscriptionIdAndEventIdNext
193
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
194
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId
195
+ * method.
196
+ * @param options The options parameters.
197
+ */
198
+ _listBySubscriptionIdAndEventIdNext(eventTrackingId, nextLink, options) {
199
+ return this.client.sendOperationRequest({ eventTrackingId, nextLink, options }, listBySubscriptionIdAndEventIdNextOperationSpec);
200
+ }
201
+ /**
202
+ * ListByTenantIdAndEventIdNext
203
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
204
+ * @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId
205
+ * method.
206
+ * @param options The options parameters.
207
+ */
208
+ _listByTenantIdAndEventIdNext(eventTrackingId, nextLink, options) {
209
+ return this.client.sendOperationRequest({ eventTrackingId, nextLink, options }, listByTenantIdAndEventIdNextOperationSpec);
210
+ }
211
+ }
212
+ // Operation Specifications
213
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
214
+ const listBySubscriptionIdAndEventIdOperationSpec = {
215
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources",
216
+ httpMethod: "GET",
217
+ responses: {
218
+ 200: {
219
+ bodyMapper: Mappers.EventImpactedResourceListResult
220
+ },
221
+ default: {
222
+ bodyMapper: Mappers.ErrorResponse
223
+ }
224
+ },
225
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
226
+ urlParameters: [
227
+ Parameters.$host,
228
+ Parameters.subscriptionId,
229
+ Parameters.eventTrackingId
230
+ ],
231
+ headerParameters: [Parameters.accept],
232
+ serializer
233
+ };
234
+ const getOperationSpec = {
235
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}",
236
+ httpMethod: "GET",
237
+ responses: {
238
+ 200: {
239
+ bodyMapper: Mappers.EventImpactedResource
240
+ },
241
+ default: {
242
+ bodyMapper: Mappers.ErrorResponse
243
+ }
244
+ },
245
+ queryParameters: [Parameters.apiVersion],
246
+ urlParameters: [
247
+ Parameters.$host,
248
+ Parameters.subscriptionId,
249
+ Parameters.eventTrackingId,
250
+ Parameters.impactedResourceName
251
+ ],
252
+ headerParameters: [Parameters.accept],
253
+ serializer
254
+ };
255
+ const listByTenantIdAndEventIdOperationSpec = {
256
+ path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources",
257
+ httpMethod: "GET",
258
+ responses: {
259
+ 200: {
260
+ bodyMapper: Mappers.EventImpactedResourceListResult
261
+ },
262
+ default: {
263
+ bodyMapper: Mappers.ErrorResponse
264
+ }
265
+ },
266
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
267
+ urlParameters: [Parameters.$host, Parameters.eventTrackingId],
268
+ headerParameters: [Parameters.accept],
269
+ serializer
270
+ };
271
+ const getByTenantIdOperationSpec = {
272
+ path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}",
273
+ httpMethod: "GET",
274
+ responses: {
275
+ 200: {
276
+ bodyMapper: Mappers.EventImpactedResource
277
+ },
278
+ default: {
279
+ bodyMapper: Mappers.ErrorResponse
280
+ }
281
+ },
282
+ queryParameters: [Parameters.apiVersion],
283
+ urlParameters: [
284
+ Parameters.$host,
285
+ Parameters.eventTrackingId,
286
+ Parameters.impactedResourceName
287
+ ],
288
+ headerParameters: [Parameters.accept],
289
+ serializer
290
+ };
291
+ const listBySubscriptionIdAndEventIdNextOperationSpec = {
292
+ path: "{nextLink}",
293
+ httpMethod: "GET",
294
+ responses: {
295
+ 200: {
296
+ bodyMapper: Mappers.EventImpactedResourceListResult
297
+ },
298
+ default: {
299
+ bodyMapper: Mappers.ErrorResponse
300
+ }
301
+ },
302
+ urlParameters: [
303
+ Parameters.$host,
304
+ Parameters.subscriptionId,
305
+ Parameters.nextLink,
306
+ Parameters.eventTrackingId
307
+ ],
308
+ headerParameters: [Parameters.accept],
309
+ serializer
310
+ };
311
+ const listByTenantIdAndEventIdNextOperationSpec = {
312
+ path: "{nextLink}",
313
+ httpMethod: "GET",
314
+ responses: {
315
+ 200: {
316
+ bodyMapper: Mappers.EventImpactedResourceListResult
317
+ },
318
+ default: {
319
+ bodyMapper: Mappers.ErrorResponse
320
+ }
321
+ },
322
+ urlParameters: [
323
+ Parameters.$host,
324
+ Parameters.nextLink,
325
+ Parameters.eventTrackingId
326
+ ],
327
+ headerParameters: [Parameters.accept],
328
+ serializer
329
+ };
330
+ //# sourceMappingURL=impactedResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"impactedResources.js","sourceRoot":"","sources":["../../../src/operations/impactedResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAkBnD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,8BAA8B,CACnC,eAAuB,EACvB,O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ACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,oBAAoB;KAChC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+CAA+C,GAA6B;IAChF,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yCAAyC,GAA6B;IAC1E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -1,6 +1,11 @@
1
1
  export * from "./availabilityStatuses";
2
+ export * from "./operations";
3
+ export * from "./metadata";
4
+ export * from "./impactedResources";
5
+ export * from "./securityAdvisoryImpactedResources";
6
+ export * from "./eventsOperations";
7
+ export * from "./eventOperations";
2
8
  export * from "./childAvailabilityStatuses";
3
9
  export * from "./childResources";
4
- export * from "./operations";
5
10
  export * from "./emergingIssues";
6
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
@@ -6,8 +6,13 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  export * from "./availabilityStatuses";
9
+ export * from "./operations";
10
+ export * from "./metadata";
11
+ export * from "./impactedResources";
12
+ export * from "./securityAdvisoryImpactedResources";
13
+ export * from "./eventsOperations";
14
+ export * from "./eventOperations";
9
15
  export * from "./childAvailabilityStatuses";
10
16
  export * from "./childResources";
11
- export * from "./operations";
12
17
  export * from "./emergingIssues";
13
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Metadata } from "../operationsInterfaces";
3
+ import { MicrosoftResourceHealth } from "../microsoftResourceHealth";
4
+ import { MetadataEntity, MetadataListOptionalParams, MetadataGetEntityOptionalParams, MetadataGetEntityResponse } from "../models";
5
+ /** Class containing Metadata operations. */
6
+ export declare class MetadataImpl implements Metadata {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Metadata class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: MicrosoftResourceHealth);
13
+ /**
14
+ * Gets the list of metadata entities.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: MetadataListOptionalParams): PagedAsyncIterableIterator<MetadataEntity>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Gets the list of metadata entities.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * Gets the list of metadata entities.
27
+ * @param name Name of metadata entity.
28
+ * @param options The options parameters.
29
+ */
30
+ getEntity(name: string, options?: MetadataGetEntityOptionalParams): Promise<MetadataGetEntityResponse>;
31
+ /**
32
+ * ListNext
33
+ * @param nextLink The nextLink from the previous successful call to the List method.
34
+ * @param options The options parameters.
35
+ */
36
+ private _listNext;
37
+ }
38
+ //# sourceMappingURL=metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/operations/metadata.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,cAAc,EAEd,0BAA0B,EAE1B,+BAA+B,EAC/B,yBAAyB,EAE1B,MAAM,WAAW,CAAC;AAGnB,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,cAAc,CAAC;YAkB9B,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,SAAS,CACP,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,162 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing Metadata operations. */
15
+ export class MetadataImpl {
16
+ /**
17
+ * Initialize a new instance of the class Metadata class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Gets the list of metadata entities.
25
+ * @param options The options parameters.
26
+ */
27
+ list(options) {
28
+ const iter = this.listPagingAll(options);
29
+ return {
30
+ next() {
31
+ return iter.next();
32
+ },
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ },
36
+ byPage: (settings) => {
37
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ throw new Error("maxPageSize is not supported by this operation.");
39
+ }
40
+ return this.listPagingPage(options, settings);
41
+ }
42
+ };
43
+ }
44
+ listPagingPage(options, settings) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result;
47
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
+ if (!continuationToken) {
49
+ result = yield __await(this._list(options));
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield yield __await(page);
54
+ }
55
+ while (continuationToken) {
56
+ result = yield __await(this._listNext(continuationToken, options));
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield yield __await(page);
61
+ }
62
+ });
63
+ }
64
+ listPagingAll(options) {
65
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
+ var _a, e_1, _b, _c;
67
+ try {
68
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
69
+ _c = _f.value;
70
+ _d = false;
71
+ try {
72
+ const page = _c;
73
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
+ }
75
+ finally {
76
+ _d = true;
77
+ }
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * Gets the list of metadata entities.
91
+ * @param options The options parameters.
92
+ */
93
+ _list(options) {
94
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
95
+ }
96
+ /**
97
+ * Gets the list of metadata entities.
98
+ * @param name Name of metadata entity.
99
+ * @param options The options parameters.
100
+ */
101
+ getEntity(name, options) {
102
+ return this.client.sendOperationRequest({ name, options }, getEntityOperationSpec);
103
+ }
104
+ /**
105
+ * ListNext
106
+ * @param nextLink The nextLink from the previous successful call to the List method.
107
+ * @param options The options parameters.
108
+ */
109
+ _listNext(nextLink, options) {
110
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
111
+ }
112
+ }
113
+ // Operation Specifications
114
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
115
+ const listOperationSpec = {
116
+ path: "/providers/Microsoft.ResourceHealth/metadata",
117
+ httpMethod: "GET",
118
+ responses: {
119
+ 200: {
120
+ bodyMapper: Mappers.MetadataEntityListResult
121
+ },
122
+ default: {
123
+ bodyMapper: Mappers.ErrorResponse
124
+ }
125
+ },
126
+ queryParameters: [Parameters.apiVersion],
127
+ urlParameters: [Parameters.$host],
128
+ headerParameters: [Parameters.accept],
129
+ serializer
130
+ };
131
+ const getEntityOperationSpec = {
132
+ path: "/providers/Microsoft.ResourceHealth/metadata/{name}",
133
+ httpMethod: "GET",
134
+ responses: {
135
+ 200: {
136
+ bodyMapper: Mappers.MetadataEntity
137
+ },
138
+ default: {
139
+ bodyMapper: Mappers.ErrorResponse
140
+ }
141
+ },
142
+ queryParameters: [Parameters.apiVersion],
143
+ urlParameters: [Parameters.$host, Parameters.name],
144
+ headerParameters: [Parameters.accept],
145
+ serializer
146
+ };
147
+ const listNextOperationSpec = {
148
+ path: "{nextLink}",
149
+ httpMethod: "GET",
150
+ responses: {
151
+ 200: {
152
+ bodyMapper: Mappers.MetadataEntityListResult
153
+ },
154
+ default: {
155
+ bodyMapper: Mappers.ErrorResponse
156
+ }
157
+ },
158
+ urlParameters: [Parameters.$host, Parameters.nextLink],
159
+ headerParameters: [Parameters.accept],
160
+ serializer
161
+ };
162
+ //# sourceMappingURL=metadata.js.map