@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.
- package/CHANGELOG.md +111 -8
- package/dist/index.js +2621 -386
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +3 -3
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +3 -3
- package/dist-esm/samples-dev/availabilityStatusesListSample.js +3 -3
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +4 -4
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +4 -4
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
- package/dist-esm/samples-dev/childResourcesListSample.js +3 -3
- package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
- package/dist-esm/samples-dev/emergingIssuesGetSample.js +3 -2
- package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/emergingIssuesListSample.js +1 -1
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +37 -0
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +38 -0
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +43 -0
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +44 -0
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +59 -0
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -0
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +63 -0
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js.map +1 -0
- package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js +64 -0
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +39 -0
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesGetSample.js +38 -0
- package/dist-esm/samples-dev/impactedResourcesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +62 -0
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +63 -0
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -0
- package/dist-esm/samples-dev/metadataGetEntitySample.d.ts +2 -0
- package/dist-esm/samples-dev/metadataGetEntitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/metadataGetEntitySample.js +38 -0
- package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -0
- package/dist-esm/samples-dev/metadataListSample.d.ts +2 -0
- package/dist-esm/samples-dev/metadataListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/metadataListSample.js +58 -0
- package/dist-esm/samples-dev/metadataListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +37 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +58 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js.map +1 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +59 -0
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -0
- package/dist-esm/src/microsoftResourceHealth.d.ts +8 -4
- package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
- package/dist-esm/src/microsoftResourceHealth.js +10 -6
- package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +657 -34
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +114 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +24 -3
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +883 -100
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +51 -3
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/availabilityStatuses.d.ts +9 -15
- package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -1
- package/dist-esm/src/operations/availabilityStatuses.js +9 -15
- package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
- package/dist-esm/src/operations/emergingIssues.d.ts +6 -5
- package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -1
- package/dist-esm/src/operations/emergingIssues.js +15 -14
- package/dist-esm/src/operations/emergingIssues.js.map +1 -1
- package/dist-esm/src/operations/eventOperations.d.ts +39 -0
- package/dist-esm/src/operations/eventOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/eventOperations.js +137 -0
- package/dist-esm/src/operations/eventOperations.js.map +1 -0
- package/dist-esm/src/operations/eventsOperations.d.ts +83 -0
- package/dist-esm/src/operations/eventsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/eventsOperations.js +393 -0
- package/dist-esm/src/operations/eventsOperations.js.map +1 -0
- package/dist-esm/src/operations/impactedResources.d.ts +72 -0
- package/dist-esm/src/operations/impactedResources.d.ts.map +1 -0
- package/dist-esm/src/operations/impactedResources.js +330 -0
- package/dist-esm/src/operations/impactedResources.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +6 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +6 -1
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/metadata.d.ts +38 -0
- package/dist-esm/src/operations/metadata.d.ts.map +1 -0
- package/dist-esm/src/operations/metadata.js +162 -0
- package/dist-esm/src/operations/metadata.js.map +1 -0
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts +58 -0
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.js +271 -0
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts +4 -7
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts +3 -2
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/eventOperations.d.ts +31 -0
- package/dist-esm/src/operationsInterfaces/eventOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/eventOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts +26 -0
- package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/eventsOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/eventsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/impactedResources.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/impactedResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/impactedResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/impactedResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +6 -1
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/metadata.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/metadata.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/metadata.js +9 -0
- package/dist-esm/src/operationsInterfaces/metadata.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist-esm/test/resourcehealth_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/resourcehealth_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/resourcehealth_operations_test.spec.js +56 -0
- package/dist-esm/test/resourcehealth_operations_test.spec.js.map +1 -0
- package/package.json +6 -6
- package/review/arm-resourcehealth.api.md +516 -8
- package/src/microsoftResourceHealth.ts +29 -8
- package/src/models/index.ts +757 -35
- package/src/models/mappers.ts +956 -101
- package/src/models/parameters.ts +55 -3
- package/src/operations/availabilityStatuses.ts +9 -15
- package/src/operations/emergingIssues.ts +24 -18
- package/src/operations/eventOperations.ts +184 -0
- package/src/operations/eventsOperations.ts +434 -0
- package/src/operations/impactedResources.ts +414 -0
- package/src/operations/index.ts +6 -1
- package/src/operations/metadata.ts +182 -0
- package/src/operations/securityAdvisoryImpactedResources.ts +342 -0
- package/src/operationsInterfaces/availabilityStatuses.ts +4 -7
- package/src/operationsInterfaces/emergingIssues.ts +3 -0
- package/src/operationsInterfaces/eventOperations.ts +60 -0
- package/src/operationsInterfaces/eventsOperations.ts +47 -0
- package/src/operationsInterfaces/impactedResources.ts +63 -0
- package/src/operationsInterfaces/index.ts +6 -1
- package/src/operationsInterfaces/metadata.ts +36 -0
- package/src/operationsInterfaces/securityAdvisoryImpactedResources.ts +37 -0
- package/types/arm-resourcehealth.d.ts +853 -23
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/dist/index.js
CHANGED
@@ -66,6 +66,104 @@ function setContinuationToken(page, continuationToken) {
|
|
66
66
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
67
67
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
68
68
|
*/
|
69
|
+
/** Known values of {@link AvailabilityStateValues} that the service accepts. */
|
70
|
+
exports.KnownAvailabilityStateValues = void 0;
|
71
|
+
(function (KnownAvailabilityStateValues) {
|
72
|
+
/** Available */
|
73
|
+
KnownAvailabilityStateValues["Available"] = "Available";
|
74
|
+
/** Unavailable */
|
75
|
+
KnownAvailabilityStateValues["Unavailable"] = "Unavailable";
|
76
|
+
/** Degraded */
|
77
|
+
KnownAvailabilityStateValues["Degraded"] = "Degraded";
|
78
|
+
/** Unknown */
|
79
|
+
KnownAvailabilityStateValues["Unknown"] = "Unknown";
|
80
|
+
})(exports.KnownAvailabilityStateValues || (exports.KnownAvailabilityStateValues = {}));
|
81
|
+
/** Known values of {@link ReasonChronicityTypes} that the service accepts. */
|
82
|
+
exports.KnownReasonChronicityTypes = void 0;
|
83
|
+
(function (KnownReasonChronicityTypes) {
|
84
|
+
/** Transient */
|
85
|
+
KnownReasonChronicityTypes["Transient"] = "Transient";
|
86
|
+
/** Persistent */
|
87
|
+
KnownReasonChronicityTypes["Persistent"] = "Persistent";
|
88
|
+
})(exports.KnownReasonChronicityTypes || (exports.KnownReasonChronicityTypes = {}));
|
89
|
+
/** Known values of {@link Scenario} that the service accepts. */
|
90
|
+
exports.KnownScenario = void 0;
|
91
|
+
(function (KnownScenario) {
|
92
|
+
/** Alerts */
|
93
|
+
KnownScenario["Alerts"] = "Alerts";
|
94
|
+
})(exports.KnownScenario || (exports.KnownScenario = {}));
|
95
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
96
|
+
exports.KnownCreatedByType = void 0;
|
97
|
+
(function (KnownCreatedByType) {
|
98
|
+
/** User */
|
99
|
+
KnownCreatedByType["User"] = "User";
|
100
|
+
/** Application */
|
101
|
+
KnownCreatedByType["Application"] = "Application";
|
102
|
+
/** ManagedIdentity */
|
103
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
104
|
+
/** Key */
|
105
|
+
KnownCreatedByType["Key"] = "Key";
|
106
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
107
|
+
/** Known values of {@link EventTypeValues} that the service accepts. */
|
108
|
+
exports.KnownEventTypeValues = void 0;
|
109
|
+
(function (KnownEventTypeValues) {
|
110
|
+
/** ServiceIssue */
|
111
|
+
KnownEventTypeValues["ServiceIssue"] = "ServiceIssue";
|
112
|
+
/** PlannedMaintenance */
|
113
|
+
KnownEventTypeValues["PlannedMaintenance"] = "PlannedMaintenance";
|
114
|
+
/** HealthAdvisory */
|
115
|
+
KnownEventTypeValues["HealthAdvisory"] = "HealthAdvisory";
|
116
|
+
/** RCA */
|
117
|
+
KnownEventTypeValues["RCA"] = "RCA";
|
118
|
+
/** EmergingIssues */
|
119
|
+
KnownEventTypeValues["EmergingIssues"] = "EmergingIssues";
|
120
|
+
/** SecurityAdvisory */
|
121
|
+
KnownEventTypeValues["SecurityAdvisory"] = "SecurityAdvisory";
|
122
|
+
})(exports.KnownEventTypeValues || (exports.KnownEventTypeValues = {}));
|
123
|
+
/** Known values of {@link EventSourceValues} that the service accepts. */
|
124
|
+
exports.KnownEventSourceValues = void 0;
|
125
|
+
(function (KnownEventSourceValues) {
|
126
|
+
/** ResourceHealth */
|
127
|
+
KnownEventSourceValues["ResourceHealth"] = "ResourceHealth";
|
128
|
+
/** ServiceHealth */
|
129
|
+
KnownEventSourceValues["ServiceHealth"] = "ServiceHealth";
|
130
|
+
})(exports.KnownEventSourceValues || (exports.KnownEventSourceValues = {}));
|
131
|
+
/** Known values of {@link EventStatusValues} that the service accepts. */
|
132
|
+
exports.KnownEventStatusValues = void 0;
|
133
|
+
(function (KnownEventStatusValues) {
|
134
|
+
/** Active */
|
135
|
+
KnownEventStatusValues["Active"] = "Active";
|
136
|
+
/** Resolved */
|
137
|
+
KnownEventStatusValues["Resolved"] = "Resolved";
|
138
|
+
})(exports.KnownEventStatusValues || (exports.KnownEventStatusValues = {}));
|
139
|
+
/** Known values of {@link LevelValues} that the service accepts. */
|
140
|
+
exports.KnownLevelValues = void 0;
|
141
|
+
(function (KnownLevelValues) {
|
142
|
+
/** Critical */
|
143
|
+
KnownLevelValues["Critical"] = "Critical";
|
144
|
+
/** Warning */
|
145
|
+
KnownLevelValues["Warning"] = "Warning";
|
146
|
+
})(exports.KnownLevelValues || (exports.KnownLevelValues = {}));
|
147
|
+
/** Known values of {@link EventLevelValues} that the service accepts. */
|
148
|
+
exports.KnownEventLevelValues = void 0;
|
149
|
+
(function (KnownEventLevelValues) {
|
150
|
+
/** Critical */
|
151
|
+
KnownEventLevelValues["Critical"] = "Critical";
|
152
|
+
/** Error */
|
153
|
+
KnownEventLevelValues["Error"] = "Error";
|
154
|
+
/** Warning */
|
155
|
+
KnownEventLevelValues["Warning"] = "Warning";
|
156
|
+
/** Informational */
|
157
|
+
KnownEventLevelValues["Informational"] = "Informational";
|
158
|
+
})(exports.KnownEventLevelValues || (exports.KnownEventLevelValues = {}));
|
159
|
+
/** Known values of {@link LinkTypeValues} that the service accepts. */
|
160
|
+
exports.KnownLinkTypeValues = void 0;
|
161
|
+
(function (KnownLinkTypeValues) {
|
162
|
+
/** Button */
|
163
|
+
KnownLinkTypeValues["Button"] = "Button";
|
164
|
+
/** Hyperlink */
|
165
|
+
KnownLinkTypeValues["Hyperlink"] = "Hyperlink";
|
166
|
+
})(exports.KnownLinkTypeValues || (exports.KnownLinkTypeValues = {}));
|
69
167
|
/** Known values of {@link SeverityValues} that the service accepts. */
|
70
168
|
exports.KnownSeverityValues = void 0;
|
71
169
|
(function (KnownSeverityValues) {
|
@@ -86,6 +184,22 @@ exports.KnownStageValues = void 0;
|
|
86
184
|
/** Archived */
|
87
185
|
KnownStageValues["Archived"] = "Archived";
|
88
186
|
})(exports.KnownStageValues || (exports.KnownStageValues = {}));
|
187
|
+
/** Known values of {@link IssueNameParameter} that the service accepts. */
|
188
|
+
exports.KnownIssueNameParameter = void 0;
|
189
|
+
(function (KnownIssueNameParameter) {
|
190
|
+
/** Default */
|
191
|
+
KnownIssueNameParameter["Default"] = "default";
|
192
|
+
})(exports.KnownIssueNameParameter || (exports.KnownIssueNameParameter = {}));
|
193
|
+
/** Known values of {@link ReasonTypeValues} that the service accepts. */
|
194
|
+
exports.KnownReasonTypeValues = void 0;
|
195
|
+
(function (KnownReasonTypeValues) {
|
196
|
+
/** Unplanned */
|
197
|
+
KnownReasonTypeValues["Unplanned"] = "Unplanned";
|
198
|
+
/** Planned */
|
199
|
+
KnownReasonTypeValues["Planned"] = "Planned";
|
200
|
+
/** UserInitiated */
|
201
|
+
KnownReasonTypeValues["UserInitiated"] = "UserInitiated";
|
202
|
+
})(exports.KnownReasonTypeValues || (exports.KnownReasonTypeValues = {}));
|
89
203
|
|
90
204
|
/*
|
91
205
|
* Copyright (c) Microsoft Corporation.
|
@@ -168,8 +282,13 @@ const AvailabilityStatusProperties = {
|
|
168
282
|
availabilityState: {
|
169
283
|
serializedName: "availabilityState",
|
170
284
|
type: {
|
171
|
-
name: "
|
172
|
-
|
285
|
+
name: "String"
|
286
|
+
}
|
287
|
+
},
|
288
|
+
title: {
|
289
|
+
serializedName: "title",
|
290
|
+
type: {
|
291
|
+
name: "String"
|
173
292
|
}
|
174
293
|
},
|
175
294
|
summary: {
|
@@ -190,6 +309,24 @@ const AvailabilityStatusProperties = {
|
|
190
309
|
name: "String"
|
191
310
|
}
|
192
311
|
},
|
312
|
+
context: {
|
313
|
+
serializedName: "context",
|
314
|
+
type: {
|
315
|
+
name: "String"
|
316
|
+
}
|
317
|
+
},
|
318
|
+
category: {
|
319
|
+
serializedName: "category",
|
320
|
+
type: {
|
321
|
+
name: "String"
|
322
|
+
}
|
323
|
+
},
|
324
|
+
articleId: {
|
325
|
+
serializedName: "articleId",
|
326
|
+
type: {
|
327
|
+
name: "String"
|
328
|
+
}
|
329
|
+
},
|
193
330
|
rootCauseAttributionTime: {
|
194
331
|
serializedName: "rootCauseAttributionTime",
|
195
332
|
type: {
|
@@ -235,8 +372,7 @@ const AvailabilityStatusProperties = {
|
|
235
372
|
reasonChronicity: {
|
236
373
|
serializedName: "reasonChronicity",
|
237
374
|
type: {
|
238
|
-
name: "
|
239
|
-
allowedValues: ["Transient", "Persistent"]
|
375
|
+
name: "String"
|
240
376
|
}
|
241
377
|
},
|
242
378
|
reportedTime: {
|
@@ -245,11 +381,11 @@ const AvailabilityStatusProperties = {
|
|
245
381
|
name: "DateTime"
|
246
382
|
}
|
247
383
|
},
|
248
|
-
|
249
|
-
serializedName: "
|
384
|
+
recentlyResolved: {
|
385
|
+
serializedName: "recentlyResolved",
|
250
386
|
type: {
|
251
387
|
name: "Composite",
|
252
|
-
className: "
|
388
|
+
className: "AvailabilityStatusPropertiesRecentlyResolved"
|
253
389
|
}
|
254
390
|
},
|
255
391
|
recommendedActions: {
|
@@ -279,13 +415,13 @@ const AvailabilityStatusProperties = {
|
|
279
415
|
}
|
280
416
|
}
|
281
417
|
};
|
282
|
-
const
|
418
|
+
const AvailabilityStatusPropertiesRecentlyResolved = {
|
283
419
|
type: {
|
284
420
|
name: "Composite",
|
285
|
-
className: "
|
421
|
+
className: "AvailabilityStatusPropertiesRecentlyResolved",
|
286
422
|
modelProperties: {
|
287
|
-
|
288
|
-
serializedName: "
|
423
|
+
unavailableOccuredTime: {
|
424
|
+
serializedName: "unavailableOccuredTime",
|
289
425
|
type: {
|
290
426
|
name: "DateTime"
|
291
427
|
}
|
@@ -296,8 +432,8 @@ const AvailabilityStatusPropertiesRecentlyResolvedState = {
|
|
296
432
|
name: "DateTime"
|
297
433
|
}
|
298
434
|
},
|
299
|
-
|
300
|
-
serializedName: "
|
435
|
+
unavailableSummary: {
|
436
|
+
serializedName: "unavailableSummary",
|
301
437
|
type: {
|
302
438
|
name: "String"
|
303
439
|
}
|
@@ -322,6 +458,12 @@ const RecommendedAction = {
|
|
322
458
|
name: "String"
|
323
459
|
}
|
324
460
|
},
|
461
|
+
actionUrlComment: {
|
462
|
+
serializedName: "_ActionUrl\\.Comment",
|
463
|
+
type: {
|
464
|
+
name: "String"
|
465
|
+
}
|
466
|
+
},
|
325
467
|
actionUrlText: {
|
326
468
|
serializedName: "actionUrlText",
|
327
469
|
type: {
|
@@ -520,276 +662,1848 @@ const OperationDisplay = {
|
|
520
662
|
}
|
521
663
|
}
|
522
664
|
};
|
523
|
-
const
|
665
|
+
const MetadataEntityListResult = {
|
524
666
|
type: {
|
525
667
|
name: "Composite",
|
526
|
-
className: "
|
668
|
+
className: "MetadataEntityListResult",
|
527
669
|
modelProperties: {
|
528
|
-
|
529
|
-
serializedName: "
|
670
|
+
value: {
|
671
|
+
serializedName: "value",
|
530
672
|
type: {
|
531
|
-
name: "
|
673
|
+
name: "Sequence",
|
674
|
+
element: {
|
675
|
+
type: {
|
676
|
+
name: "Composite",
|
677
|
+
className: "MetadataEntity"
|
678
|
+
}
|
679
|
+
}
|
532
680
|
}
|
533
681
|
},
|
534
|
-
|
535
|
-
serializedName: "
|
682
|
+
nextLink: {
|
683
|
+
serializedName: "nextLink",
|
684
|
+
type: {
|
685
|
+
name: "String"
|
686
|
+
}
|
687
|
+
}
|
688
|
+
}
|
689
|
+
}
|
690
|
+
};
|
691
|
+
const MetadataSupportedValueDetail = {
|
692
|
+
type: {
|
693
|
+
name: "Composite",
|
694
|
+
className: "MetadataSupportedValueDetail",
|
695
|
+
modelProperties: {
|
696
|
+
id: {
|
697
|
+
serializedName: "id",
|
536
698
|
type: {
|
537
699
|
name: "String"
|
538
700
|
}
|
539
701
|
},
|
540
|
-
|
541
|
-
serializedName: "
|
702
|
+
displayName: {
|
703
|
+
serializedName: "displayName",
|
542
704
|
type: {
|
543
705
|
name: "String"
|
544
706
|
}
|
545
707
|
},
|
546
|
-
|
547
|
-
serializedName: "
|
708
|
+
resourceTypes: {
|
709
|
+
serializedName: "resourceTypes",
|
548
710
|
type: {
|
549
|
-
name: "
|
711
|
+
name: "Sequence",
|
712
|
+
element: {
|
713
|
+
type: {
|
714
|
+
name: "String"
|
715
|
+
}
|
716
|
+
}
|
550
717
|
}
|
551
718
|
}
|
552
719
|
}
|
553
720
|
}
|
554
721
|
};
|
555
|
-
const
|
722
|
+
const Resource = {
|
556
723
|
type: {
|
557
724
|
name: "Composite",
|
558
|
-
className: "
|
725
|
+
className: "Resource",
|
559
726
|
modelProperties: {
|
560
|
-
|
561
|
-
serializedName: "
|
727
|
+
id: {
|
728
|
+
serializedName: "id",
|
729
|
+
readOnly: true,
|
562
730
|
type: {
|
563
731
|
name: "String"
|
564
732
|
}
|
565
733
|
},
|
566
|
-
|
567
|
-
serializedName: "
|
734
|
+
name: {
|
735
|
+
serializedName: "name",
|
736
|
+
readOnly: true,
|
568
737
|
type: {
|
569
738
|
name: "String"
|
570
739
|
}
|
571
740
|
},
|
572
|
-
|
573
|
-
serializedName: "
|
741
|
+
type: {
|
742
|
+
serializedName: "type",
|
743
|
+
readOnly: true,
|
574
744
|
type: {
|
575
745
|
name: "String"
|
576
746
|
}
|
577
747
|
},
|
578
|
-
|
579
|
-
serializedName: "
|
748
|
+
systemData: {
|
749
|
+
serializedName: "systemData",
|
580
750
|
type: {
|
581
|
-
name: "
|
751
|
+
name: "Composite",
|
752
|
+
className: "SystemData"
|
582
753
|
}
|
583
|
-
}
|
584
|
-
|
585
|
-
|
754
|
+
}
|
755
|
+
}
|
756
|
+
}
|
757
|
+
};
|
758
|
+
const SystemData = {
|
759
|
+
type: {
|
760
|
+
name: "Composite",
|
761
|
+
className: "SystemData",
|
762
|
+
modelProperties: {
|
763
|
+
createdBy: {
|
764
|
+
serializedName: "createdBy",
|
586
765
|
type: {
|
587
766
|
name: "String"
|
588
767
|
}
|
589
768
|
},
|
590
|
-
|
591
|
-
serializedName: "
|
769
|
+
createdByType: {
|
770
|
+
serializedName: "createdByType",
|
592
771
|
type: {
|
593
772
|
name: "String"
|
594
773
|
}
|
595
774
|
},
|
596
|
-
|
597
|
-
serializedName: "
|
775
|
+
createdAt: {
|
776
|
+
serializedName: "createdAt",
|
777
|
+
type: {
|
778
|
+
name: "DateTime"
|
779
|
+
}
|
780
|
+
},
|
781
|
+
lastModifiedBy: {
|
782
|
+
serializedName: "lastModifiedBy",
|
598
783
|
type: {
|
599
784
|
name: "String"
|
600
785
|
}
|
601
786
|
},
|
602
|
-
|
603
|
-
serializedName: "
|
787
|
+
lastModifiedByType: {
|
788
|
+
serializedName: "lastModifiedByType",
|
604
789
|
type: {
|
605
|
-
name: "
|
790
|
+
name: "String"
|
606
791
|
}
|
607
792
|
},
|
608
|
-
|
609
|
-
serializedName: "
|
793
|
+
lastModifiedAt: {
|
794
|
+
serializedName: "lastModifiedAt",
|
610
795
|
type: {
|
611
796
|
name: "DateTime"
|
612
797
|
}
|
613
|
-
}
|
614
|
-
|
615
|
-
|
798
|
+
}
|
799
|
+
}
|
800
|
+
}
|
801
|
+
};
|
802
|
+
const EventImpactedResourceListResult = {
|
803
|
+
type: {
|
804
|
+
name: "Composite",
|
805
|
+
className: "EventImpactedResourceListResult",
|
806
|
+
modelProperties: {
|
807
|
+
value: {
|
808
|
+
serializedName: "value",
|
809
|
+
required: true,
|
616
810
|
type: {
|
617
811
|
name: "Sequence",
|
618
812
|
element: {
|
619
813
|
type: {
|
620
814
|
name: "Composite",
|
621
|
-
className: "
|
815
|
+
className: "EventImpactedResource"
|
622
816
|
}
|
623
817
|
}
|
624
818
|
}
|
819
|
+
},
|
820
|
+
nextLink: {
|
821
|
+
serializedName: "nextLink",
|
822
|
+
type: {
|
823
|
+
name: "String"
|
824
|
+
}
|
625
825
|
}
|
626
826
|
}
|
627
827
|
}
|
628
828
|
};
|
629
|
-
const
|
829
|
+
const KeyValueItem = {
|
630
830
|
type: {
|
631
831
|
name: "Composite",
|
632
|
-
className: "
|
832
|
+
className: "KeyValueItem",
|
633
833
|
modelProperties: {
|
634
|
-
|
635
|
-
serializedName: "
|
834
|
+
key: {
|
835
|
+
serializedName: "key",
|
836
|
+
readOnly: true,
|
636
837
|
type: {
|
637
838
|
name: "String"
|
638
839
|
}
|
639
840
|
},
|
640
|
-
|
641
|
-
serializedName: "
|
841
|
+
value: {
|
842
|
+
serializedName: "value",
|
843
|
+
readOnly: true,
|
642
844
|
type: {
|
643
845
|
name: "String"
|
644
846
|
}
|
645
|
-
}
|
646
|
-
|
647
|
-
|
847
|
+
}
|
848
|
+
}
|
849
|
+
}
|
850
|
+
};
|
851
|
+
const Events = {
|
852
|
+
type: {
|
853
|
+
name: "Composite",
|
854
|
+
className: "Events",
|
855
|
+
modelProperties: {
|
856
|
+
value: {
|
857
|
+
serializedName: "value",
|
858
|
+
required: true,
|
648
859
|
type: {
|
649
860
|
name: "Sequence",
|
650
861
|
element: {
|
651
862
|
type: {
|
652
863
|
name: "Composite",
|
653
|
-
className: "
|
864
|
+
className: "Event"
|
654
865
|
}
|
655
866
|
}
|
656
867
|
}
|
868
|
+
},
|
869
|
+
nextLink: {
|
870
|
+
serializedName: "nextLink",
|
871
|
+
type: {
|
872
|
+
name: "String"
|
873
|
+
}
|
657
874
|
}
|
658
875
|
}
|
659
876
|
}
|
660
877
|
};
|
661
|
-
const
|
878
|
+
const EventPropertiesArticle = {
|
662
879
|
type: {
|
663
880
|
name: "Composite",
|
664
|
-
className: "
|
881
|
+
className: "EventPropertiesArticle",
|
665
882
|
modelProperties: {
|
666
|
-
|
667
|
-
serializedName: "
|
883
|
+
articleContent: {
|
884
|
+
serializedName: "articleContent",
|
668
885
|
type: {
|
669
886
|
name: "String"
|
670
887
|
}
|
671
888
|
},
|
672
|
-
|
673
|
-
serializedName: "
|
889
|
+
articleId: {
|
890
|
+
serializedName: "articleId",
|
674
891
|
type: {
|
675
892
|
name: "String"
|
676
893
|
}
|
894
|
+
},
|
895
|
+
parameters: {
|
896
|
+
serializedName: "parameters",
|
897
|
+
type: {
|
898
|
+
name: "Dictionary",
|
899
|
+
value: { type: { name: "any" } }
|
900
|
+
}
|
677
901
|
}
|
678
902
|
}
|
679
903
|
}
|
680
904
|
};
|
681
|
-
const
|
905
|
+
const Link = {
|
682
906
|
type: {
|
683
907
|
name: "Composite",
|
684
|
-
className: "
|
908
|
+
className: "Link",
|
685
909
|
modelProperties: {
|
686
|
-
|
687
|
-
serializedName: "
|
688
|
-
readOnly: true,
|
910
|
+
type: {
|
911
|
+
serializedName: "type",
|
689
912
|
type: {
|
690
913
|
name: "String"
|
691
914
|
}
|
692
915
|
},
|
693
|
-
|
694
|
-
serializedName: "
|
695
|
-
|
916
|
+
displayText: {
|
917
|
+
serializedName: "displayText",
|
918
|
+
type: {
|
919
|
+
name: "Composite",
|
920
|
+
className: "LinkDisplayText"
|
921
|
+
}
|
922
|
+
},
|
923
|
+
extensionName: {
|
924
|
+
serializedName: "extensionName",
|
696
925
|
type: {
|
697
926
|
name: "String"
|
698
927
|
}
|
699
928
|
},
|
700
|
-
|
701
|
-
serializedName: "
|
702
|
-
readOnly: true,
|
929
|
+
bladeName: {
|
930
|
+
serializedName: "bladeName",
|
703
931
|
type: {
|
704
932
|
name: "String"
|
705
933
|
}
|
934
|
+
},
|
935
|
+
parameters: {
|
936
|
+
serializedName: "parameters",
|
937
|
+
type: {
|
938
|
+
name: "Dictionary",
|
939
|
+
value: { type: { name: "any" } }
|
940
|
+
}
|
706
941
|
}
|
707
942
|
}
|
708
943
|
}
|
709
944
|
};
|
710
|
-
const
|
945
|
+
const LinkDisplayText = {
|
711
946
|
type: {
|
712
947
|
name: "Composite",
|
713
|
-
className: "
|
948
|
+
className: "LinkDisplayText",
|
714
949
|
modelProperties: {
|
715
950
|
value: {
|
716
951
|
serializedName: "value",
|
952
|
+
type: {
|
953
|
+
name: "String"
|
954
|
+
}
|
955
|
+
},
|
956
|
+
localizedValue: {
|
957
|
+
serializedName: "localizedValue",
|
958
|
+
type: {
|
959
|
+
name: "String"
|
960
|
+
}
|
961
|
+
}
|
962
|
+
}
|
963
|
+
}
|
964
|
+
};
|
965
|
+
const Impact = {
|
966
|
+
type: {
|
967
|
+
name: "Composite",
|
968
|
+
className: "Impact",
|
969
|
+
modelProperties: {
|
970
|
+
impactedService: {
|
971
|
+
serializedName: "impactedService",
|
972
|
+
type: {
|
973
|
+
name: "String"
|
974
|
+
}
|
975
|
+
},
|
976
|
+
impactedRegions: {
|
977
|
+
serializedName: "impactedRegions",
|
717
978
|
type: {
|
718
979
|
name: "Sequence",
|
719
980
|
element: {
|
720
981
|
type: {
|
721
982
|
name: "Composite",
|
722
|
-
className: "
|
983
|
+
className: "ImpactedServiceRegion"
|
723
984
|
}
|
724
985
|
}
|
725
986
|
}
|
726
|
-
},
|
727
|
-
nextLink: {
|
728
|
-
serializedName: "nextLink",
|
729
|
-
type: {
|
730
|
-
name: "String"
|
731
|
-
}
|
732
987
|
}
|
733
988
|
}
|
734
989
|
}
|
735
990
|
};
|
736
|
-
const
|
991
|
+
const ImpactedServiceRegion = {
|
737
992
|
type: {
|
738
993
|
name: "Composite",
|
739
|
-
className: "
|
740
|
-
modelProperties:
|
741
|
-
|
994
|
+
className: "ImpactedServiceRegion",
|
995
|
+
modelProperties: {
|
996
|
+
impactedRegion: {
|
997
|
+
serializedName: "impactedRegion",
|
742
998
|
type: {
|
743
|
-
name: "
|
999
|
+
name: "String"
|
744
1000
|
}
|
745
|
-
},
|
746
|
-
|
1001
|
+
},
|
1002
|
+
status: {
|
1003
|
+
serializedName: "status",
|
1004
|
+
type: {
|
1005
|
+
name: "String"
|
1006
|
+
}
|
1007
|
+
},
|
1008
|
+
impactedSubscriptions: {
|
1009
|
+
serializedName: "impactedSubscriptions",
|
747
1010
|
type: {
|
748
1011
|
name: "Sequence",
|
749
1012
|
element: {
|
750
1013
|
type: {
|
751
|
-
name: "
|
752
|
-
className: "StatusBanner"
|
1014
|
+
name: "String"
|
753
1015
|
}
|
754
1016
|
}
|
755
1017
|
}
|
756
|
-
},
|
757
|
-
|
1018
|
+
},
|
1019
|
+
impactedTenants: {
|
1020
|
+
serializedName: "impactedTenants",
|
1021
|
+
type: {
|
1022
|
+
name: "Sequence",
|
1023
|
+
element: {
|
1024
|
+
type: {
|
1025
|
+
name: "String"
|
1026
|
+
}
|
1027
|
+
}
|
1028
|
+
}
|
1029
|
+
},
|
1030
|
+
lastUpdateTime: {
|
1031
|
+
serializedName: "lastUpdateTime",
|
1032
|
+
type: {
|
1033
|
+
name: "DateTime"
|
1034
|
+
}
|
1035
|
+
},
|
1036
|
+
updates: {
|
1037
|
+
serializedName: "updates",
|
758
1038
|
type: {
|
759
1039
|
name: "Sequence",
|
760
1040
|
element: {
|
761
1041
|
type: {
|
762
1042
|
name: "Composite",
|
763
|
-
className: "
|
1043
|
+
className: "Update"
|
764
1044
|
}
|
765
1045
|
}
|
766
1046
|
}
|
767
|
-
}
|
1047
|
+
}
|
1048
|
+
}
|
768
1049
|
}
|
769
1050
|
};
|
1051
|
+
const Update = {
|
1052
|
+
type: {
|
1053
|
+
name: "Composite",
|
1054
|
+
className: "Update",
|
1055
|
+
modelProperties: {
|
1056
|
+
summary: {
|
1057
|
+
serializedName: "summary",
|
1058
|
+
type: {
|
1059
|
+
name: "String"
|
1060
|
+
}
|
1061
|
+
},
|
1062
|
+
updateDateTime: {
|
1063
|
+
serializedName: "updateDateTime",
|
1064
|
+
type: {
|
1065
|
+
name: "DateTime"
|
1066
|
+
}
|
1067
|
+
}
|
1068
|
+
}
|
1069
|
+
}
|
1070
|
+
};
|
1071
|
+
const EventPropertiesRecommendedActions = {
|
1072
|
+
type: {
|
1073
|
+
name: "Composite",
|
1074
|
+
className: "EventPropertiesRecommendedActions",
|
1075
|
+
modelProperties: {
|
1076
|
+
message: {
|
1077
|
+
serializedName: "message",
|
1078
|
+
type: {
|
1079
|
+
name: "String"
|
1080
|
+
}
|
1081
|
+
},
|
1082
|
+
actions: {
|
1083
|
+
serializedName: "actions",
|
1084
|
+
type: {
|
1085
|
+
name: "Sequence",
|
1086
|
+
element: {
|
1087
|
+
type: {
|
1088
|
+
name: "Composite",
|
1089
|
+
className: "EventPropertiesRecommendedActionsItem"
|
1090
|
+
}
|
1091
|
+
}
|
1092
|
+
}
|
1093
|
+
},
|
1094
|
+
localeCode: {
|
1095
|
+
serializedName: "localeCode",
|
1096
|
+
type: {
|
1097
|
+
name: "String"
|
1098
|
+
}
|
1099
|
+
}
|
1100
|
+
}
|
1101
|
+
}
|
1102
|
+
};
|
1103
|
+
const EventPropertiesRecommendedActionsItem = {
|
1104
|
+
type: {
|
1105
|
+
name: "Composite",
|
1106
|
+
className: "EventPropertiesRecommendedActionsItem",
|
1107
|
+
modelProperties: {
|
1108
|
+
groupId: {
|
1109
|
+
serializedName: "groupId",
|
1110
|
+
type: {
|
1111
|
+
name: "Number"
|
1112
|
+
}
|
1113
|
+
},
|
1114
|
+
actionText: {
|
1115
|
+
serializedName: "actionText",
|
1116
|
+
type: {
|
1117
|
+
name: "String"
|
1118
|
+
}
|
1119
|
+
}
|
1120
|
+
}
|
1121
|
+
}
|
1122
|
+
};
|
1123
|
+
const Faq = {
|
1124
|
+
type: {
|
1125
|
+
name: "Composite",
|
1126
|
+
className: "Faq",
|
1127
|
+
modelProperties: {
|
1128
|
+
question: {
|
1129
|
+
serializedName: "question",
|
1130
|
+
type: {
|
1131
|
+
name: "String"
|
1132
|
+
}
|
1133
|
+
},
|
1134
|
+
answer: {
|
1135
|
+
serializedName: "answer",
|
1136
|
+
type: {
|
1137
|
+
name: "String"
|
1138
|
+
}
|
1139
|
+
},
|
1140
|
+
localeCode: {
|
1141
|
+
serializedName: "localeCode",
|
1142
|
+
type: {
|
1143
|
+
name: "String"
|
1144
|
+
}
|
1145
|
+
}
|
1146
|
+
}
|
1147
|
+
}
|
1148
|
+
};
|
1149
|
+
const EventPropertiesAdditionalInformation = {
|
1150
|
+
type: {
|
1151
|
+
name: "Composite",
|
1152
|
+
className: "EventPropertiesAdditionalInformation",
|
1153
|
+
modelProperties: {
|
1154
|
+
message: {
|
1155
|
+
serializedName: "message",
|
1156
|
+
type: {
|
1157
|
+
name: "String"
|
1158
|
+
}
|
1159
|
+
}
|
1160
|
+
}
|
1161
|
+
}
|
1162
|
+
};
|
1163
|
+
const EmergingIssueListResult = {
|
1164
|
+
type: {
|
1165
|
+
name: "Composite",
|
1166
|
+
className: "EmergingIssueListResult",
|
1167
|
+
modelProperties: {
|
1168
|
+
value: {
|
1169
|
+
serializedName: "value",
|
1170
|
+
type: {
|
1171
|
+
name: "Sequence",
|
1172
|
+
element: {
|
1173
|
+
type: {
|
1174
|
+
name: "Composite",
|
1175
|
+
className: "EmergingIssuesGetResult"
|
1176
|
+
}
|
1177
|
+
}
|
1178
|
+
}
|
1179
|
+
},
|
1180
|
+
nextLink: {
|
1181
|
+
serializedName: "nextLink",
|
1182
|
+
type: {
|
1183
|
+
name: "String"
|
1184
|
+
}
|
1185
|
+
}
|
1186
|
+
}
|
1187
|
+
}
|
1188
|
+
};
|
1189
|
+
const StatusBanner = {
|
1190
|
+
type: {
|
1191
|
+
name: "Composite",
|
1192
|
+
className: "StatusBanner",
|
1193
|
+
modelProperties: {
|
1194
|
+
title: {
|
1195
|
+
serializedName: "title",
|
1196
|
+
type: {
|
1197
|
+
name: "String"
|
1198
|
+
}
|
1199
|
+
},
|
1200
|
+
message: {
|
1201
|
+
serializedName: "message",
|
1202
|
+
type: {
|
1203
|
+
name: "String"
|
1204
|
+
}
|
1205
|
+
},
|
1206
|
+
cloud: {
|
1207
|
+
serializedName: "cloud",
|
1208
|
+
type: {
|
1209
|
+
name: "String"
|
1210
|
+
}
|
1211
|
+
},
|
1212
|
+
lastModifiedTime: {
|
1213
|
+
serializedName: "lastModifiedTime",
|
1214
|
+
type: {
|
1215
|
+
name: "DateTime"
|
1216
|
+
}
|
1217
|
+
}
|
1218
|
+
}
|
1219
|
+
}
|
1220
|
+
};
|
1221
|
+
const StatusActiveEvent = {
|
1222
|
+
type: {
|
1223
|
+
name: "Composite",
|
1224
|
+
className: "StatusActiveEvent",
|
1225
|
+
modelProperties: {
|
1226
|
+
title: {
|
1227
|
+
serializedName: "title",
|
1228
|
+
type: {
|
1229
|
+
name: "String"
|
1230
|
+
}
|
1231
|
+
},
|
1232
|
+
description: {
|
1233
|
+
serializedName: "description",
|
1234
|
+
type: {
|
1235
|
+
name: "String"
|
1236
|
+
}
|
1237
|
+
},
|
1238
|
+
trackingId: {
|
1239
|
+
serializedName: "trackingId",
|
1240
|
+
type: {
|
1241
|
+
name: "String"
|
1242
|
+
}
|
1243
|
+
},
|
1244
|
+
startTime: {
|
1245
|
+
serializedName: "startTime",
|
1246
|
+
type: {
|
1247
|
+
name: "DateTime"
|
1248
|
+
}
|
1249
|
+
},
|
1250
|
+
cloud: {
|
1251
|
+
serializedName: "cloud",
|
1252
|
+
type: {
|
1253
|
+
name: "String"
|
1254
|
+
}
|
1255
|
+
},
|
1256
|
+
severity: {
|
1257
|
+
serializedName: "severity",
|
1258
|
+
type: {
|
1259
|
+
name: "String"
|
1260
|
+
}
|
1261
|
+
},
|
1262
|
+
stage: {
|
1263
|
+
serializedName: "stage",
|
1264
|
+
type: {
|
1265
|
+
name: "String"
|
1266
|
+
}
|
1267
|
+
},
|
1268
|
+
published: {
|
1269
|
+
serializedName: "published",
|
1270
|
+
type: {
|
1271
|
+
name: "Boolean"
|
1272
|
+
}
|
1273
|
+
},
|
1274
|
+
lastModifiedTime: {
|
1275
|
+
serializedName: "lastModifiedTime",
|
1276
|
+
type: {
|
1277
|
+
name: "DateTime"
|
1278
|
+
}
|
1279
|
+
},
|
1280
|
+
impacts: {
|
1281
|
+
serializedName: "impacts",
|
1282
|
+
type: {
|
1283
|
+
name: "Sequence",
|
1284
|
+
element: {
|
1285
|
+
type: {
|
1286
|
+
name: "Composite",
|
1287
|
+
className: "EmergingIssueImpact"
|
1288
|
+
}
|
1289
|
+
}
|
1290
|
+
}
|
1291
|
+
}
|
1292
|
+
}
|
1293
|
+
}
|
1294
|
+
};
|
1295
|
+
const EmergingIssueImpact = {
|
1296
|
+
type: {
|
1297
|
+
name: "Composite",
|
1298
|
+
className: "EmergingIssueImpact",
|
1299
|
+
modelProperties: {
|
1300
|
+
id: {
|
1301
|
+
serializedName: "id",
|
1302
|
+
type: {
|
1303
|
+
name: "String"
|
1304
|
+
}
|
1305
|
+
},
|
1306
|
+
name: {
|
1307
|
+
serializedName: "name",
|
1308
|
+
type: {
|
1309
|
+
name: "String"
|
1310
|
+
}
|
1311
|
+
},
|
1312
|
+
regions: {
|
1313
|
+
serializedName: "regions",
|
1314
|
+
type: {
|
1315
|
+
name: "Sequence",
|
1316
|
+
element: {
|
1317
|
+
type: {
|
1318
|
+
name: "Composite",
|
1319
|
+
className: "ImpactedRegion"
|
1320
|
+
}
|
1321
|
+
}
|
1322
|
+
}
|
1323
|
+
}
|
1324
|
+
}
|
1325
|
+
}
|
1326
|
+
};
|
1327
|
+
const ImpactedRegion = {
|
1328
|
+
type: {
|
1329
|
+
name: "Composite",
|
1330
|
+
className: "ImpactedRegion",
|
1331
|
+
modelProperties: {
|
1332
|
+
id: {
|
1333
|
+
serializedName: "id",
|
1334
|
+
type: {
|
1335
|
+
name: "String"
|
1336
|
+
}
|
1337
|
+
},
|
1338
|
+
name: {
|
1339
|
+
serializedName: "name",
|
1340
|
+
type: {
|
1341
|
+
name: "String"
|
1342
|
+
}
|
1343
|
+
}
|
1344
|
+
}
|
1345
|
+
}
|
1346
|
+
};
|
1347
|
+
const ProxyResource = {
|
1348
|
+
type: {
|
1349
|
+
name: "Composite",
|
1350
|
+
className: "ProxyResource",
|
1351
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
1352
|
+
}
|
1353
|
+
};
|
1354
|
+
const MetadataEntity = {
|
1355
|
+
type: {
|
1356
|
+
name: "Composite",
|
1357
|
+
className: "MetadataEntity",
|
1358
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { displayName: {
|
1359
|
+
serializedName: "properties.displayName",
|
1360
|
+
type: {
|
1361
|
+
name: "String"
|
1362
|
+
}
|
1363
|
+
}, dependsOn: {
|
1364
|
+
serializedName: "properties.dependsOn",
|
1365
|
+
type: {
|
1366
|
+
name: "Sequence",
|
1367
|
+
element: {
|
1368
|
+
type: {
|
1369
|
+
name: "String"
|
1370
|
+
}
|
1371
|
+
}
|
1372
|
+
}
|
1373
|
+
}, applicableScenarios: {
|
1374
|
+
serializedName: "properties.applicableScenarios",
|
1375
|
+
type: {
|
1376
|
+
name: "Sequence",
|
1377
|
+
element: {
|
1378
|
+
type: {
|
1379
|
+
name: "String"
|
1380
|
+
}
|
1381
|
+
}
|
1382
|
+
}
|
1383
|
+
}, supportedValues: {
|
1384
|
+
serializedName: "properties.supportedValues",
|
1385
|
+
type: {
|
1386
|
+
name: "Sequence",
|
1387
|
+
element: {
|
1388
|
+
type: {
|
1389
|
+
name: "Composite",
|
1390
|
+
className: "MetadataSupportedValueDetail"
|
1391
|
+
}
|
1392
|
+
}
|
1393
|
+
}
|
1394
|
+
} })
|
1395
|
+
}
|
1396
|
+
};
|
1397
|
+
const EventImpactedResource = {
|
1398
|
+
type: {
|
1399
|
+
name: "Composite",
|
1400
|
+
className: "EventImpactedResource",
|
1401
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { targetResourceType: {
|
1402
|
+
serializedName: "properties.targetResourceType",
|
1403
|
+
readOnly: true,
|
1404
|
+
type: {
|
1405
|
+
name: "String"
|
1406
|
+
}
|
1407
|
+
}, targetResourceId: {
|
1408
|
+
serializedName: "properties.targetResourceId",
|
1409
|
+
readOnly: true,
|
1410
|
+
type: {
|
1411
|
+
name: "String"
|
1412
|
+
}
|
1413
|
+
}, targetRegion: {
|
1414
|
+
serializedName: "properties.targetRegion",
|
1415
|
+
readOnly: true,
|
1416
|
+
type: {
|
1417
|
+
name: "String"
|
1418
|
+
}
|
1419
|
+
}, info: {
|
1420
|
+
serializedName: "properties.info",
|
1421
|
+
type: {
|
1422
|
+
name: "Sequence",
|
1423
|
+
element: {
|
1424
|
+
type: {
|
1425
|
+
name: "Composite",
|
1426
|
+
className: "KeyValueItem"
|
1427
|
+
}
|
1428
|
+
}
|
1429
|
+
}
|
1430
|
+
} })
|
1431
|
+
}
|
1432
|
+
};
|
1433
|
+
const Event = {
|
1434
|
+
type: {
|
1435
|
+
name: "Composite",
|
1436
|
+
className: "Event",
|
1437
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { eventType: {
|
1438
|
+
serializedName: "properties.eventType",
|
1439
|
+
type: {
|
1440
|
+
name: "String"
|
1441
|
+
}
|
1442
|
+
}, eventSource: {
|
1443
|
+
serializedName: "properties.eventSource",
|
1444
|
+
type: {
|
1445
|
+
name: "String"
|
1446
|
+
}
|
1447
|
+
}, status: {
|
1448
|
+
serializedName: "properties.status",
|
1449
|
+
type: {
|
1450
|
+
name: "String"
|
1451
|
+
}
|
1452
|
+
}, title: {
|
1453
|
+
serializedName: "properties.title",
|
1454
|
+
type: {
|
1455
|
+
name: "String"
|
1456
|
+
}
|
1457
|
+
}, summary: {
|
1458
|
+
serializedName: "properties.summary",
|
1459
|
+
type: {
|
1460
|
+
name: "String"
|
1461
|
+
}
|
1462
|
+
}, header: {
|
1463
|
+
serializedName: "properties.header",
|
1464
|
+
type: {
|
1465
|
+
name: "String"
|
1466
|
+
}
|
1467
|
+
}, level: {
|
1468
|
+
serializedName: "properties.level",
|
1469
|
+
type: {
|
1470
|
+
name: "String"
|
1471
|
+
}
|
1472
|
+
}, eventLevel: {
|
1473
|
+
serializedName: "properties.eventLevel",
|
1474
|
+
type: {
|
1475
|
+
name: "String"
|
1476
|
+
}
|
1477
|
+
}, externalIncidentId: {
|
1478
|
+
serializedName: "properties.externalIncidentId",
|
1479
|
+
type: {
|
1480
|
+
name: "String"
|
1481
|
+
}
|
1482
|
+
}, reason: {
|
1483
|
+
serializedName: "properties.reason",
|
1484
|
+
type: {
|
1485
|
+
name: "String"
|
1486
|
+
}
|
1487
|
+
}, article: {
|
1488
|
+
serializedName: "properties.article",
|
1489
|
+
type: {
|
1490
|
+
name: "Composite",
|
1491
|
+
className: "EventPropertiesArticle"
|
1492
|
+
}
|
1493
|
+
}, links: {
|
1494
|
+
serializedName: "properties.links",
|
1495
|
+
type: {
|
1496
|
+
name: "Sequence",
|
1497
|
+
element: {
|
1498
|
+
type: {
|
1499
|
+
name: "Composite",
|
1500
|
+
className: "Link"
|
1501
|
+
}
|
1502
|
+
}
|
1503
|
+
}
|
1504
|
+
}, impactStartTime: {
|
1505
|
+
serializedName: "properties.impactStartTime",
|
1506
|
+
type: {
|
1507
|
+
name: "DateTime"
|
1508
|
+
}
|
1509
|
+
}, impactMitigationTime: {
|
1510
|
+
serializedName: "properties.impactMitigationTime",
|
1511
|
+
type: {
|
1512
|
+
name: "DateTime"
|
1513
|
+
}
|
1514
|
+
}, impact: {
|
1515
|
+
serializedName: "properties.impact",
|
1516
|
+
type: {
|
1517
|
+
name: "Sequence",
|
1518
|
+
element: {
|
1519
|
+
type: {
|
1520
|
+
name: "Composite",
|
1521
|
+
className: "Impact"
|
1522
|
+
}
|
1523
|
+
}
|
1524
|
+
}
|
1525
|
+
}, recommendedActions: {
|
1526
|
+
serializedName: "properties.recommendedActions",
|
1527
|
+
type: {
|
1528
|
+
name: "Composite",
|
1529
|
+
className: "EventPropertiesRecommendedActions"
|
1530
|
+
}
|
1531
|
+
}, faqs: {
|
1532
|
+
serializedName: "properties.faqs",
|
1533
|
+
type: {
|
1534
|
+
name: "Sequence",
|
1535
|
+
element: {
|
1536
|
+
type: {
|
1537
|
+
name: "Composite",
|
1538
|
+
className: "Faq"
|
1539
|
+
}
|
1540
|
+
}
|
1541
|
+
}
|
1542
|
+
}, isHIR: {
|
1543
|
+
serializedName: "properties.isHIR",
|
1544
|
+
type: {
|
1545
|
+
name: "Boolean"
|
1546
|
+
}
|
1547
|
+
}, enableMicrosoftSupport: {
|
1548
|
+
serializedName: "properties.enableMicrosoftSupport",
|
1549
|
+
type: {
|
1550
|
+
name: "Boolean"
|
1551
|
+
}
|
1552
|
+
}, description: {
|
1553
|
+
serializedName: "properties.description",
|
1554
|
+
type: {
|
1555
|
+
name: "String"
|
1556
|
+
}
|
1557
|
+
}, platformInitiated: {
|
1558
|
+
serializedName: "properties.platformInitiated",
|
1559
|
+
type: {
|
1560
|
+
name: "Boolean"
|
1561
|
+
}
|
1562
|
+
}, enableChatWithUs: {
|
1563
|
+
serializedName: "properties.enableChatWithUs",
|
1564
|
+
type: {
|
1565
|
+
name: "Boolean"
|
1566
|
+
}
|
1567
|
+
}, priority: {
|
1568
|
+
serializedName: "properties.priority",
|
1569
|
+
type: {
|
1570
|
+
name: "Number"
|
1571
|
+
}
|
1572
|
+
}, lastUpdateTime: {
|
1573
|
+
serializedName: "properties.lastUpdateTime",
|
1574
|
+
type: {
|
1575
|
+
name: "DateTime"
|
1576
|
+
}
|
1577
|
+
}, hirStage: {
|
1578
|
+
serializedName: "properties.hirStage",
|
1579
|
+
type: {
|
1580
|
+
name: "String"
|
1581
|
+
}
|
1582
|
+
}, additionalInformation: {
|
1583
|
+
serializedName: "properties.additionalInformation",
|
1584
|
+
type: {
|
1585
|
+
name: "Composite",
|
1586
|
+
className: "EventPropertiesAdditionalInformation"
|
1587
|
+
}
|
1588
|
+
}, duration: {
|
1589
|
+
serializedName: "properties.duration",
|
1590
|
+
type: {
|
1591
|
+
name: "Number"
|
1592
|
+
}
|
1593
|
+
}, impactType: {
|
1594
|
+
serializedName: "properties.impactType",
|
1595
|
+
type: {
|
1596
|
+
name: "String"
|
1597
|
+
}
|
1598
|
+
} })
|
1599
|
+
}
|
1600
|
+
};
|
1601
|
+
const EmergingIssuesGetResult = {
|
1602
|
+
type: {
|
1603
|
+
name: "Composite",
|
1604
|
+
className: "EmergingIssuesGetResult",
|
1605
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { refreshTimestamp: {
|
1606
|
+
serializedName: "properties.refreshTimestamp",
|
1607
|
+
type: {
|
1608
|
+
name: "DateTime"
|
1609
|
+
}
|
1610
|
+
}, statusBanners: {
|
1611
|
+
serializedName: "properties.statusBanners",
|
1612
|
+
type: {
|
1613
|
+
name: "Sequence",
|
1614
|
+
element: {
|
1615
|
+
type: {
|
1616
|
+
name: "Composite",
|
1617
|
+
className: "StatusBanner"
|
1618
|
+
}
|
1619
|
+
}
|
1620
|
+
}
|
1621
|
+
}, statusActiveEvents: {
|
1622
|
+
serializedName: "properties.statusActiveEvents",
|
1623
|
+
type: {
|
1624
|
+
name: "Sequence",
|
1625
|
+
element: {
|
1626
|
+
type: {
|
1627
|
+
name: "Composite",
|
1628
|
+
className: "StatusActiveEvent"
|
1629
|
+
}
|
1630
|
+
}
|
1631
|
+
}
|
1632
|
+
} })
|
1633
|
+
}
|
1634
|
+
};
|
1635
|
+
const ImpactedResourceStatus = {
|
1636
|
+
type: {
|
1637
|
+
name: "Composite",
|
1638
|
+
className: "ImpactedResourceStatus",
|
1639
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { availabilityState: {
|
1640
|
+
serializedName: "properties.availabilityState",
|
1641
|
+
type: {
|
1642
|
+
name: "String"
|
1643
|
+
}
|
1644
|
+
}, title: {
|
1645
|
+
serializedName: "properties.title",
|
1646
|
+
type: {
|
1647
|
+
name: "String"
|
1648
|
+
}
|
1649
|
+
}, summary: {
|
1650
|
+
serializedName: "properties.summary",
|
1651
|
+
type: {
|
1652
|
+
name: "String"
|
1653
|
+
}
|
1654
|
+
}, reasonType: {
|
1655
|
+
serializedName: "properties.reasonType",
|
1656
|
+
type: {
|
1657
|
+
name: "String"
|
1658
|
+
}
|
1659
|
+
}, occurredTime: {
|
1660
|
+
serializedName: "properties.occurredTime",
|
1661
|
+
type: {
|
1662
|
+
name: "DateTime"
|
1663
|
+
}
|
1664
|
+
} })
|
1665
|
+
}
|
1666
|
+
};
|
1667
|
+
|
1668
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
1669
|
+
__proto__: null,
|
1670
|
+
AvailabilityStatusListResult: AvailabilityStatusListResult,
|
1671
|
+
AvailabilityStatus: AvailabilityStatus,
|
1672
|
+
AvailabilityStatusProperties: AvailabilityStatusProperties,
|
1673
|
+
AvailabilityStatusPropertiesRecentlyResolved: AvailabilityStatusPropertiesRecentlyResolved,
|
1674
|
+
RecommendedAction: RecommendedAction,
|
1675
|
+
ServiceImpactingEvent: ServiceImpactingEvent,
|
1676
|
+
ServiceImpactingEventStatus: ServiceImpactingEventStatus,
|
1677
|
+
ServiceImpactingEventIncidentProperties: ServiceImpactingEventIncidentProperties,
|
1678
|
+
ErrorResponse: ErrorResponse,
|
1679
|
+
OperationListResult: OperationListResult,
|
1680
|
+
Operation: Operation,
|
1681
|
+
OperationDisplay: OperationDisplay,
|
1682
|
+
MetadataEntityListResult: MetadataEntityListResult,
|
1683
|
+
MetadataSupportedValueDetail: MetadataSupportedValueDetail,
|
1684
|
+
Resource: Resource,
|
1685
|
+
SystemData: SystemData,
|
1686
|
+
EventImpactedResourceListResult: EventImpactedResourceListResult,
|
1687
|
+
KeyValueItem: KeyValueItem,
|
1688
|
+
Events: Events,
|
1689
|
+
EventPropertiesArticle: EventPropertiesArticle,
|
1690
|
+
Link: Link,
|
1691
|
+
LinkDisplayText: LinkDisplayText,
|
1692
|
+
Impact: Impact,
|
1693
|
+
ImpactedServiceRegion: ImpactedServiceRegion,
|
1694
|
+
Update: Update,
|
1695
|
+
EventPropertiesRecommendedActions: EventPropertiesRecommendedActions,
|
1696
|
+
EventPropertiesRecommendedActionsItem: EventPropertiesRecommendedActionsItem,
|
1697
|
+
Faq: Faq,
|
1698
|
+
EventPropertiesAdditionalInformation: EventPropertiesAdditionalInformation,
|
1699
|
+
EmergingIssueListResult: EmergingIssueListResult,
|
1700
|
+
StatusBanner: StatusBanner,
|
1701
|
+
StatusActiveEvent: StatusActiveEvent,
|
1702
|
+
EmergingIssueImpact: EmergingIssueImpact,
|
1703
|
+
ImpactedRegion: ImpactedRegion,
|
1704
|
+
ProxyResource: ProxyResource,
|
1705
|
+
MetadataEntity: MetadataEntity,
|
1706
|
+
EventImpactedResource: EventImpactedResource,
|
1707
|
+
Event: Event,
|
1708
|
+
EmergingIssuesGetResult: EmergingIssuesGetResult,
|
1709
|
+
ImpactedResourceStatus: ImpactedResourceStatus
|
1710
|
+
});
|
1711
|
+
|
1712
|
+
/*
|
1713
|
+
* Copyright (c) Microsoft Corporation.
|
1714
|
+
* Licensed under the MIT License.
|
1715
|
+
*
|
1716
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1717
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1718
|
+
*/
|
1719
|
+
const accept = {
|
1720
|
+
parameterPath: "accept",
|
1721
|
+
mapper: {
|
1722
|
+
defaultValue: "application/json",
|
1723
|
+
isConstant: true,
|
1724
|
+
serializedName: "Accept",
|
1725
|
+
type: {
|
1726
|
+
name: "String"
|
1727
|
+
}
|
1728
|
+
}
|
1729
|
+
};
|
1730
|
+
const $host = {
|
1731
|
+
parameterPath: "$host",
|
1732
|
+
mapper: {
|
1733
|
+
serializedName: "$host",
|
1734
|
+
required: true,
|
1735
|
+
type: {
|
1736
|
+
name: "String"
|
1737
|
+
}
|
1738
|
+
},
|
1739
|
+
skipEncoding: true
|
1740
|
+
};
|
1741
|
+
const apiVersion = {
|
1742
|
+
parameterPath: "apiVersion",
|
1743
|
+
mapper: {
|
1744
|
+
defaultValue: "2022-10-01",
|
1745
|
+
isConstant: true,
|
1746
|
+
serializedName: "api-version",
|
1747
|
+
type: {
|
1748
|
+
name: "String"
|
1749
|
+
}
|
1750
|
+
}
|
1751
|
+
};
|
1752
|
+
const filter = {
|
1753
|
+
parameterPath: ["options", "filter"],
|
1754
|
+
mapper: {
|
1755
|
+
serializedName: "$filter",
|
1756
|
+
type: {
|
1757
|
+
name: "String"
|
1758
|
+
}
|
1759
|
+
}
|
1760
|
+
};
|
1761
|
+
const subscriptionId = {
|
1762
|
+
parameterPath: "subscriptionId",
|
1763
|
+
mapper: {
|
1764
|
+
constraints: {
|
1765
|
+
MinLength: 1
|
1766
|
+
},
|
1767
|
+
serializedName: "subscriptionId",
|
1768
|
+
required: true,
|
1769
|
+
type: {
|
1770
|
+
name: "String"
|
1771
|
+
}
|
1772
|
+
}
|
1773
|
+
};
|
1774
|
+
const expand = {
|
1775
|
+
parameterPath: ["options", "expand"],
|
1776
|
+
mapper: {
|
1777
|
+
serializedName: "$expand",
|
1778
|
+
type: {
|
1779
|
+
name: "String"
|
1780
|
+
}
|
1781
|
+
}
|
1782
|
+
};
|
1783
|
+
const resourceGroupName = {
|
1784
|
+
parameterPath: "resourceGroupName",
|
1785
|
+
mapper: {
|
1786
|
+
constraints: {
|
1787
|
+
MaxLength: 90,
|
1788
|
+
MinLength: 1
|
1789
|
+
},
|
1790
|
+
serializedName: "resourceGroupName",
|
1791
|
+
required: true,
|
1792
|
+
type: {
|
1793
|
+
name: "String"
|
1794
|
+
}
|
1795
|
+
}
|
1796
|
+
};
|
1797
|
+
const resourceUri = {
|
1798
|
+
parameterPath: "resourceUri",
|
1799
|
+
mapper: {
|
1800
|
+
serializedName: "resourceUri",
|
1801
|
+
required: true,
|
1802
|
+
type: {
|
1803
|
+
name: "String"
|
1804
|
+
}
|
1805
|
+
},
|
1806
|
+
skipEncoding: true
|
1807
|
+
};
|
1808
|
+
const nextLink = {
|
1809
|
+
parameterPath: "nextLink",
|
1810
|
+
mapper: {
|
1811
|
+
serializedName: "nextLink",
|
1812
|
+
required: true,
|
1813
|
+
type: {
|
1814
|
+
name: "String"
|
1815
|
+
}
|
1816
|
+
},
|
1817
|
+
skipEncoding: true
|
1818
|
+
};
|
1819
|
+
const name = {
|
1820
|
+
parameterPath: "name",
|
1821
|
+
mapper: {
|
1822
|
+
serializedName: "name",
|
1823
|
+
required: true,
|
1824
|
+
type: {
|
1825
|
+
name: "String"
|
1826
|
+
}
|
1827
|
+
}
|
1828
|
+
};
|
1829
|
+
const eventTrackingId = {
|
1830
|
+
parameterPath: "eventTrackingId",
|
1831
|
+
mapper: {
|
1832
|
+
serializedName: "eventTrackingId",
|
1833
|
+
required: true,
|
1834
|
+
type: {
|
1835
|
+
name: "String"
|
1836
|
+
}
|
1837
|
+
}
|
1838
|
+
};
|
1839
|
+
const impactedResourceName = {
|
1840
|
+
parameterPath: "impactedResourceName",
|
1841
|
+
mapper: {
|
1842
|
+
constraints: {
|
1843
|
+
Pattern: new RegExp("^[^*#&+:<>%?]+$")
|
1844
|
+
},
|
1845
|
+
serializedName: "impactedResourceName",
|
1846
|
+
required: true,
|
1847
|
+
type: {
|
1848
|
+
name: "String"
|
1849
|
+
}
|
1850
|
+
}
|
1851
|
+
};
|
1852
|
+
const queryStartTime = {
|
1853
|
+
parameterPath: ["options", "queryStartTime"],
|
1854
|
+
mapper: {
|
1855
|
+
serializedName: "queryStartTime",
|
1856
|
+
type: {
|
1857
|
+
name: "String"
|
1858
|
+
}
|
1859
|
+
}
|
1860
|
+
};
|
1861
|
+
const issueName = {
|
1862
|
+
parameterPath: "issueName",
|
1863
|
+
mapper: {
|
1864
|
+
serializedName: "issueName",
|
1865
|
+
required: true,
|
1866
|
+
type: {
|
1867
|
+
name: "String"
|
1868
|
+
}
|
1869
|
+
}
|
1870
|
+
};
|
1871
|
+
|
1872
|
+
/*
|
1873
|
+
* Copyright (c) Microsoft Corporation.
|
1874
|
+
* Licensed under the MIT License.
|
1875
|
+
*
|
1876
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1877
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1878
|
+
*/
|
1879
|
+
/// <reference lib="esnext.asynciterable" />
|
1880
|
+
/** Class containing AvailabilityStatuses operations. */
|
1881
|
+
class AvailabilityStatusesImpl {
|
1882
|
+
/**
|
1883
|
+
* Initialize a new instance of the class AvailabilityStatuses class.
|
1884
|
+
* @param client Reference to the service client
|
1885
|
+
*/
|
1886
|
+
constructor(client) {
|
1887
|
+
this.client = client;
|
1888
|
+
}
|
1889
|
+
/**
|
1890
|
+
* Lists the current availability status for all the resources in the subscription.
|
1891
|
+
* @param options The options parameters.
|
1892
|
+
*/
|
1893
|
+
listBySubscriptionId(options) {
|
1894
|
+
const iter = this.listBySubscriptionIdPagingAll(options);
|
1895
|
+
return {
|
1896
|
+
next() {
|
1897
|
+
return iter.next();
|
1898
|
+
},
|
1899
|
+
[Symbol.asyncIterator]() {
|
1900
|
+
return this;
|
1901
|
+
},
|
1902
|
+
byPage: (settings) => {
|
1903
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1904
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
1905
|
+
}
|
1906
|
+
return this.listBySubscriptionIdPagingPage(options, settings);
|
1907
|
+
}
|
1908
|
+
};
|
1909
|
+
}
|
1910
|
+
listBySubscriptionIdPagingPage(options, settings) {
|
1911
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
|
1912
|
+
let result;
|
1913
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
1914
|
+
if (!continuationToken) {
|
1915
|
+
result = yield tslib.__await(this._listBySubscriptionId(options));
|
1916
|
+
let page = result.value || [];
|
1917
|
+
continuationToken = result.nextLink;
|
1918
|
+
setContinuationToken(page, continuationToken);
|
1919
|
+
yield yield tslib.__await(page);
|
1920
|
+
}
|
1921
|
+
while (continuationToken) {
|
1922
|
+
result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
|
1923
|
+
continuationToken = result.nextLink;
|
1924
|
+
let page = result.value || [];
|
1925
|
+
setContinuationToken(page, continuationToken);
|
1926
|
+
yield yield tslib.__await(page);
|
1927
|
+
}
|
1928
|
+
});
|
1929
|
+
}
|
1930
|
+
listBySubscriptionIdPagingAll(options) {
|
1931
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
|
1932
|
+
var _a, e_1, _b, _c;
|
1933
|
+
try {
|
1934
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1935
|
+
_c = _f.value;
|
1936
|
+
_d = false;
|
1937
|
+
try {
|
1938
|
+
const page = _c;
|
1939
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1940
|
+
}
|
1941
|
+
finally {
|
1942
|
+
_d = true;
|
1943
|
+
}
|
1944
|
+
}
|
1945
|
+
}
|
1946
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1947
|
+
finally {
|
1948
|
+
try {
|
1949
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1950
|
+
}
|
1951
|
+
finally { if (e_1) throw e_1.error; }
|
1952
|
+
}
|
1953
|
+
});
|
1954
|
+
}
|
1955
|
+
/**
|
1956
|
+
* Lists the current availability status for all the resources in the resource group.
|
1957
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1958
|
+
* @param options The options parameters.
|
1959
|
+
*/
|
1960
|
+
listByResourceGroup(resourceGroupName, options) {
|
1961
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
1962
|
+
return {
|
1963
|
+
next() {
|
1964
|
+
return iter.next();
|
1965
|
+
},
|
1966
|
+
[Symbol.asyncIterator]() {
|
1967
|
+
return this;
|
1968
|
+
},
|
1969
|
+
byPage: (settings) => {
|
1970
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1971
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
1972
|
+
}
|
1973
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
1974
|
+
}
|
1975
|
+
};
|
1976
|
+
}
|
1977
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
1978
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
1979
|
+
let result;
|
1980
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
1981
|
+
if (!continuationToken) {
|
1982
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
1983
|
+
let page = result.value || [];
|
1984
|
+
continuationToken = result.nextLink;
|
1985
|
+
setContinuationToken(page, continuationToken);
|
1986
|
+
yield yield tslib.__await(page);
|
1987
|
+
}
|
1988
|
+
while (continuationToken) {
|
1989
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
1990
|
+
continuationToken = result.nextLink;
|
1991
|
+
let page = result.value || [];
|
1992
|
+
setContinuationToken(page, continuationToken);
|
1993
|
+
yield yield tslib.__await(page);
|
1994
|
+
}
|
1995
|
+
});
|
1996
|
+
}
|
1997
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
1998
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
1999
|
+
var _a, e_2, _b, _c;
|
2000
|
+
try {
|
2001
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2002
|
+
_c = _f.value;
|
2003
|
+
_d = false;
|
2004
|
+
try {
|
2005
|
+
const page = _c;
|
2006
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2007
|
+
}
|
2008
|
+
finally {
|
2009
|
+
_d = true;
|
2010
|
+
}
|
2011
|
+
}
|
2012
|
+
}
|
2013
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
2014
|
+
finally {
|
2015
|
+
try {
|
2016
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2017
|
+
}
|
2018
|
+
finally { if (e_2) throw e_2.error; }
|
2019
|
+
}
|
2020
|
+
});
|
2021
|
+
}
|
2022
|
+
/**
|
2023
|
+
* Lists all historical availability transitions and impacting events for a single resource.
|
2024
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
2025
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
2026
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
2027
|
+
* and
|
2028
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
2029
|
+
* @param options The options parameters.
|
2030
|
+
*/
|
2031
|
+
list(resourceUri, options) {
|
2032
|
+
const iter = this.listPagingAll(resourceUri, options);
|
2033
|
+
return {
|
2034
|
+
next() {
|
2035
|
+
return iter.next();
|
2036
|
+
},
|
2037
|
+
[Symbol.asyncIterator]() {
|
2038
|
+
return this;
|
2039
|
+
},
|
2040
|
+
byPage: (settings) => {
|
2041
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
2042
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
2043
|
+
}
|
2044
|
+
return this.listPagingPage(resourceUri, options, settings);
|
2045
|
+
}
|
2046
|
+
};
|
2047
|
+
}
|
2048
|
+
listPagingPage(resourceUri, options, settings) {
|
2049
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
2050
|
+
let result;
|
2051
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
2052
|
+
if (!continuationToken) {
|
2053
|
+
result = yield tslib.__await(this._list(resourceUri, options));
|
2054
|
+
let page = result.value || [];
|
2055
|
+
continuationToken = result.nextLink;
|
2056
|
+
setContinuationToken(page, continuationToken);
|
2057
|
+
yield yield tslib.__await(page);
|
2058
|
+
}
|
2059
|
+
while (continuationToken) {
|
2060
|
+
result = yield tslib.__await(this._listNext(resourceUri, continuationToken, options));
|
2061
|
+
continuationToken = result.nextLink;
|
2062
|
+
let page = result.value || [];
|
2063
|
+
setContinuationToken(page, continuationToken);
|
2064
|
+
yield yield tslib.__await(page);
|
2065
|
+
}
|
2066
|
+
});
|
2067
|
+
}
|
2068
|
+
listPagingAll(resourceUri, options) {
|
2069
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
2070
|
+
var _a, e_3, _b, _c;
|
2071
|
+
try {
|
2072
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2073
|
+
_c = _f.value;
|
2074
|
+
_d = false;
|
2075
|
+
try {
|
2076
|
+
const page = _c;
|
2077
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2078
|
+
}
|
2079
|
+
finally {
|
2080
|
+
_d = true;
|
2081
|
+
}
|
2082
|
+
}
|
2083
|
+
}
|
2084
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
2085
|
+
finally {
|
2086
|
+
try {
|
2087
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2088
|
+
}
|
2089
|
+
finally { if (e_3) throw e_3.error; }
|
2090
|
+
}
|
2091
|
+
});
|
2092
|
+
}
|
2093
|
+
/**
|
2094
|
+
* Lists the current availability status for all the resources in the subscription.
|
2095
|
+
* @param options The options parameters.
|
2096
|
+
*/
|
2097
|
+
_listBySubscriptionId(options) {
|
2098
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec$1);
|
2099
|
+
}
|
2100
|
+
/**
|
2101
|
+
* Lists the current availability status for all the resources in the resource group.
|
2102
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2103
|
+
* @param options The options parameters.
|
2104
|
+
*/
|
2105
|
+
_listByResourceGroup(resourceGroupName, options) {
|
2106
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
2107
|
+
}
|
2108
|
+
/**
|
2109
|
+
* Gets current availability status for a single resource
|
2110
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
2111
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
2112
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
2113
|
+
* and
|
2114
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
2115
|
+
* @param options The options parameters.
|
2116
|
+
*/
|
2117
|
+
getByResource(resourceUri, options) {
|
2118
|
+
return this.client.sendOperationRequest({ resourceUri, options }, getByResourceOperationSpec$1);
|
2119
|
+
}
|
2120
|
+
/**
|
2121
|
+
* Lists all historical availability transitions and impacting events for a single resource.
|
2122
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
2123
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
2124
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
2125
|
+
* and
|
2126
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
2127
|
+
* @param options The options parameters.
|
2128
|
+
*/
|
2129
|
+
_list(resourceUri, options) {
|
2130
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$5);
|
2131
|
+
}
|
2132
|
+
/**
|
2133
|
+
* ListBySubscriptionIdNext
|
2134
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
|
2135
|
+
* @param options The options parameters.
|
2136
|
+
*/
|
2137
|
+
_listBySubscriptionIdNext(nextLink, options) {
|
2138
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec$1);
|
2139
|
+
}
|
2140
|
+
/**
|
2141
|
+
* ListByResourceGroupNext
|
2142
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2143
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
2144
|
+
* @param options The options parameters.
|
2145
|
+
*/
|
2146
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
2147
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
2148
|
+
}
|
2149
|
+
/**
|
2150
|
+
* ListNext
|
2151
|
+
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
2152
|
+
* type. Currently the API support not nested and one nesting level resource types :
|
2153
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
2154
|
+
* and
|
2155
|
+
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
2156
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
2157
|
+
* @param options The options parameters.
|
2158
|
+
*/
|
2159
|
+
_listNext(resourceUri, nextLink, options) {
|
2160
|
+
return this.client.sendOperationRequest({ resourceUri, nextLink, options }, listNextOperationSpec$4);
|
2161
|
+
}
|
2162
|
+
}
|
2163
|
+
// Operation Specifications
|
2164
|
+
const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2165
|
+
const listBySubscriptionIdOperationSpec$1 = {
|
2166
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
2167
|
+
httpMethod: "GET",
|
2168
|
+
responses: {
|
2169
|
+
200: {
|
2170
|
+
bodyMapper: AvailabilityStatusListResult
|
2171
|
+
},
|
2172
|
+
default: {
|
2173
|
+
bodyMapper: ErrorResponse
|
2174
|
+
}
|
2175
|
+
},
|
2176
|
+
queryParameters: [
|
2177
|
+
apiVersion,
|
2178
|
+
filter,
|
2179
|
+
expand
|
2180
|
+
],
|
2181
|
+
urlParameters: [$host, subscriptionId],
|
2182
|
+
headerParameters: [accept],
|
2183
|
+
serializer: serializer$9
|
2184
|
+
};
|
2185
|
+
const listByResourceGroupOperationSpec = {
|
2186
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
2187
|
+
httpMethod: "GET",
|
2188
|
+
responses: {
|
2189
|
+
200: {
|
2190
|
+
bodyMapper: AvailabilityStatusListResult
|
2191
|
+
},
|
2192
|
+
default: {
|
2193
|
+
bodyMapper: ErrorResponse
|
2194
|
+
}
|
2195
|
+
},
|
2196
|
+
queryParameters: [
|
2197
|
+
apiVersion,
|
2198
|
+
filter,
|
2199
|
+
expand
|
2200
|
+
],
|
2201
|
+
urlParameters: [
|
2202
|
+
$host,
|
2203
|
+
subscriptionId,
|
2204
|
+
resourceGroupName
|
2205
|
+
],
|
2206
|
+
headerParameters: [accept],
|
2207
|
+
serializer: serializer$9
|
2208
|
+
};
|
2209
|
+
const getByResourceOperationSpec$1 = {
|
2210
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
|
2211
|
+
httpMethod: "GET",
|
2212
|
+
responses: {
|
2213
|
+
200: {
|
2214
|
+
bodyMapper: AvailabilityStatus
|
2215
|
+
},
|
2216
|
+
default: {
|
2217
|
+
bodyMapper: ErrorResponse
|
2218
|
+
}
|
2219
|
+
},
|
2220
|
+
queryParameters: [
|
2221
|
+
apiVersion,
|
2222
|
+
filter,
|
2223
|
+
expand
|
2224
|
+
],
|
2225
|
+
urlParameters: [$host, resourceUri],
|
2226
|
+
headerParameters: [accept],
|
2227
|
+
serializer: serializer$9
|
2228
|
+
};
|
2229
|
+
const listOperationSpec$5 = {
|
2230
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
|
2231
|
+
httpMethod: "GET",
|
2232
|
+
responses: {
|
2233
|
+
200: {
|
2234
|
+
bodyMapper: AvailabilityStatusListResult
|
2235
|
+
},
|
2236
|
+
default: {
|
2237
|
+
bodyMapper: ErrorResponse
|
2238
|
+
}
|
2239
|
+
},
|
2240
|
+
queryParameters: [
|
2241
|
+
apiVersion,
|
2242
|
+
filter,
|
2243
|
+
expand
|
2244
|
+
],
|
2245
|
+
urlParameters: [$host, resourceUri],
|
2246
|
+
headerParameters: [accept],
|
2247
|
+
serializer: serializer$9
|
2248
|
+
};
|
2249
|
+
const listBySubscriptionIdNextOperationSpec$1 = {
|
2250
|
+
path: "{nextLink}",
|
2251
|
+
httpMethod: "GET",
|
2252
|
+
responses: {
|
2253
|
+
200: {
|
2254
|
+
bodyMapper: AvailabilityStatusListResult
|
2255
|
+
},
|
2256
|
+
default: {
|
2257
|
+
bodyMapper: ErrorResponse
|
2258
|
+
}
|
2259
|
+
},
|
2260
|
+
urlParameters: [
|
2261
|
+
$host,
|
2262
|
+
subscriptionId,
|
2263
|
+
nextLink
|
2264
|
+
],
|
2265
|
+
headerParameters: [accept],
|
2266
|
+
serializer: serializer$9
|
2267
|
+
};
|
2268
|
+
const listByResourceGroupNextOperationSpec = {
|
2269
|
+
path: "{nextLink}",
|
2270
|
+
httpMethod: "GET",
|
2271
|
+
responses: {
|
2272
|
+
200: {
|
2273
|
+
bodyMapper: AvailabilityStatusListResult
|
2274
|
+
},
|
2275
|
+
default: {
|
2276
|
+
bodyMapper: ErrorResponse
|
2277
|
+
}
|
2278
|
+
},
|
2279
|
+
urlParameters: [
|
2280
|
+
$host,
|
2281
|
+
subscriptionId,
|
2282
|
+
resourceGroupName,
|
2283
|
+
nextLink
|
2284
|
+
],
|
2285
|
+
headerParameters: [accept],
|
2286
|
+
serializer: serializer$9
|
2287
|
+
};
|
2288
|
+
const listNextOperationSpec$4 = {
|
2289
|
+
path: "{nextLink}",
|
2290
|
+
httpMethod: "GET",
|
2291
|
+
responses: {
|
2292
|
+
200: {
|
2293
|
+
bodyMapper: AvailabilityStatusListResult
|
2294
|
+
},
|
2295
|
+
default: {
|
2296
|
+
bodyMapper: ErrorResponse
|
2297
|
+
}
|
2298
|
+
},
|
2299
|
+
urlParameters: [
|
2300
|
+
$host,
|
2301
|
+
resourceUri,
|
2302
|
+
nextLink
|
2303
|
+
],
|
2304
|
+
headerParameters: [accept],
|
2305
|
+
serializer: serializer$9
|
2306
|
+
};
|
770
2307
|
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
});
|
2308
|
+
/*
|
2309
|
+
* Copyright (c) Microsoft Corporation.
|
2310
|
+
* Licensed under the MIT License.
|
2311
|
+
*
|
2312
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2313
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2314
|
+
*/
|
2315
|
+
/** Class containing Operations operations. */
|
2316
|
+
class OperationsImpl {
|
2317
|
+
/**
|
2318
|
+
* Initialize a new instance of the class Operations class.
|
2319
|
+
* @param client Reference to the service client
|
2320
|
+
*/
|
2321
|
+
constructor(client) {
|
2322
|
+
this.client = client;
|
2323
|
+
}
|
2324
|
+
/**
|
2325
|
+
* Lists available operations for the resourcehealth resource provider
|
2326
|
+
* @param options The options parameters.
|
2327
|
+
*/
|
2328
|
+
list(options) {
|
2329
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
2330
|
+
}
|
2331
|
+
}
|
2332
|
+
// Operation Specifications
|
2333
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2334
|
+
const listOperationSpec$4 = {
|
2335
|
+
path: "/providers/Microsoft.ResourceHealth/operations",
|
2336
|
+
httpMethod: "GET",
|
2337
|
+
responses: {
|
2338
|
+
200: {
|
2339
|
+
bodyMapper: OperationListResult
|
2340
|
+
},
|
2341
|
+
default: {
|
2342
|
+
bodyMapper: ErrorResponse
|
2343
|
+
}
|
2344
|
+
},
|
2345
|
+
queryParameters: [apiVersion],
|
2346
|
+
urlParameters: [$host],
|
2347
|
+
headerParameters: [accept],
|
2348
|
+
serializer: serializer$8
|
2349
|
+
};
|
2350
|
+
|
2351
|
+
/*
|
2352
|
+
* Copyright (c) Microsoft Corporation.
|
2353
|
+
* Licensed under the MIT License.
|
2354
|
+
*
|
2355
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2356
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2357
|
+
*/
|
2358
|
+
/// <reference lib="esnext.asynciterable" />
|
2359
|
+
/** Class containing Metadata operations. */
|
2360
|
+
class MetadataImpl {
|
2361
|
+
/**
|
2362
|
+
* Initialize a new instance of the class Metadata class.
|
2363
|
+
* @param client Reference to the service client
|
2364
|
+
*/
|
2365
|
+
constructor(client) {
|
2366
|
+
this.client = client;
|
2367
|
+
}
|
2368
|
+
/**
|
2369
|
+
* Gets the list of metadata entities.
|
2370
|
+
* @param options The options parameters.
|
2371
|
+
*/
|
2372
|
+
list(options) {
|
2373
|
+
const iter = this.listPagingAll(options);
|
2374
|
+
return {
|
2375
|
+
next() {
|
2376
|
+
return iter.next();
|
2377
|
+
},
|
2378
|
+
[Symbol.asyncIterator]() {
|
2379
|
+
return this;
|
2380
|
+
},
|
2381
|
+
byPage: (settings) => {
|
2382
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
2383
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
2384
|
+
}
|
2385
|
+
return this.listPagingPage(options, settings);
|
2386
|
+
}
|
2387
|
+
};
|
2388
|
+
}
|
2389
|
+
listPagingPage(options, settings) {
|
2390
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
2391
|
+
let result;
|
2392
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
2393
|
+
if (!continuationToken) {
|
2394
|
+
result = yield tslib.__await(this._list(options));
|
2395
|
+
let page = result.value || [];
|
2396
|
+
continuationToken = result.nextLink;
|
2397
|
+
setContinuationToken(page, continuationToken);
|
2398
|
+
yield yield tslib.__await(page);
|
2399
|
+
}
|
2400
|
+
while (continuationToken) {
|
2401
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
2402
|
+
continuationToken = result.nextLink;
|
2403
|
+
let page = result.value || [];
|
2404
|
+
setContinuationToken(page, continuationToken);
|
2405
|
+
yield yield tslib.__await(page);
|
2406
|
+
}
|
2407
|
+
});
|
2408
|
+
}
|
2409
|
+
listPagingAll(options) {
|
2410
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
2411
|
+
var _a, e_1, _b, _c;
|
2412
|
+
try {
|
2413
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2414
|
+
_c = _f.value;
|
2415
|
+
_d = false;
|
2416
|
+
try {
|
2417
|
+
const page = _c;
|
2418
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2419
|
+
}
|
2420
|
+
finally {
|
2421
|
+
_d = true;
|
2422
|
+
}
|
2423
|
+
}
|
2424
|
+
}
|
2425
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2426
|
+
finally {
|
2427
|
+
try {
|
2428
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2429
|
+
}
|
2430
|
+
finally { if (e_1) throw e_1.error; }
|
2431
|
+
}
|
2432
|
+
});
|
2433
|
+
}
|
2434
|
+
/**
|
2435
|
+
* Gets the list of metadata entities.
|
2436
|
+
* @param options The options parameters.
|
2437
|
+
*/
|
2438
|
+
_list(options) {
|
2439
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
2440
|
+
}
|
2441
|
+
/**
|
2442
|
+
* Gets the list of metadata entities.
|
2443
|
+
* @param name Name of metadata entity.
|
2444
|
+
* @param options The options parameters.
|
2445
|
+
*/
|
2446
|
+
getEntity(name, options) {
|
2447
|
+
return this.client.sendOperationRequest({ name, options }, getEntityOperationSpec);
|
2448
|
+
}
|
2449
|
+
/**
|
2450
|
+
* ListNext
|
2451
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
2452
|
+
* @param options The options parameters.
|
2453
|
+
*/
|
2454
|
+
_listNext(nextLink, options) {
|
2455
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
|
2456
|
+
}
|
2457
|
+
}
|
2458
|
+
// Operation Specifications
|
2459
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2460
|
+
const listOperationSpec$3 = {
|
2461
|
+
path: "/providers/Microsoft.ResourceHealth/metadata",
|
2462
|
+
httpMethod: "GET",
|
2463
|
+
responses: {
|
2464
|
+
200: {
|
2465
|
+
bodyMapper: MetadataEntityListResult
|
2466
|
+
},
|
2467
|
+
default: {
|
2468
|
+
bodyMapper: ErrorResponse
|
2469
|
+
}
|
2470
|
+
},
|
2471
|
+
queryParameters: [apiVersion],
|
2472
|
+
urlParameters: [$host],
|
2473
|
+
headerParameters: [accept],
|
2474
|
+
serializer: serializer$7
|
2475
|
+
};
|
2476
|
+
const getEntityOperationSpec = {
|
2477
|
+
path: "/providers/Microsoft.ResourceHealth/metadata/{name}",
|
2478
|
+
httpMethod: "GET",
|
2479
|
+
responses: {
|
2480
|
+
200: {
|
2481
|
+
bodyMapper: MetadataEntity
|
2482
|
+
},
|
2483
|
+
default: {
|
2484
|
+
bodyMapper: ErrorResponse
|
2485
|
+
}
|
2486
|
+
},
|
2487
|
+
queryParameters: [apiVersion],
|
2488
|
+
urlParameters: [$host, name],
|
2489
|
+
headerParameters: [accept],
|
2490
|
+
serializer: serializer$7
|
2491
|
+
};
|
2492
|
+
const listNextOperationSpec$3 = {
|
2493
|
+
path: "{nextLink}",
|
2494
|
+
httpMethod: "GET",
|
2495
|
+
responses: {
|
2496
|
+
200: {
|
2497
|
+
bodyMapper: MetadataEntityListResult
|
2498
|
+
},
|
2499
|
+
default: {
|
2500
|
+
bodyMapper: ErrorResponse
|
2501
|
+
}
|
2502
|
+
},
|
2503
|
+
urlParameters: [$host, nextLink],
|
2504
|
+
headerParameters: [accept],
|
2505
|
+
serializer: serializer$7
|
2506
|
+
};
|
793
2507
|
|
794
2508
|
/*
|
795
2509
|
* Copyright (c) Microsoft Corporation.
|
@@ -798,109 +2512,588 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
798
2512
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
799
2513
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
800
2514
|
*/
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
2515
|
+
/// <reference lib="esnext.asynciterable" />
|
2516
|
+
/** Class containing ImpactedResources operations. */
|
2517
|
+
class ImpactedResourcesImpl {
|
2518
|
+
/**
|
2519
|
+
* Initialize a new instance of the class ImpactedResources class.
|
2520
|
+
* @param client Reference to the service client
|
2521
|
+
*/
|
2522
|
+
constructor(client) {
|
2523
|
+
this.client = client;
|
2524
|
+
}
|
2525
|
+
/**
|
2526
|
+
* Lists impacted resources in the subscription by an event.
|
2527
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2528
|
+
* @param options The options parameters.
|
2529
|
+
*/
|
2530
|
+
listBySubscriptionIdAndEventId(eventTrackingId, options) {
|
2531
|
+
const iter = this.listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options);
|
2532
|
+
return {
|
2533
|
+
next() {
|
2534
|
+
return iter.next();
|
2535
|
+
},
|
2536
|
+
[Symbol.asyncIterator]() {
|
2537
|
+
return this;
|
2538
|
+
},
|
2539
|
+
byPage: (settings) => {
|
2540
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
2541
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
2542
|
+
}
|
2543
|
+
return this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings);
|
2544
|
+
}
|
2545
|
+
};
|
2546
|
+
}
|
2547
|
+
listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings) {
|
2548
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdAndEventIdPagingPage_1() {
|
2549
|
+
let result;
|
2550
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
2551
|
+
if (!continuationToken) {
|
2552
|
+
result = yield tslib.__await(this._listBySubscriptionIdAndEventId(eventTrackingId, options));
|
2553
|
+
let page = result.value || [];
|
2554
|
+
continuationToken = result.nextLink;
|
2555
|
+
setContinuationToken(page, continuationToken);
|
2556
|
+
yield yield tslib.__await(page);
|
2557
|
+
}
|
2558
|
+
while (continuationToken) {
|
2559
|
+
result = yield tslib.__await(this._listBySubscriptionIdAndEventIdNext(eventTrackingId, continuationToken, options));
|
2560
|
+
continuationToken = result.nextLink;
|
2561
|
+
let page = result.value || [];
|
2562
|
+
setContinuationToken(page, continuationToken);
|
2563
|
+
yield yield tslib.__await(page);
|
2564
|
+
}
|
2565
|
+
});
|
2566
|
+
}
|
2567
|
+
listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options) {
|
2568
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdAndEventIdPagingAll_1() {
|
2569
|
+
var _a, e_1, _b, _c;
|
2570
|
+
try {
|
2571
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2572
|
+
_c = _f.value;
|
2573
|
+
_d = false;
|
2574
|
+
try {
|
2575
|
+
const page = _c;
|
2576
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2577
|
+
}
|
2578
|
+
finally {
|
2579
|
+
_d = true;
|
2580
|
+
}
|
2581
|
+
}
|
2582
|
+
}
|
2583
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2584
|
+
finally {
|
2585
|
+
try {
|
2586
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2587
|
+
}
|
2588
|
+
finally { if (e_1) throw e_1.error; }
|
2589
|
+
}
|
2590
|
+
});
|
2591
|
+
}
|
2592
|
+
/**
|
2593
|
+
* Lists impacted resources in the tenant by an event.
|
2594
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2595
|
+
* @param options The options parameters.
|
2596
|
+
*/
|
2597
|
+
listByTenantIdAndEventId(eventTrackingId, options) {
|
2598
|
+
const iter = this.listByTenantIdAndEventIdPagingAll(eventTrackingId, options);
|
2599
|
+
return {
|
2600
|
+
next() {
|
2601
|
+
return iter.next();
|
2602
|
+
},
|
2603
|
+
[Symbol.asyncIterator]() {
|
2604
|
+
return this;
|
2605
|
+
},
|
2606
|
+
byPage: (settings) => {
|
2607
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
2608
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
2609
|
+
}
|
2610
|
+
return this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings);
|
2611
|
+
}
|
2612
|
+
};
|
2613
|
+
}
|
2614
|
+
listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings) {
|
2615
|
+
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdAndEventIdPagingPage_1() {
|
2616
|
+
let result;
|
2617
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
2618
|
+
if (!continuationToken) {
|
2619
|
+
result = yield tslib.__await(this._listByTenantIdAndEventId(eventTrackingId, options));
|
2620
|
+
let page = result.value || [];
|
2621
|
+
continuationToken = result.nextLink;
|
2622
|
+
setContinuationToken(page, continuationToken);
|
2623
|
+
yield yield tslib.__await(page);
|
2624
|
+
}
|
2625
|
+
while (continuationToken) {
|
2626
|
+
result = yield tslib.__await(this._listByTenantIdAndEventIdNext(eventTrackingId, continuationToken, options));
|
2627
|
+
continuationToken = result.nextLink;
|
2628
|
+
let page = result.value || [];
|
2629
|
+
setContinuationToken(page, continuationToken);
|
2630
|
+
yield yield tslib.__await(page);
|
2631
|
+
}
|
2632
|
+
});
|
2633
|
+
}
|
2634
|
+
listByTenantIdAndEventIdPagingAll(eventTrackingId, options) {
|
2635
|
+
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdAndEventIdPagingAll_1() {
|
2636
|
+
var _a, e_2, _b, _c;
|
2637
|
+
try {
|
2638
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2639
|
+
_c = _f.value;
|
2640
|
+
_d = false;
|
2641
|
+
try {
|
2642
|
+
const page = _c;
|
2643
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2644
|
+
}
|
2645
|
+
finally {
|
2646
|
+
_d = true;
|
2647
|
+
}
|
2648
|
+
}
|
2649
|
+
}
|
2650
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
2651
|
+
finally {
|
2652
|
+
try {
|
2653
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2654
|
+
}
|
2655
|
+
finally { if (e_2) throw e_2.error; }
|
2656
|
+
}
|
2657
|
+
});
|
2658
|
+
}
|
2659
|
+
/**
|
2660
|
+
* Lists impacted resources in the subscription by an event.
|
2661
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2662
|
+
* @param options The options parameters.
|
2663
|
+
*/
|
2664
|
+
_listBySubscriptionIdAndEventId(eventTrackingId, options) {
|
2665
|
+
return this.client.sendOperationRequest({ eventTrackingId, options }, listBySubscriptionIdAndEventIdOperationSpec$1);
|
2666
|
+
}
|
2667
|
+
/**
|
2668
|
+
* Gets the specific impacted resource in the subscription by an event.
|
2669
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2670
|
+
* @param impactedResourceName Name of the Impacted Resource.
|
2671
|
+
* @param options The options parameters.
|
2672
|
+
*/
|
2673
|
+
get(eventTrackingId, impactedResourceName, options) {
|
2674
|
+
return this.client.sendOperationRequest({ eventTrackingId, impactedResourceName, options }, getOperationSpec$1);
|
2675
|
+
}
|
2676
|
+
/**
|
2677
|
+
* Lists impacted resources in the tenant by an event.
|
2678
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2679
|
+
* @param options The options parameters.
|
2680
|
+
*/
|
2681
|
+
_listByTenantIdAndEventId(eventTrackingId, options) {
|
2682
|
+
return this.client.sendOperationRequest({ eventTrackingId, options }, listByTenantIdAndEventIdOperationSpec$1);
|
2683
|
+
}
|
2684
|
+
/**
|
2685
|
+
* Gets the specific impacted resource in the tenant by an event.
|
2686
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2687
|
+
* @param impactedResourceName Name of the Impacted Resource.
|
2688
|
+
* @param options The options parameters.
|
2689
|
+
*/
|
2690
|
+
getByTenantId(eventTrackingId, impactedResourceName, options) {
|
2691
|
+
return this.client.sendOperationRequest({ eventTrackingId, impactedResourceName, options }, getByTenantIdOperationSpec);
|
2692
|
+
}
|
2693
|
+
/**
|
2694
|
+
* ListBySubscriptionIdAndEventIdNext
|
2695
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2696
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId
|
2697
|
+
* method.
|
2698
|
+
* @param options The options parameters.
|
2699
|
+
*/
|
2700
|
+
_listBySubscriptionIdAndEventIdNext(eventTrackingId, nextLink, options) {
|
2701
|
+
return this.client.sendOperationRequest({ eventTrackingId, nextLink, options }, listBySubscriptionIdAndEventIdNextOperationSpec$1);
|
2702
|
+
}
|
2703
|
+
/**
|
2704
|
+
* ListByTenantIdAndEventIdNext
|
2705
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2706
|
+
* @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId
|
2707
|
+
* method.
|
2708
|
+
* @param options The options parameters.
|
2709
|
+
*/
|
2710
|
+
_listByTenantIdAndEventIdNext(eventTrackingId, nextLink, options) {
|
2711
|
+
return this.client.sendOperationRequest({ eventTrackingId, nextLink, options }, listByTenantIdAndEventIdNextOperationSpec$1);
|
810
2712
|
}
|
2713
|
+
}
|
2714
|
+
// Operation Specifications
|
2715
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2716
|
+
const listBySubscriptionIdAndEventIdOperationSpec$1 = {
|
2717
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources",
|
2718
|
+
httpMethod: "GET",
|
2719
|
+
responses: {
|
2720
|
+
200: {
|
2721
|
+
bodyMapper: EventImpactedResourceListResult
|
2722
|
+
},
|
2723
|
+
default: {
|
2724
|
+
bodyMapper: ErrorResponse
|
2725
|
+
}
|
2726
|
+
},
|
2727
|
+
queryParameters: [apiVersion, filter],
|
2728
|
+
urlParameters: [
|
2729
|
+
$host,
|
2730
|
+
subscriptionId,
|
2731
|
+
eventTrackingId
|
2732
|
+
],
|
2733
|
+
headerParameters: [accept],
|
2734
|
+
serializer: serializer$6
|
811
2735
|
};
|
812
|
-
const $
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
2736
|
+
const getOperationSpec$1 = {
|
2737
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}",
|
2738
|
+
httpMethod: "GET",
|
2739
|
+
responses: {
|
2740
|
+
200: {
|
2741
|
+
bodyMapper: EventImpactedResource
|
2742
|
+
},
|
2743
|
+
default: {
|
2744
|
+
bodyMapper: ErrorResponse
|
819
2745
|
}
|
820
2746
|
},
|
821
|
-
|
2747
|
+
queryParameters: [apiVersion],
|
2748
|
+
urlParameters: [
|
2749
|
+
$host,
|
2750
|
+
subscriptionId,
|
2751
|
+
eventTrackingId,
|
2752
|
+
impactedResourceName
|
2753
|
+
],
|
2754
|
+
headerParameters: [accept],
|
2755
|
+
serializer: serializer$6
|
822
2756
|
};
|
823
|
-
const
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
2757
|
+
const listByTenantIdAndEventIdOperationSpec$1 = {
|
2758
|
+
path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources",
|
2759
|
+
httpMethod: "GET",
|
2760
|
+
responses: {
|
2761
|
+
200: {
|
2762
|
+
bodyMapper: EventImpactedResourceListResult
|
2763
|
+
},
|
2764
|
+
default: {
|
2765
|
+
bodyMapper: ErrorResponse
|
2766
|
+
}
|
2767
|
+
},
|
2768
|
+
queryParameters: [apiVersion, filter],
|
2769
|
+
urlParameters: [$host, eventTrackingId],
|
2770
|
+
headerParameters: [accept],
|
2771
|
+
serializer: serializer$6
|
2772
|
+
};
|
2773
|
+
const getByTenantIdOperationSpec = {
|
2774
|
+
path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}",
|
2775
|
+
httpMethod: "GET",
|
2776
|
+
responses: {
|
2777
|
+
200: {
|
2778
|
+
bodyMapper: EventImpactedResource
|
2779
|
+
},
|
2780
|
+
default: {
|
2781
|
+
bodyMapper: ErrorResponse
|
2782
|
+
}
|
2783
|
+
},
|
2784
|
+
queryParameters: [apiVersion],
|
2785
|
+
urlParameters: [
|
2786
|
+
$host,
|
2787
|
+
eventTrackingId,
|
2788
|
+
impactedResourceName
|
2789
|
+
],
|
2790
|
+
headerParameters: [accept],
|
2791
|
+
serializer: serializer$6
|
2792
|
+
};
|
2793
|
+
const listBySubscriptionIdAndEventIdNextOperationSpec$1 = {
|
2794
|
+
path: "{nextLink}",
|
2795
|
+
httpMethod: "GET",
|
2796
|
+
responses: {
|
2797
|
+
200: {
|
2798
|
+
bodyMapper: EventImpactedResourceListResult
|
2799
|
+
},
|
2800
|
+
default: {
|
2801
|
+
bodyMapper: ErrorResponse
|
2802
|
+
}
|
2803
|
+
},
|
2804
|
+
urlParameters: [
|
2805
|
+
$host,
|
2806
|
+
subscriptionId,
|
2807
|
+
nextLink,
|
2808
|
+
eventTrackingId
|
2809
|
+
],
|
2810
|
+
headerParameters: [accept],
|
2811
|
+
serializer: serializer$6
|
2812
|
+
};
|
2813
|
+
const listByTenantIdAndEventIdNextOperationSpec$1 = {
|
2814
|
+
path: "{nextLink}",
|
2815
|
+
httpMethod: "GET",
|
2816
|
+
responses: {
|
2817
|
+
200: {
|
2818
|
+
bodyMapper: EventImpactedResourceListResult
|
2819
|
+
},
|
2820
|
+
default: {
|
2821
|
+
bodyMapper: ErrorResponse
|
831
2822
|
}
|
832
|
-
}
|
2823
|
+
},
|
2824
|
+
urlParameters: [
|
2825
|
+
$host,
|
2826
|
+
nextLink,
|
2827
|
+
eventTrackingId
|
2828
|
+
],
|
2829
|
+
headerParameters: [accept],
|
2830
|
+
serializer: serializer$6
|
833
2831
|
};
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
2832
|
+
|
2833
|
+
/*
|
2834
|
+
* Copyright (c) Microsoft Corporation.
|
2835
|
+
* Licensed under the MIT License.
|
2836
|
+
*
|
2837
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2838
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2839
|
+
*/
|
2840
|
+
/// <reference lib="esnext.asynciterable" />
|
2841
|
+
/** Class containing SecurityAdvisoryImpactedResources operations. */
|
2842
|
+
class SecurityAdvisoryImpactedResourcesImpl {
|
2843
|
+
/**
|
2844
|
+
* Initialize a new instance of the class SecurityAdvisoryImpactedResources class.
|
2845
|
+
* @param client Reference to the service client
|
2846
|
+
*/
|
2847
|
+
constructor(client) {
|
2848
|
+
this.client = client;
|
841
2849
|
}
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
2850
|
+
/**
|
2851
|
+
* Lists impacted resources in the subscription by an event (Security Advisory).
|
2852
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2853
|
+
* @param options The options parameters.
|
2854
|
+
*/
|
2855
|
+
listBySubscriptionIdAndEventId(eventTrackingId, options) {
|
2856
|
+
const iter = this.listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options);
|
2857
|
+
return {
|
2858
|
+
next() {
|
2859
|
+
return iter.next();
|
2860
|
+
},
|
2861
|
+
[Symbol.asyncIterator]() {
|
2862
|
+
return this;
|
2863
|
+
},
|
2864
|
+
byPage: (settings) => {
|
2865
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
2866
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
2867
|
+
}
|
2868
|
+
return this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings);
|
2869
|
+
}
|
2870
|
+
};
|
851
2871
|
}
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
2872
|
+
listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings) {
|
2873
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdAndEventIdPagingPage_1() {
|
2874
|
+
let result;
|
2875
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
2876
|
+
if (!continuationToken) {
|
2877
|
+
result = yield tslib.__await(this._listBySubscriptionIdAndEventId(eventTrackingId, options));
|
2878
|
+
let page = result.value || [];
|
2879
|
+
continuationToken = result.nextLink;
|
2880
|
+
setContinuationToken(page, continuationToken);
|
2881
|
+
yield yield tslib.__await(page);
|
2882
|
+
}
|
2883
|
+
while (continuationToken) {
|
2884
|
+
result = yield tslib.__await(this._listBySubscriptionIdAndEventIdNext(eventTrackingId, continuationToken, options));
|
2885
|
+
continuationToken = result.nextLink;
|
2886
|
+
let page = result.value || [];
|
2887
|
+
setContinuationToken(page, continuationToken);
|
2888
|
+
yield yield tslib.__await(page);
|
2889
|
+
}
|
2890
|
+
});
|
860
2891
|
}
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
2892
|
+
listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options) {
|
2893
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdAndEventIdPagingAll_1() {
|
2894
|
+
var _a, e_1, _b, _c;
|
2895
|
+
try {
|
2896
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2897
|
+
_c = _f.value;
|
2898
|
+
_d = false;
|
2899
|
+
try {
|
2900
|
+
const page = _c;
|
2901
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2902
|
+
}
|
2903
|
+
finally {
|
2904
|
+
_d = true;
|
2905
|
+
}
|
2906
|
+
}
|
2907
|
+
}
|
2908
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2909
|
+
finally {
|
2910
|
+
try {
|
2911
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2912
|
+
}
|
2913
|
+
finally { if (e_1) throw e_1.error; }
|
2914
|
+
}
|
2915
|
+
});
|
2916
|
+
}
|
2917
|
+
/**
|
2918
|
+
* Lists impacted resources in the tenant by an event (Security Advisory).
|
2919
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2920
|
+
* @param options The options parameters.
|
2921
|
+
*/
|
2922
|
+
listByTenantIdAndEventId(eventTrackingId, options) {
|
2923
|
+
const iter = this.listByTenantIdAndEventIdPagingAll(eventTrackingId, options);
|
2924
|
+
return {
|
2925
|
+
next() {
|
2926
|
+
return iter.next();
|
2927
|
+
},
|
2928
|
+
[Symbol.asyncIterator]() {
|
2929
|
+
return this;
|
2930
|
+
},
|
2931
|
+
byPage: (settings) => {
|
2932
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
2933
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
2934
|
+
}
|
2935
|
+
return this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings);
|
2936
|
+
}
|
2937
|
+
};
|
2938
|
+
}
|
2939
|
+
listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings) {
|
2940
|
+
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdAndEventIdPagingPage_1() {
|
2941
|
+
let result;
|
2942
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
2943
|
+
if (!continuationToken) {
|
2944
|
+
result = yield tslib.__await(this._listByTenantIdAndEventId(eventTrackingId, options));
|
2945
|
+
let page = result.value || [];
|
2946
|
+
continuationToken = result.nextLink;
|
2947
|
+
setContinuationToken(page, continuationToken);
|
2948
|
+
yield yield tslib.__await(page);
|
2949
|
+
}
|
2950
|
+
while (continuationToken) {
|
2951
|
+
result = yield tslib.__await(this._listByTenantIdAndEventIdNext(eventTrackingId, continuationToken, options));
|
2952
|
+
continuationToken = result.nextLink;
|
2953
|
+
let page = result.value || [];
|
2954
|
+
setContinuationToken(page, continuationToken);
|
2955
|
+
yield yield tslib.__await(page);
|
2956
|
+
}
|
2957
|
+
});
|
2958
|
+
}
|
2959
|
+
listByTenantIdAndEventIdPagingAll(eventTrackingId, options) {
|
2960
|
+
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdAndEventIdPagingAll_1() {
|
2961
|
+
var _a, e_2, _b, _c;
|
2962
|
+
try {
|
2963
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
2964
|
+
_c = _f.value;
|
2965
|
+
_d = false;
|
2966
|
+
try {
|
2967
|
+
const page = _c;
|
2968
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2969
|
+
}
|
2970
|
+
finally {
|
2971
|
+
_d = true;
|
2972
|
+
}
|
2973
|
+
}
|
2974
|
+
}
|
2975
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
2976
|
+
finally {
|
2977
|
+
try {
|
2978
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2979
|
+
}
|
2980
|
+
finally { if (e_2) throw e_2.error; }
|
2981
|
+
}
|
2982
|
+
});
|
2983
|
+
}
|
2984
|
+
/**
|
2985
|
+
* Lists impacted resources in the subscription by an event (Security Advisory).
|
2986
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2987
|
+
* @param options The options parameters.
|
2988
|
+
*/
|
2989
|
+
_listBySubscriptionIdAndEventId(eventTrackingId, options) {
|
2990
|
+
return this.client.sendOperationRequest({ eventTrackingId, options }, listBySubscriptionIdAndEventIdOperationSpec);
|
2991
|
+
}
|
2992
|
+
/**
|
2993
|
+
* Lists impacted resources in the tenant by an event (Security Advisory).
|
2994
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
2995
|
+
* @param options The options parameters.
|
2996
|
+
*/
|
2997
|
+
_listByTenantIdAndEventId(eventTrackingId, options) {
|
2998
|
+
return this.client.sendOperationRequest({ eventTrackingId, options }, listByTenantIdAndEventIdOperationSpec);
|
2999
|
+
}
|
3000
|
+
/**
|
3001
|
+
* ListBySubscriptionIdAndEventIdNext
|
3002
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
3003
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId
|
3004
|
+
* method.
|
3005
|
+
* @param options The options parameters.
|
3006
|
+
*/
|
3007
|
+
_listBySubscriptionIdAndEventIdNext(eventTrackingId, nextLink, options) {
|
3008
|
+
return this.client.sendOperationRequest({ eventTrackingId, nextLink, options }, listBySubscriptionIdAndEventIdNextOperationSpec);
|
3009
|
+
}
|
3010
|
+
/**
|
3011
|
+
* ListByTenantIdAndEventIdNext
|
3012
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
3013
|
+
* @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId
|
3014
|
+
* method.
|
3015
|
+
* @param options The options parameters.
|
3016
|
+
*/
|
3017
|
+
_listByTenantIdAndEventIdNext(eventTrackingId, nextLink, options) {
|
3018
|
+
return this.client.sendOperationRequest({ eventTrackingId, nextLink, options }, listByTenantIdAndEventIdNextOperationSpec);
|
870
3019
|
}
|
3020
|
+
}
|
3021
|
+
// Operation Specifications
|
3022
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3023
|
+
const listBySubscriptionIdAndEventIdOperationSpec = {
|
3024
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources",
|
3025
|
+
httpMethod: "POST",
|
3026
|
+
responses: {
|
3027
|
+
200: {
|
3028
|
+
bodyMapper: EventImpactedResourceListResult
|
3029
|
+
},
|
3030
|
+
default: {
|
3031
|
+
bodyMapper: ErrorResponse
|
3032
|
+
}
|
3033
|
+
},
|
3034
|
+
queryParameters: [apiVersion, filter],
|
3035
|
+
urlParameters: [
|
3036
|
+
$host,
|
3037
|
+
subscriptionId,
|
3038
|
+
eventTrackingId
|
3039
|
+
],
|
3040
|
+
headerParameters: [accept],
|
3041
|
+
serializer: serializer$5
|
871
3042
|
};
|
872
|
-
const
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
3043
|
+
const listByTenantIdAndEventIdOperationSpec = {
|
3044
|
+
path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources",
|
3045
|
+
httpMethod: "POST",
|
3046
|
+
responses: {
|
3047
|
+
200: {
|
3048
|
+
bodyMapper: EventImpactedResourceListResult
|
3049
|
+
},
|
3050
|
+
default: {
|
3051
|
+
bodyMapper: ErrorResponse
|
879
3052
|
}
|
880
3053
|
},
|
881
|
-
|
3054
|
+
queryParameters: [apiVersion, filter],
|
3055
|
+
urlParameters: [$host, eventTrackingId],
|
3056
|
+
headerParameters: [accept],
|
3057
|
+
serializer: serializer$5
|
882
3058
|
};
|
883
|
-
const
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
3059
|
+
const listBySubscriptionIdAndEventIdNextOperationSpec = {
|
3060
|
+
path: "{nextLink}",
|
3061
|
+
httpMethod: "GET",
|
3062
|
+
responses: {
|
3063
|
+
200: {
|
3064
|
+
bodyMapper: EventImpactedResourceListResult
|
3065
|
+
},
|
3066
|
+
default: {
|
3067
|
+
bodyMapper: ErrorResponse
|
890
3068
|
}
|
891
3069
|
},
|
892
|
-
|
3070
|
+
urlParameters: [
|
3071
|
+
$host,
|
3072
|
+
subscriptionId,
|
3073
|
+
nextLink,
|
3074
|
+
eventTrackingId
|
3075
|
+
],
|
3076
|
+
headerParameters: [accept],
|
3077
|
+
serializer: serializer$5
|
893
3078
|
};
|
894
|
-
const
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
3079
|
+
const listByTenantIdAndEventIdNextOperationSpec = {
|
3080
|
+
path: "{nextLink}",
|
3081
|
+
httpMethod: "GET",
|
3082
|
+
responses: {
|
3083
|
+
200: {
|
3084
|
+
bodyMapper: EventImpactedResourceListResult
|
3085
|
+
},
|
3086
|
+
default: {
|
3087
|
+
bodyMapper: ErrorResponse
|
902
3088
|
}
|
903
|
-
}
|
3089
|
+
},
|
3090
|
+
urlParameters: [
|
3091
|
+
$host,
|
3092
|
+
nextLink,
|
3093
|
+
eventTrackingId
|
3094
|
+
],
|
3095
|
+
headerParameters: [accept],
|
3096
|
+
serializer: serializer$5
|
904
3097
|
};
|
905
3098
|
|
906
3099
|
/*
|
@@ -911,18 +3104,17 @@ const issueName = {
|
|
911
3104
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
912
3105
|
*/
|
913
3106
|
/// <reference lib="esnext.asynciterable" />
|
914
|
-
/** Class containing
|
915
|
-
class
|
3107
|
+
/** Class containing EventsOperations operations. */
|
3108
|
+
class EventsOperationsImpl {
|
916
3109
|
/**
|
917
|
-
* Initialize a new instance of the class
|
3110
|
+
* Initialize a new instance of the class EventsOperations class.
|
918
3111
|
* @param client Reference to the service client
|
919
3112
|
*/
|
920
3113
|
constructor(client) {
|
921
3114
|
this.client = client;
|
922
3115
|
}
|
923
3116
|
/**
|
924
|
-
* Lists
|
925
|
-
* property in the response to get the next page of availability statuses.
|
3117
|
+
* Lists service health events in the subscription.
|
926
3118
|
* @param options The options parameters.
|
927
3119
|
*/
|
928
3120
|
listBySubscriptionId(options) {
|
@@ -988,13 +3180,11 @@ class AvailabilityStatusesImpl {
|
|
988
3180
|
});
|
989
3181
|
}
|
990
3182
|
/**
|
991
|
-
* Lists
|
992
|
-
* property in the response to get the next page of availability statuses.
|
993
|
-
* @param resourceGroupName The name of the resource group.
|
3183
|
+
* Lists current service health events in the tenant.
|
994
3184
|
* @param options The options parameters.
|
995
3185
|
*/
|
996
|
-
|
997
|
-
const iter = this.
|
3186
|
+
listByTenantId(options) {
|
3187
|
+
const iter = this.listByTenantIdPagingAll(options);
|
998
3188
|
return {
|
999
3189
|
next() {
|
1000
3190
|
return iter.next();
|
@@ -1006,23 +3196,23 @@ class AvailabilityStatusesImpl {
|
|
1006
3196
|
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1007
3197
|
throw new Error("maxPageSize is not supported by this operation.");
|
1008
3198
|
}
|
1009
|
-
return this.
|
3199
|
+
return this.listByTenantIdPagingPage(options, settings);
|
1010
3200
|
}
|
1011
3201
|
};
|
1012
|
-
}
|
1013
|
-
|
1014
|
-
return tslib.__asyncGenerator(this, arguments, function*
|
3202
|
+
}
|
3203
|
+
listByTenantIdPagingPage(options, settings) {
|
3204
|
+
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdPagingPage_1() {
|
1015
3205
|
let result;
|
1016
3206
|
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
1017
3207
|
if (!continuationToken) {
|
1018
|
-
result = yield tslib.__await(this.
|
3208
|
+
result = yield tslib.__await(this._listByTenantId(options));
|
1019
3209
|
let page = result.value || [];
|
1020
3210
|
continuationToken = result.nextLink;
|
1021
3211
|
setContinuationToken(page, continuationToken);
|
1022
3212
|
yield yield tslib.__await(page);
|
1023
3213
|
}
|
1024
3214
|
while (continuationToken) {
|
1025
|
-
result = yield tslib.__await(this.
|
3215
|
+
result = yield tslib.__await(this._listByTenantIdNext(continuationToken, options));
|
1026
3216
|
continuationToken = result.nextLink;
|
1027
3217
|
let page = result.value || [];
|
1028
3218
|
setContinuationToken(page, continuationToken);
|
@@ -1030,11 +3220,11 @@ class AvailabilityStatusesImpl {
|
|
1030
3220
|
}
|
1031
3221
|
});
|
1032
3222
|
}
|
1033
|
-
|
1034
|
-
return tslib.__asyncGenerator(this, arguments, function*
|
3223
|
+
listByTenantIdPagingAll(options) {
|
3224
|
+
return tslib.__asyncGenerator(this, arguments, function* listByTenantIdPagingAll_1() {
|
1035
3225
|
var _a, e_2, _b, _c;
|
1036
3226
|
try {
|
1037
|
-
for (var _d = true, _e = tslib.__asyncValues(this.
|
3227
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByTenantIdPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1038
3228
|
_c = _f.value;
|
1039
3229
|
_d = false;
|
1040
3230
|
try {
|
@@ -1056,8 +3246,7 @@ class AvailabilityStatusesImpl {
|
|
1056
3246
|
});
|
1057
3247
|
}
|
1058
3248
|
/**
|
1059
|
-
* Lists
|
1060
|
-
* nextLink property in the response to get the next page of availability status
|
3249
|
+
* Lists current service health events for given resource.
|
1061
3250
|
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1062
3251
|
* type. Currently the API support not nested and one nesting level resource types :
|
1063
3252
|
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
@@ -1065,8 +3254,8 @@ class AvailabilityStatusesImpl {
|
|
1065
3254
|
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1066
3255
|
* @param options The options parameters.
|
1067
3256
|
*/
|
1068
|
-
|
1069
|
-
const iter = this.
|
3257
|
+
listBySingleResource(resourceUri, options) {
|
3258
|
+
const iter = this.listBySingleResourcePagingAll(resourceUri, options);
|
1070
3259
|
return {
|
1071
3260
|
next() {
|
1072
3261
|
return iter.next();
|
@@ -1078,23 +3267,23 @@ class AvailabilityStatusesImpl {
|
|
1078
3267
|
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1079
3268
|
throw new Error("maxPageSize is not supported by this operation.");
|
1080
3269
|
}
|
1081
|
-
return this.
|
3270
|
+
return this.listBySingleResourcePagingPage(resourceUri, options, settings);
|
1082
3271
|
}
|
1083
3272
|
};
|
1084
3273
|
}
|
1085
|
-
|
1086
|
-
return tslib.__asyncGenerator(this, arguments, function*
|
3274
|
+
listBySingleResourcePagingPage(resourceUri, options, settings) {
|
3275
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySingleResourcePagingPage_1() {
|
1087
3276
|
let result;
|
1088
3277
|
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
1089
3278
|
if (!continuationToken) {
|
1090
|
-
result = yield tslib.__await(this.
|
3279
|
+
result = yield tslib.__await(this._listBySingleResource(resourceUri, options));
|
1091
3280
|
let page = result.value || [];
|
1092
3281
|
continuationToken = result.nextLink;
|
1093
3282
|
setContinuationToken(page, continuationToken);
|
1094
3283
|
yield yield tslib.__await(page);
|
1095
3284
|
}
|
1096
3285
|
while (continuationToken) {
|
1097
|
-
result = yield tslib.__await(this.
|
3286
|
+
result = yield tslib.__await(this._listBySingleResourceNext(resourceUri, continuationToken, options));
|
1098
3287
|
continuationToken = result.nextLink;
|
1099
3288
|
let page = result.value || [];
|
1100
3289
|
setContinuationToken(page, continuationToken);
|
@@ -1102,11 +3291,11 @@ class AvailabilityStatusesImpl {
|
|
1102
3291
|
}
|
1103
3292
|
});
|
1104
3293
|
}
|
1105
|
-
|
1106
|
-
return tslib.__asyncGenerator(this, arguments, function*
|
3294
|
+
listBySingleResourcePagingAll(resourceUri, options) {
|
3295
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySingleResourcePagingAll_1() {
|
1107
3296
|
var _a, e_3, _b, _c;
|
1108
3297
|
try {
|
1109
|
-
for (var _d = true, _e = tslib.__asyncValues(this.
|
3298
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySingleResourcePagingPage(resourceUri, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1110
3299
|
_c = _f.value;
|
1111
3300
|
_d = false;
|
1112
3301
|
try {
|
@@ -1128,37 +3317,21 @@ class AvailabilityStatusesImpl {
|
|
1128
3317
|
});
|
1129
3318
|
}
|
1130
3319
|
/**
|
1131
|
-
* Lists
|
1132
|
-
* property in the response to get the next page of availability statuses.
|
3320
|
+
* Lists service health events in the subscription.
|
1133
3321
|
* @param options The options parameters.
|
1134
3322
|
*/
|
1135
3323
|
_listBySubscriptionId(options) {
|
1136
3324
|
return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
|
1137
3325
|
}
|
1138
3326
|
/**
|
1139
|
-
* Lists
|
1140
|
-
* property in the response to get the next page of availability statuses.
|
1141
|
-
* @param resourceGroupName The name of the resource group.
|
3327
|
+
* Lists current service health events in the tenant.
|
1142
3328
|
* @param options The options parameters.
|
1143
3329
|
*/
|
1144
|
-
|
1145
|
-
return this.client.sendOperationRequest({
|
1146
|
-
}
|
1147
|
-
/**
|
1148
|
-
* Gets current availability status for a single resource
|
1149
|
-
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1150
|
-
* type. Currently the API support not nested and one nesting level resource types :
|
1151
|
-
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
1152
|
-
* and
|
1153
|
-
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1154
|
-
* @param options The options parameters.
|
1155
|
-
*/
|
1156
|
-
getByResource(resourceUri, options) {
|
1157
|
-
return this.client.sendOperationRequest({ resourceUri, options }, getByResourceOperationSpec$1);
|
3330
|
+
_listByTenantId(options) {
|
3331
|
+
return this.client.sendOperationRequest({ options }, listByTenantIdOperationSpec);
|
1158
3332
|
}
|
1159
3333
|
/**
|
1160
|
-
* Lists
|
1161
|
-
* nextLink property in the response to get the next page of availability status
|
3334
|
+
* Lists current service health events for given resource.
|
1162
3335
|
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1163
3336
|
* type. Currently the API support not nested and one nesting level resource types :
|
1164
3337
|
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
@@ -1166,8 +3339,8 @@ class AvailabilityStatusesImpl {
|
|
1166
3339
|
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1167
3340
|
* @param options The options parameters.
|
1168
3341
|
*/
|
1169
|
-
|
1170
|
-
return this.client.sendOperationRequest({ resourceUri, options },
|
3342
|
+
_listBySingleResource(resourceUri, options) {
|
3343
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listBySingleResourceOperationSpec);
|
1171
3344
|
}
|
1172
3345
|
/**
|
1173
3346
|
* ListBySubscriptionIdNext
|
@@ -1178,36 +3351,35 @@ class AvailabilityStatusesImpl {
|
|
1178
3351
|
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
|
1179
3352
|
}
|
1180
3353
|
/**
|
1181
|
-
*
|
1182
|
-
* @param
|
1183
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
3354
|
+
* ListByTenantIdNext
|
3355
|
+
* @param nextLink The nextLink from the previous successful call to the ListByTenantId method.
|
1184
3356
|
* @param options The options parameters.
|
1185
3357
|
*/
|
1186
|
-
|
1187
|
-
return this.client.sendOperationRequest({
|
3358
|
+
_listByTenantIdNext(nextLink, options) {
|
3359
|
+
return this.client.sendOperationRequest({ nextLink, options }, listByTenantIdNextOperationSpec);
|
1188
3360
|
}
|
1189
3361
|
/**
|
1190
|
-
*
|
3362
|
+
* ListBySingleResourceNext
|
1191
3363
|
* @param resourceUri The fully qualified ID of the resource, including the resource name and resource
|
1192
3364
|
* type. Currently the API support not nested and one nesting level resource types :
|
1193
3365
|
* /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
|
1194
3366
|
* and
|
1195
3367
|
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
|
1196
|
-
* @param nextLink The nextLink from the previous successful call to the
|
3368
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySingleResource method.
|
1197
3369
|
* @param options The options parameters.
|
1198
3370
|
*/
|
1199
|
-
|
1200
|
-
return this.client.sendOperationRequest({ resourceUri, nextLink, options },
|
3371
|
+
_listBySingleResourceNext(resourceUri, nextLink, options) {
|
3372
|
+
return this.client.sendOperationRequest({ resourceUri, nextLink, options }, listBySingleResourceNextOperationSpec);
|
1201
3373
|
}
|
1202
3374
|
}
|
1203
3375
|
// Operation Specifications
|
1204
3376
|
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1205
3377
|
const listBySubscriptionIdOperationSpec = {
|
1206
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/
|
3378
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events",
|
1207
3379
|
httpMethod: "GET",
|
1208
3380
|
responses: {
|
1209
3381
|
200: {
|
1210
|
-
bodyMapper:
|
3382
|
+
bodyMapper: Events
|
1211
3383
|
},
|
1212
3384
|
default: {
|
1213
3385
|
bodyMapper: ErrorResponse
|
@@ -1216,18 +3388,18 @@ const listBySubscriptionIdOperationSpec = {
|
|
1216
3388
|
queryParameters: [
|
1217
3389
|
apiVersion,
|
1218
3390
|
filter,
|
1219
|
-
|
3391
|
+
queryStartTime
|
1220
3392
|
],
|
1221
3393
|
urlParameters: [$host, subscriptionId],
|
1222
3394
|
headerParameters: [accept],
|
1223
3395
|
serializer: serializer$4
|
1224
3396
|
};
|
1225
|
-
const
|
1226
|
-
path: "/
|
3397
|
+
const listByTenantIdOperationSpec = {
|
3398
|
+
path: "/providers/Microsoft.ResourceHealth/events",
|
1227
3399
|
httpMethod: "GET",
|
1228
3400
|
responses: {
|
1229
3401
|
200: {
|
1230
|
-
bodyMapper:
|
3402
|
+
bodyMapper: Events
|
1231
3403
|
},
|
1232
3404
|
default: {
|
1233
3405
|
bodyMapper: ErrorResponse
|
@@ -1236,62 +3408,68 @@ const listByResourceGroupOperationSpec = {
|
|
1236
3408
|
queryParameters: [
|
1237
3409
|
apiVersion,
|
1238
3410
|
filter,
|
1239
|
-
|
1240
|
-
],
|
1241
|
-
urlParameters: [
|
1242
|
-
$host,
|
1243
|
-
subscriptionId,
|
1244
|
-
resourceGroupName
|
3411
|
+
queryStartTime
|
1245
3412
|
],
|
3413
|
+
urlParameters: [$host],
|
1246
3414
|
headerParameters: [accept],
|
1247
3415
|
serializer: serializer$4
|
1248
3416
|
};
|
1249
|
-
const
|
1250
|
-
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/
|
3417
|
+
const listBySingleResourceOperationSpec = {
|
3418
|
+
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/events",
|
1251
3419
|
httpMethod: "GET",
|
1252
3420
|
responses: {
|
1253
3421
|
200: {
|
1254
|
-
bodyMapper:
|
3422
|
+
bodyMapper: Events
|
1255
3423
|
},
|
1256
3424
|
default: {
|
1257
3425
|
bodyMapper: ErrorResponse
|
1258
3426
|
}
|
1259
3427
|
},
|
1260
|
-
queryParameters: [
|
1261
|
-
apiVersion,
|
1262
|
-
filter,
|
1263
|
-
expand
|
1264
|
-
],
|
3428
|
+
queryParameters: [apiVersion, filter],
|
1265
3429
|
urlParameters: [$host, resourceUri],
|
1266
3430
|
headerParameters: [accept],
|
1267
3431
|
serializer: serializer$4
|
1268
3432
|
};
|
1269
|
-
const
|
1270
|
-
path: "
|
3433
|
+
const listBySubscriptionIdNextOperationSpec = {
|
3434
|
+
path: "{nextLink}",
|
1271
3435
|
httpMethod: "GET",
|
1272
3436
|
responses: {
|
1273
3437
|
200: {
|
1274
|
-
bodyMapper:
|
3438
|
+
bodyMapper: Events
|
1275
3439
|
},
|
1276
3440
|
default: {
|
1277
3441
|
bodyMapper: ErrorResponse
|
1278
3442
|
}
|
1279
3443
|
},
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
3444
|
+
urlParameters: [
|
3445
|
+
$host,
|
3446
|
+
subscriptionId,
|
3447
|
+
nextLink
|
1284
3448
|
],
|
1285
|
-
urlParameters: [$host, resourceUri],
|
1286
3449
|
headerParameters: [accept],
|
1287
3450
|
serializer: serializer$4
|
1288
3451
|
};
|
1289
|
-
const
|
3452
|
+
const listByTenantIdNextOperationSpec = {
|
1290
3453
|
path: "{nextLink}",
|
1291
3454
|
httpMethod: "GET",
|
1292
3455
|
responses: {
|
1293
3456
|
200: {
|
1294
|
-
bodyMapper:
|
3457
|
+
bodyMapper: Events
|
3458
|
+
},
|
3459
|
+
default: {
|
3460
|
+
bodyMapper: ErrorResponse
|
3461
|
+
}
|
3462
|
+
},
|
3463
|
+
urlParameters: [$host, nextLink],
|
3464
|
+
headerParameters: [accept],
|
3465
|
+
serializer: serializer$4
|
3466
|
+
};
|
3467
|
+
const listBySingleResourceNextOperationSpec = {
|
3468
|
+
path: "{nextLink}",
|
3469
|
+
httpMethod: "GET",
|
3470
|
+
responses: {
|
3471
|
+
200: {
|
3472
|
+
bodyMapper: Events
|
1295
3473
|
},
|
1296
3474
|
default: {
|
1297
3475
|
bodyMapper: ErrorResponse
|
@@ -1299,50 +3477,145 @@ const listBySubscriptionIdNextOperationSpec = {
|
|
1299
3477
|
},
|
1300
3478
|
urlParameters: [
|
1301
3479
|
$host,
|
1302
|
-
|
3480
|
+
resourceUri,
|
1303
3481
|
nextLink
|
1304
3482
|
],
|
1305
3483
|
headerParameters: [accept],
|
1306
3484
|
serializer: serializer$4
|
1307
3485
|
};
|
1308
|
-
|
1309
|
-
|
3486
|
+
|
3487
|
+
/*
|
3488
|
+
* Copyright (c) Microsoft Corporation.
|
3489
|
+
* Licensed under the MIT License.
|
3490
|
+
*
|
3491
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
3492
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
3493
|
+
*/
|
3494
|
+
/** Class containing EventOperations operations. */
|
3495
|
+
class EventOperationsImpl {
|
3496
|
+
/**
|
3497
|
+
* Initialize a new instance of the class EventOperations class.
|
3498
|
+
* @param client Reference to the service client
|
3499
|
+
*/
|
3500
|
+
constructor(client) {
|
3501
|
+
this.client = client;
|
3502
|
+
}
|
3503
|
+
/**
|
3504
|
+
* Service health event in the subscription by event tracking id
|
3505
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
3506
|
+
* @param options The options parameters.
|
3507
|
+
*/
|
3508
|
+
getBySubscriptionIdAndTrackingId(eventTrackingId, options) {
|
3509
|
+
return this.client.sendOperationRequest({ eventTrackingId, options }, getBySubscriptionIdAndTrackingIdOperationSpec);
|
3510
|
+
}
|
3511
|
+
/**
|
3512
|
+
* Service health event details in the subscription by event tracking id. This can be used to fetch
|
3513
|
+
* sensitive properties for Security Advisory events
|
3514
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
3515
|
+
* @param options The options parameters.
|
3516
|
+
*/
|
3517
|
+
fetchDetailsBySubscriptionIdAndTrackingId(eventTrackingId, options) {
|
3518
|
+
return this.client.sendOperationRequest({ eventTrackingId, options }, fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec);
|
3519
|
+
}
|
3520
|
+
/**
|
3521
|
+
* Service health event in the tenant by event tracking id
|
3522
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
3523
|
+
* @param options The options parameters.
|
3524
|
+
*/
|
3525
|
+
getByTenantIdAndTrackingId(eventTrackingId, options) {
|
3526
|
+
return this.client.sendOperationRequest({ eventTrackingId, options }, getByTenantIdAndTrackingIdOperationSpec);
|
3527
|
+
}
|
3528
|
+
/**
|
3529
|
+
* Service health event details in the tenant by event tracking id. This can be used to fetch sensitive
|
3530
|
+
* properties for Security Advisory events
|
3531
|
+
* @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.
|
3532
|
+
* @param options The options parameters.
|
3533
|
+
*/
|
3534
|
+
fetchDetailsByTenantIdAndTrackingId(eventTrackingId, options) {
|
3535
|
+
return this.client.sendOperationRequest({ eventTrackingId, options }, fetchDetailsByTenantIdAndTrackingIdOperationSpec);
|
3536
|
+
}
|
3537
|
+
}
|
3538
|
+
// Operation Specifications
|
3539
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3540
|
+
const getBySubscriptionIdAndTrackingIdOperationSpec = {
|
3541
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",
|
1310
3542
|
httpMethod: "GET",
|
1311
3543
|
responses: {
|
1312
3544
|
200: {
|
1313
|
-
bodyMapper:
|
3545
|
+
bodyMapper: Event
|
1314
3546
|
},
|
1315
3547
|
default: {
|
1316
3548
|
bodyMapper: ErrorResponse
|
1317
3549
|
}
|
1318
3550
|
},
|
3551
|
+
queryParameters: [
|
3552
|
+
apiVersion,
|
3553
|
+
filter,
|
3554
|
+
queryStartTime
|
3555
|
+
],
|
1319
3556
|
urlParameters: [
|
1320
3557
|
$host,
|
1321
3558
|
subscriptionId,
|
1322
|
-
|
1323
|
-
nextLink
|
3559
|
+
eventTrackingId
|
1324
3560
|
],
|
1325
3561
|
headerParameters: [accept],
|
1326
|
-
serializer: serializer$
|
3562
|
+
serializer: serializer$3
|
1327
3563
|
};
|
1328
|
-
const
|
1329
|
-
path: "{
|
1330
|
-
httpMethod: "
|
3564
|
+
const fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec = {
|
3565
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails",
|
3566
|
+
httpMethod: "POST",
|
1331
3567
|
responses: {
|
1332
3568
|
200: {
|
1333
|
-
bodyMapper:
|
3569
|
+
bodyMapper: Event
|
1334
3570
|
},
|
1335
3571
|
default: {
|
1336
3572
|
bodyMapper: ErrorResponse
|
1337
3573
|
}
|
1338
3574
|
},
|
3575
|
+
queryParameters: [apiVersion],
|
1339
3576
|
urlParameters: [
|
1340
3577
|
$host,
|
1341
|
-
|
1342
|
-
|
3578
|
+
subscriptionId,
|
3579
|
+
eventTrackingId
|
1343
3580
|
],
|
1344
3581
|
headerParameters: [accept],
|
1345
|
-
serializer: serializer$
|
3582
|
+
serializer: serializer$3
|
3583
|
+
};
|
3584
|
+
const getByTenantIdAndTrackingIdOperationSpec = {
|
3585
|
+
path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",
|
3586
|
+
httpMethod: "GET",
|
3587
|
+
responses: {
|
3588
|
+
200: {
|
3589
|
+
bodyMapper: Event
|
3590
|
+
},
|
3591
|
+
default: {
|
3592
|
+
bodyMapper: ErrorResponse
|
3593
|
+
}
|
3594
|
+
},
|
3595
|
+
queryParameters: [
|
3596
|
+
apiVersion,
|
3597
|
+
filter,
|
3598
|
+
queryStartTime
|
3599
|
+
],
|
3600
|
+
urlParameters: [$host, eventTrackingId],
|
3601
|
+
headerParameters: [accept],
|
3602
|
+
serializer: serializer$3
|
3603
|
+
};
|
3604
|
+
const fetchDetailsByTenantIdAndTrackingIdOperationSpec = {
|
3605
|
+
path: "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails",
|
3606
|
+
httpMethod: "POST",
|
3607
|
+
responses: {
|
3608
|
+
200: {
|
3609
|
+
bodyMapper: Event
|
3610
|
+
},
|
3611
|
+
default: {
|
3612
|
+
bodyMapper: ErrorResponse
|
3613
|
+
}
|
3614
|
+
},
|
3615
|
+
queryParameters: [apiVersion],
|
3616
|
+
urlParameters: [$host, eventTrackingId],
|
3617
|
+
headerParameters: [accept],
|
3618
|
+
serializer: serializer$3
|
1346
3619
|
};
|
1347
3620
|
|
1348
3621
|
/*
|
@@ -1451,7 +3724,7 @@ class ChildAvailabilityStatusesImpl {
|
|
1451
3724
|
* @param options The options parameters.
|
1452
3725
|
*/
|
1453
3726
|
_list(resourceUri, options) {
|
1454
|
-
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$
|
3727
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$2);
|
1455
3728
|
}
|
1456
3729
|
/**
|
1457
3730
|
* ListNext
|
@@ -1466,7 +3739,7 @@ class ChildAvailabilityStatusesImpl {
|
|
1466
3739
|
}
|
1467
3740
|
}
|
1468
3741
|
// Operation Specifications
|
1469
|
-
const serializer$
|
3742
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1470
3743
|
const getByResourceOperationSpec = {
|
1471
3744
|
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current",
|
1472
3745
|
httpMethod: "GET",
|
@@ -1485,9 +3758,9 @@ const getByResourceOperationSpec = {
|
|
1485
3758
|
],
|
1486
3759
|
urlParameters: [$host, resourceUri],
|
1487
3760
|
headerParameters: [accept],
|
1488
|
-
serializer: serializer$
|
3761
|
+
serializer: serializer$2
|
1489
3762
|
};
|
1490
|
-
const listOperationSpec$
|
3763
|
+
const listOperationSpec$2 = {
|
1491
3764
|
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses",
|
1492
3765
|
httpMethod: "GET",
|
1493
3766
|
responses: {
|
@@ -1505,7 +3778,7 @@ const listOperationSpec$3 = {
|
|
1505
3778
|
],
|
1506
3779
|
urlParameters: [$host, resourceUri],
|
1507
3780
|
headerParameters: [accept],
|
1508
|
-
serializer: serializer$
|
3781
|
+
serializer: serializer$2
|
1509
3782
|
};
|
1510
3783
|
const listNextOperationSpec$2 = {
|
1511
3784
|
path: "{nextLink}",
|
@@ -1524,7 +3797,7 @@ const listNextOperationSpec$2 = {
|
|
1524
3797
|
nextLink
|
1525
3798
|
],
|
1526
3799
|
headerParameters: [accept],
|
1527
|
-
serializer: serializer$
|
3800
|
+
serializer: serializer$2
|
1528
3801
|
};
|
1529
3802
|
|
1530
3803
|
/*
|
@@ -1623,7 +3896,7 @@ class ChildResourcesImpl {
|
|
1623
3896
|
* @param options The options parameters.
|
1624
3897
|
*/
|
1625
3898
|
_list(resourceUri, options) {
|
1626
|
-
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$
|
3899
|
+
return this.client.sendOperationRequest({ resourceUri, options }, listOperationSpec$1);
|
1627
3900
|
}
|
1628
3901
|
/**
|
1629
3902
|
* ListNext
|
@@ -1638,8 +3911,8 @@ class ChildResourcesImpl {
|
|
1638
3911
|
}
|
1639
3912
|
}
|
1640
3913
|
// Operation Specifications
|
1641
|
-
const serializer$
|
1642
|
-
const listOperationSpec$
|
3914
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3915
|
+
const listOperationSpec$1 = {
|
1643
3916
|
path: "/{resourceUri}/providers/Microsoft.ResourceHealth/childResources",
|
1644
3917
|
httpMethod: "GET",
|
1645
3918
|
responses: {
|
@@ -1657,7 +3930,7 @@ const listOperationSpec$2 = {
|
|
1657
3930
|
],
|
1658
3931
|
urlParameters: [$host, resourceUri],
|
1659
3932
|
headerParameters: [accept],
|
1660
|
-
serializer: serializer$
|
3933
|
+
serializer: serializer$1
|
1661
3934
|
};
|
1662
3935
|
const listNextOperationSpec$1 = {
|
1663
3936
|
path: "{nextLink}",
|
@@ -1676,49 +3949,6 @@ const listNextOperationSpec$1 = {
|
|
1676
3949
|
nextLink
|
1677
3950
|
],
|
1678
3951
|
headerParameters: [accept],
|
1679
|
-
serializer: serializer$2
|
1680
|
-
};
|
1681
|
-
|
1682
|
-
/*
|
1683
|
-
* Copyright (c) Microsoft Corporation.
|
1684
|
-
* Licensed under the MIT License.
|
1685
|
-
*
|
1686
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1687
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1688
|
-
*/
|
1689
|
-
/** Class containing Operations operations. */
|
1690
|
-
class OperationsImpl {
|
1691
|
-
/**
|
1692
|
-
* Initialize a new instance of the class Operations class.
|
1693
|
-
* @param client Reference to the service client
|
1694
|
-
*/
|
1695
|
-
constructor(client) {
|
1696
|
-
this.client = client;
|
1697
|
-
}
|
1698
|
-
/**
|
1699
|
-
* Lists available operations for the resourcehealth resource provider
|
1700
|
-
* @param options The options parameters.
|
1701
|
-
*/
|
1702
|
-
list(options) {
|
1703
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
1704
|
-
}
|
1705
|
-
}
|
1706
|
-
// Operation Specifications
|
1707
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1708
|
-
const listOperationSpec$1 = {
|
1709
|
-
path: "/providers/Microsoft.ResourceHealth/operations",
|
1710
|
-
httpMethod: "GET",
|
1711
|
-
responses: {
|
1712
|
-
200: {
|
1713
|
-
bodyMapper: OperationListResult
|
1714
|
-
},
|
1715
|
-
default: {
|
1716
|
-
bodyMapper: ErrorResponse
|
1717
|
-
}
|
1718
|
-
},
|
1719
|
-
queryParameters: [apiVersion],
|
1720
|
-
urlParameters: [$host],
|
1721
|
-
headerParameters: [accept],
|
1722
3952
|
serializer: serializer$1
|
1723
3953
|
};
|
1724
3954
|
|
@@ -1806,18 +4036,19 @@ class EmergingIssuesImpl {
|
|
1806
4036
|
});
|
1807
4037
|
}
|
1808
4038
|
/**
|
1809
|
-
*
|
4039
|
+
* Lists Azure services' emerging issues.
|
1810
4040
|
* @param options The options parameters.
|
1811
4041
|
*/
|
1812
|
-
|
1813
|
-
return this.client.sendOperationRequest({ options },
|
4042
|
+
_list(options) {
|
4043
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
1814
4044
|
}
|
1815
4045
|
/**
|
1816
|
-
*
|
4046
|
+
* Gets Azure services' emerging issues.
|
4047
|
+
* @param issueName The name of the emerging issue.
|
1817
4048
|
* @param options The options parameters.
|
1818
4049
|
*/
|
1819
|
-
|
1820
|
-
return this.client.sendOperationRequest({ options },
|
4050
|
+
get(issueName, options) {
|
4051
|
+
return this.client.sendOperationRequest({ issueName, options }, getOperationSpec);
|
1821
4052
|
}
|
1822
4053
|
/**
|
1823
4054
|
* ListNext
|
@@ -1830,35 +4061,35 @@ class EmergingIssuesImpl {
|
|
1830
4061
|
}
|
1831
4062
|
// Operation Specifications
|
1832
4063
|
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1833
|
-
const
|
1834
|
-
path: "/providers/Microsoft.ResourceHealth/emergingIssues
|
4064
|
+
const listOperationSpec = {
|
4065
|
+
path: "/providers/Microsoft.ResourceHealth/emergingIssues",
|
1835
4066
|
httpMethod: "GET",
|
1836
4067
|
responses: {
|
1837
4068
|
200: {
|
1838
|
-
bodyMapper:
|
4069
|
+
bodyMapper: EmergingIssueListResult
|
1839
4070
|
},
|
1840
4071
|
default: {
|
1841
4072
|
bodyMapper: ErrorResponse
|
1842
4073
|
}
|
1843
4074
|
},
|
1844
4075
|
queryParameters: [apiVersion],
|
1845
|
-
urlParameters: [$host
|
4076
|
+
urlParameters: [$host],
|
1846
4077
|
headerParameters: [accept],
|
1847
4078
|
serializer
|
1848
4079
|
};
|
1849
|
-
const
|
1850
|
-
path: "/providers/Microsoft.ResourceHealth/emergingIssues",
|
4080
|
+
const getOperationSpec = {
|
4081
|
+
path: "/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}",
|
1851
4082
|
httpMethod: "GET",
|
1852
4083
|
responses: {
|
1853
4084
|
200: {
|
1854
|
-
bodyMapper:
|
4085
|
+
bodyMapper: EmergingIssuesGetResult
|
1855
4086
|
},
|
1856
4087
|
default: {
|
1857
4088
|
bodyMapper: ErrorResponse
|
1858
4089
|
}
|
1859
4090
|
},
|
1860
4091
|
queryParameters: [apiVersion],
|
1861
|
-
urlParameters: [$host],
|
4092
|
+
urlParameters: [$host, issueName],
|
1862
4093
|
headerParameters: [accept],
|
1863
4094
|
serializer
|
1864
4095
|
};
|
@@ -1889,8 +4120,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
1889
4120
|
/**
|
1890
4121
|
* Initializes a new instance of the MicrosoftResourceHealth class.
|
1891
4122
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
1892
|
-
* @param subscriptionId
|
1893
|
-
* The subscription ID forms part of the URI for every service call.
|
4123
|
+
* @param subscriptionId The ID of the target subscription.
|
1894
4124
|
* @param options The parameter options
|
1895
4125
|
*/
|
1896
4126
|
constructor(credentials, subscriptionId, options) {
|
@@ -1909,7 +4139,7 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
1909
4139
|
requestContentType: "application/json; charset=utf-8",
|
1910
4140
|
credential: credentials
|
1911
4141
|
};
|
1912
|
-
const packageDetails = `azsdk-js-arm-resourcehealth/
|
4142
|
+
const packageDetails = `azsdk-js-arm-resourcehealth/4.0.0`;
|
1913
4143
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
1914
4144
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
1915
4145
|
: `${packageDetails}`;
|
@@ -1942,11 +4172,16 @@ class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient {
|
|
1942
4172
|
this.subscriptionId = subscriptionId;
|
1943
4173
|
// Assigning values to Constant parameters
|
1944
4174
|
this.$host = options.$host || "https://management.azure.com";
|
1945
|
-
this.apiVersion = options.apiVersion || "
|
4175
|
+
this.apiVersion = options.apiVersion || "2022-10-01";
|
1946
4176
|
this.availabilityStatuses = new AvailabilityStatusesImpl(this);
|
4177
|
+
this.operations = new OperationsImpl(this);
|
4178
|
+
this.metadata = new MetadataImpl(this);
|
4179
|
+
this.impactedResources = new ImpactedResourcesImpl(this);
|
4180
|
+
this.securityAdvisoryImpactedResources = new SecurityAdvisoryImpactedResourcesImpl(this);
|
4181
|
+
this.eventsOperations = new EventsOperationsImpl(this);
|
4182
|
+
this.eventOperations = new EventOperationsImpl(this);
|
1947
4183
|
this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this);
|
1948
4184
|
this.childResources = new ChildResourcesImpl(this);
|
1949
|
-
this.operations = new OperationsImpl(this);
|
1950
4185
|
this.emergingIssues = new EmergingIssuesImpl(this);
|
1951
4186
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
1952
4187
|
}
|