@azure/arm-monitor-profile-2020-09-01-hybrid 2.1.1-alpha.20250213.1 → 2.1.1-alpha.20250217.1
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/README.md +23 -18
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/monitorClient.d.ts +2 -2
- package/dist/browser/monitorClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/monitorClient.js +1 -1
- package/dist/browser/monitorClient.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/diagnosticSettings.d.ts +3 -3
- package/dist/browser/operations/diagnosticSettings.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/diagnosticSettings.js +2 -2
- package/dist/browser/operations/diagnosticSettings.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/diagnosticSettingsCategory.d.ts +3 -3
- package/dist/browser/operations/diagnosticSettingsCategory.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/diagnosticSettingsCategory.js +2 -2
- package/dist/browser/operations/diagnosticSettingsCategory.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/eventCategories.d.ts +3 -3
- package/dist/browser/operations/eventCategories.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/eventCategories.js +2 -2
- package/dist/browser/operations/eventCategories.js.map +1 -0
- package/dist/browser/operations/index.d.ts +7 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +14 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/metricDefinitions.d.ts +3 -3
- package/dist/browser/operations/metricDefinitions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/metricDefinitions.js +2 -2
- package/dist/browser/operations/metricDefinitions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/metrics.d.ts +3 -3
- package/dist/browser/operations/metrics.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/metrics.js +2 -2
- package/dist/browser/operations/metrics.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 +2 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/diagnosticSettings.d.ts +1 -1
- package/dist/browser/operationsInterfaces/diagnosticSettings.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/diagnosticSettings.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/diagnosticSettingsCategory.d.ts +1 -1
- package/dist/browser/operationsInterfaces/diagnosticSettingsCategory.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/diagnosticSettingsCategory.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/eventCategories.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/eventCategories.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/eventCategories.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +7 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +14 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/metricDefinitions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/metricDefinitions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/metricDefinitions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/metrics.d.ts +1 -1
- package/dist/browser/operationsInterfaces/metrics.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/metrics.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/browser/package.json +3 -0
- 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/{types/arm-monitor-profile-2020-09-01-hybrid.d.ts → dist/commonjs/models/index.d.ts} +390 -556
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +55 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +24 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +755 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +20 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +185 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/monitorClient.d.ts +20 -0
- package/dist/commonjs/monitorClient.d.ts.map +1 -0
- package/dist/commonjs/monitorClient.js +74 -0
- package/dist/commonjs/monitorClient.js.map +1 -0
- package/dist/commonjs/operations/diagnosticSettings.d.ts +41 -0
- package/dist/commonjs/operations/diagnosticSettings.d.ts.map +1 -0
- package/dist/commonjs/operations/diagnosticSettings.js +129 -0
- package/dist/commonjs/operations/diagnosticSettings.js.map +1 -0
- package/dist/commonjs/operations/diagnosticSettingsCategory.d.ts +26 -0
- package/dist/commonjs/operations/diagnosticSettingsCategory.d.ts.map +1 -0
- package/dist/commonjs/operations/diagnosticSettingsCategory.js +77 -0
- package/dist/commonjs/operations/diagnosticSettingsCategory.js.map +1 -0
- package/dist/commonjs/operations/eventCategories.d.ts +28 -0
- package/dist/commonjs/operations/eventCategories.d.ts.map +1 -0
- package/dist/commonjs/operations/eventCategories.js +102 -0
- package/dist/commonjs/operations/eventCategories.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +7 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +17 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/metricDefinitions.d.ts +28 -0
- package/dist/commonjs/operations/metricDefinitions.d.ts.map +1 -0
- package/dist/commonjs/operations/metricDefinitions.js +102 -0
- package/dist/commonjs/operations/metricDefinitions.js.map +1 -0
- package/dist/commonjs/operations/metrics.d.ts +19 -0
- package/dist/commonjs/operations/metrics.d.ts.map +1 -0
- package/dist/commonjs/operations/metrics.js +63 -0
- package/dist/commonjs/operations/metrics.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 +48 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/diagnosticSettings.d.ts +33 -0
- package/dist/commonjs/operationsInterfaces/diagnosticSettings.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/diagnosticSettings.js +10 -0
- package/dist/commonjs/operationsInterfaces/diagnosticSettings.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/diagnosticSettingsCategory.d.ts +18 -0
- package/dist/commonjs/operationsInterfaces/diagnosticSettingsCategory.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/diagnosticSettingsCategory.js +10 -0
- package/dist/commonjs/operationsInterfaces/diagnosticSettingsCategory.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/eventCategories.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/eventCategories.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/eventCategories.js +10 -0
- package/dist/commonjs/operationsInterfaces/eventCategories.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +7 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +17 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/metricDefinitions.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/metricDefinitions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/metricDefinitions.js +10 -0
- package/dist/commonjs/operationsInterfaces/metricDefinitions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/metrics.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/metrics.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/metrics.js +10 -0
- package/dist/commonjs/operationsInterfaces/metrics.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/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 +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- 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/models/index.d.ts +390 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +52 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +24 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +752 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +20 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +182 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/monitorClient.d.ts +20 -0
- package/dist/esm/monitorClient.d.ts.map +1 -0
- package/dist/esm/monitorClient.js +69 -0
- package/dist/esm/monitorClient.js.map +1 -0
- package/dist/esm/operations/diagnosticSettings.d.ts +41 -0
- package/dist/esm/operations/diagnosticSettings.d.ts.map +1 -0
- package/dist/esm/operations/diagnosticSettings.js +124 -0
- package/dist/esm/operations/diagnosticSettings.js.map +1 -0
- package/dist/esm/operations/diagnosticSettingsCategory.d.ts +26 -0
- package/dist/esm/operations/diagnosticSettingsCategory.d.ts.map +1 -0
- package/dist/esm/operations/diagnosticSettingsCategory.js +72 -0
- package/dist/esm/operations/diagnosticSettingsCategory.js.map +1 -0
- package/dist/esm/operations/eventCategories.d.ts +28 -0
- package/dist/esm/operations/eventCategories.d.ts.map +1 -0
- package/dist/esm/operations/eventCategories.js +98 -0
- package/dist/esm/operations/eventCategories.js.map +1 -0
- package/dist/esm/operations/index.d.ts +7 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +14 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/metricDefinitions.d.ts +28 -0
- package/dist/esm/operations/metricDefinitions.d.ts.map +1 -0
- package/dist/esm/operations/metricDefinitions.js +98 -0
- package/dist/esm/operations/metricDefinitions.js.map +1 -0
- package/dist/esm/operations/metrics.d.ts +19 -0
- package/dist/esm/operations/metrics.d.ts.map +1 -0
- package/dist/esm/operations/metrics.js +58 -0
- package/dist/esm/operations/metrics.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 +43 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/diagnosticSettings.d.ts +33 -0
- package/dist/esm/operationsInterfaces/diagnosticSettings.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/diagnosticSettings.js +9 -0
- package/dist/esm/operationsInterfaces/diagnosticSettings.js.map +1 -0
- package/dist/esm/operationsInterfaces/diagnosticSettingsCategory.d.ts +18 -0
- package/dist/esm/operationsInterfaces/diagnosticSettingsCategory.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/diagnosticSettingsCategory.js +9 -0
- package/dist/esm/operationsInterfaces/diagnosticSettingsCategory.js.map +1 -0
- package/dist/esm/operationsInterfaces/eventCategories.d.ts +12 -0
- package/dist/esm/operationsInterfaces/eventCategories.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/eventCategories.js +9 -0
- package/dist/esm/operationsInterfaces/eventCategories.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +7 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +14 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/metricDefinitions.d.ts +12 -0
- package/dist/esm/operationsInterfaces/metricDefinitions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/metricDefinitions.js +9 -0
- package/dist/esm/operationsInterfaces/metricDefinitions.js.map +1 -0
- package/dist/esm/operationsInterfaces/metrics.d.ts +11 -0
- package/dist/esm/operationsInterfaces/metrics.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/metrics.js +9 -0
- package/dist/esm/operationsInterfaces/metrics.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/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 +32 -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/models/index.d.ts +390 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +52 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +24 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +752 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +20 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +182 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/monitorClient.d.ts +20 -0
- package/dist/react-native/monitorClient.d.ts.map +1 -0
- package/dist/react-native/monitorClient.js +69 -0
- package/dist/react-native/monitorClient.js.map +1 -0
- package/dist/react-native/operations/diagnosticSettings.d.ts +41 -0
- package/dist/react-native/operations/diagnosticSettings.d.ts.map +1 -0
- package/dist/react-native/operations/diagnosticSettings.js +124 -0
- package/dist/react-native/operations/diagnosticSettings.js.map +1 -0
- package/dist/react-native/operations/diagnosticSettingsCategory.d.ts +26 -0
- package/dist/react-native/operations/diagnosticSettingsCategory.d.ts.map +1 -0
- package/dist/react-native/operations/diagnosticSettingsCategory.js +72 -0
- package/dist/react-native/operations/diagnosticSettingsCategory.js.map +1 -0
- package/dist/react-native/operations/eventCategories.d.ts +28 -0
- package/dist/react-native/operations/eventCategories.d.ts.map +1 -0
- package/dist/react-native/operations/eventCategories.js +98 -0
- package/dist/react-native/operations/eventCategories.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +7 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +14 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/metricDefinitions.d.ts +28 -0
- package/dist/react-native/operations/metricDefinitions.d.ts.map +1 -0
- package/dist/react-native/operations/metricDefinitions.js +98 -0
- package/dist/react-native/operations/metricDefinitions.js.map +1 -0
- package/dist/react-native/operations/metrics.d.ts +19 -0
- package/dist/react-native/operations/metrics.d.ts.map +1 -0
- package/dist/react-native/operations/metrics.js +58 -0
- package/dist/react-native/operations/metrics.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 +43 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/diagnosticSettings.d.ts +33 -0
- package/dist/react-native/operationsInterfaces/diagnosticSettings.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/diagnosticSettings.js +9 -0
- package/dist/react-native/operationsInterfaces/diagnosticSettings.js.map +1 -0
- package/dist/react-native/operationsInterfaces/diagnosticSettingsCategory.d.ts +18 -0
- package/dist/react-native/operationsInterfaces/diagnosticSettingsCategory.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/diagnosticSettingsCategory.js +9 -0
- package/dist/react-native/operationsInterfaces/diagnosticSettingsCategory.js.map +1 -0
- package/dist/react-native/operationsInterfaces/eventCategories.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/eventCategories.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/eventCategories.js +9 -0
- package/dist/react-native/operationsInterfaces/eventCategories.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +7 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +14 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/metricDefinitions.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/metricDefinitions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/metricDefinitions.js +9 -0
- package/dist/react-native/operationsInterfaces/metricDefinitions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/metrics.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/metrics.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/metrics.js +9 -0
- package/dist/react-native/operationsInterfaces/metrics.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/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 +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +69 -40
- package/dist/index.js +0 -1604
- 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/diagnosticSettingsCategoryGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js +0 -35
- package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.d.ts +0 -2
- package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js +0 -34
- package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js +0 -49
- package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js +0 -35
- package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/diagnosticSettingsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsGetSample.js +0 -35
- package/dist-esm/samples-dev/diagnosticSettingsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/diagnosticSettingsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/diagnosticSettingsListSample.js +0 -34
- package/dist-esm/samples-dev/diagnosticSettingsListSample.js.map +0 -1
- package/dist-esm/samples-dev/eventCategoriesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/eventCategoriesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/eventCategoriesListSample.js +0 -49
- package/dist-esm/samples-dev/eventCategoriesListSample.js.map +0 -1
- package/dist-esm/samples-dev/metricDefinitionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/metricDefinitionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/metricDefinitionsListSample.js +0 -113
- package/dist-esm/samples-dev/metricDefinitionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/metricsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/metricsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/metricsListSample.js +0 -103
- package/dist-esm/samples-dev/metricsListSample.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 -33
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.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/monitorClient.d.ts.map +0 -1
- package/dist-esm/src/monitorClient.js.map +0 -1
- package/dist-esm/src/operations/diagnosticSettings.d.ts.map +0 -1
- package/dist-esm/src/operations/diagnosticSettings.js.map +0 -1
- package/dist-esm/src/operations/diagnosticSettingsCategory.d.ts.map +0 -1
- package/dist-esm/src/operations/diagnosticSettingsCategory.js.map +0 -1
- package/dist-esm/src/operations/eventCategories.d.ts.map +0 -1
- package/dist-esm/src/operations/eventCategories.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -7
- package/dist-esm/src/operations/index.js +0 -14
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/metricDefinitions.d.ts.map +0 -1
- package/dist-esm/src/operations/metricDefinitions.js.map +0 -1
- package/dist-esm/src/operations/metrics.d.ts.map +0 -1
- package/dist-esm/src/operations/metrics.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/operationsInterfaces/diagnosticSettings.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/diagnosticSettings.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/diagnosticSettingsCategory.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/diagnosticSettingsCategory.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/eventCategories.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -14
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/metricDefinitions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/metricDefinitions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/metrics.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/metrics.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/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/models/index.ts +0 -451
- package/src/models/mappers.ts +0 -788
- package/src/models/parameters.ts +0 -205
- package/src/monitorClient.ts +0 -120
- package/src/operations/diagnosticSettings.ts +0 -172
- package/src/operations/diagnosticSettingsCategory.ts +0 -102
- package/src/operations/eventCategories.ts +0 -105
- package/src/operations/index.ts +0 -14
- package/src/operations/metricDefinitions.ts +0 -112
- package/src/operations/metrics.ts +0 -72
- package/src/operations/operations.ts +0 -56
- package/src/operationsInterfaces/diagnosticSettings.ts +0 -66
- package/src/operationsInterfaces/diagnosticSettingsCategory.ts +0 -38
- package/src/operationsInterfaces/eventCategories.ts +0 -26
- package/src/operationsInterfaces/index.ts +0 -14
- package/src/operationsInterfaces/metricDefinitions.ts +0 -27
- package/src/operationsInterfaces/metrics.ts +0 -22
- package/src/operationsInterfaces/operations.ts +0 -21
- 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/mappers.js +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}/operationsInterfaces/diagnosticSettings.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/diagnosticSettingsCategory.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/eventCategories.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/metricDefinitions.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/metrics.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.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/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/README.md
CHANGED
|
@@ -48,20 +48,26 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
|
|
|
48
48
|
|
|
49
49
|
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const client = new MonitorClient(new DefaultAzureCredential()
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
51
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
52
|
+
|
|
53
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
54
|
+
import { MonitorClient } from "@azure/arm-monitor-profile-2020-09-01-hybrid";
|
|
55
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
56
|
+
|
|
57
|
+
const client = new MonitorClient(new DefaultAzureCredential());
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
61
|
+
|
|
62
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
63
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
64
|
+
import { MonitorClient } from "@azure/arm-monitor-profile-2020-09-01-hybrid";
|
|
65
|
+
|
|
66
|
+
const credential = new InteractiveBrowserCredential({
|
|
67
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
68
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
69
|
+
});
|
|
70
|
+
const client = new MonitorClient(credential);
|
|
65
71
|
```
|
|
66
72
|
|
|
67
73
|
### JavaScript Bundle
|
|
@@ -80,8 +86,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
80
86
|
|
|
81
87
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
82
88
|
|
|
83
|
-
```
|
|
84
|
-
|
|
89
|
+
```ts snippet:SetLogLevel
|
|
90
|
+
import { setLogLevel } from "@azure/logger";
|
|
91
|
+
|
|
85
92
|
setLogLevel("info");
|
|
86
93
|
```
|
|
87
94
|
|
|
@@ -99,8 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
99
106
|
|
|
100
107
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
101
108
|
|
|
102
|
-
|
|
103
|
-
|
|
104
109
|
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
105
110
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
111
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,cAAc,iCAAiC,CAAC"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
/// <reference lib="esnext.asynciterable" />
|
|
9
|
-
export { getContinuationToken } from "./pagingHelper";
|
|
10
|
-
export * from "./models";
|
|
11
|
-
export { MonitorClient } from "./monitorClient";
|
|
12
|
-
export * from "./operationsInterfaces";
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { MonitorClient } from "./monitorClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,cAAc,iCAAiC,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { MonitorClient } from \"./monitorClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2PH,oEAAoE;AACpE,MAAM,CAAN,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAC1B,mBAAmB;IACnB,iDAA6B,CAAA;IAC7B,mBAAmB;IACnB,iDAA6B,CAAA;IAC7B,aAAa;IACb,qCAAiB,CAAA;IACjB,cAAc;IACd,uCAAmB,CAAA;IACnB,iBAAiB;IACjB,6CAAyB,CAAA;AAC3B,CAAC,EAXW,gBAAgB,KAAhB,gBAAgB,QAW3B;AAeD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eA2BX;AA3BD,WAAY,eAAe;IACzB,YAAY;IACZ,kCAAe,CAAA;IACf,YAAY;IACZ,kCAAe,CAAA;IACf,cAAc;IACd,sCAAmB,CAAA;IACnB,qBAAqB;IACrB,oDAAiC,CAAA;IACjC,qBAAqB;IACrB,oDAAiC,CAAA;IACjC,cAAc;IACd,sCAAmB,CAAA;IACnB,mBAAmB;IACnB,gDAA6B,CAAA;IAC7B,kBAAkB;IAClB,8CAA2B,CAAA;IAC3B,kBAAkB;IAClB,8CAA2B,CAAA;IAC3B,YAAY;IACZ,kCAAe,CAAA;IACf,iBAAiB;IACjB,4CAAyB,CAAA;IACzB,gBAAgB;IAChB,0CAAuB,CAAA;IACvB,oBAAoB;IACpB,kDAA+B,CAAA;AACjC,CAAC,EA3BW,eAAe,KAAf,eAAe,QA2B1B","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 * as coreClient from \"@azure/core-client\";\n\n/** Represents collection of metric definitions. */\nexport interface MetricDefinitionCollection {\n /** the values for the metric definitions. */\n value: MetricDefinition[];\n}\n\n/** Metric definition class specifies the metadata for a metric. */\nexport interface MetricDefinition {\n /** Flag to indicate whether the dimension is required. */\n isDimensionRequired?: boolean;\n /** the resource identifier of the resource that emitted the metric. */\n resourceId?: string;\n /** the namespace the metric belongs to. */\n namespace?: string;\n /** the name and the display name of the metric, i.e. it is a localizable string. */\n name?: LocalizableString;\n /** Detailed description of this metric. */\n displayDescription?: string;\n /** Custom category name for this metric. */\n category?: string;\n /** The class of the metric. */\n metricClass?: MetricClass;\n /** The unit of the metric. */\n unit?: MetricUnit;\n /** the primary aggregation type value defining how to use the values for display. */\n primaryAggregationType?: AggregationType;\n /** the collection of what aggregation types are supported. */\n supportedAggregationTypes?: AggregationType[];\n /** the collection of what aggregation intervals are available to be queried. */\n metricAvailabilities?: MetricAvailability[];\n /** the resource identifier of the metric definition. */\n id?: string;\n /** the name and the display name of the dimension, i.e. it is a localizable string. */\n dimensions?: LocalizableString[];\n}\n\n/** The localizable string class. */\nexport interface LocalizableString {\n /** the invariant value. */\n value: string;\n /** the locale specific value. */\n localizedValue?: string;\n}\n\n/** Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain. */\nexport interface MetricAvailability {\n /** the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc. */\n timeGrain?: string;\n /** the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. */\n retention?: string;\n}\n\n/** Describes the format of Error response. */\nexport interface ErrorResponse {\n /** Error code */\n code?: string;\n /** Error message indicating why the operation failed. */\n message?: string;\n}\n\n/** The response to a metrics query. */\nexport interface Response {\n /** The integer value representing the relative cost of the query. */\n cost?: number;\n /** The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. */\n timespan: string;\n /** The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. */\n interval?: string;\n /** The namespace of the metrics being queried */\n namespace?: string;\n /** The region of the resource being queried for metrics. */\n resourceregion?: string;\n /** the value of the collection. */\n value: Metric[];\n}\n\n/** The result data of a query. */\nexport interface Metric {\n /** the metric Id. */\n id: string;\n /** the resource type of the metric resource. */\n type: string;\n /** the name and the display name of the metric, i.e. it is localizable string. */\n name: LocalizableString;\n /** Detailed description of this metric. */\n displayDescription?: string;\n /** 'Success' or the error details on query failures for this metric. */\n errorCode?: string;\n /** Error message encountered querying this specific metric. */\n errorMessage?: string;\n /** The unit of the metric. */\n unit: MetricUnit;\n /** the time series returned when a data query is performed. */\n timeseries: TimeSeriesElement[];\n}\n\n/** A time series result type. The discriminator value is always TimeSeries in this case. */\nexport interface TimeSeriesElement {\n /** the metadata values returned if $filter was specified in the call. */\n metadatavalues?: MetadataValue[];\n /** An array of data points representing the metric values. This is only returned if a result type of data is specified. */\n data?: MetricValue[];\n}\n\n/** Represents a metric metadata value. */\nexport interface MetadataValue {\n /** the name of the metadata. */\n name?: LocalizableString;\n /** the value of the metadata. */\n value?: string;\n}\n\n/** Represents a metric value. */\nexport interface MetricValue {\n /** the timestamp for the metric value in ISO 8601 format. */\n timeStamp: Date;\n /** the average value in the time range. */\n average?: number;\n /** the least value in the time range. */\n minimum?: number;\n /** the greatest value in the time range. */\n maximum?: number;\n /** the sum of all of the values in the time range. */\n total?: number;\n /** the number of samples in the time range. Can be used to determine the number of values that contributed to the average value. */\n count?: number;\n}\n\n/** Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric. */\nexport interface MetricSettings {\n /** the timegrain of the metric in ISO8601 format. */\n timeGrain?: string;\n /** Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation. */\n category?: string;\n /** a value indicating whether this category is enabled. */\n enabled: boolean;\n /** the retention policy for this category. */\n retentionPolicy?: RetentionPolicy;\n}\n\n/** Specifies the retention policy for the log. */\nexport interface RetentionPolicy {\n /** a value indicating whether the retention policy is enabled. */\n enabled: boolean;\n /** the number of days for the retention in days. A value of 0 will retain the events indefinitely. */\n days: number;\n}\n\n/** Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log. */\nexport interface LogSettings {\n /** Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation. */\n category?: string;\n /** a value indicating whether this log is enabled. */\n enabled: boolean;\n /** the retention policy for this log. */\n retentionPolicy?: RetentionPolicy;\n}\n\n/** A proxy only azure resource object */\nexport interface ProxyOnlyResource {\n /**\n * Azure resource Id\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Azure resource name\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Azure resource type\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** Represents a collection of alert rule resources. */\nexport interface DiagnosticSettingsResourceCollection {\n /** The collection of diagnostic settings resources;. */\n value?: DiagnosticSettingsResource[];\n}\n\n/** Represents a collection of diagnostic setting category resources. */\nexport interface DiagnosticSettingsCategoryResourceCollection {\n /** The collection of diagnostic settings category resources. */\n value?: DiagnosticSettingsCategoryResource[];\n}\n\n/** A collection of event categories. Currently possible values are: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. */\nexport interface EventCategoryCollection {\n /** the list that includes the Azure event categories. */\n value: LocalizableString[];\n}\n\n/** Result of the request to list Microsoft.Insights operations. It contains a list of operations and a URL link to get the next set of results. */\nexport interface OperationListResult {\n /** List of operations supported by the Microsoft.Insights provider. */\n value?: Operation[];\n /** URL to get the next set of operation list results if there are any. */\n nextLink?: string;\n}\n\n/** Microsoft Insights API operation definition. */\nexport interface Operation {\n /** Operation name: {provider}/{resource}/{operation} */\n name?: string;\n /** Display metadata associated with the operation. */\n display?: OperationDisplay;\n}\n\n/** Display metadata associated with the operation. */\nexport interface OperationDisplay {\n /** Service provider: Microsoft.Insights */\n provider?: string;\n /** Resource on which the operation is performed: AlertRules, Autoscale, etc. */\n resource?: string;\n /** Operation type: Read, write, delete, etc. */\n operation?: string;\n}\n\n/** The diagnostic setting resource. */\nexport interface DiagnosticSettingsResource extends ProxyOnlyResource {\n /** The resource ID of the storage account to which you would like to send Diagnostic Logs. */\n storageAccountId?: string;\n /** The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. */\n serviceBusRuleId?: string;\n /** The resource Id for the event hub authorization rule. */\n eventHubAuthorizationRuleId?: string;\n /** The name of the event hub. If none is specified, the default event hub will be selected. */\n eventHubName?: string;\n /** The list of metric settings. */\n metrics?: MetricSettings[];\n /** The list of logs settings. */\n logs?: LogSettings[];\n /** The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2 */\n workspaceId?: string;\n /** A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.) */\n logAnalyticsDestinationType?: string;\n}\n\n/** The diagnostic settings category resource. */\nexport interface DiagnosticSettingsCategoryResource extends ProxyOnlyResource {\n /** The type of the diagnostic settings category. */\n categoryType?: CategoryType;\n}\n\n/** Known values of {@link MetricClass} that the service accepts. */\nexport enum KnownMetricClass {\n /** Availability */\n Availability = \"Availability\",\n /** Transactions */\n Transactions = \"Transactions\",\n /** Errors */\n Errors = \"Errors\",\n /** Latency */\n Latency = \"Latency\",\n /** Saturation */\n Saturation = \"Saturation\"\n}\n\n/**\n * Defines values for MetricClass. \\\n * {@link KnownMetricClass} can be used interchangeably with MetricClass,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Availability** \\\n * **Transactions** \\\n * **Errors** \\\n * **Latency** \\\n * **Saturation**\n */\nexport type MetricClass = string;\n\n/** Known values of {@link MetricUnit} that the service accepts. */\nexport enum KnownMetricUnit {\n /** Count */\n Count = \"Count\",\n /** Bytes */\n Bytes = \"Bytes\",\n /** Seconds */\n Seconds = \"Seconds\",\n /** CountPerSecond */\n CountPerSecond = \"CountPerSecond\",\n /** BytesPerSecond */\n BytesPerSecond = \"BytesPerSecond\",\n /** Percent */\n Percent = \"Percent\",\n /** MilliSeconds */\n MilliSeconds = \"MilliSeconds\",\n /** ByteSeconds */\n ByteSeconds = \"ByteSeconds\",\n /** Unspecified */\n Unspecified = \"Unspecified\",\n /** Cores */\n Cores = \"Cores\",\n /** MilliCores */\n MilliCores = \"MilliCores\",\n /** NanoCores */\n NanoCores = \"NanoCores\",\n /** BitsPerSecond */\n BitsPerSecond = \"BitsPerSecond\"\n}\n\n/**\n * Defines values for MetricUnit. \\\n * {@link KnownMetricUnit} can be used interchangeably with MetricUnit,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Count** \\\n * **Bytes** \\\n * **Seconds** \\\n * **CountPerSecond** \\\n * **BytesPerSecond** \\\n * **Percent** \\\n * **MilliSeconds** \\\n * **ByteSeconds** \\\n * **Unspecified** \\\n * **Cores** \\\n * **MilliCores** \\\n * **NanoCores** \\\n * **BitsPerSecond**\n */\nexport type MetricUnit = string;\n/** Defines values for AggregationType. */\nexport type AggregationType =\n | \"None\"\n | \"Average\"\n | \"Count\"\n | \"Minimum\"\n | \"Maximum\"\n | \"Total\";\n/** Defines values for ResultType. */\nexport type ResultType = \"Data\" | \"Metadata\";\n/** Defines values for CategoryType. */\nexport type CategoryType = \"Metrics\" | \"Logs\";\n\n/** Optional parameters. */\nexport interface MetricDefinitionsListOptionalParams\n extends coreClient.OperationOptions {\n /** Metric namespace to query metric definitions for. */\n metricnamespace?: string;\n}\n\n/** Contains response data for the list operation. */\nexport type MetricDefinitionsListResponse = MetricDefinitionCollection;\n\n/** Optional parameters. */\nexport interface MetricsListOptionalParams extends coreClient.OperationOptions {\n /** Metric namespace to query metric definitions for. */\n metricnamespace?: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan?: string;\n /** The interval (i.e. timegrain) of the query. */\n interval?: string;\n /** The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'** */\n metricnames?: string;\n /** The list of aggregation types (comma separated) to retrieve. */\n aggregation?: string;\n /**\n * The maximum number of records to retrieve.\n * Valid only if $filter is specified.\n * Defaults to 10.\n */\n top?: number;\n /**\n * The aggregation to use for sorting results and the direction of the sort.\n * Only one order can be specified.\n * Examples: sum asc.\n */\n orderby?: string;\n /** The **$filter** is used to reduce the set of metric data returned. Example: Metric contains metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= \"dim (test) 1 eq '*' \" use **$filter= \"dim %2528test%2529 1 eq '*' \"** When dimension name is **dim (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= \"dim (test) 3 eq 'dim3 (test) val' \" use **$filter= \"dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' \"** */\n filter?: string;\n /** Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details. */\n resultType?: ResultType;\n}\n\n/** Contains response data for the list operation. */\nexport type MetricsListResponse = Response;\n\n/** Optional parameters. */\nexport interface DiagnosticSettingsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type DiagnosticSettingsGetResponse = DiagnosticSettingsResource;\n\n/** Optional parameters. */\nexport interface DiagnosticSettingsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type DiagnosticSettingsCreateOrUpdateResponse = DiagnosticSettingsResource;\n\n/** Optional parameters. */\nexport interface DiagnosticSettingsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface DiagnosticSettingsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type DiagnosticSettingsListResponse = DiagnosticSettingsResourceCollection;\n\n/** Optional parameters. */\nexport interface DiagnosticSettingsCategoryGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type DiagnosticSettingsCategoryGetResponse = DiagnosticSettingsCategoryResource;\n\n/** Optional parameters. */\nexport interface DiagnosticSettingsCategoryListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryResourceCollection;\n\n/** Optional parameters. */\nexport interface EventCategoriesListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type EventCategoriesListResponse = EventCategoryCollection;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface MonitorClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,0BAA0B,GAA+B;IACpE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,4BAA4B;QACvC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,kBAAkB;yBAC9B;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,mBAAmB,EAAE;gBACnB,cAAc,EAAE,qBAAqB;gBACrC,IAAI,EAAE;oBACJ,IAA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AAI,CAAC,eAAe,KACzC,YAAY,EAAE;gBACZ,cAAc,EAAE,yBAAyB;gBACzC,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;oBACZ,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;iBACnC;aACF,GACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const MetricDefinitionCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricDefinitionCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricDefinition\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MetricDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricDefinition\",\n modelProperties: {\n isDimensionRequired: {\n serializedName: \"isDimensionRequired\",\n type: {\n name: \"Boolean\"\n }\n },\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\"\n }\n },\n namespace: {\n serializedName: \"namespace\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n displayDescription: {\n serializedName: \"displayDescription\",\n type: {\n name: \"String\"\n }\n },\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n metricClass: {\n serializedName: \"metricClass\",\n type: {\n name: \"String\"\n }\n },\n unit: {\n serializedName: \"unit\",\n type: {\n name: \"String\"\n }\n },\n primaryAggregationType: {\n serializedName: \"primaryAggregationType\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"None\",\n \"Average\",\n \"Count\",\n \"Minimum\",\n \"Maximum\",\n \"Total\"\n ]\n }\n },\n supportedAggregationTypes: {\n serializedName: \"supportedAggregationTypes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Enum\",\n allowedValues: [\n \"None\",\n \"Average\",\n \"Count\",\n \"Minimum\",\n \"Maximum\",\n \"Total\"\n ]\n }\n }\n }\n },\n metricAvailabilities: {\n serializedName: \"metricAvailabilities\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricAvailability\"\n }\n }\n }\n },\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n dimensions: {\n serializedName: \"dimensions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const LocalizableString: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n localizedValue: {\n serializedName: \"localizedValue\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MetricAvailability: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricAvailability\",\n modelProperties: {\n timeGrain: {\n serializedName: \"timeGrain\",\n type: {\n name: \"TimeSpan\"\n }\n },\n retention: {\n serializedName: \"retention\",\n type: {\n name: \"TimeSpan\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Response: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Response\",\n modelProperties: {\n cost: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"cost\",\n type: {\n name: \"Number\"\n }\n },\n timespan: {\n serializedName: \"timespan\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n interval: {\n serializedName: \"interval\",\n type: {\n name: \"TimeSpan\"\n }\n },\n namespace: {\n serializedName: \"namespace\",\n type: {\n name: \"String\"\n }\n },\n resourceregion: {\n serializedName: \"resourceregion\",\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Metric\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Metric: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Metric\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n displayDescription: {\n serializedName: \"displayDescription\",\n type: {\n name: \"String\"\n }\n },\n errorCode: {\n serializedName: \"errorCode\",\n type: {\n name: \"String\"\n }\n },\n errorMessage: {\n serializedName: \"errorMessage\",\n type: {\n name: \"String\"\n }\n },\n unit: {\n serializedName: \"unit\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n timeseries: {\n serializedName: \"timeseries\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TimeSeriesElement\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const TimeSeriesElement: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TimeSeriesElement\",\n modelProperties: {\n metadatavalues: {\n serializedName: \"metadatavalues\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataValue\"\n }\n }\n }\n },\n data: {\n serializedName: \"data\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricValue\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MetadataValue: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataValue\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MetricValue: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricValue\",\n modelProperties: {\n timeStamp: {\n serializedName: \"timeStamp\",\n required: true,\n type: {\n name: \"DateTime\"\n }\n },\n average: {\n serializedName: \"average\",\n type: {\n name: \"Number\"\n }\n },\n minimum: {\n serializedName: \"minimum\",\n type: {\n name: \"Number\"\n }\n },\n maximum: {\n serializedName: \"maximum\",\n type: {\n name: \"Number\"\n }\n },\n total: {\n serializedName: \"total\",\n type: {\n name: \"Number\"\n }\n },\n count: {\n serializedName: \"count\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const MetricSettings: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetricSettings\",\n modelProperties: {\n timeGrain: {\n serializedName: \"timeGrain\",\n type: {\n name: \"TimeSpan\"\n }\n },\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n retentionPolicy: {\n serializedName: \"retentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n }\n }\n }\n};\n\nexport const RetentionPolicy: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\",\n modelProperties: {\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n days: {\n constraints: {\n InclusiveMinimum: 0\n },\n serializedName: \"days\",\n required: true,\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const LogSettings: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LogSettings\",\n modelProperties: {\n category: {\n serializedName: \"category\",\n type: {\n name: \"String\"\n }\n },\n enabled: {\n serializedName: \"enabled\",\n required: true,\n type: {\n name: \"Boolean\"\n }\n },\n retentionPolicy: {\n serializedName: \"retentionPolicy\",\n type: {\n name: \"Composite\",\n className: \"RetentionPolicy\"\n }\n }\n }\n }\n};\n\nexport const ProxyOnlyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyOnlyResource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsResourceCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResourceCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsCategoryResourceCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResourceCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const EventCategoryCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EventCategoryCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LocalizableString\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsResource\",\n modelProperties: {\n ...ProxyOnlyResource.type.modelProperties,\n storageAccountId: {\n serializedName: \"properties.storageAccountId\",\n type: {\n name: \"String\"\n }\n },\n serviceBusRuleId: {\n serializedName: \"properties.serviceBusRuleId\",\n type: {\n name: \"String\"\n }\n },\n eventHubAuthorizationRuleId: {\n serializedName: \"properties.eventHubAuthorizationRuleId\",\n type: {\n name: \"String\"\n }\n },\n eventHubName: {\n serializedName: \"properties.eventHubName\",\n type: {\n name: \"String\"\n }\n },\n metrics: {\n serializedName: \"properties.metrics\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetricSettings\"\n }\n }\n }\n },\n logs: {\n serializedName: \"properties.logs\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LogSettings\"\n }\n }\n }\n },\n workspaceId: {\n serializedName: \"properties.workspaceId\",\n type: {\n name: \"String\"\n }\n },\n logAnalyticsDestinationType: {\n serializedName: \"properties.logAnalyticsDestinationType\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DiagnosticSettingsCategoryResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DiagnosticSettingsCategoryResource\",\n modelProperties: {\n ...ProxyOnlyResource.type.modelProperties,\n categoryType: {\n serializedName: \"properties.categoryType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Metrics\", \"Logs\"]\n }\n }\n }\n }\n};\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
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 { DiagnosticSettingsResource as DiagnosticSettingsResourceMapper } from "../models/mappers";
|
|
8
|
+
import { DiagnosticSettingsResource as DiagnosticSettingsResourceMapper } from "../models/mappers.js";
|
|
9
9
|
export const accept = {
|
|
10
10
|
parameterPath: "accept",
|
|
11
11
|
mapper: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,0BAA0B,IAAI,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAEtG,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA0B;IAChD,aAAa,EAAE,aAAa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EAAE,MAAM;QACtB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,gCAAgC;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA4B;IAClD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { DiagnosticSettingsResource as DiagnosticSettingsResourceMapper } from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const resourceUri: OperationURLParameter = {\n parameterPath: \"resourceUri\",\n mapper: {\n serializedName: \"resourceUri\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-01-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const metricnamespace: OperationQueryParameter = {\n parameterPath: [\"options\", \"metricnamespace\"],\n mapper: {\n serializedName: \"metricnamespace\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const timespan: OperationQueryParameter = {\n parameterPath: [\"options\", \"timespan\"],\n mapper: {\n serializedName: \"timespan\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const interval: OperationQueryParameter = {\n parameterPath: [\"options\", \"interval\"],\n mapper: {\n serializedName: \"interval\",\n type: {\n name: \"TimeSpan\"\n }\n }\n};\n\nexport const metricnames: OperationQueryParameter = {\n parameterPath: [\"options\", \"metricnames\"],\n mapper: {\n serializedName: \"metricnames\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const aggregation: OperationQueryParameter = {\n parameterPath: [\"options\", \"aggregation\"],\n mapper: {\n serializedName: \"aggregation\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const top: OperationQueryParameter = {\n parameterPath: [\"options\", \"top\"],\n mapper: {\n serializedName: \"top\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const orderby: OperationQueryParameter = {\n parameterPath: [\"options\", \"orderby\"],\n mapper: {\n serializedName: \"orderby\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const filter: OperationQueryParameter = {\n parameterPath: [\"options\", \"filter\"],\n mapper: {\n serializedName: \"$filter\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resultType: OperationQueryParameter = {\n parameterPath: [\"options\", \"resultType\"],\n mapper: {\n serializedName: \"resultType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"Data\", \"Metadata\"]\n }\n }\n};\n\nexport const apiVersion1: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2017-05-01-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const name: OperationURLParameter = {\n parameterPath: \"name\",\n mapper: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: DiagnosticSettingsResourceMapper\n};\n\nexport const apiVersion2: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2015-04-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { MetricDefinitions, Metrics, DiagnosticSettings, DiagnosticSettingsCategory, EventCategories, Operations } from "./operationsInterfaces";
|
|
4
|
-
import { MonitorClientOptionalParams } from "./models";
|
|
3
|
+
import { MetricDefinitions, Metrics, DiagnosticSettings, DiagnosticSettingsCategory, EventCategories, Operations } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { MonitorClientOptionalParams } from "./models/index.js";
|
|
5
5
|
export declare class MonitorClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
7
7
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitorClient.d.ts","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAS7C,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,kBAAkB,EAClB,0BAA0B,EAC1B,eAAe,EACf,UAAU,EACX,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEhE,qBAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,2BAA2B;IA0EvC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
-
import { MetricDefinitionsImpl, MetricsImpl, DiagnosticSettingsImpl, DiagnosticSettingsCategoryImpl, EventCategoriesImpl, OperationsImpl } from "./operations";
|
|
10
|
+
import { MetricDefinitionsImpl, MetricsImpl, DiagnosticSettingsImpl, DiagnosticSettingsCategoryImpl, EventCategoriesImpl, OperationsImpl } from "./operations/index.js";
|
|
11
11
|
export class MonitorClient extends coreClient.ServiceClient {
|
|
12
12
|
/**
|
|
13
13
|
* Initializes a new instance of the MonitorClient class.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitorClient.js","sourceRoot":"","sources":["../../src/monitorClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAW/B,MA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CAAC;QACJ,CAAC;QACD,IACE,CAAC,OAAO;YACR,CAAC,OAAO,CAAC,QAAQ;YACjB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC;YACjD,CAAC,oCAAoC,EACrC,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;gBACzB,IAAI,EAAE,gBAAgB,CAAC,mCAAmC;aAC3D,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrB,gBAAgB,CAAC,+BAA+B,CAAC;gBAC/C,UAAU,EAAE,WAAW;gBACvB,MAAM,EACJ,MAAA,mBAAmB,CAAC,gBAAgB,mCACpC,GAAG,mBAAmB,CAAC,QAAQ,WAAW;gBAC5C,kBAAkB,EAAE;oBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;iBAC9C;aACF,CAAC,CACH,CAAC;QACJ,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CAQF","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n MetricDefinitionsImpl,\n MetricsImpl,\n DiagnosticSettingsImpl,\n DiagnosticSettingsCategoryImpl,\n EventCategoriesImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n MetricDefinitions,\n Metrics,\n DiagnosticSettings,\n DiagnosticSettingsCategory,\n EventCategories,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport { MonitorClientOptionalParams } from \"./models/index.js\";\n\nexport class MonitorClient extends coreClient.ServiceClient {\n $host: string;\n\n /**\n * Initializes a new instance of the MonitorClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: MonitorClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MonitorClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-monitor-profile-2020-09-01-hybrid/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.metricDefinitions = new MetricDefinitionsImpl(this);\n this.metrics = new MetricsImpl(this);\n this.diagnosticSettings = new DiagnosticSettingsImpl(this);\n this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this);\n this.eventCategories = new EventCategoriesImpl(this);\n this.operations = new OperationsImpl(this);\n }\n\n metricDefinitions: MetricDefinitions;\n metrics: Metrics;\n diagnosticSettings: DiagnosticSettings;\n diagnosticSettingsCategory: DiagnosticSettingsCategory;\n eventCategories: EventCategories;\n operations: Operations;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DiagnosticSettings } from "../operationsInterfaces";
|
|
2
|
-
import { MonitorClient } from "../monitorClient";
|
|
3
|
-
import { DiagnosticSettingsGetOptionalParams, DiagnosticSettingsGetResponse, DiagnosticSettingsResource, DiagnosticSettingsCreateOrUpdateOptionalParams, DiagnosticSettingsCreateOrUpdateResponse, DiagnosticSettingsDeleteOptionalParams, DiagnosticSettingsListOptionalParams, DiagnosticSettingsListResponse } from "../models";
|
|
1
|
+
import { DiagnosticSettings } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { MonitorClient } from "../monitorClient.js";
|
|
3
|
+
import { DiagnosticSettingsGetOptionalParams, DiagnosticSettingsGetResponse, DiagnosticSettingsResource, DiagnosticSettingsCreateOrUpdateOptionalParams, DiagnosticSettingsCreateOrUpdateResponse, DiagnosticSettingsDeleteOptionalParams, DiagnosticSettingsListOptionalParams, DiagnosticSettingsListResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing DiagnosticSettings operations. */
|
|
5
5
|
export declare class DiagnosticSettingsImpl implements DiagnosticSettings {
|
|
6
6
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnosticSettings.d.ts","sourceRoot":"","sources":["../../../src/operations/diagnosticSettings.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAItE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,0BAA0B,EAC1B,8CAA8C,EAC9C,wCAAwC,EACxC,sCAAsC,EACtC,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,oBAAoB,CAAC;AAE5B,sDAAsD;AACtD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;;;OAKG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;;;OAMG;IACH,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,0BAA0B,EACtC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAOpD;;;;;OAKG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;CAM3C"}
|
|
@@ -6,8 +6,8 @@
|
|
|
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 DiagnosticSettings operations. */
|
|
12
12
|
export class DiagnosticSettingsImpl {
|
|
13
13
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnosticSettings.js","sourceRoot":"","sources":["../../../src/operations/diagnosticSettings.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,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,WAAmB,EACnB,IAAY,EACZ,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,EAC9B,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,cAAc,CACZ,WAAmB,EACnB,IAAY,EACZ,UAAsC,EACtC,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAC1C,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,MAAM,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AC,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC;IAC1E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC;IAC1E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,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 { DiagnosticSettings } 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 { MonitorClient } from \"../monitorClient.js\";\nimport {\n DiagnosticSettingsGetOptionalParams,\n DiagnosticSettingsGetResponse,\n DiagnosticSettingsResource,\n DiagnosticSettingsCreateOrUpdateOptionalParams,\n DiagnosticSettingsCreateOrUpdateResponse,\n DiagnosticSettingsDeleteOptionalParams,\n DiagnosticSettingsListOptionalParams,\n DiagnosticSettingsListResponse\n} from \"../models/index.js\";\n\n/** Class containing DiagnosticSettings operations. */\nexport class DiagnosticSettingsImpl implements DiagnosticSettings {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class DiagnosticSettings class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Gets the active diagnostic settings for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param name The name of the diagnostic setting.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n name: string,\n options?: DiagnosticSettingsGetOptionalParams\n ): Promise<DiagnosticSettingsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates diagnostic settings for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param name The name of the diagnostic setting.\n * @param parameters Parameters supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceUri: string,\n name: string,\n parameters: DiagnosticSettingsResource,\n options?: DiagnosticSettingsCreateOrUpdateOptionalParams\n ): Promise<DiagnosticSettingsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, name, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes existing diagnostic settings for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param name The name of the diagnostic setting.\n * @param options The options parameters.\n */\n delete(\n resourceUri: string,\n name: string,\n options?: DiagnosticSettingsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceUri, name, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets the active diagnostic settings list for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n resourceUri: string,\n options?: DiagnosticSettingsListOptionalParams\n ): Promise<DiagnosticSettingsListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsResourceCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DiagnosticSettingsCategory } from "../operationsInterfaces";
|
|
2
|
-
import { MonitorClient } from "../monitorClient";
|
|
3
|
-
import { DiagnosticSettingsCategoryGetOptionalParams, DiagnosticSettingsCategoryGetResponse, DiagnosticSettingsCategoryListOptionalParams, DiagnosticSettingsCategoryListResponse } from "../models";
|
|
1
|
+
import { DiagnosticSettingsCategory } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { MonitorClient } from "../monitorClient.js";
|
|
3
|
+
import { DiagnosticSettingsCategoryGetOptionalParams, DiagnosticSettingsCategoryGetResponse, DiagnosticSettingsCategoryListOptionalParams, DiagnosticSettingsCategoryListResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing DiagnosticSettingsCategory operations. */
|
|
5
5
|
export declare class DiagnosticSettingsCategoryImpl implements DiagnosticSettingsCategory {
|
|
6
6
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnosticSettingsCategory.d.ts","sourceRoot":"","sources":["../../../src/operations/diagnosticSettingsCategory.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAI9E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,2CAA2C,EAC3C,qCAAqC,EACrC,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAE5B,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;;;OAKG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAOjD;;;;OAIG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;CAMnD"}
|
|
@@ -6,8 +6,8 @@
|
|
|
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 DiagnosticSettingsCategory operations. */
|
|
12
12
|
export class DiagnosticSettingsCategoryImpl {
|
|
13
13
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnosticSettingsCategory.js","sourceRoot":"","sources":["../../../src/operations/diagnosticSettingsCategory.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;AAStD,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,WAAmB,EACnB,IAAY,EACZ,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,EAC9B,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,WAAmB,EACnB,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,iFAAiF;IACnF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC;IAC1E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,0EAA0E;IAC5E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4CAA4C;SACjE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,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 { DiagnosticSettingsCategory } 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 { MonitorClient } from \"../monitorClient.js\";\nimport {\n DiagnosticSettingsCategoryGetOptionalParams,\n DiagnosticSettingsCategoryGetResponse,\n DiagnosticSettingsCategoryListOptionalParams,\n DiagnosticSettingsCategoryListResponse\n} from \"../models/index.js\";\n\n/** Class containing DiagnosticSettingsCategory operations. */\nexport class DiagnosticSettingsCategoryImpl\n implements DiagnosticSettingsCategory {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class DiagnosticSettingsCategory class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Gets the diagnostic settings category for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param name The name of the diagnostic setting.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n name: string,\n options?: DiagnosticSettingsCategoryGetOptionalParams\n ): Promise<DiagnosticSettingsCategoryGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, name, options },\n getOperationSpec\n );\n }\n\n /**\n * Lists the diagnostic settings categories for the specified resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n resourceUri: string,\n options?: DiagnosticSettingsCategoryListOptionalParams\n ): Promise<DiagnosticSettingsCategoryListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsCategoryResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticSettingsCategoryResourceCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { EventCategories } from "../operationsInterfaces";
|
|
3
|
-
import { MonitorClient } from "../monitorClient";
|
|
4
|
-
import { LocalizableString, EventCategoriesListOptionalParams } from "../models";
|
|
2
|
+
import { EventCategories } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { MonitorClient } from "../monitorClient.js";
|
|
4
|
+
import { LocalizableString, EventCategoriesListOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing EventCategories operations. */
|
|
6
6
|
export declare class EventCategoriesImpl implements EventCategories {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventCategories.d.ts","sourceRoot":"","sources":["../../../src/operations/eventCategories.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,iBAAiB,EACjB,iCAAiC,EAElC,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;;OAIG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,iBAAiB,CAAC;YAkBjC,cAAc;YASd,aAAa;IAQ5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;CAKd"}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
12
|
/// <reference lib="esnext.asynciterable" />
|
|
13
13
|
/** Class containing EventCategories operations. */
|
|
14
14
|
export class EventCategoriesImpl {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventCategories.js","sourceRoot":"","sources":["../../../src/operations/eventCategories.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,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SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 { EventCategories } 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 { MonitorClient } from \"../monitorClient.js\";\nimport {\n LocalizableString,\n EventCategoriesListOptionalParams,\n EventCategoriesListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EventCategories operations. */\nexport class EventCategoriesImpl implements EventCategories {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class EventCategories class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Get the list of available event categories supported in the Activity Logs Service.<br>The current\n * list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.\n * @param options The options parameters.\n */\n public list(\n options?: EventCategoriesListOptionalParams\n ): PagedAsyncIterableIterator<LocalizableString> {\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?: EventCategoriesListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<LocalizableString[]> {\n let result: EventCategoriesListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: EventCategoriesListOptionalParams\n ): AsyncIterableIterator<LocalizableString> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get the list of available event categories supported in the Activity Logs Service.<br>The current\n * list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.\n * @param options The options parameters.\n */\n private _list(\n options?: EventCategoriesListOptionalParams\n ): Promise<EventCategoriesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Insights/eventcategories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventCategoryCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./metricDefinitions.js";
|
|
2
|
+
export * from "./metrics.js";
|
|
3
|
+
export * from "./diagnosticSettings.js";
|
|
4
|
+
export * from "./diagnosticSettingsCategory.js";
|
|
5
|
+
export * from "./eventCategories.js";
|
|
6
|
+
export * from "./operations.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./metricDefinitions.js";
|
|
9
|
+
export * from "./metrics.js";
|
|
10
|
+
export * from "./diagnosticSettings.js";
|
|
11
|
+
export * from "./diagnosticSettingsCategory.js";
|
|
12
|
+
export * from "./eventCategories.js";
|
|
13
|
+
export * from "./operations.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,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\nexport * from \"./metricDefinitions.js\";\nexport * from \"./metrics.js\";\nexport * from \"./diagnosticSettings.js\";\nexport * from \"./diagnosticSettingsCategory.js\";\nexport * from \"./eventCategories.js\";\nexport * from \"./operations.js\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { MetricDefinitions } from "../operationsInterfaces";
|
|
3
|
-
import { MonitorClient } from "../monitorClient";
|
|
4
|
-
import { MetricDefinition, MetricDefinitionsListOptionalParams } from "../models";
|
|
2
|
+
import { MetricDefinitions } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { MonitorClient } from "../monitorClient.js";
|
|
4
|
+
import { MetricDefinition, MetricDefinitionsListOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing MetricDefinitions operations. */
|
|
6
6
|
export declare class MetricDefinitionsImpl implements MetricDefinitions {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metricDefinitions.d.ts","sourceRoot":"","sources":["../../../src/operations/metricDefinitions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,gBAAgB,EAChB,mCAAmC,EAEpC,MAAM,oBAAoB,CAAC;AAG5B,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;;OAIG;IACI,IAAI,CACT,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,gBAAgB,CAAC;YAkBhC,cAAc;YAUd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;CASd"}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
12
|
/// <reference lib="esnext.asynciterable" />
|
|
13
13
|
/** Class containing MetricDefinitions operations. */
|
|
14
14
|
export class MetricDefinitionsImpl {
|
|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Aa,CAC1B,WAAmB,EACnB,OAA6C;;;;gBAE7C,KAAyB,eAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA,IAAA,+DAAE,CAAC;oBAA5C,cAAyC;oBAAzC,WAAyC;oBAAvD,MAAM,IAAI,KAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;gBACd,CAAC;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;OAIG;IACK,KAAK,CACX,WAAmB,EACnB,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,+DAA+D;IACrE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,eAAe,CAAC;IACpE,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,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 { MetricDefinitions } 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 { MonitorClient } from \"../monitorClient.js\";\nimport {\n MetricDefinition,\n MetricDefinitionsListOptionalParams,\n MetricDefinitionsListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MetricDefinitions operations. */\nexport class MetricDefinitionsImpl implements MetricDefinitions {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class MetricDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * Lists the metric definitions for the resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n public list(\n resourceUri: string,\n options?: MetricDefinitionsListOptionalParams\n ): PagedAsyncIterableIterator<MetricDefinition> {\n const iter = this.listPagingAll(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.listPagingPage(resourceUri, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceUri: string,\n options?: MetricDefinitionsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<MetricDefinition[]> {\n let result: MetricDefinitionsListResponse;\n result = await this._list(resourceUri, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceUri: string,\n options?: MetricDefinitionsListOptionalParams\n ): AsyncIterableIterator<MetricDefinition> {\n for await (const page of this.listPagingPage(resourceUri, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the metric definitions for the resource.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n private _list(\n resourceUri: string,\n options?: MetricDefinitionsListOptionalParams\n ): Promise<MetricDefinitionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/metricDefinitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MetricDefinitionCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.metricnamespace],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Metrics } from "../operationsInterfaces";
|
|
2
|
-
import { MonitorClient } from "../monitorClient";
|
|
3
|
-
import { MetricsListOptionalParams, MetricsListResponse } from "../models";
|
|
1
|
+
import { Metrics } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { MonitorClient } from "../monitorClient.js";
|
|
3
|
+
import { MetricsListOptionalParams, MetricsListResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing Metrics operations. */
|
|
5
5
|
export declare class MetricsImpl implements Metrics {
|
|
6
6
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/operations/metrics.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAI3D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEpF,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;;OAIG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;CAMhC"}
|
|
@@ -6,8 +6,8 @@
|
|
|
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 Metrics operations. */
|
|
12
12
|
export class MetricsImpl {
|
|
13
13
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/operations/metrics.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;AAItD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,WAAmB,EACnB,OAAmC;QAEnC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,qDAAqD;IAC3D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,GAAG;QACd,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,UAAU;KACtB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,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 { Metrics } 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 { MonitorClient } from \"../monitorClient.js\";\nimport { MetricsListOptionalParams, MetricsListResponse } from \"../models/index.js\";\n\n/** Class containing Metrics operations. */\nexport class MetricsImpl implements Metrics {\n private readonly client: MonitorClient;\n\n /**\n * Initialize a new instance of the class Metrics class.\n * @param client Reference to the service client\n */\n constructor(client: MonitorClient) {\n this.client = client;\n }\n\n /**\n * **Lists the metric values for a resource**.\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n list(\n resourceUri: string,\n options?: MetricsListOptionalParams\n ): Promise<MetricsListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/metrics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Response\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.metricnamespace,\n Parameters.timespan,\n Parameters.interval,\n Parameters.metricnames,\n Parameters.aggregation,\n Parameters.top,\n Parameters.orderby,\n Parameters.filter,\n Parameters.resultType\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Operations } from "../operationsInterfaces";
|
|
2
|
-
import { MonitorClient } from "../monitorClient";
|
|
3
|
-
import { OperationsListOptionalParams, OperationsListResponse } from "../models";
|
|
1
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { MonitorClient } from "../monitorClient.js";
|
|
3
|
+
import { OperationsListOptionalParams, OperationsListResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing Operations operations. */
|
|
5
5
|
export declare class OperationsImpl implements Operations {
|
|
6
6
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;CAGnC"}
|
|
@@ -6,8 +6,8 @@
|
|
|
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 Operations operations. */
|
|
12
12
|
export class OperationsImpl {
|
|
13
13
|
/**
|