@azure/arm-resourcehealth 4.0.1-alpha.20231009.1 → 4.1.0-alpha.20231020.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -11
- package/README.md +1 -1
- package/dist/index.js +66 -12
- 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 +2 -4
- package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +1 -1
- package/dist-esm/samples-dev/availabilityStatusesListSample.js +2 -4
- package/dist-esm/samples-dev/availabilityStatusesListSample.js.map +1 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +2 -4
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +2 -4
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
- package/dist-esm/samples-dev/childResourcesListSample.js +2 -4
- package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
- package/dist-esm/samples-dev/emergingIssuesGetSample.js +2 -4
- package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/emergingIssuesListSample.js +2 -4
- package/dist-esm/samples-dev/emergingIssuesListSample.js.map +1 -1
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +1 -1
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +2 -4
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +1 -1
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +1 -1
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +2 -4
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +1 -1
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +2 -4
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +1 -1
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js +2 -4
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +1 -1
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +2 -4
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +1 -1
- package/dist-esm/samples-dev/impactedResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +1 -1
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +2 -4
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
- package/dist-esm/samples-dev/metadataGetEntitySample.js +2 -4
- package/dist-esm/samples-dev/metadataGetEntitySample.js.map +1 -1
- package/dist-esm/samples-dev/metadataListSample.js +2 -4
- package/dist-esm/samples-dev/metadataListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +1 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +2 -4
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +1 -1
- package/dist-esm/src/microsoftResourceHealth.d.ts +2 -1
- package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
- package/dist-esm/src/microsoftResourceHealth.js +9 -11
- package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +46 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +6 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +50 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/package.json +6 -6
- package/review/arm-resourcehealth.api.md +19 -1
- package/src/microsoftResourceHealth.ts +19 -5
- package/src/models/index.ts +48 -0
- package/src/models/mappers.ts +59 -0
- package/src/models/parameters.ts +1 -1
- package/types/arm-resourcehealth.d.ts +50 -1
package/dist/index.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline");function _interopNamespace(i){var a;return i&&i.__esModule?i:(a=Object.create(null),i&&Object.keys(i).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(a,e,t.get?t:{enumerable:!0,get:function(){return i[e]}}))}),a.default=i,Object.freeze(a))}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);const pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,t){var i;"object"==typeof e&&null!==e&&t&&((i=null!=(i=pageMap.get(e))?i:{}).continuationToken=t,pageMap.set(e,i))}exports.KnownAvailabilityStateValues=void 0,function(e){e.Available="Available",e.Unavailable="Unavailable",e.Degraded="Degraded",e.Unknown="Unknown"}(exports.KnownAvailabilityStateValues||(exports.KnownAvailabilityStateValues={})),exports.KnownReasonChronicityTypes=void 0,function(e){e.Transient="Transient",e.Persistent="Persistent"}(exports.KnownReasonChronicityTypes||(exports.KnownReasonChronicityTypes={})),exports.KnownScenario=void 0,(exports.KnownScenario||(exports.KnownScenario={})).Alerts="Alerts",exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownEventTypeValues=void 0,function(e){e.ServiceIssue="ServiceIssue",e.PlannedMaintenance="PlannedMaintenance",e.HealthAdvisory="HealthAdvisory",e.RCA="RCA",e.EmergingIssues="EmergingIssues",e.SecurityAdvisory="SecurityAdvisory"}(exports.KnownEventTypeValues||(exports.KnownEventTypeValues={})),exports.KnownEventSourceValues=void 0,function(e){e.ResourceHealth="ResourceHealth",e.ServiceHealth="ServiceHealth"}(exports.KnownEventSourceValues||(exports.KnownEventSourceValues={})),exports.KnownEventStatusValues=void 0,function(e){e.Active="Active",e.Resolved="Resolved"}(exports.KnownEventStatusValues||(exports.KnownEventStatusValues={})),exports.KnownLevelValues=void 0,function(e){e.Critical="Critical",e.Warning="Warning"}(exports.KnownLevelValues||(exports.KnownLevelValues={})),exports.KnownEventLevelValues=void 0,function(e){e.Critical="Critical",e.Error="Error",e.Warning="Warning",e.Informational="Informational"}(exports.KnownEventLevelValues||(exports.KnownEventLevelValues={})),exports.KnownLinkTypeValues=void 0,function(e){e.Button="Button",e.Hyperlink="Hyperlink"}(exports.KnownLinkTypeValues||(exports.KnownLinkTypeValues={})),exports.KnownSeverityValues=void 0,function(e){e.Information="Information",e.Warning="Warning",e.Error="Error"}(exports.KnownSeverityValues||(exports.KnownSeverityValues={})),exports.KnownStageValues=void 0,function(e){e.Active="Active",e.Resolve="Resolve",e.Archived="Archived"}(exports.KnownStageValues||(exports.KnownStageValues={})),exports.KnownIssueNameParameter=void 0,(exports.KnownIssueNameParameter||(exports.KnownIssueNameParameter={})).Default="default",exports.KnownReasonTypeValues=void 0,function(e){e.Unplanned="Unplanned",e.Planned="Planned",e.UserInitiated="UserInitiated"}(exports.KnownReasonTypeValues||(exports.KnownReasonTypeValues={}));const AvailabilityStatusListResult={type:{name:"Composite",className:"AvailabilityStatusListResult",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"AvailabilityStatus"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},AvailabilityStatus={type:{name:"Composite",className:"AvailabilityStatus",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"AvailabilityStatusProperties"}}}}},AvailabilityStatusProperties={type:{name:"Composite",className:"AvailabilityStatusProperties",modelProperties:{availabilityState:{serializedName:"availabilityState",type:{name:"String"}},title:{serializedName:"title",type:{name:"String"}},summary:{serializedName:"summary",type:{name:"String"}},detailedStatus:{serializedName:"detailedStatus",type:{name:"String"}},reasonType:{serializedName:"reasonType",type:{name:"String"}},context:{serializedName:"context",type:{name:"String"}},category:{serializedName:"category",type:{name:"String"}},articleId:{serializedName:"articleId",type:{name:"String"}},rootCauseAttributionTime:{serializedName:"rootCauseAttributionTime",type:{name:"DateTime"}},healthEventType:{serializedName:"healthEventType",type:{name:"String"}},healthEventCause:{serializedName:"healthEventCause",type:{name:"String"}},healthEventCategory:{serializedName:"healthEventCategory",type:{name:"String"}},healthEventId:{serializedName:"healthEventId",type:{name:"String"}},resolutionETA:{serializedName:"resolutionETA",type:{name:"DateTime"}},occuredTime:{serializedName:"occuredTime",type:{name:"DateTime"}},reasonChronicity:{serializedName:"reasonChronicity",type:{name:"String"}},reportedTime:{serializedName:"reportedTime",type:{name:"DateTime"}},recentlyResolved:{serializedName:"recentlyResolved",type:{name:"Composite",className:"AvailabilityStatusPropertiesRecentlyResolved"}},recommendedActions:{serializedName:"recommendedActions",type:{name:"Sequence",element:{type:{name:"Composite",className:"RecommendedAction"}}}},serviceImpactingEvents:{serializedName:"serviceImpactingEvents",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceImpactingEvent"}}}}}}},AvailabilityStatusPropertiesRecentlyResolved={type:{name:"Composite",className:"AvailabilityStatusPropertiesRecentlyResolved",modelProperties:{unavailableOccuredTime:{serializedName:"unavailableOccuredTime",type:{name:"DateTime"}},resolvedTime:{serializedName:"resolvedTime",type:{name:"DateTime"}},unavailableSummary:{serializedName:"unavailableSummary",type:{name:"String"}}}}},RecommendedAction={type:{name:"Composite",className:"RecommendedAction",modelProperties:{action:{serializedName:"action",type:{name:"String"}},actionUrl:{serializedName:"actionUrl",type:{name:"String"}},actionUrlComment:{serializedName:"_ActionUrl\\.Comment",type:{name:"String"}},actionUrlText:{serializedName:"actionUrlText",type:{name:"String"}}}}},ServiceImpactingEvent={type:{name:"Composite",className:"ServiceImpactingEvent",modelProperties:{eventStartTime:{serializedName:"eventStartTime",type:{name:"DateTime"}},eventStatusLastModifiedTime:{serializedName:"eventStatusLastModifiedTime",type:{name:"DateTime"}},correlationId:{serializedName:"correlationId",type:{name:"String"}},status:{serializedName:"status",type:{name:"Composite",className:"ServiceImpactingEventStatus"}},incidentProperties:{serializedName:"incidentProperties",type:{name:"Composite",className:"ServiceImpactingEventIncidentProperties"}}}}},ServiceImpactingEventStatus={type:{name:"Composite",className:"ServiceImpactingEventStatus",modelProperties:{value:{serializedName:"value",type:{name:"String"}}}}},ServiceImpactingEventIncidentProperties={type:{name:"Composite",className:"ServiceImpactingEventIncidentProperties",modelProperties:{title:{serializedName:"title",type:{name:"String"}},service:{serializedName:"service",type:{name:"String"}},region:{serializedName:"region",type:{name:"String"}},incidentType:{serializedName:"incidentType",type:{name:"String"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},MetadataEntityListResult={type:{name:"Composite",className:"MetadataEntityListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetadataEntity"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},MetadataSupportedValueDetail={type:{name:"Composite",className:"MetadataSupportedValueDetail",modelProperties:{id:{serializedName:"id",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},resourceTypes:{serializedName:"resourceTypes",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},EventImpactedResourceListResult={type:{name:"Composite",className:"EventImpactedResourceListResult",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"EventImpactedResource"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},KeyValueItem={type:{name:"Composite",className:"KeyValueItem",modelProperties:{key:{serializedName:"key",readOnly:!0,type:{name:"String"}},value:{serializedName:"value",readOnly:!0,type:{name:"String"}}}}},Events={type:{name:"Composite",className:"Events",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Event"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},EventPropertiesArticle={type:{name:"Composite",className:"EventPropertiesArticle",modelProperties:{articleContent:{serializedName:"articleContent",type:{name:"String"}},articleId:{serializedName:"articleId",type:{name:"String"}},parameters:{serializedName:"parameters",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},Link={type:{name:"Composite",className:"Link",modelProperties:{type:{serializedName:"type",type:{name:"String"}},displayText:{serializedName:"displayText",type:{name:"Composite",className:"LinkDisplayText"}},extensionName:{serializedName:"extensionName",type:{name:"String"}},bladeName:{serializedName:"bladeName",type:{name:"String"}},parameters:{serializedName:"parameters",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},LinkDisplayText={type:{name:"Composite",className:"LinkDisplayText",modelProperties:{value:{serializedName:"value",type:{name:"String"}},localizedValue:{serializedName:"localizedValue",type:{name:"String"}}}}},Impact={type:{name:"Composite",className:"Impact",modelProperties:{impactedService:{serializedName:"impactedService",type:{name:"String"}},impactedRegions:{serializedName:"impactedRegions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImpactedServiceRegion"}}}}}}},ImpactedServiceRegion={type:{name:"Composite",className:"ImpactedServiceRegion",modelProperties:{impactedRegion:{serializedName:"impactedRegion",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},impactedSubscriptions:{serializedName:"impactedSubscriptions",type:{name:"Sequence",element:{type:{name:"String"}}}},impactedTenants:{serializedName:"impactedTenants",type:{name:"Sequence",element:{type:{name:"String"}}}},lastUpdateTime:{serializedName:"lastUpdateTime",type:{name:"DateTime"}},updates:{serializedName:"updates",type:{name:"Sequence",element:{type:{name:"Composite",className:"Update"}}}}}}},Update={type:{name:"Composite",className:"Update",modelProperties:{summary:{serializedName:"summary",type:{name:"String"}},updateDateTime:{serializedName:"updateDateTime",type:{name:"DateTime"}}}}},EventPropertiesRecommendedActions={type:{name:"Composite",className:"EventPropertiesRecommendedActions",modelProperties:{message:{serializedName:"message",type:{name:"String"}},actions:{serializedName:"actions",type:{name:"Sequence",element:{type:{name:"Composite",className:"EventPropertiesRecommendedActionsItem"}}}},localeCode:{serializedName:"localeCode",type:{name:"String"}}}}},EventPropertiesRecommendedActionsItem={type:{name:"Composite",className:"EventPropertiesRecommendedActionsItem",modelProperties:{groupId:{serializedName:"groupId",type:{name:"Number"}},actionText:{serializedName:"actionText",type:{name:"String"}}}}},Faq={type:{name:"Composite",className:"Faq",modelProperties:{question:{serializedName:"question",type:{name:"String"}},answer:{serializedName:"answer",type:{name:"String"}},localeCode:{serializedName:"localeCode",type:{name:"String"}}}}},EventPropertiesAdditionalInformation={type:{name:"Composite",className:"EventPropertiesAdditionalInformation",modelProperties:{message:{serializedName:"message",type:{name:"String"}}}}},EmergingIssueListResult={type:{name:"Composite",className:"EmergingIssueListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"EmergingIssuesGetResult"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},StatusBanner={type:{name:"Composite",className:"StatusBanner",modelProperties:{title:{serializedName:"title",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},cloud:{serializedName:"cloud",type:{name:"String"}},lastModifiedTime:{serializedName:"lastModifiedTime",type:{name:"DateTime"}}}}},StatusActiveEvent={type:{name:"Composite",className:"StatusActiveEvent",modelProperties:{title:{serializedName:"title",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},trackingId:{serializedName:"trackingId",type:{name:"String"}},startTime:{serializedName:"startTime",type:{name:"DateTime"}},cloud:{serializedName:"cloud",type:{name:"String"}},severity:{serializedName:"severity",type:{name:"String"}},stage:{serializedName:"stage",type:{name:"String"}},published:{serializedName:"published",type:{name:"Boolean"}},lastModifiedTime:{serializedName:"lastModifiedTime",type:{name:"DateTime"}},impacts:{serializedName:"impacts",type:{name:"Sequence",element:{type:{name:"Composite",className:"EmergingIssueImpact"}}}}}}},EmergingIssueImpact={type:{name:"Composite",className:"EmergingIssueImpact",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},regions:{serializedName:"regions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImpactedRegion"}}}}}}},ImpactedRegion={type:{name:"Composite",className:"ImpactedRegion",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}}}}},ProxyResource={type:{name:"Composite",className:"ProxyResource",modelProperties:Object.assign({},Resource.type.modelProperties)}},MetadataEntity={type:{name:"Composite",className:"MetadataEntity",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{displayName:{serializedName:"properties.displayName",type:{name:"String"}},dependsOn:{serializedName:"properties.dependsOn",type:{name:"Sequence",element:{type:{name:"String"}}}},applicableScenarios:{serializedName:"properties.applicableScenarios",type:{name:"Sequence",element:{type:{name:"String"}}}},supportedValues:{serializedName:"properties.supportedValues",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetadataSupportedValueDetail"}}}}})}},EventImpactedResource={type:{name:"Composite",className:"EventImpactedResource",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{targetResourceType:{serializedName:"properties.targetResourceType",readOnly:!0,type:{name:"String"}},targetResourceId:{serializedName:"properties.targetResourceId",readOnly:!0,type:{name:"String"}},targetRegion:{serializedName:"properties.targetRegion",readOnly:!0,type:{name:"String"}},info:{serializedName:"properties.info",type:{name:"Sequence",element:{type:{name:"Composite",className:"KeyValueItem"}}}}})}},Event={type:{name:"Composite",className:"Event",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{eventType:{serializedName:"properties.eventType",type:{name:"String"}},eventSource:{serializedName:"properties.eventSource",type:{name:"String"}},status:{serializedName:"properties.status",type:{name:"String"}},title:{serializedName:"properties.title",type:{name:"String"}},summary:{serializedName:"properties.summary",type:{name:"String"}},header:{serializedName:"properties.header",type:{name:"String"}},level:{serializedName:"properties.level",type:{name:"String"}},eventLevel:{serializedName:"properties.eventLevel",type:{name:"String"}},externalIncidentId:{serializedName:"properties.externalIncidentId",type:{name:"String"}},reason:{serializedName:"properties.reason",type:{name:"String"}},article:{serializedName:"properties.article",type:{name:"Composite",className:"EventPropertiesArticle"}},links:{serializedName:"properties.links",type:{name:"Sequence",element:{type:{name:"Composite",className:"Link"}}}},impactStartTime:{serializedName:"properties.impactStartTime",type:{name:"DateTime"}},impactMitigationTime:{serializedName:"properties.impactMitigationTime",type:{name:"DateTime"}},impact:{serializedName:"properties.impact",type:{name:"Sequence",element:{type:{name:"Composite",className:"Impact"}}}},recommendedActions:{serializedName:"properties.recommendedActions",type:{name:"Composite",className:"EventPropertiesRecommendedActions"}},faqs:{serializedName:"properties.faqs",type:{name:"Sequence",element:{type:{name:"Composite",className:"Faq"}}}},isHIR:{serializedName:"properties.isHIR",type:{name:"Boolean"}},enableMicrosoftSupport:{serializedName:"properties.enableMicrosoftSupport",type:{name:"Boolean"}},description:{serializedName:"properties.description",type:{name:"String"}},platformInitiated:{serializedName:"properties.platformInitiated",type:{name:"Boolean"}},enableChatWithUs:{serializedName:"properties.enableChatWithUs",type:{name:"Boolean"}},priority:{serializedName:"properties.priority",type:{name:"Number"}},lastUpdateTime:{serializedName:"properties.lastUpdateTime",type:{name:"DateTime"}},hirStage:{serializedName:"properties.hirStage",type:{name:"String"}},additionalInformation:{serializedName:"properties.additionalInformation",type:{name:"Composite",className:"EventPropertiesAdditionalInformation"}},duration:{serializedName:"properties.duration",type:{name:"Number"}},impactType:{serializedName:"properties.impactType",type:{name:"String"}}})}},EmergingIssuesGetResult={type:{name:"Composite",className:"EmergingIssuesGetResult",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{refreshTimestamp:{serializedName:"properties.refreshTimestamp",type:{name:"DateTime"}},statusBanners:{serializedName:"properties.statusBanners",type:{name:"Sequence",element:{type:{name:"Composite",className:"StatusBanner"}}}},statusActiveEvents:{serializedName:"properties.statusActiveEvents",type:{name:"Sequence",element:{type:{name:"Composite",className:"StatusActiveEvent"}}}}})}},ImpactedResourceStatus={type:{name:"Composite",className:"ImpactedResourceStatus",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{availabilityState:{serializedName:"properties.availabilityState",type:{name:"String"}},title:{serializedName:"properties.title",type:{name:"String"}},summary:{serializedName:"properties.summary",type:{name:"String"}},reasonType:{serializedName:"properties.reasonType",type:{name:"String"}},occurredTime:{serializedName:"properties.occurredTime",type:{name:"DateTime"}}})}};var Mappers=Object.freeze({__proto__:null,AvailabilityStatusListResult:AvailabilityStatusListResult,AvailabilityStatus:AvailabilityStatus,AvailabilityStatusProperties:AvailabilityStatusProperties,AvailabilityStatusPropertiesRecentlyResolved:AvailabilityStatusPropertiesRecentlyResolved,RecommendedAction:RecommendedAction,ServiceImpactingEvent:ServiceImpactingEvent,ServiceImpactingEventStatus:ServiceImpactingEventStatus,ServiceImpactingEventIncidentProperties:ServiceImpactingEventIncidentProperties,ErrorResponse:ErrorResponse,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,MetadataEntityListResult:MetadataEntityListResult,MetadataSupportedValueDetail:MetadataSupportedValueDetail,Resource:Resource,SystemData:SystemData,EventImpactedResourceListResult:EventImpactedResourceListResult,KeyValueItem:KeyValueItem,Events:Events,EventPropertiesArticle:EventPropertiesArticle,Link:Link,LinkDisplayText:LinkDisplayText,Impact:Impact,ImpactedServiceRegion:ImpactedServiceRegion,Update:Update,EventPropertiesRecommendedActions:EventPropertiesRecommendedActions,EventPropertiesRecommendedActionsItem:EventPropertiesRecommendedActionsItem,Faq:Faq,EventPropertiesAdditionalInformation:EventPropertiesAdditionalInformation,EmergingIssueListResult:EmergingIssueListResult,StatusBanner:StatusBanner,StatusActiveEvent:StatusActiveEvent,EmergingIssueImpact:EmergingIssueImpact,ImpactedRegion:ImpactedRegion,ProxyResource:ProxyResource,MetadataEntity:MetadataEntity,EventImpactedResource:EventImpactedResource,Event:Event,EmergingIssuesGetResult:EmergingIssuesGetResult,ImpactedResourceStatus:ImpactedResourceStatus});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2022-10-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},filter={parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{constraints:{MinLength:1},serializedName:"subscriptionId",required:!0,type:{name:"String"}}},expand={parameterPath:["options","expand"],mapper:{serializedName:"$expand",type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},resourceUri={parameterPath:"resourceUri",mapper:{serializedName:"resourceUri",required:!0,type:{name:"String"}},skipEncoding:!0},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},name={parameterPath:"name",mapper:{serializedName:"name",required:!0,type:{name:"String"}}},eventTrackingId={parameterPath:"eventTrackingId",mapper:{serializedName:"eventTrackingId",required:!0,type:{name:"String"}}},impactedResourceName={parameterPath:"impactedResourceName",mapper:{constraints:{Pattern:new RegExp("^[^*#&+:<>%?]+$")},serializedName:"impactedResourceName",required:!0,type:{name:"String"}}},queryStartTime={parameterPath:["options","queryStartTime"],mapper:{serializedName:"queryStartTime",type:{name:"String"}}},issueName={parameterPath:"issueName",mapper:{serializedName:"issueName",required:!0,type:{name:"String"}}};class AvailabilityStatusesImpl{constructor(e){this.client=e}listBySubscriptionId(t){const e=this.listBySubscriptionIdPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionIdPagingPage(t,e)}}}listBySubscriptionIdPagingPage(r,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySubscriptionId(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySubscriptionIdNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySubscriptionIdPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listBySubscriptionIdPagingPage(o));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}listByResourceGroup(t,i){const e=this.listByResourceGroupPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(t,i,e)}}}listByResourceGroupPagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listByResourceGroup(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listByResourceGroupNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listByResourceGroupPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listByResourceGroupPagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}list(t,i){const e=this.listPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,i,e)}}}listPagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listPagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}_listBySubscriptionId(e){return this.client.sendOperationRequest({options:e},listBySubscriptionIdOperationSpec$1)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec)}getByResource(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},getByResourceOperationSpec$1)}_list(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},listOperationSpec$5)}_listBySubscriptionIdNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listBySubscriptionIdNextOperationSpec$1)}_listByResourceGroupNext(e,t,i){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,options:i},listByResourceGroupNextOperationSpec)}_listNext(e,t,i){return this.client.sendOperationRequest({resourceUri:e,nextLink:t,options:i},listNextOperationSpec$4)}}const serializer$9=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$9},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$9},getByResourceOperationSpec$1={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatus},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$9},listOperationSpec$5={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$9},listBySubscriptionIdNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$9},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$9},listNextOperationSpec$4={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$9};class OperationsImpl{constructor(e){this.client=e}list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$4)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$4={path:"/providers/Microsoft.ResourceHealth/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$8};class MetadataImpl{constructor(e){this.client=e}list(t){const e=this.listPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,e)}}}listPagingPage(r,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listPagingPage(o));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$3)}getEntity(e,t){return this.client.sendOperationRequest({name:e,options:t},getEntityOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec$3)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$3={path:"/providers/Microsoft.ResourceHealth/metadata",httpMethod:"GET",responses:{200:{bodyMapper:MetadataEntityListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$7},getEntityOperationSpec={path:"/providers/Microsoft.ResourceHealth/metadata/{name}",httpMethod:"GET",responses:{200:{bodyMapper:MetadataEntity},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,name],headerParameters:[accept],serializer:serializer$7},listNextOperationSpec$3={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:MetadataEntityListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$7};class ImpactedResourcesImpl{constructor(e){this.client=e}listBySubscriptionIdAndEventId(t,i){const e=this.listBySubscriptionIdAndEventIdPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionIdAndEventIdPagingPage(t,i,e)}}}listBySubscriptionIdAndEventIdPagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySubscriptionIdAndEventId(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySubscriptionIdAndEventIdNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySubscriptionIdAndEventIdPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}listByTenantIdAndEventId(t,i){const e=this.listByTenantIdAndEventIdPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByTenantIdAndEventIdPagingPage(t,i,e)}}}listByTenantIdAndEventIdPagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listByTenantIdAndEventId(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listByTenantIdAndEventIdNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listByTenantIdAndEventIdPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}_listBySubscriptionIdAndEventId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},listBySubscriptionIdAndEventIdOperationSpec$1)}get(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,impactedResourceName:t,options:i},getOperationSpec$1)}_listByTenantIdAndEventId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},listByTenantIdAndEventIdOperationSpec$1)}getByTenantId(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,impactedResourceName:t,options:i},getByTenantIdOperationSpec)}_listBySubscriptionIdAndEventIdNext(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,nextLink:t,options:i},listBySubscriptionIdAndEventIdNextOperationSpec$1)}_listByTenantIdAndEventIdNext(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,nextLink:t,options:i},listByTenantIdAndEventIdNextOperationSpec$1)}}const serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdAndEventIdOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,subscriptionId,eventTrackingId],headerParameters:[accept],serializer:serializer$6},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResource},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,eventTrackingId,impactedResourceName],headerParameters:[accept],serializer:serializer$6},listByTenantIdAndEventIdOperationSpec$1={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,eventTrackingId],headerParameters:[accept],serializer:serializer$6},getByTenantIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResource},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,eventTrackingId,impactedResourceName],headerParameters:[accept],serializer:serializer$6},listBySubscriptionIdAndEventIdNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,nextLink,eventTrackingId],headerParameters:[accept],serializer:serializer$6},listByTenantIdAndEventIdNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink,eventTrackingId],headerParameters:[accept],serializer:serializer$6};class SecurityAdvisoryImpactedResourcesImpl{constructor(e){this.client=e}listBySubscriptionIdAndEventId(t,i){const e=this.listBySubscriptionIdAndEventIdPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionIdAndEventIdPagingPage(t,i,e)}}}listBySubscriptionIdAndEventIdPagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySubscriptionIdAndEventId(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySubscriptionIdAndEventIdNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySubscriptionIdAndEventIdPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}listByTenantIdAndEventId(t,i){const e=this.listByTenantIdAndEventIdPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByTenantIdAndEventIdPagingPage(t,i,e)}}}listByTenantIdAndEventIdPagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listByTenantIdAndEventId(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listByTenantIdAndEventIdNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listByTenantIdAndEventIdPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}_listBySubscriptionIdAndEventId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},listBySubscriptionIdAndEventIdOperationSpec)}_listByTenantIdAndEventId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},listByTenantIdAndEventIdOperationSpec)}_listBySubscriptionIdAndEventIdNext(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,nextLink:t,options:i},listBySubscriptionIdAndEventIdNextOperationSpec)}_listByTenantIdAndEventIdNext(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,nextLink:t,options:i},listByTenantIdAndEventIdNextOperationSpec)}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdAndEventIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources",httpMethod:"POST",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,subscriptionId,eventTrackingId],headerParameters:[accept],serializer:serializer$5},listByTenantIdAndEventIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources",httpMethod:"POST",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,eventTrackingId],headerParameters:[accept],serializer:serializer$5},listBySubscriptionIdAndEventIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,nextLink,eventTrackingId],headerParameters:[accept],serializer:serializer$5},listByTenantIdAndEventIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink,eventTrackingId],headerParameters:[accept],serializer:serializer$5};class EventsOperationsImpl{constructor(e){this.client=e}listBySubscriptionId(t){const e=this.listBySubscriptionIdPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionIdPagingPage(t,e)}}}listBySubscriptionIdPagingPage(r,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySubscriptionId(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySubscriptionIdNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySubscriptionIdPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listBySubscriptionIdPagingPage(o));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}listByTenantId(t){const e=this.listByTenantIdPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByTenantIdPagingPage(t,e)}}}listByTenantIdPagingPage(r,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listByTenantId(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listByTenantIdNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listByTenantIdPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listByTenantIdPagingPage(o));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}listBySingleResource(t,i){const e=this.listBySingleResourcePagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySingleResourcePagingPage(t,i,e)}}}listBySingleResourcePagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySingleResource(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySingleResourceNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySingleResourcePagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listBySingleResourcePagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}_listBySubscriptionId(e){return this.client.sendOperationRequest({options:e},listBySubscriptionIdOperationSpec)}_listByTenantId(e){return this.client.sendOperationRequest({options:e},listByTenantIdOperationSpec)}_listBySingleResource(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},listBySingleResourceOperationSpec)}_listBySubscriptionIdNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listBySubscriptionIdNextOperationSpec)}_listByTenantIdNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listByTenantIdNextOperationSpec)}_listBySingleResourceNext(e,t,i){return this.client.sendOperationRequest({resourceUri:e,nextLink:t,options:i},listBySingleResourceNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,queryStartTime],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$4},listByTenantIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,queryStartTime],urlParameters:[$host],headerParameters:[accept],serializer:serializer$4},listBySingleResourceOperationSpec={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/events",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$4},listBySubscriptionIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$4},listByTenantIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$4},listBySingleResourceNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$4};class EventOperationsImpl{constructor(e){this.client=e}getBySubscriptionIdAndTrackingId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},getBySubscriptionIdAndTrackingIdOperationSpec)}fetchDetailsBySubscriptionIdAndTrackingId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec)}getByTenantIdAndTrackingId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},getByTenantIdAndTrackingIdOperationSpec)}fetchDetailsByTenantIdAndTrackingId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},fetchDetailsByTenantIdAndTrackingIdOperationSpec)}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),getBySubscriptionIdAndTrackingIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",httpMethod:"GET",responses:{200:{bodyMapper:Event},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,queryStartTime],urlParameters:[$host,subscriptionId,eventTrackingId],headerParameters:[accept],serializer:serializer$3},fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails",httpMethod:"POST",responses:{200:{bodyMapper:Event},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,eventTrackingId],headerParameters:[accept],serializer:serializer$3},getByTenantIdAndTrackingIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",httpMethod:"GET",responses:{200:{bodyMapper:Event},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,queryStartTime],urlParameters:[$host,eventTrackingId],headerParameters:[accept],serializer:serializer$3},fetchDetailsByTenantIdAndTrackingIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails",httpMethod:"POST",responses:{200:{bodyMapper:Event},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,eventTrackingId],headerParameters:[accept],serializer:serializer$3};class ChildAvailabilityStatusesImpl{constructor(e){this.client=e}list(t,i){const e=this.listPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,i,e)}}}listPagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listPagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}getByResource(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},getByResourceOperationSpec)}_list(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},listOperationSpec$2)}_listNext(e,t,i){return this.client.sendOperationRequest({resourceUri:e,nextLink:t,options:i},listNextOperationSpec$2)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),getByResourceOperationSpec={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatus},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$2},listOperationSpec$2={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$2},listNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$2};class ChildResourcesImpl{constructor(e){this.client=e}list(t,i){const e=this.listPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,i,e)}}}listPagingPage(r,s,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r,s))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(r,t,s)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listPagingPage(o,l));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}_list(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},listOperationSpec$1)}_listNext(e,t,i){return this.client.sendOperationRequest({resourceUri:e,nextLink:t,options:i},listNextOperationSpec$1)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/childResources",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$1};class EmergingIssuesImpl{constructor(e){this.client=e}list(t){const e=this.listPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,e)}}}listPagingPage(r,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,s=!0,n=tslib.__asyncValues(this.listPagingPage(o));!(e=(r=yield tslib.__await(n.next())).done);){a=r.value,s=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{s=!0}}}catch(e){t={error:e}}finally{try{s||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}get(e,t){return this.client.sendOperationRequest({issueName:e,options:t},getOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.ResourceHealth/emergingIssues",httpMethod:"GET",responses:{200:{bodyMapper:EmergingIssueListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},getOperationSpec={path:"/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}",httpMethod:"GET",responses:{200:{bodyMapper:EmergingIssuesGetResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,issueName],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EmergingIssueListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient{constructor(e,t,i){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var a,r="azsdk-js-arm-resourcehealth/4.0.1",r=(i=i||{}).userAgentOptions&&i.userAgentOptions.userAgentPrefix?i.userAgentOptions.userAgentPrefix+" "+r:r,r=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),i),{userAgentOptions:{userAgentPrefix:r},endpoint:null!=(r=null!=(r=i.endpoint)?r:i.baseUri)?r:"https://management.azure.com"});super(r);let s=!1;null!=i&&i.pipeline&&0<i.pipeline.getOrderedPolicies().length&&(a=i.pipeline.getOrderedPolicies(),s=a.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),i&&i.pipeline&&0!=i.pipeline.getOrderedPolicies().length&&s||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(a=r.credentialScopes)?a:r.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=t,this.$host=i.$host||"https://management.azure.com",this.apiVersion=i.apiVersion||"2022-10-01",this.availabilityStatuses=new AvailabilityStatusesImpl(this),this.operations=new OperationsImpl(this),this.metadata=new MetadataImpl(this),this.impactedResources=new ImpactedResourcesImpl(this),this.securityAdvisoryImpactedResources=new SecurityAdvisoryImpactedResourcesImpl(this),this.eventsOperations=new EventsOperationsImpl(this),this.eventOperations=new EventOperationsImpl(this),this.childAvailabilityStatuses=new ChildAvailabilityStatusesImpl(this),this.childResources=new ChildResourcesImpl(this),this.emergingIssues=new EmergingIssuesImpl(this),this.addCustomApiVersionPolicy(i.apiVersion)}addCustomApiVersionPolicy(r){r&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(i,a){return tslib.__awaiter(this,void 0,void 0,function*(){var e,t=i.url.split("?");return 1<t.length&&(e=t[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+r:e),i.url=t[0]+"?"+e.join("&")),a(i)})}})}}exports.MicrosoftResourceHealth=MicrosoftResourceHealth,exports.getContinuationToken=getContinuationToken;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline");function _interopNamespace(i){var a;return i&&i.__esModule?i:(a=Object.create(null),i&&Object.keys(i).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(a,e,t.get?t:{enumerable:!0,get:function(){return i[e]}}))}),a.default=i,Object.freeze(a))}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);const pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,t){var i;"object"==typeof e&&null!==e&&t&&((i=null!=(i=pageMap.get(e))?i:{}).continuationToken=t,pageMap.set(e,i))}exports.KnownAvailabilityStateValues=void 0,function(e){e.Available="Available",e.Unavailable="Unavailable",e.Degraded="Degraded",e.Unknown="Unknown"}(exports.KnownAvailabilityStateValues||(exports.KnownAvailabilityStateValues={})),exports.KnownReasonChronicityTypes=void 0,function(e){e.Transient="Transient",e.Persistent="Persistent"}(exports.KnownReasonChronicityTypes||(exports.KnownReasonChronicityTypes={})),exports.KnownScenario=void 0,(exports.KnownScenario||(exports.KnownScenario={})).Alerts="Alerts",exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownEventTypeValues=void 0,function(e){e.ServiceIssue="ServiceIssue",e.PlannedMaintenance="PlannedMaintenance",e.HealthAdvisory="HealthAdvisory",e.RCA="RCA",e.EmergingIssues="EmergingIssues",e.SecurityAdvisory="SecurityAdvisory"}(exports.KnownEventTypeValues||(exports.KnownEventTypeValues={})),exports.KnownEventSubTypeValues=void 0,(exports.KnownEventSubTypeValues||(exports.KnownEventSubTypeValues={})).Retirement="Retirement",exports.KnownEventSourceValues=void 0,function(e){e.ResourceHealth="ResourceHealth",e.ServiceHealth="ServiceHealth"}(exports.KnownEventSourceValues||(exports.KnownEventSourceValues={})),exports.KnownEventStatusValues=void 0,function(e){e.Active="Active",e.Resolved="Resolved"}(exports.KnownEventStatusValues||(exports.KnownEventStatusValues={})),exports.KnownLevelValues=void 0,function(e){e.Critical="Critical",e.Warning="Warning"}(exports.KnownLevelValues||(exports.KnownLevelValues={})),exports.KnownEventLevelValues=void 0,function(e){e.Critical="Critical",e.Error="Error",e.Warning="Warning",e.Informational="Informational"}(exports.KnownEventLevelValues||(exports.KnownEventLevelValues={})),exports.KnownLinkTypeValues=void 0,function(e){e.Button="Button",e.Hyperlink="Hyperlink"}(exports.KnownLinkTypeValues||(exports.KnownLinkTypeValues={})),exports.KnownSeverityValues=void 0,function(e){e.Information="Information",e.Warning="Warning",e.Error="Error"}(exports.KnownSeverityValues||(exports.KnownSeverityValues={})),exports.KnownStageValues=void 0,function(e){e.Active="Active",e.Resolve="Resolve",e.Archived="Archived"}(exports.KnownStageValues||(exports.KnownStageValues={})),exports.KnownIssueNameParameter=void 0,(exports.KnownIssueNameParameter||(exports.KnownIssueNameParameter={})).Default="default",exports.KnownReasonTypeValues=void 0,function(e){e.Unplanned="Unplanned",e.Planned="Planned",e.UserInitiated="UserInitiated"}(exports.KnownReasonTypeValues||(exports.KnownReasonTypeValues={}));const AvailabilityStatusListResult={type:{name:"Composite",className:"AvailabilityStatusListResult",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"AvailabilityStatus"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},AvailabilityStatus={type:{name:"Composite",className:"AvailabilityStatus",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"AvailabilityStatusProperties"}}}}},AvailabilityStatusProperties={type:{name:"Composite",className:"AvailabilityStatusProperties",modelProperties:{availabilityState:{serializedName:"availabilityState",type:{name:"String"}},title:{serializedName:"title",type:{name:"String"}},summary:{serializedName:"summary",type:{name:"String"}},detailedStatus:{serializedName:"detailedStatus",type:{name:"String"}},reasonType:{serializedName:"reasonType",type:{name:"String"}},context:{serializedName:"context",type:{name:"String"}},category:{serializedName:"category",type:{name:"String"}},articleId:{serializedName:"articleId",type:{name:"String"}},rootCauseAttributionTime:{serializedName:"rootCauseAttributionTime",type:{name:"DateTime"}},healthEventType:{serializedName:"healthEventType",type:{name:"String"}},healthEventCause:{serializedName:"healthEventCause",type:{name:"String"}},healthEventCategory:{serializedName:"healthEventCategory",type:{name:"String"}},healthEventId:{serializedName:"healthEventId",type:{name:"String"}},resolutionETA:{serializedName:"resolutionETA",type:{name:"DateTime"}},occuredTime:{serializedName:"occuredTime",type:{name:"DateTime"}},reasonChronicity:{serializedName:"reasonChronicity",type:{name:"String"}},reportedTime:{serializedName:"reportedTime",type:{name:"DateTime"}},recentlyResolved:{serializedName:"recentlyResolved",type:{name:"Composite",className:"AvailabilityStatusPropertiesRecentlyResolved"}},recommendedActions:{serializedName:"recommendedActions",type:{name:"Sequence",element:{type:{name:"Composite",className:"RecommendedAction"}}}},serviceImpactingEvents:{serializedName:"serviceImpactingEvents",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceImpactingEvent"}}}}}}},AvailabilityStatusPropertiesRecentlyResolved={type:{name:"Composite",className:"AvailabilityStatusPropertiesRecentlyResolved",modelProperties:{unavailableOccuredTime:{serializedName:"unavailableOccuredTime",type:{name:"DateTime"}},resolvedTime:{serializedName:"resolvedTime",type:{name:"DateTime"}},unavailableSummary:{serializedName:"unavailableSummary",type:{name:"String"}}}}},RecommendedAction={type:{name:"Composite",className:"RecommendedAction",modelProperties:{action:{serializedName:"action",type:{name:"String"}},actionUrl:{serializedName:"actionUrl",type:{name:"String"}},actionUrlComment:{serializedName:"_ActionUrl\\.Comment",type:{name:"String"}},actionUrlText:{serializedName:"actionUrlText",type:{name:"String"}}}}},ServiceImpactingEvent={type:{name:"Composite",className:"ServiceImpactingEvent",modelProperties:{eventStartTime:{serializedName:"eventStartTime",type:{name:"DateTime"}},eventStatusLastModifiedTime:{serializedName:"eventStatusLastModifiedTime",type:{name:"DateTime"}},correlationId:{serializedName:"correlationId",type:{name:"String"}},status:{serializedName:"status",type:{name:"Composite",className:"ServiceImpactingEventStatus"}},incidentProperties:{serializedName:"incidentProperties",type:{name:"Composite",className:"ServiceImpactingEventIncidentProperties"}}}}},ServiceImpactingEventStatus={type:{name:"Composite",className:"ServiceImpactingEventStatus",modelProperties:{value:{serializedName:"value",type:{name:"String"}}}}},ServiceImpactingEventIncidentProperties={type:{name:"Composite",className:"ServiceImpactingEventIncidentProperties",modelProperties:{title:{serializedName:"title",type:{name:"String"}},service:{serializedName:"service",type:{name:"String"}},region:{serializedName:"region",type:{name:"String"}},incidentType:{serializedName:"incidentType",type:{name:"String"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},MetadataEntityListResult={type:{name:"Composite",className:"MetadataEntityListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetadataEntity"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},MetadataSupportedValueDetail={type:{name:"Composite",className:"MetadataSupportedValueDetail",modelProperties:{id:{serializedName:"id",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},resourceTypes:{serializedName:"resourceTypes",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},EventImpactedResourceListResult={type:{name:"Composite",className:"EventImpactedResourceListResult",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"EventImpactedResource"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},KeyValueItem={type:{name:"Composite",className:"KeyValueItem",modelProperties:{key:{serializedName:"key",readOnly:!0,type:{name:"String"}},value:{serializedName:"value",readOnly:!0,type:{name:"String"}}}}},Events={type:{name:"Composite",className:"Events",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Event"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},EventPropertiesArticle={type:{name:"Composite",className:"EventPropertiesArticle",modelProperties:{articleContent:{serializedName:"articleContent",type:{name:"String"}},articleId:{serializedName:"articleId",type:{name:"String"}},parameters:{serializedName:"parameters",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},Link={type:{name:"Composite",className:"Link",modelProperties:{type:{serializedName:"type",type:{name:"String"}},displayText:{serializedName:"displayText",type:{name:"Composite",className:"LinkDisplayText"}},extensionName:{serializedName:"extensionName",type:{name:"String"}},bladeName:{serializedName:"bladeName",type:{name:"String"}},parameters:{serializedName:"parameters",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},LinkDisplayText={type:{name:"Composite",className:"LinkDisplayText",modelProperties:{value:{serializedName:"value",type:{name:"String"}},localizedValue:{serializedName:"localizedValue",type:{name:"String"}}}}},Impact={type:{name:"Composite",className:"Impact",modelProperties:{impactedService:{serializedName:"impactedService",type:{name:"String"}},impactedRegions:{serializedName:"impactedRegions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImpactedServiceRegion"}}}}}}},ImpactedServiceRegion={type:{name:"Composite",className:"ImpactedServiceRegion",modelProperties:{impactedRegion:{serializedName:"impactedRegion",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},impactedSubscriptions:{serializedName:"impactedSubscriptions",type:{name:"Sequence",element:{type:{name:"String"}}}},impactedTenants:{serializedName:"impactedTenants",type:{name:"Sequence",element:{type:{name:"String"}}}},lastUpdateTime:{serializedName:"lastUpdateTime",type:{name:"DateTime"}},updates:{serializedName:"updates",type:{name:"Sequence",element:{type:{name:"Composite",className:"Update"}}}}}}},Update={type:{name:"Composite",className:"Update",modelProperties:{summary:{serializedName:"summary",type:{name:"String"}},updateDateTime:{serializedName:"updateDateTime",type:{name:"DateTime"}}}}},EventPropertiesRecommendedActions={type:{name:"Composite",className:"EventPropertiesRecommendedActions",modelProperties:{message:{serializedName:"message",type:{name:"String"}},actions:{serializedName:"actions",type:{name:"Sequence",element:{type:{name:"Composite",className:"EventPropertiesRecommendedActionsItem"}}}},localeCode:{serializedName:"localeCode",type:{name:"String"}}}}},EventPropertiesRecommendedActionsItem={type:{name:"Composite",className:"EventPropertiesRecommendedActionsItem",modelProperties:{groupId:{serializedName:"groupId",type:{name:"Number"}},actionText:{serializedName:"actionText",type:{name:"String"}}}}},Faq={type:{name:"Composite",className:"Faq",modelProperties:{question:{serializedName:"question",type:{name:"String"}},answer:{serializedName:"answer",type:{name:"String"}},localeCode:{serializedName:"localeCode",type:{name:"String"}}}}},EventPropertiesAdditionalInformation={type:{name:"Composite",className:"EventPropertiesAdditionalInformation",modelProperties:{message:{serializedName:"message",type:{name:"String"}}}}},EmergingIssueListResult={type:{name:"Composite",className:"EmergingIssueListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"EmergingIssuesGetResult"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},StatusBanner={type:{name:"Composite",className:"StatusBanner",modelProperties:{title:{serializedName:"title",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},cloud:{serializedName:"cloud",type:{name:"String"}},lastModifiedTime:{serializedName:"lastModifiedTime",type:{name:"DateTime"}}}}},StatusActiveEvent={type:{name:"Composite",className:"StatusActiveEvent",modelProperties:{title:{serializedName:"title",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},trackingId:{serializedName:"trackingId",type:{name:"String"}},startTime:{serializedName:"startTime",type:{name:"DateTime"}},cloud:{serializedName:"cloud",type:{name:"String"}},severity:{serializedName:"severity",type:{name:"String"}},stage:{serializedName:"stage",type:{name:"String"}},published:{serializedName:"published",type:{name:"Boolean"}},lastModifiedTime:{serializedName:"lastModifiedTime",type:{name:"DateTime"}},impacts:{serializedName:"impacts",type:{name:"Sequence",element:{type:{name:"Composite",className:"EmergingIssueImpact"}}}}}}},EmergingIssueImpact={type:{name:"Composite",className:"EmergingIssueImpact",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},regions:{serializedName:"regions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImpactedRegion"}}}}}}},ImpactedRegion={type:{name:"Composite",className:"ImpactedRegion",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}}}}},ProxyResource={type:{name:"Composite",className:"ProxyResource",modelProperties:Object.assign({},Resource.type.modelProperties)}},MetadataEntity={type:{name:"Composite",className:"MetadataEntity",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{displayName:{serializedName:"properties.displayName",type:{name:"String"}},dependsOn:{serializedName:"properties.dependsOn",type:{name:"Sequence",element:{type:{name:"String"}}}},applicableScenarios:{serializedName:"properties.applicableScenarios",type:{name:"Sequence",element:{type:{name:"String"}}}},supportedValues:{serializedName:"properties.supportedValues",type:{name:"Sequence",element:{type:{name:"Composite",className:"MetadataSupportedValueDetail"}}}}})}},EventImpactedResource={type:{name:"Composite",className:"EventImpactedResource",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{targetResourceType:{serializedName:"properties.targetResourceType",readOnly:!0,type:{name:"String"}},targetResourceId:{serializedName:"properties.targetResourceId",readOnly:!0,type:{name:"String"}},targetRegion:{serializedName:"properties.targetRegion",readOnly:!0,type:{name:"String"}},resourceName:{serializedName:"properties.resourceName",readOnly:!0,type:{name:"String"}},resourceGroup:{serializedName:"properties.resourceGroup",readOnly:!0,type:{name:"String"}},status:{serializedName:"properties.status",readOnly:!0,type:{name:"String"}},maintenanceStartTime:{serializedName:"properties.maintenanceStartTime",readOnly:!0,type:{name:"String"}},maintenanceEndTime:{serializedName:"properties.maintenanceEndTime",readOnly:!0,type:{name:"String"}},info:{serializedName:"properties.info",type:{name:"Sequence",element:{type:{name:"Composite",className:"KeyValueItem"}}}}})}},Event={type:{name:"Composite",className:"Event",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{eventType:{serializedName:"properties.eventType",type:{name:"String"}},eventSubType:{serializedName:"properties.eventSubType",type:{name:"String"}},eventSource:{serializedName:"properties.eventSource",type:{name:"String"}},status:{serializedName:"properties.status",type:{name:"String"}},title:{serializedName:"properties.title",type:{name:"String"}},summary:{serializedName:"properties.summary",type:{name:"String"}},header:{serializedName:"properties.header",type:{name:"String"}},level:{serializedName:"properties.level",type:{name:"String"}},eventLevel:{serializedName:"properties.eventLevel",type:{name:"String"}},externalIncidentId:{serializedName:"properties.externalIncidentId",type:{name:"String"}},reason:{serializedName:"properties.reason",type:{name:"String"}},article:{serializedName:"properties.article",type:{name:"Composite",className:"EventPropertiesArticle"}},links:{serializedName:"properties.links",type:{name:"Sequence",element:{type:{name:"Composite",className:"Link"}}}},impactStartTime:{serializedName:"properties.impactStartTime",type:{name:"DateTime"}},impactMitigationTime:{serializedName:"properties.impactMitigationTime",type:{name:"DateTime"}},impact:{serializedName:"properties.impact",type:{name:"Sequence",element:{type:{name:"Composite",className:"Impact"}}}},recommendedActions:{serializedName:"properties.recommendedActions",type:{name:"Composite",className:"EventPropertiesRecommendedActions"}},faqs:{serializedName:"properties.faqs",type:{name:"Sequence",element:{type:{name:"Composite",className:"Faq"}}}},isHIR:{serializedName:"properties.isHIR",type:{name:"Boolean"}},enableMicrosoftSupport:{serializedName:"properties.enableMicrosoftSupport",type:{name:"Boolean"}},description:{serializedName:"properties.description",type:{name:"String"}},platformInitiated:{serializedName:"properties.platformInitiated",type:{name:"Boolean"}},enableChatWithUs:{serializedName:"properties.enableChatWithUs",type:{name:"Boolean"}},priority:{serializedName:"properties.priority",type:{name:"Number"}},lastUpdateTime:{serializedName:"properties.lastUpdateTime",type:{name:"DateTime"}},hirStage:{serializedName:"properties.hirStage",type:{name:"String"}},additionalInformation:{serializedName:"properties.additionalInformation",type:{name:"Composite",className:"EventPropertiesAdditionalInformation"}},duration:{serializedName:"properties.duration",type:{name:"Number"}},impactType:{serializedName:"properties.impactType",type:{name:"String"}},maintenanceId:{serializedName:"properties.maintenanceId",type:{name:"String"}},maintenanceType:{serializedName:"properties.maintenanceType",type:{name:"String"}},argQuery:{serializedName:"properties.argQuery",type:{name:"String"}}})}},EmergingIssuesGetResult={type:{name:"Composite",className:"EmergingIssuesGetResult",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{refreshTimestamp:{serializedName:"properties.refreshTimestamp",type:{name:"DateTime"}},statusBanners:{serializedName:"properties.statusBanners",type:{name:"Sequence",element:{type:{name:"Composite",className:"StatusBanner"}}}},statusActiveEvents:{serializedName:"properties.statusActiveEvents",type:{name:"Sequence",element:{type:{name:"Composite",className:"StatusActiveEvent"}}}}})}},ImpactedResourceStatus={type:{name:"Composite",className:"ImpactedResourceStatus",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{availabilityState:{serializedName:"properties.availabilityState",type:{name:"String"}},title:{serializedName:"properties.title",type:{name:"String"}},summary:{serializedName:"properties.summary",type:{name:"String"}},reasonType:{serializedName:"properties.reasonType",type:{name:"String"}},occurredTime:{serializedName:"properties.occurredTime",type:{name:"DateTime"}}})}};var Mappers=Object.freeze({__proto__:null,AvailabilityStatusListResult:AvailabilityStatusListResult,AvailabilityStatus:AvailabilityStatus,AvailabilityStatusProperties:AvailabilityStatusProperties,AvailabilityStatusPropertiesRecentlyResolved:AvailabilityStatusPropertiesRecentlyResolved,RecommendedAction:RecommendedAction,ServiceImpactingEvent:ServiceImpactingEvent,ServiceImpactingEventStatus:ServiceImpactingEventStatus,ServiceImpactingEventIncidentProperties:ServiceImpactingEventIncidentProperties,ErrorResponse:ErrorResponse,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,MetadataEntityListResult:MetadataEntityListResult,MetadataSupportedValueDetail:MetadataSupportedValueDetail,Resource:Resource,SystemData:SystemData,EventImpactedResourceListResult:EventImpactedResourceListResult,KeyValueItem:KeyValueItem,Events:Events,EventPropertiesArticle:EventPropertiesArticle,Link:Link,LinkDisplayText:LinkDisplayText,Impact:Impact,ImpactedServiceRegion:ImpactedServiceRegion,Update:Update,EventPropertiesRecommendedActions:EventPropertiesRecommendedActions,EventPropertiesRecommendedActionsItem:EventPropertiesRecommendedActionsItem,Faq:Faq,EventPropertiesAdditionalInformation:EventPropertiesAdditionalInformation,EmergingIssueListResult:EmergingIssueListResult,StatusBanner:StatusBanner,StatusActiveEvent:StatusActiveEvent,EmergingIssueImpact:EmergingIssueImpact,ImpactedRegion:ImpactedRegion,ProxyResource:ProxyResource,MetadataEntity:MetadataEntity,EventImpactedResource:EventImpactedResource,Event:Event,EmergingIssuesGetResult:EmergingIssuesGetResult,ImpactedResourceStatus:ImpactedResourceStatus});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2023-10-01-preview",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},filter={parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{constraints:{MinLength:1},serializedName:"subscriptionId",required:!0,type:{name:"String"}}},expand={parameterPath:["options","expand"],mapper:{serializedName:"$expand",type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},resourceUri={parameterPath:"resourceUri",mapper:{serializedName:"resourceUri",required:!0,type:{name:"String"}},skipEncoding:!0},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},name={parameterPath:"name",mapper:{serializedName:"name",required:!0,type:{name:"String"}}},eventTrackingId={parameterPath:"eventTrackingId",mapper:{serializedName:"eventTrackingId",required:!0,type:{name:"String"}}},impactedResourceName={parameterPath:"impactedResourceName",mapper:{constraints:{Pattern:new RegExp("^[^*#&+:<>%?]+$")},serializedName:"impactedResourceName",required:!0,type:{name:"String"}}},queryStartTime={parameterPath:["options","queryStartTime"],mapper:{serializedName:"queryStartTime",type:{name:"String"}}},issueName={parameterPath:"issueName",mapper:{serializedName:"issueName",required:!0,type:{name:"String"}}};class AvailabilityStatusesImpl{constructor(e){this.client=e}listBySubscriptionId(t){const e=this.listBySubscriptionIdPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionIdPagingPage(t,e)}}}listBySubscriptionIdPagingPage(r,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySubscriptionId(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySubscriptionIdNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySubscriptionIdPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listBySubscriptionIdPagingPage(o));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}listByResourceGroup(t,i){const e=this.listByResourceGroupPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(t,i,e)}}}listByResourceGroupPagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listByResourceGroup(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listByResourceGroupNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listByResourceGroupPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listByResourceGroupPagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}list(t,i){const e=this.listPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,i,e)}}}listPagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listPagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}_listBySubscriptionId(e){return this.client.sendOperationRequest({options:e},listBySubscriptionIdOperationSpec$1)}_listByResourceGroup(e,t){return this.client.sendOperationRequest({resourceGroupName:e,options:t},listByResourceGroupOperationSpec)}getByResource(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},getByResourceOperationSpec$1)}_list(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},listOperationSpec$5)}_listBySubscriptionIdNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listBySubscriptionIdNextOperationSpec$1)}_listByResourceGroupNext(e,t,i){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:t,options:i},listByResourceGroupNextOperationSpec)}_listNext(e,t,i){return this.client.sendOperationRequest({resourceUri:e,nextLink:t,options:i},listNextOperationSpec$4)}}const serializer$9=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$9},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$9},getByResourceOperationSpec$1={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatus},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$9},listOperationSpec$5={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$9},listBySubscriptionIdNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$9},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$9},listNextOperationSpec$4={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$9};class OperationsImpl{constructor(e){this.client=e}list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$4)}}const serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$4={path:"/providers/Microsoft.ResourceHealth/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$8};class MetadataImpl{constructor(e){this.client=e}list(t){const e=this.listPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,e)}}}listPagingPage(r,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listPagingPage(o));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$3)}getEntity(e,t){return this.client.sendOperationRequest({name:e,options:t},getEntityOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec$3)}}const serializer$7=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$3={path:"/providers/Microsoft.ResourceHealth/metadata",httpMethod:"GET",responses:{200:{bodyMapper:MetadataEntityListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$7},getEntityOperationSpec={path:"/providers/Microsoft.ResourceHealth/metadata/{name}",httpMethod:"GET",responses:{200:{bodyMapper:MetadataEntity},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,name],headerParameters:[accept],serializer:serializer$7},listNextOperationSpec$3={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:MetadataEntityListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$7};class ImpactedResourcesImpl{constructor(e){this.client=e}listBySubscriptionIdAndEventId(t,i){const e=this.listBySubscriptionIdAndEventIdPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionIdAndEventIdPagingPage(t,i,e)}}}listBySubscriptionIdAndEventIdPagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySubscriptionIdAndEventId(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySubscriptionIdAndEventIdNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySubscriptionIdAndEventIdPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}listByTenantIdAndEventId(t,i){const e=this.listByTenantIdAndEventIdPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByTenantIdAndEventIdPagingPage(t,i,e)}}}listByTenantIdAndEventIdPagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listByTenantIdAndEventId(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listByTenantIdAndEventIdNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listByTenantIdAndEventIdPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}_listBySubscriptionIdAndEventId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},listBySubscriptionIdAndEventIdOperationSpec$1)}get(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,impactedResourceName:t,options:i},getOperationSpec$1)}_listByTenantIdAndEventId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},listByTenantIdAndEventIdOperationSpec$1)}getByTenantId(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,impactedResourceName:t,options:i},getByTenantIdOperationSpec)}_listBySubscriptionIdAndEventIdNext(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,nextLink:t,options:i},listBySubscriptionIdAndEventIdNextOperationSpec$1)}_listByTenantIdAndEventIdNext(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,nextLink:t,options:i},listByTenantIdAndEventIdNextOperationSpec$1)}}const serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdAndEventIdOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,subscriptionId,eventTrackingId],headerParameters:[accept],serializer:serializer$6},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResource},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,eventTrackingId,impactedResourceName],headerParameters:[accept],serializer:serializer$6},listByTenantIdAndEventIdOperationSpec$1={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,eventTrackingId],headerParameters:[accept],serializer:serializer$6},getByTenantIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResource},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,eventTrackingId,impactedResourceName],headerParameters:[accept],serializer:serializer$6},listBySubscriptionIdAndEventIdNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,nextLink,eventTrackingId],headerParameters:[accept],serializer:serializer$6},listByTenantIdAndEventIdNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink,eventTrackingId],headerParameters:[accept],serializer:serializer$6};class SecurityAdvisoryImpactedResourcesImpl{constructor(e){this.client=e}listBySubscriptionIdAndEventId(t,i){const e=this.listBySubscriptionIdAndEventIdPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionIdAndEventIdPagingPage(t,i,e)}}}listBySubscriptionIdAndEventIdPagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySubscriptionIdAndEventId(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySubscriptionIdAndEventIdNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySubscriptionIdAndEventIdPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}listByTenantIdAndEventId(t,i){const e=this.listByTenantIdAndEventIdPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByTenantIdAndEventIdPagingPage(t,i,e)}}}listByTenantIdAndEventIdPagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listByTenantIdAndEventId(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listByTenantIdAndEventIdNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listByTenantIdAndEventIdPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listByTenantIdAndEventIdPagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}_listBySubscriptionIdAndEventId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},listBySubscriptionIdAndEventIdOperationSpec)}_listByTenantIdAndEventId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},listByTenantIdAndEventIdOperationSpec)}_listBySubscriptionIdAndEventIdNext(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,nextLink:t,options:i},listBySubscriptionIdAndEventIdNextOperationSpec)}_listByTenantIdAndEventIdNext(e,t,i){return this.client.sendOperationRequest({eventTrackingId:e,nextLink:t,options:i},listByTenantIdAndEventIdNextOperationSpec)}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdAndEventIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources",httpMethod:"POST",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,subscriptionId,eventTrackingId],headerParameters:[accept],serializer:serializer$5},listByTenantIdAndEventIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources",httpMethod:"POST",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,eventTrackingId],headerParameters:[accept],serializer:serializer$5},listBySubscriptionIdAndEventIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,nextLink,eventTrackingId],headerParameters:[accept],serializer:serializer$5},listByTenantIdAndEventIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EventImpactedResourceListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink,eventTrackingId],headerParameters:[accept],serializer:serializer$5};class EventsOperationsImpl{constructor(e){this.client=e}listBySubscriptionId(t){const e=this.listBySubscriptionIdPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionIdPagingPage(t,e)}}}listBySubscriptionIdPagingPage(r,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySubscriptionId(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySubscriptionIdNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySubscriptionIdPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listBySubscriptionIdPagingPage(o));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}listByTenantId(t){const e=this.listByTenantIdPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByTenantIdPagingPage(t,e)}}}listByTenantIdPagingPage(r,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listByTenantId(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listByTenantIdNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listByTenantIdPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listByTenantIdPagingPage(o));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}listBySingleResource(t,i){const e=this.listBySingleResourcePagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySingleResourcePagingPage(t,i,e)}}}listBySingleResourcePagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._listBySingleResource(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listBySingleResourceNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listBySingleResourcePagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listBySingleResourcePagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}_listBySubscriptionId(e){return this.client.sendOperationRequest({options:e},listBySubscriptionIdOperationSpec)}_listByTenantId(e){return this.client.sendOperationRequest({options:e},listByTenantIdOperationSpec)}_listBySingleResource(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},listBySingleResourceOperationSpec)}_listBySubscriptionIdNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listBySubscriptionIdNextOperationSpec)}_listByTenantIdNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listByTenantIdNextOperationSpec)}_listBySingleResourceNext(e,t,i){return this.client.sendOperationRequest({resourceUri:e,nextLink:t,options:i},listBySingleResourceNextOperationSpec)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listBySubscriptionIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,queryStartTime],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$4},listByTenantIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,queryStartTime],urlParameters:[$host],headerParameters:[accept],serializer:serializer$4},listBySingleResourceOperationSpec={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/events",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$4},listBySubscriptionIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$4},listByTenantIdNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$4},listBySingleResourceNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:Events},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$4};class EventOperationsImpl{constructor(e){this.client=e}getBySubscriptionIdAndTrackingId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},getBySubscriptionIdAndTrackingIdOperationSpec)}fetchDetailsBySubscriptionIdAndTrackingId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec)}getByTenantIdAndTrackingId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},getByTenantIdAndTrackingIdOperationSpec)}fetchDetailsByTenantIdAndTrackingId(e,t){return this.client.sendOperationRequest({eventTrackingId:e,options:t},fetchDetailsByTenantIdAndTrackingIdOperationSpec)}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),getBySubscriptionIdAndTrackingIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",httpMethod:"GET",responses:{200:{bodyMapper:Event},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,queryStartTime],urlParameters:[$host,subscriptionId,eventTrackingId],headerParameters:[accept],serializer:serializer$3},fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails",httpMethod:"POST",responses:{200:{bodyMapper:Event},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,eventTrackingId],headerParameters:[accept],serializer:serializer$3},getByTenantIdAndTrackingIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",httpMethod:"GET",responses:{200:{bodyMapper:Event},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,queryStartTime],urlParameters:[$host,eventTrackingId],headerParameters:[accept],serializer:serializer$3},fetchDetailsByTenantIdAndTrackingIdOperationSpec={path:"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails",httpMethod:"POST",responses:{200:{bodyMapper:Event},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,eventTrackingId],headerParameters:[accept],serializer:serializer$3};class ChildAvailabilityStatusesImpl{constructor(e){this.client=e}list(t,i){const e=this.listPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,i,e)}}}listPagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listPagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}getByResource(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},getByResourceOperationSpec)}_list(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},listOperationSpec$2)}_listNext(e,t,i){return this.client.sendOperationRequest({resourceUri:e,nextLink:t,options:i},listNextOperationSpec$2)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),getByResourceOperationSpec={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatus},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$2},listOperationSpec$2={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$2},listNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$2};class ChildResourcesImpl{constructor(e){this.client=e}list(t,i){const e=this.listPagingAll(t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,i,e)}}}listPagingPage(r,n,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==s?void 0:s.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r,n))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(r,t,n)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listPagingPage(o,l));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}_list(e,t){return this.client.sendOperationRequest({resourceUri:e,options:t},listOperationSpec$1)}_listNext(e,t,i){return this.client.sendOperationRequest({resourceUri:e,nextLink:t,options:i},listNextOperationSpec$1)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/{resourceUri}/providers/Microsoft.ResourceHealth/childResources",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,filter,expand],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:AvailabilityStatusListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$1};class EmergingIssuesImpl{constructor(e){this.client=e}list(t){const e=this.listPagingAll(t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(t,e)}}}listPagingPage(r,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,t=null==n?void 0:n.continuationToken;var i;for(t||(setContinuationToken(i=(e=yield tslib.__await(this._list(r))).value||[],t=e.nextLink),yield yield tslib.__await(i));t;){e=yield tslib.__await(this._listNext(t,r)),t=e.nextLink;var a=e.value||[];setContinuationToken(a,t),yield yield tslib.__await(a)}})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,t,i,a;try{for(var r,n=!0,s=tslib.__asyncValues(this.listPagingPage(o));!(e=(r=yield tslib.__await(s.next())).done);){a=r.value,n=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{n=!0}}}catch(e){t={error:e}}finally{try{n||e||!(i=s.return)||(yield tslib.__await(i.call(s)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}get(e,t){return this.client.sendOperationRequest({issueName:e,options:t},getOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.ResourceHealth/emergingIssues",httpMethod:"GET",responses:{200:{bodyMapper:EmergingIssueListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},getOperationSpec={path:"/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}",httpMethod:"GET",responses:{200:{bodyMapper:EmergingIssuesGetResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,issueName],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:EmergingIssueListResult},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class MicrosoftResourceHealth extends coreClient__namespace.ServiceClient{constructor(e,t,i){if(void 0===e)throw new Error("'credentials' cannot be null");let a;"string"==typeof t?a=t:"object"==typeof t&&(i=t);var r,t="azsdk-js-arm-resourcehealth/4.1.0-beta.1",t=(i=i||{}).userAgentOptions&&i.userAgentOptions.userAgentPrefix?i.userAgentOptions.userAgentPrefix+" "+t:t,t=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),i),{userAgentOptions:{userAgentPrefix:t},endpoint:null!=(t=null!=(t=i.endpoint)?t:i.baseUri)?t:"https://management.azure.com"});super(t);let n=!1;null!=i&&i.pipeline&&0<i.pipeline.getOrderedPolicies().length&&(r=i.pipeline.getOrderedPolicies(),n=r.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),i&&i.pipeline&&0!=i.pipeline.getOrderedPolicies().length&&n||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(r=t.credentialScopes)?r:t.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=a,this.$host=i.$host||"https://management.azure.com",this.apiVersion=i.apiVersion||"2023-10-01-preview",this.availabilityStatuses=new AvailabilityStatusesImpl(this),this.operations=new OperationsImpl(this),this.metadata=new MetadataImpl(this),this.impactedResources=new ImpactedResourcesImpl(this),this.securityAdvisoryImpactedResources=new SecurityAdvisoryImpactedResourcesImpl(this),this.eventsOperations=new EventsOperationsImpl(this),this.eventOperations=new EventOperationsImpl(this),this.childAvailabilityStatuses=new ChildAvailabilityStatusesImpl(this),this.childResources=new ChildResourcesImpl(this),this.emergingIssues=new EmergingIssuesImpl(this),this.addCustomApiVersionPolicy(i.apiVersion)}addCustomApiVersionPolicy(r){r&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(i,a){return tslib.__awaiter(this,void 0,void 0,function*(){var e,t=i.url.split("?");return 1<t.length&&(e=t[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+r:e),i.url=t[0]+"?"+e.join("&")),a(i)})}})}}exports.MicrosoftResourceHealth=MicrosoftResourceHealth,exports.getContinuationToken=getContinuationToken;
|