@azure/arm-trafficmanager 6.1.1-alpha.20250128.1 → 6.1.1-alpha.20250129.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 +21 -12
- 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}/operations/endpoints.d.ts +3 -3
- package/dist/browser/operations/endpoints.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/endpoints.js +2 -2
- package/dist/browser/operations/endpoints.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/geographicHierarchies.d.ts +3 -3
- package/dist/browser/operations/geographicHierarchies.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/geographicHierarchies.js +2 -2
- package/dist/browser/operations/geographicHierarchies.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/heatMap.d.ts +3 -3
- package/dist/browser/operations/heatMap.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/heatMap.js +2 -2
- package/dist/browser/operations/heatMap.js.map +1 -0
- package/dist/browser/operations/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +5 -5
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/profiles.d.ts +3 -3
- package/dist/browser/operations/profiles.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/profiles.js +2 -2
- package/dist/browser/operations/profiles.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/trafficManagerUserMetricsKeys.d.ts +3 -3
- package/dist/browser/operations/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/trafficManagerUserMetricsKeys.js +2 -2
- package/dist/browser/operations/trafficManagerUserMetricsKeys.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/endpoints.d.ts +1 -1
- package/dist/browser/operationsInterfaces/endpoints.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/endpoints.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/geographicHierarchies.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/geographicHierarchies.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/geographicHierarchies.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/heatMap.d.ts +1 -1
- package/dist/browser/operationsInterfaces/heatMap.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/heatMap.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +6 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +5 -5
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/profiles.d.ts +1 -1
- package/dist/browser/operationsInterfaces/profiles.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/profiles.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts +1 -1
- package/dist/browser/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/trafficManagerUserMetricsKeys.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/trafficManagerManagementClient.d.ts +2 -2
- package/dist/browser/trafficManagerManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/trafficManagerManagementClient.js +15 -18
- package/dist/browser/trafficManagerManagementClient.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-trafficmanager.d.ts → dist/commonjs/models/index.d.ts} +531 -781
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +113 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +26 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +731 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +17 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +175 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/endpoints.d.ts +51 -0
- package/dist/commonjs/operations/endpoints.d.ts.map +1 -0
- package/dist/commonjs/operations/endpoints.js +188 -0
- package/dist/commonjs/operations/endpoints.js.map +1 -0
- package/dist/commonjs/operations/geographicHierarchies.d.ts +18 -0
- package/dist/commonjs/operations/geographicHierarchies.d.ts.map +1 -0
- package/dist/commonjs/operations/geographicHierarchies.js +51 -0
- package/dist/commonjs/operations/geographicHierarchies.js.map +1 -0
- package/dist/commonjs/operations/heatMap.d.ts +20 -0
- package/dist/commonjs/operations/heatMap.d.ts.map +1 -0
- package/dist/commonjs/operations/heatMap.js +63 -0
- package/dist/commonjs/operations/heatMap.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +6 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +16 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/profiles.d.ts +84 -0
- package/dist/commonjs/operations/profiles.d.ts.map +1 -0
- package/dist/commonjs/operations/profiles.js +361 -0
- package/dist/commonjs/operations/profiles.js.map +1 -0
- package/dist/commonjs/operations/trafficManagerUserMetricsKeys.d.ts +28 -0
- package/dist/commonjs/operations/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist/commonjs/operations/trafficManagerUserMetricsKeys.js +97 -0
- package/dist/commonjs/operations/trafficManagerUserMetricsKeys.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/endpoints.d.ts +43 -0
- package/dist/commonjs/operationsInterfaces/endpoints.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/endpoints.js +10 -0
- package/dist/commonjs/operationsInterfaces/endpoints.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/geographicHierarchies.d.ts +10 -0
- package/dist/commonjs/operationsInterfaces/geographicHierarchies.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/geographicHierarchies.js +10 -0
- package/dist/commonjs/operationsInterfaces/geographicHierarchies.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/heatMap.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/heatMap.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/heatMap.js +10 -0
- package/dist/commonjs/operationsInterfaces/heatMap.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +16 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/profiles.d.ts +61 -0
- package/dist/commonjs/operationsInterfaces/profiles.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/profiles.js +10 -0
- package/dist/commonjs/operationsInterfaces/profiles.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts +20 -0
- package/dist/commonjs/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/trafficManagerUserMetricsKeys.js +10 -0
- package/dist/commonjs/operationsInterfaces/trafficManagerUserMetricsKeys.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/commonjs/trafficManagerManagementClient.d.ts +24 -0
- package/dist/commonjs/trafficManagerManagementClient.d.ts.map +1 -0
- package/dist/commonjs/trafficManagerManagementClient.js +106 -0
- package/dist/commonjs/trafficManagerManagementClient.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 +531 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +110 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +26 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +728 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +17 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +172 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/endpoints.d.ts +51 -0
- package/dist/esm/operations/endpoints.d.ts.map +1 -0
- package/dist/esm/operations/endpoints.js +183 -0
- package/dist/esm/operations/endpoints.js.map +1 -0
- package/dist/esm/operations/geographicHierarchies.d.ts +18 -0
- package/dist/esm/operations/geographicHierarchies.d.ts.map +1 -0
- package/dist/esm/operations/geographicHierarchies.js +46 -0
- package/dist/esm/operations/geographicHierarchies.js.map +1 -0
- package/dist/esm/operations/heatMap.d.ts +20 -0
- package/dist/esm/operations/heatMap.d.ts.map +1 -0
- package/dist/esm/operations/heatMap.js +58 -0
- package/dist/esm/operations/heatMap.js.map +1 -0
- package/dist/esm/operations/index.d.ts +6 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +13 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/profiles.d.ts +84 -0
- package/dist/esm/operations/profiles.d.ts.map +1 -0
- package/dist/esm/operations/profiles.js +357 -0
- package/dist/esm/operations/profiles.js.map +1 -0
- package/dist/esm/operations/trafficManagerUserMetricsKeys.d.ts +28 -0
- package/dist/esm/operations/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist/esm/operations/trafficManagerUserMetricsKeys.js +92 -0
- package/dist/esm/operations/trafficManagerUserMetricsKeys.js.map +1 -0
- package/dist/esm/operationsInterfaces/endpoints.d.ts +43 -0
- package/dist/esm/operationsInterfaces/endpoints.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/endpoints.js +9 -0
- package/dist/esm/operationsInterfaces/endpoints.js.map +1 -0
- package/dist/esm/operationsInterfaces/geographicHierarchies.d.ts +10 -0
- package/dist/esm/operationsInterfaces/geographicHierarchies.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/geographicHierarchies.js +9 -0
- package/dist/esm/operationsInterfaces/geographicHierarchies.js.map +1 -0
- package/dist/esm/operationsInterfaces/heatMap.d.ts +12 -0
- package/dist/esm/operationsInterfaces/heatMap.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/heatMap.js +9 -0
- package/dist/esm/operationsInterfaces/heatMap.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +6 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +13 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/profiles.d.ts +61 -0
- package/dist/esm/operationsInterfaces/profiles.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/profiles.js +9 -0
- package/dist/esm/operationsInterfaces/profiles.js.map +1 -0
- package/dist/esm/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts +20 -0
- package/dist/esm/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/trafficManagerUserMetricsKeys.js +9 -0
- package/dist/esm/operationsInterfaces/trafficManagerUserMetricsKeys.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/esm/trafficManagerManagementClient.d.ts +24 -0
- package/dist/esm/trafficManagerManagementClient.d.ts.map +1 -0
- package/dist/esm/trafficManagerManagementClient.js +101 -0
- package/dist/esm/trafficManagerManagementClient.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 +531 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +110 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +26 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +728 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +17 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +172 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/endpoints.d.ts +51 -0
- package/dist/react-native/operations/endpoints.d.ts.map +1 -0
- package/dist/react-native/operations/endpoints.js +183 -0
- package/dist/react-native/operations/endpoints.js.map +1 -0
- package/dist/react-native/operations/geographicHierarchies.d.ts +18 -0
- package/dist/react-native/operations/geographicHierarchies.d.ts.map +1 -0
- package/dist/react-native/operations/geographicHierarchies.js +46 -0
- package/dist/react-native/operations/geographicHierarchies.js.map +1 -0
- package/dist/react-native/operations/heatMap.d.ts +20 -0
- package/dist/react-native/operations/heatMap.d.ts.map +1 -0
- package/dist/react-native/operations/heatMap.js +58 -0
- package/dist/react-native/operations/heatMap.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +6 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +13 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/profiles.d.ts +84 -0
- package/dist/react-native/operations/profiles.d.ts.map +1 -0
- package/dist/react-native/operations/profiles.js +357 -0
- package/dist/react-native/operations/profiles.js.map +1 -0
- package/dist/react-native/operations/trafficManagerUserMetricsKeys.d.ts +28 -0
- package/dist/react-native/operations/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist/react-native/operations/trafficManagerUserMetricsKeys.js +92 -0
- package/dist/react-native/operations/trafficManagerUserMetricsKeys.js.map +1 -0
- package/dist/react-native/operationsInterfaces/endpoints.d.ts +43 -0
- package/dist/react-native/operationsInterfaces/endpoints.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/endpoints.js +9 -0
- package/dist/react-native/operationsInterfaces/endpoints.js.map +1 -0
- package/dist/react-native/operationsInterfaces/geographicHierarchies.d.ts +10 -0
- package/dist/react-native/operationsInterfaces/geographicHierarchies.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/geographicHierarchies.js +9 -0
- package/dist/react-native/operationsInterfaces/geographicHierarchies.js.map +1 -0
- package/dist/react-native/operationsInterfaces/heatMap.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/heatMap.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/heatMap.js +9 -0
- package/dist/react-native/operationsInterfaces/heatMap.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +13 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/profiles.d.ts +61 -0
- package/dist/react-native/operationsInterfaces/profiles.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/profiles.js +9 -0
- package/dist/react-native/operationsInterfaces/profiles.js.map +1 -0
- package/dist/react-native/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts +20 -0
- package/dist/react-native/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/trafficManagerUserMetricsKeys.js +9 -0
- package/dist/react-native/operationsInterfaces/trafficManagerUserMetricsKeys.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/dist/react-native/trafficManagerManagementClient.d.ts +24 -0
- package/dist/react-native/trafficManagerManagementClient.d.ts.map +1 -0
- package/dist/react-native/trafficManagerManagementClient.js +101 -0
- package/dist/react-native/trafficManagerManagementClient.js.map +1 -0
- package/package.json +69 -40
- package/dist/index.js +0 -1911
- 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/endpointsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js +0 -154
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/endpointsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/endpointsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointsDeleteSample.js +0 -38
- package/dist-esm/samples-dev/endpointsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/endpointsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/endpointsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointsGetSample.js +0 -78
- package/dist-esm/samples-dev/endpointsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/endpointsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/endpointsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointsUpdateSample.js +0 -37
- package/dist-esm/samples-dev/endpointsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.d.ts +0 -2
- package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.js +0 -34
- package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.js.map +0 -1
- package/dist-esm/samples-dev/heatMapGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/heatMapGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/heatMapGetSample.js +0 -68
- package/dist-esm/samples-dev/heatMapGetSample.js.map +0 -1
- package/dist-esm/samples-dev/profilesCheckTrafficManagerNameAvailabilityV2Sample.d.ts +0 -2
- package/dist-esm/samples-dev/profilesCheckTrafficManagerNameAvailabilityV2Sample.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilesCheckTrafficManagerNameAvailabilityV2Sample.js +0 -51
- package/dist-esm/samples-dev/profilesCheckTrafficManagerNameAvailabilityV2Sample.js.map +0 -1
- package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.js +0 -51
- package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.js.map +0 -1
- package/dist-esm/samples-dev/profilesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/profilesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilesCreateOrUpdateSample.js +0 -262
- package/dist-esm/samples-dev/profilesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/profilesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/profilesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilesDeleteSample.js +0 -36
- package/dist-esm/samples-dev/profilesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/profilesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/profilesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilesGetSample.js +0 -72
- package/dist-esm/samples-dev/profilesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/profilesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/profilesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilesListByResourceGroupSample.js +0 -51
- package/dist-esm/samples-dev/profilesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/profilesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/profilesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilesListBySubscriptionSample.js +0 -50
- package/dist-esm/samples-dev/profilesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/profilesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/profilesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilesUpdateSample.js +0 -43
- package/dist-esm/samples-dev/profilesUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.js +0 -34
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.js +0 -34
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.js +0 -34
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.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/operations/endpoints.d.ts.map +0 -1
- package/dist-esm/src/operations/endpoints.js.map +0 -1
- package/dist-esm/src/operations/geographicHierarchies.d.ts.map +0 -1
- package/dist-esm/src/operations/geographicHierarchies.js.map +0 -1
- package/dist-esm/src/operations/heatMap.d.ts.map +0 -1
- package/dist-esm/src/operations/heatMap.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -6
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/profiles.d.ts.map +0 -1
- package/dist-esm/src/operations/profiles.js.map +0 -1
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.d.ts.map +0 -1
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/endpoints.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/geographicHierarchies.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/heatMap.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/heatMap.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/profiles.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/profiles.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/trafficManagerManagementClient.d.ts.map +0 -1
- package/dist-esm/src/trafficManagerManagementClient.js.map +0 -1
- package/dist-esm/test/trafficmanager_examples.spec.d.ts +0 -4
- package/dist-esm/test/trafficmanager_examples.spec.d.ts.map +0 -1
- package/dist-esm/test/trafficmanager_examples.spec.js +0 -120
- package/dist-esm/test/trafficmanager_examples.spec.js.map +0 -1
- package/src/models/index.ts +0 -616
- package/src/models/mappers.ts +0 -797
- package/src/models/parameters.ts +0 -196
- package/src/operations/endpoints.ts +0 -247
- package/src/operations/geographicHierarchies.ts +0 -63
- package/src/operations/heatMap.ts +0 -74
- package/src/operations/index.ts +0 -13
- package/src/operations/profiles.ts +0 -447
- package/src/operations/trafficManagerUserMetricsKeys.ts +0 -122
- package/src/operationsInterfaces/endpoints.ts +0 -88
- package/src/operationsInterfaces/geographicHierarchies.ts +0 -23
- package/src/operationsInterfaces/heatMap.ts +0 -24
- package/src/operationsInterfaces/index.ts +0 -13
- package/src/operationsInterfaces/profiles.ts +0 -116
- package/src/operationsInterfaces/trafficManagerUserMetricsKeys.ts +0 -41
- package/src/pagingHelper.ts +0 -39
- package/src/trafficManagerManagementClient.ts +0 -162
- 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/endpoints.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/geographicHierarchies.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/heatMap.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/profiles.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/trafficManagerUserMetricsKeys.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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HeatMap } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { TrafficManagerManagementClient } from "../trafficManagerManagementClient.js";
|
|
3
|
+
import { HeatMapGetOptionalParams, HeatMapGetResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing HeatMap operations. */
|
|
5
|
+
export declare class HeatMapImpl implements HeatMap {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class HeatMap class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: TrafficManagerManagementClient);
|
|
12
|
+
/**
|
|
13
|
+
* Gets latest heatmap for Traffic Manager profile.
|
|
14
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
15
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
get(resourceGroupName: string, profileName: string, options?: HeatMapGetOptionalParams): Promise<HeatMapGetResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=heatMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heatMap.d.ts","sourceRoot":"","sources":["../../../src/operations/heatMap.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAI3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAElF,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD;;;OAGG;gBACS,MAAM,EAAE,8BAA8B;IAIlD;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;CAM/B"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.HeatMapImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
/** Class containing HeatMap operations. */
|
|
16
|
+
class HeatMapImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class HeatMap class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets latest heatmap for Traffic Manager profile.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
get(resourceGroupName, profileName, options) {
|
|
31
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, options }, getOperationSpec);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.HeatMapImpl = HeatMapImpl;
|
|
35
|
+
// Operation Specifications
|
|
36
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
37
|
+
const getOperationSpec = {
|
|
38
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/heatMaps/{heatMapType}",
|
|
39
|
+
httpMethod: "GET",
|
|
40
|
+
responses: {
|
|
41
|
+
200: {
|
|
42
|
+
bodyMapper: Mappers.HeatMapModel
|
|
43
|
+
},
|
|
44
|
+
default: {
|
|
45
|
+
bodyMapper: Mappers.CloudError
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
queryParameters: [
|
|
49
|
+
Parameters.apiVersion,
|
|
50
|
+
Parameters.topLeft,
|
|
51
|
+
Parameters.botRight
|
|
52
|
+
],
|
|
53
|
+
urlParameters: [
|
|
54
|
+
Parameters.$host,
|
|
55
|
+
Parameters.resourceGroupName,
|
|
56
|
+
Parameters.profileName,
|
|
57
|
+
Parameters.subscriptionId,
|
|
58
|
+
Parameters.heatMapType
|
|
59
|
+
],
|
|
60
|
+
headerParameters: [Parameters.accept],
|
|
61
|
+
serializer
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=heatMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heatMap.js","sourceRoot":"","sources":["../../../src/operations/heatMap.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,2CAA2C;AAC3C,MAAa,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3BD,kCA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,4JAA4J;IAC9J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;KACpB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { HeatMap } 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 { TrafficManagerManagementClient } from \"../trafficManagerManagementClient.js\";\nimport { HeatMapGetOptionalParams, HeatMapGetResponse } from \"../models/index.js\";\n\n/** Class containing HeatMap operations. */\nexport class HeatMapImpl implements HeatMap {\n private readonly client: TrafficManagerManagementClient;\n\n /**\n * Initialize a new instance of the class HeatMap class.\n * @param client Reference to the service client\n */\n constructor(client: TrafficManagerManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets latest heatmap for Traffic Manager profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param profileName The name of the Traffic Manager profile.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n options?: HeatMapGetOptionalParams\n ): Promise<HeatMapGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/heatMaps/{heatMapType}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.HeatMapModel\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.topLeft,\n Parameters.botRight\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.profileName,\n Parameters.subscriptionId,\n Parameters.heatMapType\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./endpoints.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./profiles.js"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./geographicHierarchies.js"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./heatMap.js"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./trafficManagerUserMetricsKeys.js"), exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,yDAA+B;AAC/B,wDAA8B;AAC9B,qEAA2C;AAC3C,uDAA6B;AAC7B,6EAAmD","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 \"./endpoints.js\";\nexport * from \"./profiles.js\";\nexport * from \"./geographicHierarchies.js\";\nexport * from \"./heatMap.js\";\nexport * from \"./trafficManagerUserMetricsKeys.js\";\n"]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Profiles } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { TrafficManagerManagementClient } from "../trafficManagerManagementClient.js";
|
|
4
|
+
import { Profile, ProfilesListByResourceGroupOptionalParams, ProfilesListBySubscriptionOptionalParams, CheckTrafficManagerRelativeDnsNameAvailabilityParameters, ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams, ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse, ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams, ProfilesCheckTrafficManagerNameAvailabilityV2Response, ProfilesGetOptionalParams, ProfilesGetResponse, ProfilesCreateOrUpdateOptionalParams, ProfilesCreateOrUpdateResponse, ProfilesDeleteOptionalParams, ProfilesDeleteResponse, ProfilesUpdateOptionalParams, ProfilesUpdateResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing Profiles operations. */
|
|
6
|
+
export declare class ProfilesImpl implements Profiles {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Profiles class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: TrafficManagerManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all Traffic Manager profiles within a resource group.
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
listByResourceGroup(resourceGroupName: string, options?: ProfilesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Profile>;
|
|
19
|
+
private listByResourceGroupPagingPage;
|
|
20
|
+
private listByResourceGroupPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* Lists all Traffic Manager profiles within a subscription.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
listBySubscription(options?: ProfilesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Profile>;
|
|
26
|
+
private listBySubscriptionPagingPage;
|
|
27
|
+
private listBySubscriptionPagingAll;
|
|
28
|
+
/**
|
|
29
|
+
* Checks the availability of a Traffic Manager Relative DNS name.
|
|
30
|
+
* @param parameters The Traffic Manager name parameters supplied to the
|
|
31
|
+
* CheckTrafficManagerNameAvailability operation.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
checkTrafficManagerRelativeDnsNameAvailability(parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters, options?: ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams): Promise<ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Checks the availability of a Traffic Manager Relative DNS name.
|
|
37
|
+
* @param parameters The Traffic Manager name parameters supplied to the
|
|
38
|
+
* CheckTrafficManagerNameAvailability operation.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
checkTrafficManagerNameAvailabilityV2(parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters, options?: ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams): Promise<ProfilesCheckTrafficManagerNameAvailabilityV2Response>;
|
|
42
|
+
/**
|
|
43
|
+
* Lists all Traffic Manager profiles within a resource group.
|
|
44
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
private _listByResourceGroup;
|
|
48
|
+
/**
|
|
49
|
+
* Lists all Traffic Manager profiles within a subscription.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
private _listBySubscription;
|
|
53
|
+
/**
|
|
54
|
+
* Gets a Traffic Manager profile.
|
|
55
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
56
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
57
|
+
* @param options The options parameters.
|
|
58
|
+
*/
|
|
59
|
+
get(resourceGroupName: string, profileName: string, options?: ProfilesGetOptionalParams): Promise<ProfilesGetResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Create or update a Traffic Manager profile.
|
|
62
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
63
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
64
|
+
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
createOrUpdate(resourceGroupName: string, profileName: string, parameters: Profile, options?: ProfilesCreateOrUpdateOptionalParams): Promise<ProfilesCreateOrUpdateResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Deletes a Traffic Manager profile.
|
|
70
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
71
|
+
* @param profileName The name of the Traffic Manager profile to be deleted.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
delete(resourceGroupName: string, profileName: string, options?: ProfilesDeleteOptionalParams): Promise<ProfilesDeleteResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* Update a Traffic Manager profile.
|
|
77
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
78
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
79
|
+
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
update(resourceGroupName: string, profileName: string, parameters: Profile, options?: ProfilesUpdateOptionalParams): Promise<ProfilesUpdateResponse>;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/operations/profiles.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EACL,OAAO,EACP,yCAAyC,EAEzC,wCAAwC,EAExC,wDAAwD,EACxD,oEAAoE,EACpE,8DAA8D,EAC9D,2DAA2D,EAC3D,qDAAqD,EACrD,yBAAyB,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AiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAOlC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,OAAO,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;CAMnC"}
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ProfilesImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing Profiles operations. */
|
|
17
|
+
class ProfilesImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class Profiles class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Lists all Traffic Manager profiles within a resource group.
|
|
27
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
31
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: (settings) => {
|
|
40
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
41
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
|
+
}
|
|
43
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
48
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
49
|
+
let result;
|
|
50
|
+
result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
51
|
+
yield yield tslib_1.__await(result.value || []);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
55
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
56
|
+
var _a, e_1, _b, _c;
|
|
57
|
+
try {
|
|
58
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
59
|
+
_c = _f.value;
|
|
60
|
+
_d = false;
|
|
61
|
+
const page = _c;
|
|
62
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Lists all Traffic Manager profiles within a subscription.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
listBySubscription(options) {
|
|
79
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
80
|
+
return {
|
|
81
|
+
next() {
|
|
82
|
+
return iter.next();
|
|
83
|
+
},
|
|
84
|
+
[Symbol.asyncIterator]() {
|
|
85
|
+
return this;
|
|
86
|
+
},
|
|
87
|
+
byPage: (settings) => {
|
|
88
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
89
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
90
|
+
}
|
|
91
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
listBySubscriptionPagingPage(options, _settings) {
|
|
96
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
97
|
+
let result;
|
|
98
|
+
result = yield tslib_1.__await(this._listBySubscription(options));
|
|
99
|
+
yield yield tslib_1.__await(result.value || []);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
listBySubscriptionPagingAll(options) {
|
|
103
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
104
|
+
var _a, e_2, _b, _c;
|
|
105
|
+
try {
|
|
106
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
107
|
+
_c = _f.value;
|
|
108
|
+
_d = false;
|
|
109
|
+
const page = _c;
|
|
110
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
114
|
+
finally {
|
|
115
|
+
try {
|
|
116
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
117
|
+
}
|
|
118
|
+
finally { if (e_2) throw e_2.error; }
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Checks the availability of a Traffic Manager Relative DNS name.
|
|
124
|
+
* @param parameters The Traffic Manager name parameters supplied to the
|
|
125
|
+
* CheckTrafficManagerNameAvailability operation.
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
checkTrafficManagerRelativeDnsNameAvailability(parameters, options) {
|
|
129
|
+
return this.client.sendOperationRequest({ parameters, options }, checkTrafficManagerRelativeDnsNameAvailabilityOperationSpec);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Checks the availability of a Traffic Manager Relative DNS name.
|
|
133
|
+
* @param parameters The Traffic Manager name parameters supplied to the
|
|
134
|
+
* CheckTrafficManagerNameAvailability operation.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
checkTrafficManagerNameAvailabilityV2(parameters, options) {
|
|
138
|
+
return this.client.sendOperationRequest({ parameters, options }, checkTrafficManagerNameAvailabilityV2OperationSpec);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Lists all Traffic Manager profiles within a resource group.
|
|
142
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
143
|
+
* @param options The options parameters.
|
|
144
|
+
*/
|
|
145
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
146
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Lists all Traffic Manager profiles within a subscription.
|
|
150
|
+
* @param options The options parameters.
|
|
151
|
+
*/
|
|
152
|
+
_listBySubscription(options) {
|
|
153
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Gets a Traffic Manager profile.
|
|
157
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
158
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
159
|
+
* @param options The options parameters.
|
|
160
|
+
*/
|
|
161
|
+
get(resourceGroupName, profileName, options) {
|
|
162
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, options }, getOperationSpec);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Create or update a Traffic Manager profile.
|
|
166
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
167
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
168
|
+
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
|
|
169
|
+
* @param options The options parameters.
|
|
170
|
+
*/
|
|
171
|
+
createOrUpdate(resourceGroupName, profileName, parameters, options) {
|
|
172
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, parameters, options }, createOrUpdateOperationSpec);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Deletes a Traffic Manager profile.
|
|
176
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
177
|
+
* @param profileName The name of the Traffic Manager profile to be deleted.
|
|
178
|
+
* @param options The options parameters.
|
|
179
|
+
*/
|
|
180
|
+
delete(resourceGroupName, profileName, options) {
|
|
181
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, options }, deleteOperationSpec);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Update a Traffic Manager profile.
|
|
185
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
186
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
187
|
+
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
|
|
188
|
+
* @param options The options parameters.
|
|
189
|
+
*/
|
|
190
|
+
update(resourceGroupName, profileName, parameters, options) {
|
|
191
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, parameters, options }, updateOperationSpec);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
exports.ProfilesImpl = ProfilesImpl;
|
|
195
|
+
// Operation Specifications
|
|
196
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
197
|
+
const checkTrafficManagerRelativeDnsNameAvailabilityOperationSpec = {
|
|
198
|
+
path: "/providers/Microsoft.Network/checkTrafficManagerNameAvailability",
|
|
199
|
+
httpMethod: "POST",
|
|
200
|
+
responses: {
|
|
201
|
+
200: {
|
|
202
|
+
bodyMapper: Mappers.TrafficManagerNameAvailability
|
|
203
|
+
},
|
|
204
|
+
default: {
|
|
205
|
+
bodyMapper: Mappers.CloudError
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
requestBody: Parameters.parameters1,
|
|
209
|
+
queryParameters: [Parameters.apiVersion],
|
|
210
|
+
urlParameters: [Parameters.$host],
|
|
211
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
212
|
+
mediaType: "json",
|
|
213
|
+
serializer
|
|
214
|
+
};
|
|
215
|
+
const checkTrafficManagerNameAvailabilityV2OperationSpec = {
|
|
216
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2",
|
|
217
|
+
httpMethod: "POST",
|
|
218
|
+
responses: {
|
|
219
|
+
200: {
|
|
220
|
+
bodyMapper: Mappers.TrafficManagerNameAvailability
|
|
221
|
+
},
|
|
222
|
+
default: {
|
|
223
|
+
bodyMapper: Mappers.CloudError
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
requestBody: Parameters.parameters1,
|
|
227
|
+
queryParameters: [Parameters.apiVersion],
|
|
228
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
229
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
230
|
+
mediaType: "json",
|
|
231
|
+
serializer
|
|
232
|
+
};
|
|
233
|
+
const listByResourceGroupOperationSpec = {
|
|
234
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles",
|
|
235
|
+
httpMethod: "GET",
|
|
236
|
+
responses: {
|
|
237
|
+
200: {
|
|
238
|
+
bodyMapper: Mappers.ProfileListResult
|
|
239
|
+
},
|
|
240
|
+
default: {
|
|
241
|
+
bodyMapper: Mappers.CloudError
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
queryParameters: [Parameters.apiVersion],
|
|
245
|
+
urlParameters: [
|
|
246
|
+
Parameters.$host,
|
|
247
|
+
Parameters.resourceGroupName,
|
|
248
|
+
Parameters.subscriptionId
|
|
249
|
+
],
|
|
250
|
+
headerParameters: [Parameters.accept],
|
|
251
|
+
serializer
|
|
252
|
+
};
|
|
253
|
+
const listBySubscriptionOperationSpec = {
|
|
254
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles",
|
|
255
|
+
httpMethod: "GET",
|
|
256
|
+
responses: {
|
|
257
|
+
200: {
|
|
258
|
+
bodyMapper: Mappers.ProfileListResult
|
|
259
|
+
},
|
|
260
|
+
default: {
|
|
261
|
+
bodyMapper: Mappers.CloudError
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
queryParameters: [Parameters.apiVersion],
|
|
265
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
266
|
+
headerParameters: [Parameters.accept],
|
|
267
|
+
serializer
|
|
268
|
+
};
|
|
269
|
+
const getOperationSpec = {
|
|
270
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}",
|
|
271
|
+
httpMethod: "GET",
|
|
272
|
+
responses: {
|
|
273
|
+
200: {
|
|
274
|
+
bodyMapper: Mappers.Profile
|
|
275
|
+
},
|
|
276
|
+
default: {
|
|
277
|
+
bodyMapper: Mappers.CloudError
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
queryParameters: [Parameters.apiVersion],
|
|
281
|
+
urlParameters: [
|
|
282
|
+
Parameters.$host,
|
|
283
|
+
Parameters.resourceGroupName,
|
|
284
|
+
Parameters.profileName,
|
|
285
|
+
Parameters.subscriptionId
|
|
286
|
+
],
|
|
287
|
+
headerParameters: [Parameters.accept],
|
|
288
|
+
serializer
|
|
289
|
+
};
|
|
290
|
+
const createOrUpdateOperationSpec = {
|
|
291
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}",
|
|
292
|
+
httpMethod: "PUT",
|
|
293
|
+
responses: {
|
|
294
|
+
200: {
|
|
295
|
+
bodyMapper: Mappers.Profile
|
|
296
|
+
},
|
|
297
|
+
201: {
|
|
298
|
+
bodyMapper: Mappers.Profile
|
|
299
|
+
},
|
|
300
|
+
default: {
|
|
301
|
+
bodyMapper: Mappers.CloudError
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
requestBody: Parameters.parameters2,
|
|
305
|
+
queryParameters: [Parameters.apiVersion],
|
|
306
|
+
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
308
|
+
Parameters.resourceGroupName,
|
|
309
|
+
Parameters.profileName,
|
|
310
|
+
Parameters.subscriptionId
|
|
311
|
+
],
|
|
312
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
313
|
+
mediaType: "json",
|
|
314
|
+
serializer
|
|
315
|
+
};
|
|
316
|
+
const deleteOperationSpec = {
|
|
317
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}",
|
|
318
|
+
httpMethod: "DELETE",
|
|
319
|
+
responses: {
|
|
320
|
+
200: {
|
|
321
|
+
bodyMapper: Mappers.DeleteOperationResult
|
|
322
|
+
},
|
|
323
|
+
204: {},
|
|
324
|
+
default: {
|
|
325
|
+
bodyMapper: Mappers.CloudError
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
queryParameters: [Parameters.apiVersion],
|
|
329
|
+
urlParameters: [
|
|
330
|
+
Parameters.$host,
|
|
331
|
+
Parameters.resourceGroupName,
|
|
332
|
+
Parameters.profileName,
|
|
333
|
+
Parameters.subscriptionId
|
|
334
|
+
],
|
|
335
|
+
headerParameters: [Parameters.accept],
|
|
336
|
+
serializer
|
|
337
|
+
};
|
|
338
|
+
const updateOperationSpec = {
|
|
339
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}",
|
|
340
|
+
httpMethod: "PATCH",
|
|
341
|
+
responses: {
|
|
342
|
+
200: {
|
|
343
|
+
bodyMapper: Mappers.Profile
|
|
344
|
+
},
|
|
345
|
+
default: {
|
|
346
|
+
bodyMapper: Mappers.CloudError
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
requestBody: Parameters.parameters2,
|
|
350
|
+
queryParameters: [Parameters.apiVersion],
|
|
351
|
+
urlParameters: [
|
|
352
|
+
Parameters.$host,
|
|
353
|
+
Parameters.resourceGroupName,
|
|
354
|
+
Parameters.profileName,
|
|
355
|
+
Parameters.subscriptionId
|
|
356
|
+
],
|
|
357
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
358
|
+
mediaType: "json",
|
|
359
|
+
serializer
|
|
360
|
+
};
|
|
361
|
+
//# sourceMappingURL=profiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../../src/operations/profiles.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAuBtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACz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,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { Profiles } 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 { TrafficManagerManagementClient } from \"../trafficManagerManagementClient.js\";\nimport {\n Profile,\n ProfilesListByResourceGroupOptionalParams,\n ProfilesListByResourceGroupResponse,\n ProfilesListBySubscriptionOptionalParams,\n ProfilesListBySubscriptionResponse,\n CheckTrafficManagerRelativeDnsNameAvailabilityParameters,\n ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams,\n ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse,\n ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams,\n ProfilesCheckTrafficManagerNameAvailabilityV2Response,\n ProfilesGetOptionalParams,\n ProfilesGetResponse,\n ProfilesCreateOrUpdateOptionalParams,\n ProfilesCreateOrUpdateResponse,\n ProfilesDeleteOptionalParams,\n ProfilesDeleteResponse,\n ProfilesUpdateOptionalParams,\n ProfilesUpdateResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Profiles operations. */\nexport class ProfilesImpl implements Profiles {\n private readonly client: TrafficManagerManagementClient;\n\n /**\n * Initialize a new instance of the class Profiles class.\n * @param client Reference to the service client\n */\n constructor(client: TrafficManagerManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all Traffic Manager profiles within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ProfilesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Profile> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ProfilesListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Profile[]> {\n let result: ProfilesListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ProfilesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Profile> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all Traffic Manager profiles within a subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ProfilesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Profile> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ProfilesListBySubscriptionOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Profile[]> {\n let result: ProfilesListBySubscriptionResponse;\n result = await this._listBySubscription(options);\n yield result.value || [];\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ProfilesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<Profile> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Checks the availability of a Traffic Manager Relative DNS name.\n * @param parameters The Traffic Manager name parameters supplied to the\n * CheckTrafficManagerNameAvailability operation.\n * @param options The options parameters.\n */\n checkTrafficManagerRelativeDnsNameAvailability(\n parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters,\n options?: ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams\n ): Promise<ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { parameters, options },\n checkTrafficManagerRelativeDnsNameAvailabilityOperationSpec\n );\n }\n\n /**\n * Checks the availability of a Traffic Manager Relative DNS name.\n * @param parameters The Traffic Manager name parameters supplied to the\n * CheckTrafficManagerNameAvailability operation.\n * @param options The options parameters.\n */\n checkTrafficManagerNameAvailabilityV2(\n parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters,\n options?: ProfilesCheckTrafficManagerNameAvailabilityV2OptionalParams\n ): Promise<ProfilesCheckTrafficManagerNameAvailabilityV2Response> {\n return this.client.sendOperationRequest(\n { parameters, options },\n checkTrafficManagerNameAvailabilityV2OperationSpec\n );\n }\n\n /**\n * Lists all Traffic Manager profiles within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ProfilesListByResourceGroupOptionalParams\n ): Promise<ProfilesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Lists all Traffic Manager profiles within a subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ProfilesListBySubscriptionOptionalParams\n ): Promise<ProfilesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Gets a Traffic Manager profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param profileName The name of the Traffic Manager profile.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n options?: ProfilesGetOptionalParams\n ): Promise<ProfilesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a Traffic Manager profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param profileName The name of the Traffic Manager profile.\n * @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n profileName: string,\n parameters: Profile,\n options?: ProfilesCreateOrUpdateOptionalParams\n ): Promise<ProfilesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a Traffic Manager profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param profileName The name of the Traffic Manager profile to be deleted.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n profileName: string,\n options?: ProfilesDeleteOptionalParams\n ): Promise<ProfilesDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Update a Traffic Manager profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param profileName The name of the Traffic Manager profile.\n * @param parameters The Traffic Manager profile parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n profileName: string,\n parameters: Profile,\n options?: ProfilesUpdateOptionalParams\n ): Promise<ProfilesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, parameters, options },\n updateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkTrafficManagerRelativeDnsNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Network/checkTrafficManagerNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TrafficManagerNameAvailability\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst checkTrafficManagerNameAvailabilityV2OperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TrafficManagerNameAvailability\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProfileListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProfileListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Profile\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.profileName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Profile\n },\n 201: {\n bodyMapper: Mappers.Profile\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.profileName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeleteOperationResult\n },\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.profileName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Profile\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.profileName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|