@azure/arm-resourcehealth 3.2.1-alpha.20230522.1 → 4.0.1-alpha.20230524.2

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 +114 -1
  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 +4 -4
  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,137 @@
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 * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing EventOperations operations. */
12
+ export class EventOperationsImpl {
13
+ /**
14
+ * Initialize a new instance of the class EventOperations class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Service health event in the subscription by event tracking id
22
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
23
+ * @param options The options parameters.
24
+ */
25
+ getBySubscriptionIdAndTrackingId(eventTrackingId, options) {
26
+ return this.client.sendOperationRequest({ eventTrackingId, options }, getBySubscriptionIdAndTrackingIdOperationSpec);
27
+ }
28
+ /**
29
+ * Service health event details in the subscription by event tracking id. This can be used to fetch
30
+ * sensitive properties for Security Advisory events
31
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
32
+ * @param options The options parameters.
33
+ */
34
+ fetchDetailsBySubscriptionIdAndTrackingId(eventTrackingId, options) {
35
+ return this.client.sendOperationRequest({ eventTrackingId, options }, fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec);
36
+ }
37
+ /**
38
+ * Service health event in the tenant by event tracking id
39
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
40
+ * @param options The options parameters.
41
+ */
42
+ getByTenantIdAndTrackingId(eventTrackingId, options) {
43
+ return this.client.sendOperationRequest({ eventTrackingId, options }, getByTenantIdAndTrackingIdOperationSpec);
44
+ }
45
+ /**
46
+ * Service health event details in the tenant by event tracking id. This can be used to fetch sensitive
47
+ * properties for Security Advisory events
48
+ * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
49
+ * @param options The options parameters.
50
+ */
51
+ fetchDetailsByTenantIdAndTrackingId(eventTrackingId, options) {
52
+ return this.client.sendOperationRequest({ eventTrackingId, options }, fetchDetailsByTenantIdAndTrackingIdOperationSpec);
53
+ }
54
+ }
55
+ // Operation Specifications
56
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
57
+ const getBySubscriptionIdAndTrackingIdOperationSpec = {
58
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",
59
+ httpMethod: "GET",
60
+ responses: {
61
+ 200: {
62
+ bodyMapper: Mappers.Event
63
+ },
64
+ default: {
65
+ bodyMapper: Mappers.ErrorResponse
66
+ }
67
+ },
68
+ queryParameters: [
69
+ Parameters.apiVersion,
70
+ Parameters.filter,
71
+ Parameters.queryStartTime
72
+ ],
73
+ urlParameters: [
74
+ Parameters.$host,
75
+ Parameters.subscriptionId,
76
+ Parameters.eventTrackingId
77
+ ],
78
+ headerParameters: [Parameters.accept],
79
+ serializer
80
+ };
81
+ const fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec = {
82
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails",
83
+ httpMethod: "POST",
84
+ responses: {
85
+ 200: {
86
+ bodyMapper: Mappers.Event
87
+ },
88
+ default: {
89
+ bodyMapper: Mappers.ErrorResponse
90
+ }
91
+ },
92
+ queryParameters: [Parameters.apiVersion],
93
+ urlParameters: [
94
+ Parameters.$host,
95
+ Parameters.subscriptionId,
96
+ Parameters.eventTrackingId
97
+ ],
98
+ headerParameters: [Parameters.accept],
99
+ serializer
100
+ };
101
+ const getByTenantIdAndTrackingIdOperationSpec = {
102
+ path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",
103
+ httpMethod: "GET",
104
+ responses: {
105
+ 200: {
106
+ bodyMapper: Mappers.Event
107
+ },
108
+ default: {
109
+ bodyMapper: Mappers.ErrorResponse
110
+ }
111
+ },
112
+ queryParameters: [
113
+ Parameters.apiVersion,
114
+ Parameters.filter,
115
+ Parameters.queryStartTime
116
+ ],
117
+ urlParameters: [Parameters.$host, Parameters.eventTrackingId],
118
+ headerParameters: [Parameters.accept],
119
+ serializer
120
+ };
121
+ const fetchDetailsByTenantIdAndTrackingIdOperationSpec = {
122
+ path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails",
123
+ httpMethod: "POST",
124
+ responses: {
125
+ 200: {
126
+ bodyMapper: Mappers.Event
127
+ },
128
+ default: {
129
+ bodyMapper: Mappers.ErrorResponse
130
+ }
131
+ },
132
+ queryParameters: [Parameters.apiVersion],
133
+ urlParameters: [Parameters.$host, Parameters.eventTrackingId],
134
+ headerParameters: [Parameters.accept],
135
+ serializer
136
+ };
137
+ //# sourceMappingURL=eventOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventOperations.js","sourceRoot":"","sources":["../../../src/operations/eventOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,gCAAgC,CAC9B,eAAuB,EACvB,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,eAAe,EAAE,OAAO,EAAE,EAC5B,6CAA6C,CAC9C,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,yCAAyC,CACvC,eAAuB,EACvB,OAAsE;QAEtE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,eAAe,EAAE,OAAO,EAAE,EAC5B,sDAAsD,CACvD,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,0BAA0B,CACxB,eAAuB,EACvB,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EA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C,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,8DAA8D;IACpE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,KAAK;SAC1B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,cAAc;KAC1B;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC;IAC7D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gDAAgD,GAA6B;IACjF,IAAI,EACF,gFAAgF;IAClF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,KAAK;SAC1B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC;IAC7D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { EventsOperations } from "../operationsInterfaces";
3
+ import { MicrosoftResourceHealth } from "../microsoftResourceHealth";
4
+ import { Event, EventsListBySubscriptionIdOptionalParams, EventsListByTenantIdOptionalParams, EventsListBySingleResourceOptionalParams } from "../models";
5
+ /** Class containing EventsOperations operations. */
6
+ export declare class EventsOperationsImpl implements EventsOperations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class EventsOperations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: MicrosoftResourceHealth);
13
+ /**
14
+ * Lists service health events in the subscription.
15
+ * @param options The options parameters.
16
+ */
17
+ listBySubscriptionId(options?: EventsListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator<Event>;
18
+ private listBySubscriptionIdPagingPage;
19
+ private listBySubscriptionIdPagingAll;
20
+ /**
21
+ * Lists current service health events in the tenant.
22
+ * @param options The options parameters.
23
+ */
24
+ listByTenantId(options?: EventsListByTenantIdOptionalParams): PagedAsyncIterableIterator<Event>;
25
+ private listByTenantIdPagingPage;
26
+ private listByTenantIdPagingAll;
27
+ /**
28
+ * Lists current service health events for given resource.
29
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
30
+ * type. Currently the API support not nested and one nesting level resource types :
31
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
32
+ * and
33
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
34
+ * @param options The options parameters.
35
+ */
36
+ listBySingleResource(resourceUri: string, options?: EventsListBySingleResourceOptionalParams): PagedAsyncIterableIterator<Event>;
37
+ private listBySingleResourcePagingPage;
38
+ private listBySingleResourcePagingAll;
39
+ /**
40
+ * Lists service health events in the subscription.
41
+ * @param options The options parameters.
42
+ */
43
+ private _listBySubscriptionId;
44
+ /**
45
+ * Lists current service health events in the tenant.
46
+ * @param options The options parameters.
47
+ */
48
+ private _listByTenantId;
49
+ /**
50
+ * Lists current service health events for given resource.
51
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
52
+ * type. Currently the API support not nested and one nesting level resource types :
53
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
54
+ * and
55
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
56
+ * @param options The options parameters.
57
+ */
58
+ private _listBySingleResource;
59
+ /**
60
+ * ListBySubscriptionIdNext
61
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
62
+ * @param options The options parameters.
63
+ */
64
+ private _listBySubscriptionIdNext;
65
+ /**
66
+ * ListByTenantIdNext
67
+ * @param nextLink The nextLink from the previous successful call to the ListByTenantId method.
68
+ * @param options The options parameters.
69
+ */
70
+ private _listByTenantIdNext;
71
+ /**
72
+ * ListBySingleResourceNext
73
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
74
+ * type. Currently the API support not nested and one nesting level resource types :
75
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
76
+ * and
77
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
78
+ * @param nextLink The nextLink from the previous successful call to the ListBySingleResource method.
79
+ * @param options The options parameters.
80
+ */
81
+ private _listBySingleResourceNext;
82
+ }
83
+ //# sourceMappingURL=eventsOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventsOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/eventsOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,KAAK,EAEL,wCAAwC,EAGxC,kCAAkC,EAGlC,wCAAwC,EAKzC,MAAM,WAAW,CAAC;AAGnB,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,oBAAoB,CACzB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,KAAK,CAAC;YAkBrB,8BAA8B;YAsB9B,6BAA6B;IAQ5C;;;OAGG;IACI,cAAc,CACnB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,0BAA0B,CAAC,KAAK,CAAC;YAkBrB,wBAAwB;YAsBxB,uBAAuB;IAQtC;;;;;;;;OAQG;IACI,oBAAoB,CACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,KAAK,CAAC;YAsBrB,8BAA8B;YA2B9B,6BAA6B;IAY5C;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAS7B;;;OAGG;IACH,OAAO,CAAC,eAAe;IASvB;;;;;;;;OAQG;IACH,OAAO,CAAC,qBAAqB;IAU7B;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAUjC;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;;;;;;;OASG;IACH,OAAO,CAAC,yBAAyB;CAUlC"}
@@ -0,0 +1,393 @@
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 EventsOperations operations. */
15
+ export class EventsOperationsImpl {
16
+ /**
17
+ * Initialize a new instance of the class EventsOperations class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Lists service health events in the subscription.
25
+ * @param options The options parameters.
26
+ */
27
+ listBySubscriptionId(options) {
28
+ const iter = this.listBySubscriptionIdPagingAll(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.listBySubscriptionIdPagingPage(options, settings);
41
+ }
42
+ };
43
+ }
44
+ listBySubscriptionIdPagingPage(options, settings) {
45
+ return __asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
46
+ let result;
47
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
+ if (!continuationToken) {
49
+ result = yield __await(this._listBySubscriptionId(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._listBySubscriptionIdNext(continuationToken, options));
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield yield __await(page);
61
+ }
62
+ });
63
+ }
64
+ listBySubscriptionIdPagingAll(options) {
65
+ return __asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
66
+ var _a, e_1, _b, _c;
67
+ try {
68
+ for (var _d = true, _e = __asyncValues(this.listBySubscriptionIdPagingPage(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
+ * Lists current service health events in the tenant.
91
+ * @param options The options parameters.
92
+ */
93
+ listByTenantId(options) {
94
+ const iter = this.listByTenantIdPagingAll(options);
95
+ return {
96
+ next() {
97
+ return iter.next();
98
+ },
99
+ [Symbol.asyncIterator]() {
100
+ return this;
101
+ },
102
+ byPage: (settings) => {
103
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
104
+ throw new Error("maxPageSize is not supported by this operation.");
105
+ }
106
+ return this.listByTenantIdPagingPage(options, settings);
107
+ }
108
+ };
109
+ }
110
+ listByTenantIdPagingPage(options, settings) {
111
+ return __asyncGenerator(this, arguments, function* listByTenantIdPagingPage_1() {
112
+ let result;
113
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
114
+ if (!continuationToken) {
115
+ result = yield __await(this._listByTenantId(options));
116
+ let page = result.value || [];
117
+ continuationToken = result.nextLink;
118
+ setContinuationToken(page, continuationToken);
119
+ yield yield __await(page);
120
+ }
121
+ while (continuationToken) {
122
+ result = yield __await(this._listByTenantIdNext(continuationToken, options));
123
+ continuationToken = result.nextLink;
124
+ let page = result.value || [];
125
+ setContinuationToken(page, continuationToken);
126
+ yield yield __await(page);
127
+ }
128
+ });
129
+ }
130
+ listByTenantIdPagingAll(options) {
131
+ return __asyncGenerator(this, arguments, function* listByTenantIdPagingAll_1() {
132
+ var _a, e_2, _b, _c;
133
+ try {
134
+ for (var _d = true, _e = __asyncValues(this.listByTenantIdPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
135
+ _c = _f.value;
136
+ _d = false;
137
+ try {
138
+ const page = _c;
139
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
140
+ }
141
+ finally {
142
+ _d = true;
143
+ }
144
+ }
145
+ }
146
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
147
+ finally {
148
+ try {
149
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
150
+ }
151
+ finally { if (e_2) throw e_2.error; }
152
+ }
153
+ });
154
+ }
155
+ /**
156
+ * Lists current service health events for given resource.
157
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
158
+ * type. Currently the API support not nested and one nesting level resource types :
159
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
160
+ * and
161
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
162
+ * @param options The options parameters.
163
+ */
164
+ listBySingleResource(resourceUri, options) {
165
+ const iter = this.listBySingleResourcePagingAll(resourceUri, options);
166
+ return {
167
+ next() {
168
+ return iter.next();
169
+ },
170
+ [Symbol.asyncIterator]() {
171
+ return this;
172
+ },
173
+ byPage: (settings) => {
174
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
175
+ throw new Error("maxPageSize is not supported by this operation.");
176
+ }
177
+ return this.listBySingleResourcePagingPage(resourceUri, options, settings);
178
+ }
179
+ };
180
+ }
181
+ listBySingleResourcePagingPage(resourceUri, options, settings) {
182
+ return __asyncGenerator(this, arguments, function* listBySingleResourcePagingPage_1() {
183
+ let result;
184
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
185
+ if (!continuationToken) {
186
+ result = yield __await(this._listBySingleResource(resourceUri, options));
187
+ let page = result.value || [];
188
+ continuationToken = result.nextLink;
189
+ setContinuationToken(page, continuationToken);
190
+ yield yield __await(page);
191
+ }
192
+ while (continuationToken) {
193
+ result = yield __await(this._listBySingleResourceNext(resourceUri, continuationToken, options));
194
+ continuationToken = result.nextLink;
195
+ let page = result.value || [];
196
+ setContinuationToken(page, continuationToken);
197
+ yield yield __await(page);
198
+ }
199
+ });
200
+ }
201
+ listBySingleResourcePagingAll(resourceUri, options) {
202
+ return __asyncGenerator(this, arguments, function* listBySingleResourcePagingAll_1() {
203
+ var _a, e_3, _b, _c;
204
+ try {
205
+ for (var _d = true, _e = __asyncValues(this.listBySingleResourcePagingPage(resourceUri, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
206
+ _c = _f.value;
207
+ _d = false;
208
+ try {
209
+ const page = _c;
210
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
211
+ }
212
+ finally {
213
+ _d = true;
214
+ }
215
+ }
216
+ }
217
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
218
+ finally {
219
+ try {
220
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
221
+ }
222
+ finally { if (e_3) throw e_3.error; }
223
+ }
224
+ });
225
+ }
226
+ /**
227
+ * Lists service health events in the subscription.
228
+ * @param options The options parameters.
229
+ */
230
+ _listBySubscriptionId(options) {
231
+ return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
232
+ }
233
+ /**
234
+ * Lists current service health events in the tenant.
235
+ * @param options The options parameters.
236
+ */
237
+ _listByTenantId(options) {
238
+ return this.client.sendOperationRequest({ options }, listByTenantIdOperationSpec);
239
+ }
240
+ /**
241
+ * Lists current service health events for given resource.
242
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
243
+ * type. Currently the API support not nested and one nesting level resource types :
244
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
245
+ * and
246
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
247
+ * @param options The options parameters.
248
+ */
249
+ _listBySingleResource(resourceUri, options) {
250
+ return this.client.sendOperationRequest({ resourceUri, options }, listBySingleResourceOperationSpec);
251
+ }
252
+ /**
253
+ * ListBySubscriptionIdNext
254
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
255
+ * @param options The options parameters.
256
+ */
257
+ _listBySubscriptionIdNext(nextLink, options) {
258
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
259
+ }
260
+ /**
261
+ * ListByTenantIdNext
262
+ * @param nextLink The nextLink from the previous successful call to the ListByTenantId method.
263
+ * @param options The options parameters.
264
+ */
265
+ _listByTenantIdNext(nextLink, options) {
266
+ return this.client.sendOperationRequest({ nextLink, options }, listByTenantIdNextOperationSpec);
267
+ }
268
+ /**
269
+ * ListBySingleResourceNext
270
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and resource
271
+ * type. Currently the API support not nested and one nesting level resource types :
272
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
273
+ * and
274
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
275
+ * @param nextLink The nextLink from the previous successful call to the ListBySingleResource method.
276
+ * @param options The options parameters.
277
+ */
278
+ _listBySingleResourceNext(resourceUri, nextLink, options) {
279
+ return this.client.sendOperationRequest({ resourceUri, nextLink, options }, listBySingleResourceNextOperationSpec);
280
+ }
281
+ }
282
+ // Operation Specifications
283
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
284
+ const listBySubscriptionIdOperationSpec = {
285
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events",
286
+ httpMethod: "GET",
287
+ responses: {
288
+ 200: {
289
+ bodyMapper: Mappers.Events
290
+ },
291
+ default: {
292
+ bodyMapper: Mappers.ErrorResponse
293
+ }
294
+ },
295
+ queryParameters: [
296
+ Parameters.apiVersion,
297
+ Parameters.filter,
298
+ Parameters.queryStartTime
299
+ ],
300
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
301
+ headerParameters: [Parameters.accept],
302
+ serializer
303
+ };
304
+ const listByTenantIdOperationSpec = {
305
+ path: "/providers/Microsoft.ResourceHealth/events",
306
+ httpMethod: "GET",
307
+ responses: {
308
+ 200: {
309
+ bodyMapper: Mappers.Events
310
+ },
311
+ default: {
312
+ bodyMapper: Mappers.ErrorResponse
313
+ }
314
+ },
315
+ queryParameters: [
316
+ Parameters.apiVersion,
317
+ Parameters.filter,
318
+ Parameters.queryStartTime
319
+ ],
320
+ urlParameters: [Parameters.$host],
321
+ headerParameters: [Parameters.accept],
322
+ serializer
323
+ };
324
+ const listBySingleResourceOperationSpec = {
325
+ path: "/{resourceUri}/providers/Microsoft.ResourceHealth/events",
326
+ httpMethod: "GET",
327
+ responses: {
328
+ 200: {
329
+ bodyMapper: Mappers.Events
330
+ },
331
+ default: {
332
+ bodyMapper: Mappers.ErrorResponse
333
+ }
334
+ },
335
+ queryParameters: [Parameters.apiVersion, Parameters.filter],
336
+ urlParameters: [Parameters.$host, Parameters.resourceUri],
337
+ headerParameters: [Parameters.accept],
338
+ serializer
339
+ };
340
+ const listBySubscriptionIdNextOperationSpec = {
341
+ path: "{nextLink}",
342
+ httpMethod: "GET",
343
+ responses: {
344
+ 200: {
345
+ bodyMapper: Mappers.Events
346
+ },
347
+ default: {
348
+ bodyMapper: Mappers.ErrorResponse
349
+ }
350
+ },
351
+ urlParameters: [
352
+ Parameters.$host,
353
+ Parameters.subscriptionId,
354
+ Parameters.nextLink
355
+ ],
356
+ headerParameters: [Parameters.accept],
357
+ serializer
358
+ };
359
+ const listByTenantIdNextOperationSpec = {
360
+ path: "{nextLink}",
361
+ httpMethod: "GET",
362
+ responses: {
363
+ 200: {
364
+ bodyMapper: Mappers.Events
365
+ },
366
+ default: {
367
+ bodyMapper: Mappers.ErrorResponse
368
+ }
369
+ },
370
+ urlParameters: [Parameters.$host, Parameters.nextLink],
371
+ headerParameters: [Parameters.accept],
372
+ serializer
373
+ };
374
+ const listBySingleResourceNextOperationSpec = {
375
+ path: "{nextLink}",
376
+ httpMethod: "GET",
377
+ responses: {
378
+ 200: {
379
+ bodyMapper: Mappers.Events
380
+ },
381
+ default: {
382
+ bodyMapper: Mappers.ErrorResponse
383
+ }
384
+ },
385
+ urlParameters: [
386
+ Parameters.$host,
387
+ Parameters.resourceUri,
388
+ Parameters.nextLink
389
+ ],
390
+ headerParameters: [Parameters.accept],
391
+ serializer
392
+ };
393
+ //# sourceMappingURL=eventsOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventsOperations.js","sourceRoot":"","sources":["../../../src/operations/eventsOperations.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,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,oBAAoB,CACzB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;QACzD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,8BAA8B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,8BAA8B,CAC3C,OAAkD,EAClD,QAAuB;;YAEvB,IAAI,MAA0C,CAAC;YAC/C,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,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