@azure/arm-resourcehealth 4.1.0-beta.1 → 4.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -8
- package/LICENSE +4 -4
- package/README.md +26 -17
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/microsoftResourceHealth.d.ts +2 -2
- package/dist/browser/microsoftResourceHealth.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/microsoftResourceHealth.js +39 -24
- package/dist/browser/microsoftResourceHealth.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +124 -59
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/availabilityStatuses.d.ts +3 -3
- package/dist/browser/operations/availabilityStatuses.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/availabilityStatuses.js +70 -136
- package/dist/browser/operations/availabilityStatuses.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/childAvailabilityStatuses.d.ts +3 -3
- package/dist/browser/operations/childAvailabilityStatuses.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/childAvailabilityStatuses.js +26 -48
- package/dist/browser/operations/childAvailabilityStatuses.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/childResources.d.ts +3 -3
- package/dist/browser/operations/childResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/childResources.js +26 -48
- package/dist/browser/operations/childResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/emergingIssues.d.ts +3 -3
- package/dist/browser/operations/emergingIssues.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/emergingIssues.js +26 -48
- package/dist/browser/operations/emergingIssues.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/eventOperations.d.ts +3 -3
- package/dist/browser/operations/eventOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/eventOperations.js +3 -2
- package/dist/browser/operations/eventOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/eventsOperations.d.ts +3 -3
- package/dist/browser/operations/eventsOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/eventsOperations.js +70 -136
- package/dist/browser/operations/eventsOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/impactedResources.d.ts +3 -3
- package/dist/browser/operations/impactedResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/impactedResources.js +48 -92
- package/dist/browser/operations/impactedResources.js.map +1 -0
- package/dist/browser/operations/index.d.ts +11 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +18 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/metadata.d.ts +3 -3
- package/dist/browser/operations/metadata.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/metadata.js +26 -48
- package/dist/browser/operations/metadata.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/securityAdvisoryImpactedResources.d.ts +3 -3
- package/dist/browser/operations/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/securityAdvisoryImpactedResources.js +48 -92
- package/dist/browser/operations/securityAdvisoryImpactedResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/availabilityStatuses.d.ts +1 -1
- package/dist/browser/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/availabilityStatuses.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/childAvailabilityStatuses.d.ts +1 -1
- package/dist/browser/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/childResources.d.ts +1 -1
- package/dist/browser/operationsInterfaces/childResources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/childResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/emergingIssues.d.ts +1 -1
- package/dist/browser/operationsInterfaces/emergingIssues.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/emergingIssues.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/eventOperations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/eventOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/eventOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/eventsOperations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/eventsOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/eventsOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/impactedResources.d.ts +1 -1
- package/dist/browser/operationsInterfaces/impactedResources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/impactedResources.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +11 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +18 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/metadata.d.ts +1 -1
- package/dist/browser/operationsInterfaces/metadata.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/metadata.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/securityAdvisoryImpactedResources.d.ts +1 -1
- package/dist/browser/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/microsoftResourceHealth.d.ts +30 -0
- package/dist/commonjs/microsoftResourceHealth.d.ts.map +1 -0
- package/dist/commonjs/microsoftResourceHealth.js +127 -0
- package/dist/commonjs/microsoftResourceHealth.js.map +1 -0
- package/{types/arm-resourcehealth.d.ts → dist/commonjs/models/index.d.ts} +1057 -1453
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +151 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +42 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1582 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +16 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +163 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/availabilityStatuses.d.ts +96 -0
- package/dist/commonjs/operations/availabilityStatuses.d.ts.map +1 -0
- package/dist/commonjs/operations/availabilityStatuses.js +380 -0
- package/dist/commonjs/operations/availabilityStatuses.js.map +1 -0
- package/dist/commonjs/operations/childAvailabilityStatuses.d.ts +51 -0
- package/dist/commonjs/operations/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist/commonjs/operations/childAvailabilityStatuses.js +170 -0
- package/dist/commonjs/operations/childAvailabilityStatuses.js.map +1 -0
- package/dist/commonjs/operations/childResources.d.ts +43 -0
- package/dist/commonjs/operations/childResources.d.ts.map +1 -0
- package/dist/commonjs/operations/childResources.js +140 -0
- package/dist/commonjs/operations/childResources.js.map +1 -0
- package/dist/commonjs/operations/emergingIssues.d.ts +38 -0
- package/dist/commonjs/operations/emergingIssues.d.ts.map +1 -0
- package/dist/commonjs/operations/emergingIssues.js +145 -0
- package/dist/commonjs/operations/emergingIssues.js.map +1 -0
- package/dist/commonjs/operations/eventOperations.d.ts +39 -0
- package/dist/commonjs/operations/eventOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/eventOperations.js +143 -0
- package/dist/commonjs/operations/eventOperations.js.map +1 -0
- package/dist/commonjs/operations/eventsOperations.d.ts +83 -0
- package/dist/commonjs/operations/eventsOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/eventsOperations.js +332 -0
- package/dist/commonjs/operations/eventsOperations.js.map +1 -0
- package/dist/commonjs/operations/impactedResources.d.ts +72 -0
- package/dist/commonjs/operations/impactedResources.d.ts.map +1 -0
- package/dist/commonjs/operations/impactedResources.js +291 -0
- package/dist/commonjs/operations/impactedResources.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +11 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +21 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/metadata.d.ts +38 -0
- package/dist/commonjs/operations/metadata.d.ts.map +1 -0
- package/dist/commonjs/operations/metadata.js +145 -0
- package/dist/commonjs/operations/metadata.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +18 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +52 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/securityAdvisoryImpactedResources.d.ts +58 -0
- package/dist/commonjs/operations/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist/commonjs/operations/securityAdvisoryImpactedResources.js +232 -0
- package/dist/commonjs/operations/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/availabilityStatuses.d.ts +37 -0
- package/dist/commonjs/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/availabilityStatuses.js +10 -0
- package/dist/commonjs/operationsInterfaces/availabilityStatuses.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/childAvailabilityStatuses.d.ts +23 -0
- package/dist/commonjs/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/childAvailabilityStatuses.js +10 -0
- package/dist/commonjs/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/childResources.d.ts +15 -0
- package/dist/commonjs/operationsInterfaces/childResources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/childResources.js +10 -0
- package/dist/commonjs/operationsInterfaces/childResources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/emergingIssues.d.ts +17 -0
- package/dist/commonjs/operationsInterfaces/emergingIssues.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/emergingIssues.js +10 -0
- package/dist/commonjs/operationsInterfaces/emergingIssues.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/eventOperations.d.ts +31 -0
- package/dist/commonjs/operationsInterfaces/eventOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/eventOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/eventOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/eventsOperations.d.ts +26 -0
- package/dist/commonjs/operationsInterfaces/eventsOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/eventsOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/eventsOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/impactedResources.d.ts +32 -0
- package/dist/commonjs/operationsInterfaces/impactedResources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/impactedResources.js +10 -0
- package/dist/commonjs/operationsInterfaces/impactedResources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +21 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/metadata.d.ts +17 -0
- package/dist/commonjs/operationsInterfaces/metadata.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/metadata.js +10 -0
- package/dist/commonjs/operationsInterfaces/metadata.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/securityAdvisoryImpactedResources.d.ts +18 -0
- package/dist/commonjs/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/securityAdvisoryImpactedResources.js +10 -0
- package/dist/commonjs/operationsInterfaces/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/microsoftResourceHealth.d.ts +30 -0
- package/dist/esm/microsoftResourceHealth.d.ts.map +1 -0
- package/dist/esm/microsoftResourceHealth.js +122 -0
- package/dist/esm/microsoftResourceHealth.js.map +1 -0
- package/dist/esm/models/index.d.ts +1057 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +148 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +42 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1579 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +16 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +160 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/availabilityStatuses.d.ts +96 -0
- package/dist/esm/operations/availabilityStatuses.d.ts.map +1 -0
- package/dist/esm/operations/availabilityStatuses.js +375 -0
- package/dist/esm/operations/availabilityStatuses.js.map +1 -0
- package/dist/esm/operations/childAvailabilityStatuses.d.ts +51 -0
- package/dist/esm/operations/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist/esm/operations/childAvailabilityStatuses.js +165 -0
- package/dist/esm/operations/childAvailabilityStatuses.js.map +1 -0
- package/dist/esm/operations/childResources.d.ts +43 -0
- package/dist/esm/operations/childResources.d.ts.map +1 -0
- package/dist/esm/operations/childResources.js +135 -0
- package/dist/esm/operations/childResources.js.map +1 -0
- package/dist/esm/operations/emergingIssues.d.ts +38 -0
- package/dist/esm/operations/emergingIssues.d.ts.map +1 -0
- package/dist/esm/operations/emergingIssues.js +140 -0
- package/dist/esm/operations/emergingIssues.js.map +1 -0
- package/dist/esm/operations/eventOperations.d.ts +39 -0
- package/dist/esm/operations/eventOperations.d.ts.map +1 -0
- package/dist/esm/operations/eventOperations.js +138 -0
- package/dist/esm/operations/eventOperations.js.map +1 -0
- package/dist/esm/operations/eventsOperations.d.ts +83 -0
- package/dist/esm/operations/eventsOperations.d.ts.map +1 -0
- package/dist/esm/operations/eventsOperations.js +327 -0
- package/dist/esm/operations/eventsOperations.js.map +1 -0
- package/dist/esm/operations/impactedResources.d.ts +72 -0
- package/dist/esm/operations/impactedResources.d.ts.map +1 -0
- package/dist/esm/operations/impactedResources.js +286 -0
- package/dist/esm/operations/impactedResources.js.map +1 -0
- package/dist/esm/operations/index.d.ts +11 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +18 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/metadata.d.ts +38 -0
- package/dist/esm/operations/metadata.d.ts.map +1 -0
- package/dist/esm/operations/metadata.js +140 -0
- package/dist/esm/operations/metadata.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +18 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +47 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/securityAdvisoryImpactedResources.d.ts +58 -0
- package/dist/esm/operations/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist/esm/operations/securityAdvisoryImpactedResources.js +227 -0
- package/dist/esm/operations/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/availabilityStatuses.d.ts +37 -0
- package/dist/esm/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/availabilityStatuses.js +9 -0
- package/dist/esm/operationsInterfaces/availabilityStatuses.js.map +1 -0
- package/dist/esm/operationsInterfaces/childAvailabilityStatuses.d.ts +23 -0
- package/dist/esm/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/childAvailabilityStatuses.js +9 -0
- package/dist/esm/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
- package/dist/esm/operationsInterfaces/childResources.d.ts +15 -0
- package/dist/esm/operationsInterfaces/childResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/childResources.js +9 -0
- package/dist/esm/operationsInterfaces/childResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/emergingIssues.d.ts +17 -0
- package/dist/esm/operationsInterfaces/emergingIssues.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/emergingIssues.js +9 -0
- package/dist/esm/operationsInterfaces/emergingIssues.js.map +1 -0
- package/dist/esm/operationsInterfaces/eventOperations.d.ts +31 -0
- package/dist/esm/operationsInterfaces/eventOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/eventOperations.js +9 -0
- package/dist/esm/operationsInterfaces/eventOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/eventsOperations.d.ts +26 -0
- package/dist/esm/operationsInterfaces/eventsOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/eventsOperations.js +9 -0
- package/dist/esm/operationsInterfaces/eventsOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/impactedResources.d.ts +32 -0
- package/dist/esm/operationsInterfaces/impactedResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/impactedResources.js +9 -0
- package/dist/esm/operationsInterfaces/impactedResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +11 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +18 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/metadata.d.ts +17 -0
- package/dist/esm/operationsInterfaces/metadata.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/metadata.js +9 -0
- package/dist/esm/operationsInterfaces/metadata.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +10 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/securityAdvisoryImpactedResources.d.ts +18 -0
- package/dist/esm/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/securityAdvisoryImpactedResources.js +9 -0
- package/dist/esm/operationsInterfaces/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/microsoftResourceHealth.d.ts +30 -0
- package/dist/react-native/microsoftResourceHealth.d.ts.map +1 -0
- package/dist/react-native/microsoftResourceHealth.js +122 -0
- package/dist/react-native/microsoftResourceHealth.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1057 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +148 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +42 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1579 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +16 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +160 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/availabilityStatuses.d.ts +96 -0
- package/dist/react-native/operations/availabilityStatuses.d.ts.map +1 -0
- package/dist/react-native/operations/availabilityStatuses.js +375 -0
- package/dist/react-native/operations/availabilityStatuses.js.map +1 -0
- package/dist/react-native/operations/childAvailabilityStatuses.d.ts +51 -0
- package/dist/react-native/operations/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist/react-native/operations/childAvailabilityStatuses.js +165 -0
- package/dist/react-native/operations/childAvailabilityStatuses.js.map +1 -0
- package/dist/react-native/operations/childResources.d.ts +43 -0
- package/dist/react-native/operations/childResources.d.ts.map +1 -0
- package/dist/react-native/operations/childResources.js +135 -0
- package/dist/react-native/operations/childResources.js.map +1 -0
- package/dist/react-native/operations/emergingIssues.d.ts +38 -0
- package/dist/react-native/operations/emergingIssues.d.ts.map +1 -0
- package/dist/react-native/operations/emergingIssues.js +140 -0
- package/dist/react-native/operations/emergingIssues.js.map +1 -0
- package/dist/react-native/operations/eventOperations.d.ts +39 -0
- package/dist/react-native/operations/eventOperations.d.ts.map +1 -0
- package/dist/react-native/operations/eventOperations.js +138 -0
- package/dist/react-native/operations/eventOperations.js.map +1 -0
- package/dist/react-native/operations/eventsOperations.d.ts +83 -0
- package/dist/react-native/operations/eventsOperations.d.ts.map +1 -0
- package/dist/react-native/operations/eventsOperations.js +327 -0
- package/dist/react-native/operations/eventsOperations.js.map +1 -0
- package/dist/react-native/operations/impactedResources.d.ts +72 -0
- package/dist/react-native/operations/impactedResources.d.ts.map +1 -0
- package/dist/react-native/operations/impactedResources.js +286 -0
- package/dist/react-native/operations/impactedResources.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +11 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +18 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/metadata.d.ts +38 -0
- package/dist/react-native/operations/metadata.d.ts.map +1 -0
- package/dist/react-native/operations/metadata.js +140 -0
- package/dist/react-native/operations/metadata.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +18 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +47 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/securityAdvisoryImpactedResources.d.ts +58 -0
- package/dist/react-native/operations/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist/react-native/operations/securityAdvisoryImpactedResources.js +227 -0
- package/dist/react-native/operations/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/availabilityStatuses.d.ts +37 -0
- package/dist/react-native/operationsInterfaces/availabilityStatuses.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/availabilityStatuses.js +9 -0
- package/dist/react-native/operationsInterfaces/availabilityStatuses.js.map +1 -0
- package/dist/react-native/operationsInterfaces/childAvailabilityStatuses.d.ts +23 -0
- package/dist/react-native/operationsInterfaces/childAvailabilityStatuses.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/childAvailabilityStatuses.js +9 -0
- package/dist/react-native/operationsInterfaces/childAvailabilityStatuses.js.map +1 -0
- package/dist/react-native/operationsInterfaces/childResources.d.ts +15 -0
- package/dist/react-native/operationsInterfaces/childResources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/childResources.js +9 -0
- package/dist/react-native/operationsInterfaces/childResources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/emergingIssues.d.ts +17 -0
- package/dist/react-native/operationsInterfaces/emergingIssues.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/emergingIssues.js +9 -0
- package/dist/react-native/operationsInterfaces/emergingIssues.js.map +1 -0
- package/dist/react-native/operationsInterfaces/eventOperations.d.ts +31 -0
- package/dist/react-native/operationsInterfaces/eventOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/eventOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/eventOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/eventsOperations.d.ts +26 -0
- package/dist/react-native/operationsInterfaces/eventsOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/eventsOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/eventsOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/impactedResources.d.ts +32 -0
- package/dist/react-native/operationsInterfaces/impactedResources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/impactedResources.js +9 -0
- package/dist/react-native/operationsInterfaces/impactedResources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +18 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/metadata.d.ts +17 -0
- package/dist/react-native/operationsInterfaces/metadata.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/metadata.js +9 -0
- package/dist/react-native/operationsInterfaces/metadata.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +10 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/securityAdvisoryImpactedResources.d.ts +18 -0
- package/dist/react-native/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/securityAdvisoryImpactedResources.js +9 -0
- package/dist/react-native/operationsInterfaces/securityAdvisoryImpactedResources.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +83 -73
- package/dist/index.js +0 -4273
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js +0 -38
- package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +0 -62
- package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +0 -61
- package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js.map +0 -1
- package/dist-esm/samples-dev/availabilityStatusesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/availabilityStatusesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/availabilityStatusesListSample.js +0 -57
- package/dist-esm/samples-dev/availabilityStatusesListSample.js.map +0 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.d.ts +0 -2
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +0 -40
- package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +0 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +0 -57
- package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +0 -1
- package/dist-esm/samples-dev/childResourcesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/childResourcesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/childResourcesListSample.js +0 -57
- package/dist-esm/samples-dev/childResourcesListSample.js.map +0 -1
- package/dist-esm/samples-dev/emergingIssuesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/emergingIssuesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/emergingIssuesGetSample.js +0 -36
- package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/emergingIssuesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/emergingIssuesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/emergingIssuesListSample.js +0 -56
- package/dist-esm/samples-dev/emergingIssuesListSample.js.map +0 -1
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js +0 -37
- package/dist-esm/samples-dev/eventFetchDetailsBySubscriptionIdAndTrackingIdSample.js.map +0 -1
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js +0 -36
- package/dist-esm/samples-dev/eventFetchDetailsByTenantIdAndTrackingIdSample.js.map +0 -1
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js +0 -43
- package/dist-esm/samples-dev/eventGetBySubscriptionIdAndTrackingIdSample.js.map +0 -1
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js +0 -42
- package/dist-esm/samples-dev/eventGetByTenantIdAndTrackingIdSample.js.map +0 -1
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js +0 -57
- package/dist-esm/samples-dev/eventsListBySingleResourceSample.js.map +0 -1
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js +0 -63
- package/dist-esm/samples-dev/eventsListBySubscriptionIdSample.js.map +0 -1
- package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventsListByTenantIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js +0 -62
- package/dist-esm/samples-dev/eventsListByTenantIdSample.js.map +0 -1
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js +0 -37
- package/dist-esm/samples-dev/impactedResourcesGetByTenantIdSample.js.map +0 -1
- package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/impactedResourcesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/impactedResourcesGetSample.js +0 -38
- package/dist-esm/samples-dev/impactedResourcesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js +0 -62
- package/dist-esm/samples-dev/impactedResourcesListBySubscriptionIdAndEventIdSample.js.map +0 -1
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js +0 -61
- package/dist-esm/samples-dev/impactedResourcesListByTenantIdAndEventIdSample.js.map +0 -1
- package/dist-esm/samples-dev/metadataGetEntitySample.d.ts +0 -2
- package/dist-esm/samples-dev/metadataGetEntitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/metadataGetEntitySample.js +0 -36
- package/dist-esm/samples-dev/metadataGetEntitySample.js.map +0 -1
- package/dist-esm/samples-dev/metadataListSample.d.ts +0 -2
- package/dist-esm/samples-dev/metadataListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/metadataListSample.js +0 -56
- package/dist-esm/samples-dev/metadataListSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -37
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js +0 -58
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdSample.js.map +0 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts +0 -2
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js +0 -57
- package/dist-esm/samples-dev/securityAdvisoryImpactedResourcesListByTenantIdAndEventIdSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/microsoftResourceHealth.d.ts.map +0 -1
- package/dist-esm/src/microsoftResourceHealth.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/availabilityStatuses.d.ts.map +0 -1
- package/dist-esm/src/operations/availabilityStatuses.js.map +0 -1
- package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +0 -1
- package/dist-esm/src/operations/childAvailabilityStatuses.js.map +0 -1
- package/dist-esm/src/operations/childResources.d.ts.map +0 -1
- package/dist-esm/src/operations/childResources.js.map +0 -1
- package/dist-esm/src/operations/emergingIssues.d.ts.map +0 -1
- package/dist-esm/src/operations/emergingIssues.js.map +0 -1
- package/dist-esm/src/operations/eventOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/eventOperations.js.map +0 -1
- package/dist-esm/src/operations/eventsOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/eventsOperations.js.map +0 -1
- package/dist-esm/src/operations/impactedResources.d.ts.map +0 -1
- package/dist-esm/src/operations/impactedResources.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -11
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -18
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/metadata.d.ts.map +0 -1
- package/dist-esm/src/operations/metadata.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.d.ts.map +0 -1
- package/dist-esm/src/operations/securityAdvisoryImpactedResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/availabilityStatuses.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/childAvailabilityStatuses.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/childResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/childResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/emergingIssues.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/emergingIssues.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/eventOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/eventOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/eventsOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/eventsOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/impactedResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/impactedResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -18
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/metadata.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/metadata.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/securityAdvisoryImpactedResources.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/resourcehealth_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/resourcehealth_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/resourcehealth_operations_test.spec.js +0 -56
- package/dist-esm/test/resourcehealth_operations_test.spec.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/microsoftResourceHealth.ts +0 -196
- package/src/models/index.ts +0 -1229
- package/src/models/mappers.ts +0 -1620
- package/src/models/parameters.ts +0 -179
- package/src/operations/availabilityStatuses.ts +0 -499
- package/src/operations/childAvailabilityStatuses.ts +0 -218
- package/src/operations/childResources.ts +0 -176
- package/src/operations/emergingIssues.ts +0 -183
- package/src/operations/eventOperations.ts +0 -184
- package/src/operations/eventsOperations.ts +0 -434
- package/src/operations/impactedResources.ts +0 -414
- package/src/operations/index.ts +0 -18
- package/src/operations/metadata.ts +0 -182
- package/src/operations/operations.ts +0 -59
- package/src/operations/securityAdvisoryImpactedResources.ts +0 -342
- package/src/operationsInterfaces/availabilityStatuses.ts +0 -64
- package/src/operationsInterfaces/childAvailabilityStatuses.ts +0 -43
- package/src/operationsInterfaces/childResources.ts +0 -30
- package/src/operationsInterfaces/emergingIssues.ts +0 -37
- package/src/operationsInterfaces/eventOperations.ts +0 -60
- package/src/operationsInterfaces/eventsOperations.ts +0 -47
- package/src/operationsInterfaces/impactedResources.ts +0 -63
- package/src/operationsInterfaces/index.ts +0 -18
- package/src/operationsInterfaces/metadata.ts +0 -36
- package/src/operationsInterfaces/operations.ts +0 -21
- package/src/operationsInterfaces/securityAdvisoryImpactedResources.ts +0 -37
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/availabilityStatuses.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/childAvailabilityStatuses.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/childResources.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/emergingIssues.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/eventOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/eventsOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/impactedResources.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/metadata.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/securityAdvisoryImpactedResources.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/review/{arm-resourcehealth.api.md → arm-resourcehealth-node.api.md} +0 -0
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing EmergingIssues operations. */
|
|
15
14
|
export class EmergingIssuesImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class EmergingIssues class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,57 +34,35 @@ export class EmergingIssuesImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
try {
|
|
72
|
-
const page = _c;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
finally {
|
|
76
|
-
_d = true;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
88
66
|
}
|
|
89
67
|
/**
|
|
90
68
|
* Lists Azure services' emerging issues.
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CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { EmergingIssues } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n EmergingIssuesGetResult,\n EmergingIssuesListNextOptionalParams,\n EmergingIssuesListOptionalParams,\n EmergingIssuesListResponse,\n IssueNameParameter,\n EmergingIssuesGetOptionalParams,\n EmergingIssuesGetResponse,\n EmergingIssuesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EmergingIssues operations. */\nexport class EmergingIssuesImpl implements EmergingIssues {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class EmergingIssues class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists Azure services' emerging issues.\n * @param options The options parameters.\n */\n public list(\n options?: EmergingIssuesListOptionalParams\n ): PagedAsyncIterableIterator<EmergingIssuesGetResult> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: EmergingIssuesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EmergingIssuesGetResult[]> {\n let result: EmergingIssuesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: EmergingIssuesListOptionalParams\n ): AsyncIterableIterator<EmergingIssuesGetResult> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Azure services' emerging issues.\n * @param options The options parameters.\n */\n private _list(\n options?: EmergingIssuesListOptionalParams\n ): Promise<EmergingIssuesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets Azure services' emerging issues.\n * @param issueName The name of the emerging issue.\n * @param options The options parameters.\n */\n get(\n issueName: IssueNameParameter,\n options?: EmergingIssuesGetOptionalParams\n ): Promise<EmergingIssuesGetResponse> {\n return this.client.sendOperationRequest(\n { issueName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: EmergingIssuesListNextOptionalParams\n ): Promise<EmergingIssuesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/emergingIssues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssueListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssuesGetResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.issueName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssueListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventOperations } from "../operationsInterfaces";
|
|
2
|
-
import { MicrosoftResourceHealth } from "../microsoftResourceHealth";
|
|
3
|
-
import { EventGetBySubscriptionIdAndTrackingIdOptionalParams, EventGetBySubscriptionIdAndTrackingIdResponse, EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams, EventFetchDetailsBySubscriptionIdAndTrackingIdResponse, EventGetByTenantIdAndTrackingIdOptionalParams, EventGetByTenantIdAndTrackingIdResponse, EventFetchDetailsByTenantIdAndTrackingIdOptionalParams, EventFetchDetailsByTenantIdAndTrackingIdResponse } from "../models";
|
|
1
|
+
import { EventOperations } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { MicrosoftResourceHealth } from "../microsoftResourceHealth.js";
|
|
3
|
+
import { EventGetBySubscriptionIdAndTrackingIdOptionalParams, EventGetBySubscriptionIdAndTrackingIdResponse, EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams, EventFetchDetailsBySubscriptionIdAndTrackingIdResponse, EventGetByTenantIdAndTrackingIdOptionalParams, EventGetByTenantIdAndTrackingIdResponse, EventFetchDetailsByTenantIdAndTrackingIdOptionalParams, EventFetchDetailsByTenantIdAndTrackingIdResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing EventOperations operations. */
|
|
5
5
|
export declare class EventOperationsImpl implements EventOperations {
|
|
6
6
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/eventOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,mDAAmD,EACnD,6CAA6C,EAC7C,4DAA4D,EAC5D,sDAAsD,EACtD,6CAA6C,EAC7C,uCAAuC,EACvC,sDAAsD,EACtD,gDAAgD,EACjD,MAAM,oBAAoB,CAAC;AAE5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACH,gCAAgC,CAC9B,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,mDAAmD,GAC5D,OAAO,CAAC,6CAA6C,CAAC;IAOzD;;;;;OAKG;IACH,yCAAyC,CACvC,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CAAC,sDAAsD,CAAC;IAOlE;;;;OAIG;IACH,0BAA0B,CACxB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;IAOnD;;;;;OAKG;IACH,mCAAmC,CACjC,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CAAC,gDAAgD,CAAC;CAM7D"}
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
-
import * as Mappers from "../models/mappers";
|
|
10
|
-
import * as Parameters from "../models/parameters";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing EventOperations operations. */
|
|
12
12
|
export class EventOperationsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class EventOperations class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventOperations.js","sourceRoot":"","sources":["../../../src/operations/eventOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,gCAAgC,CAC9B,eAAuB,EACvB,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,eAAe,EAAE,OAAO,EAAE,EAC5B,6CAA6C,CAC9C,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,yCAAyC,CACvC,eAAuB,EACvB,OAAsE;QAEtE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,eAAe,EAAE,OAAO,EAAE,EAC5B,sDAAsD,CACvD,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,0BAA0B,CACxB,eAAuB,EACvB,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,eAAe,EAAE,OAAO,EAAE,EAC5B,uCAAuC,CACxC,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,mCAAmC,CACjC,eAAuB,EACvB,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE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AAK;SAC1B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,cAAc;KAC1B;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC;IAC7D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gDAAgD,GAA6B;IACjF,IAAI,EACF,gFAAgF;IAClF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,KAAK;SAC1B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC;IAC7D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { EventOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n EventGetBySubscriptionIdAndTrackingIdOptionalParams,\n EventGetBySubscriptionIdAndTrackingIdResponse,\n EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams,\n EventFetchDetailsBySubscriptionIdAndTrackingIdResponse,\n EventGetByTenantIdAndTrackingIdOptionalParams,\n EventGetByTenantIdAndTrackingIdResponse,\n EventFetchDetailsByTenantIdAndTrackingIdOptionalParams,\n EventFetchDetailsByTenantIdAndTrackingIdResponse\n} from \"../models/index.js\";\n\n/** Class containing EventOperations operations. */\nexport class EventOperationsImpl implements EventOperations {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class EventOperations class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Service health event in the subscription by event tracking id\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n getBySubscriptionIdAndTrackingId(\n eventTrackingId: string,\n options?: EventGetBySubscriptionIdAndTrackingIdOptionalParams\n ): Promise<EventGetBySubscriptionIdAndTrackingIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n getBySubscriptionIdAndTrackingIdOperationSpec\n );\n }\n\n /**\n * Service health event details in the subscription by event tracking id. This can be used to fetch\n * sensitive properties for Security Advisory events\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n fetchDetailsBySubscriptionIdAndTrackingId(\n eventTrackingId: string,\n options?: EventFetchDetailsBySubscriptionIdAndTrackingIdOptionalParams\n ): Promise<EventFetchDetailsBySubscriptionIdAndTrackingIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec\n );\n }\n\n /**\n * Service health event in the tenant by event tracking id\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n getByTenantIdAndTrackingId(\n eventTrackingId: string,\n options?: EventGetByTenantIdAndTrackingIdOptionalParams\n ): Promise<EventGetByTenantIdAndTrackingIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n getByTenantIdAndTrackingIdOperationSpec\n );\n }\n\n /**\n * Service health event details in the tenant by event tracking id. This can be used to fetch sensitive\n * properties for Security Advisory events\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n fetchDetailsByTenantIdAndTrackingId(\n eventTrackingId: string,\n options?: EventFetchDetailsByTenantIdAndTrackingIdOptionalParams\n ): Promise<EventFetchDetailsByTenantIdAndTrackingIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n fetchDetailsByTenantIdAndTrackingIdOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getBySubscriptionIdAndTrackingIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Event\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.queryStartTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst fetchDetailsBySubscriptionIdAndTrackingIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Event\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByTenantIdAndTrackingIdOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Event\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.queryStartTime\n ],\n urlParameters: [Parameters.$host, Parameters.eventTrackingId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst fetchDetailsByTenantIdAndTrackingIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Event\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.eventTrackingId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { EventsOperations } from "../operationsInterfaces";
|
|
3
|
-
import { MicrosoftResourceHealth } from "../microsoftResourceHealth";
|
|
4
|
-
import { Event, EventsListBySubscriptionIdOptionalParams, EventsListByTenantIdOptionalParams, EventsListBySingleResourceOptionalParams } from "../models";
|
|
2
|
+
import { EventsOperations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { MicrosoftResourceHealth } from "../microsoftResourceHealth.js";
|
|
4
|
+
import { Event, EventsListBySubscriptionIdOptionalParams, EventsListByTenantIdOptionalParams, EventsListBySingleResourceOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing EventsOperations operations. */
|
|
6
6
|
export declare class EventsOperationsImpl implements EventsOperations {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventsOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/eventsOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAIpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,KAAK,EAEL,wCAAwC,EAGxC,kCAAkC,EAGlC,wCAAwC,EAKzC,MAAM,oBAAoB,CAAC;AAG5B,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,oBAAoB,CACzB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,KAAK,CAAC;YAkBrB,8BAA8B;YAsB9B,6BAA6B;IAQ5C;;;OAGG;IACI,cAAc,CACnB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,0BAA0B,CAAC,KAAK,CAAC;YAkBrB,wBAAwB;YAsBxB,uBAAuB;IAQtC;;;;;;;;OAQG;IACI,oBAAoB,CACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,KAAK,CAAC;YAsBrB,8BAA8B;YA2B9B,6BAA6B;IAY5C;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAS7B;;;OAGG;IACH,OAAO,CAAC,eAAe;IASvB;;;;;;;;OAQG;IACH,OAAO,CAAC,qBAAqB;IAU7B;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAUjC;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;;;;;;;OASG;IACH,OAAO,CAAC,yBAAyB;CAUlC"}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing EventsOperations operations. */
|
|
15
14
|
export class EventsOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class EventsOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,57 +34,35 @@ export class EventsOperationsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listBySubscriptionIdPagingPage(options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listBySubscriptionIdPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listBySubscriptionIdPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._listBySubscriptionId(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listBySubscriptionIdNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listBySubscriptionIdPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionIdPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
try {
|
|
72
|
-
const page = _c;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
finally {
|
|
76
|
-
_d = true;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
62
|
+
async *listBySubscriptionIdPagingAll(options) {
|
|
63
|
+
for await (const page of this.listBySubscriptionIdPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
88
66
|
}
|
|
89
67
|
/**
|
|
90
68
|
* Lists current service health events in the tenant.
|
|
@@ -100,57 +78,35 @@ export class EventsOperationsImpl {
|
|
|
100
78
|
return this;
|
|
101
79
|
},
|
|
102
80
|
byPage: (settings) => {
|
|
103
|
-
if (settings
|
|
81
|
+
if (settings?.maxPageSize) {
|
|
104
82
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
83
|
}
|
|
106
84
|
return this.listByTenantIdPagingPage(options, settings);
|
|
107
85
|
}
|
|
108
86
|
};
|
|
109
87
|
}
|
|
110
|
-
listByTenantIdPagingPage(options, settings) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
});
|
|
88
|
+
async *listByTenantIdPagingPage(options, settings) {
|
|
89
|
+
let result;
|
|
90
|
+
let continuationToken = settings?.continuationToken;
|
|
91
|
+
if (!continuationToken) {
|
|
92
|
+
result = await this._listByTenantId(options);
|
|
93
|
+
let page = result.value || [];
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
setContinuationToken(page, continuationToken);
|
|
96
|
+
yield page;
|
|
97
|
+
}
|
|
98
|
+
while (continuationToken) {
|
|
99
|
+
result = await this._listByTenantIdNext(continuationToken, options);
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
129
105
|
}
|
|
130
|
-
listByTenantIdPagingAll(options) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
for (var _d = true, _e = __asyncValues(this.listByTenantIdPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
135
|
-
_c = _f.value;
|
|
136
|
-
_d = false;
|
|
137
|
-
try {
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
140
|
-
}
|
|
141
|
-
finally {
|
|
142
|
-
_d = true;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
147
|
-
finally {
|
|
148
|
-
try {
|
|
149
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
150
|
-
}
|
|
151
|
-
finally { if (e_2) throw e_2.error; }
|
|
152
|
-
}
|
|
153
|
-
});
|
|
106
|
+
async *listByTenantIdPagingAll(options) {
|
|
107
|
+
for await (const page of this.listByTenantIdPagingPage(options)) {
|
|
108
|
+
yield* page;
|
|
109
|
+
}
|
|
154
110
|
}
|
|
155
111
|
/**
|
|
156
112
|
* Lists current service health events for given resource.
|
|
@@ -171,57 +127,35 @@ export class EventsOperationsImpl {
|
|
|
171
127
|
return this;
|
|
172
128
|
},
|
|
173
129
|
byPage: (settings) => {
|
|
174
|
-
if (settings
|
|
130
|
+
if (settings?.maxPageSize) {
|
|
175
131
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
176
132
|
}
|
|
177
133
|
return this.listBySingleResourcePagingPage(resourceUri, options, settings);
|
|
178
134
|
}
|
|
179
135
|
};
|
|
180
136
|
}
|
|
181
|
-
listBySingleResourcePagingPage(resourceUri, options, settings) {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
});
|
|
137
|
+
async *listBySingleResourcePagingPage(resourceUri, options, settings) {
|
|
138
|
+
let result;
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listBySingleResource(resourceUri, options);
|
|
142
|
+
let page = result.value || [];
|
|
143
|
+
continuationToken = result.nextLink;
|
|
144
|
+
setContinuationToken(page, continuationToken);
|
|
145
|
+
yield page;
|
|
146
|
+
}
|
|
147
|
+
while (continuationToken) {
|
|
148
|
+
result = await this._listBySingleResourceNext(resourceUri, continuationToken, options);
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
let page = result.value || [];
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
200
154
|
}
|
|
201
|
-
listBySingleResourcePagingAll(resourceUri, options) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
for (var _d = true, _e = __asyncValues(this.listBySingleResourcePagingPage(resourceUri, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
206
|
-
_c = _f.value;
|
|
207
|
-
_d = false;
|
|
208
|
-
try {
|
|
209
|
-
const page = _c;
|
|
210
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
211
|
-
}
|
|
212
|
-
finally {
|
|
213
|
-
_d = true;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
218
|
-
finally {
|
|
219
|
-
try {
|
|
220
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
221
|
-
}
|
|
222
|
-
finally { if (e_3) throw e_3.error; }
|
|
223
|
-
}
|
|
224
|
-
});
|
|
155
|
+
async *listBySingleResourcePagingAll(resourceUri, options) {
|
|
156
|
+
for await (const page of this.listBySingleResourcePagingPage(resourceUri, options)) {
|
|
157
|
+
yield* page;
|
|
158
|
+
}
|
|
225
159
|
}
|
|
226
160
|
/**
|
|
227
161
|
* Lists service health events in the subscription.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventsOperations.js","sourceRoot":"","sources":["../../../src/operations/eventsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkBtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,oBAAoB,CACzB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,6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AE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,MAAM;SAC3B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,MAAM;SAC3B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { EventsOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n Event,\n EventsListBySubscriptionIdNextOptionalParams,\n EventsListBySubscriptionIdOptionalParams,\n EventsListBySubscriptionIdResponse,\n EventsListByTenantIdNextOptionalParams,\n EventsListByTenantIdOptionalParams,\n EventsListByTenantIdResponse,\n EventsListBySingleResourceNextOptionalParams,\n EventsListBySingleResourceOptionalParams,\n EventsListBySingleResourceResponse,\n EventsListBySubscriptionIdNextResponse,\n EventsListByTenantIdNextResponse,\n EventsListBySingleResourceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EventsOperations operations. */\nexport class EventsOperationsImpl implements EventsOperations {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class EventsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists service health events in the subscription.\n * @param options The options parameters.\n */\n public listBySubscriptionId(\n options?: EventsListBySubscriptionIdOptionalParams\n ): PagedAsyncIterableIterator<Event> {\n const iter = this.listBySubscriptionIdPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionIdPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionIdPagingPage(\n options?: EventsListBySubscriptionIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Event[]> {\n let result: EventsListBySubscriptionIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptionId(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionIdNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionIdPagingAll(\n options?: EventsListBySubscriptionIdOptionalParams\n ): AsyncIterableIterator<Event> {\n for await (const page of this.listBySubscriptionIdPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists current service health events in the tenant.\n * @param options The options parameters.\n */\n public listByTenantId(\n options?: EventsListByTenantIdOptionalParams\n ): PagedAsyncIterableIterator<Event> {\n const iter = this.listByTenantIdPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByTenantIdPagingPage(options, settings);\n }\n };\n }\n\n private async *listByTenantIdPagingPage(\n options?: EventsListByTenantIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Event[]> {\n let result: EventsListByTenantIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTenantId(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByTenantIdNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByTenantIdPagingAll(\n options?: EventsListByTenantIdOptionalParams\n ): AsyncIterableIterator<Event> {\n for await (const page of this.listByTenantIdPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists current service health events for given resource.\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n public listBySingleResource(\n resourceUri: string,\n options?: EventsListBySingleResourceOptionalParams\n ): PagedAsyncIterableIterator<Event> {\n const iter = this.listBySingleResourcePagingAll(resourceUri, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySingleResourcePagingPage(\n resourceUri,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySingleResourcePagingPage(\n resourceUri: string,\n options?: EventsListBySingleResourceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Event[]> {\n let result: EventsListBySingleResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySingleResource(resourceUri, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySingleResourceNext(\n resourceUri,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySingleResourcePagingAll(\n resourceUri: string,\n options?: EventsListBySingleResourceOptionalParams\n ): AsyncIterableIterator<Event> {\n for await (const page of this.listBySingleResourcePagingPage(\n resourceUri,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists service health events in the subscription.\n * @param options The options parameters.\n */\n private _listBySubscriptionId(\n options?: EventsListBySubscriptionIdOptionalParams\n ): Promise<EventsListBySubscriptionIdResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionIdOperationSpec\n );\n }\n\n /**\n * Lists current service health events in the tenant.\n * @param options The options parameters.\n */\n private _listByTenantId(\n options?: EventsListByTenantIdOptionalParams\n ): Promise<EventsListByTenantIdResponse> {\n return this.client.sendOperationRequest(\n { options },\n listByTenantIdOperationSpec\n );\n }\n\n /**\n * Lists current service health events for given resource.\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n private _listBySingleResource(\n resourceUri: string,\n options?: EventsListBySingleResourceOptionalParams\n ): Promise<EventsListBySingleResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listBySingleResourceOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionIdNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdNext(\n nextLink: string,\n options?: EventsListBySubscriptionIdNextOptionalParams\n ): Promise<EventsListBySubscriptionIdNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionIdNextOperationSpec\n );\n }\n\n /**\n * ListByTenantIdNext\n * @param nextLink The nextLink from the previous successful call to the ListByTenantId method.\n * @param options The options parameters.\n */\n private _listByTenantIdNext(\n nextLink: string,\n options?: EventsListByTenantIdNextOptionalParams\n ): Promise<EventsListByTenantIdNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listByTenantIdNextOperationSpec\n );\n }\n\n /**\n * ListBySingleResourceNext\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param nextLink The nextLink from the previous successful call to the ListBySingleResource method.\n * @param options The options parameters.\n */\n private _listBySingleResourceNext(\n resourceUri: string,\n nextLink: string,\n options?: EventsListBySingleResourceNextOptionalParams\n ): Promise<EventsListBySingleResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listBySingleResourceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Events\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.queryStartTime\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/events\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Events\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.queryStartTime\n ],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySingleResourceOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.ResourceHealth/events\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Events\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Events\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Events\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySingleResourceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Events\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { ImpactedResources } from "../operationsInterfaces";
|
|
3
|
-
import { MicrosoftResourceHealth } from "../microsoftResourceHealth";
|
|
4
|
-
import { EventImpactedResource, ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ImpactedResourcesListByTenantIdAndEventIdOptionalParams, ImpactedResourcesGetOptionalParams, ImpactedResourcesGetResponse, ImpactedResourcesGetByTenantIdOptionalParams, ImpactedResourcesGetByTenantIdResponse } from "../models";
|
|
2
|
+
import { ImpactedResources } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { MicrosoftResourceHealth } from "../microsoftResourceHealth.js";
|
|
4
|
+
import { EventImpactedResource, ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams, ImpactedResourcesListByTenantIdAndEventIdOptionalParams, ImpactedResourcesGetOptionalParams, ImpactedResourcesGetResponse, ImpactedResourcesGetByTenantIdOptionalParams, ImpactedResourcesGetByTenantIdResponse } from "../models/index.js";
|
|
5
5
|
/** Class containing ImpactedResources operations. */
|
|
6
6
|
export declare class ImpactedResourcesImpl implements ImpactedResources {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"impactedResources.d.ts","sourceRoot":"","sources":["../../../src/operations/impactedResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,qBAAq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