@azure/arm-trafficmanager 5.1.1 → 6.0.0-alpha.20220208.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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +71 -87
- package/dist/index.js +1719 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/endpointDeleteExternal.d.ts +2 -0
- package/dist-esm/samples-dev/endpointDeleteExternal.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointDeleteExternal.js +33 -0
- package/dist-esm/samples-dev/endpointDeleteExternal.js.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts +2 -0
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js +33 -0
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts +2 -0
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.js +33 -0
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.js.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts +2 -0
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js +33 -0
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js.map +1 -0
- package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPatchExternalTarget.js +39 -0
- package/dist-esm/samples-dev/endpointPatchExternalTarget.js.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js +44 -0
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js +40 -0
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.js +40 -0
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.js.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js +43 -0
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js.map +1 -0
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts +2 -0
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts.map +1 -0
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.js +29 -0
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.js.map +1 -0
- package/dist-esm/samples-dev/heatMapGet.d.ts +2 -0
- package/dist-esm/samples-dev/heatMapGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/heatMapGet.js +31 -0
- package/dist-esm/samples-dev/heatMapGet.js.map +1 -0
- package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts +2 -0
- package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts.map +1 -0
- package/dist-esm/samples-dev/heatMapGetWithNullValues.js +31 -0
- package/dist-esm/samples-dev/heatMapGetWithNullValues.js.map +1 -0
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts +2 -0
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts.map +1 -0
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js +34 -0
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js.map +1 -0
- package/dist-esm/samples-dev/listBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listBySubscription.js +43 -0
- package/dist-esm/samples-dev/listBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listProfilesByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/listProfilesByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts +2 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts.map +1 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js +33 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js.map +1 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts +2 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts.map +1 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js +33 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js.map +1 -0
- package/dist-esm/samples-dev/profileDelete.d.ts +2 -0
- package/dist-esm/samples-dev/profileDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/profileDelete.js +31 -0
- package/dist-esm/samples-dev/profileDelete.js.map +1 -0
- package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts +2 -0
- package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts.map +1 -0
- package/dist-esm/samples-dev/profileGetWithEndpoints.js +31 -0
- package/dist-esm/samples-dev/profileGetWithEndpoints.js.map +1 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts +2 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts.map +1 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js +31 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js.map +1 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts +2 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts.map +1 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js +31 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js.map +1 -0
- package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts +2 -0
- package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePatchMonitorConfig.js +45 -0
- package/dist-esm/samples-dev/profilePatchMonitorConfig.js.map +1 -0
- package/dist-esm/samples-dev/profilePutMultiValue.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutMultiValue.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutMultiValue.js +40 -0
- package/dist-esm/samples-dev/profilePutMultiValue.js.map +1 -0
- package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutNoEndpoints.js +38 -0
- package/dist-esm/samples-dev/profilePutNoEndpoints.js.map +1 -0
- package/dist-esm/samples-dev/profilePutWithAliasing.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutWithAliasing.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutWithAliasing.js +58 -0
- package/dist-esm/samples-dev/profilePutWithAliasing.js.map +1 -0
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.js +67 -0
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.js.map +1 -0
- package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutWithEndpoints.js +57 -0
- package/dist-esm/samples-dev/profilePutWithEndpoints.js.map +1 -0
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js +69 -0
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts +2 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js +29 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts +2 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js +29 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts +2 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js +29 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +474 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +70 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +26 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +360 -337
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +86 -57
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/endpoints.d.ts +54 -0
- package/dist-esm/src/operations/endpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/endpoints.js +186 -0
- package/dist-esm/src/operations/endpoints.js.map +1 -0
- package/dist-esm/src/operations/geographicHierarchies.d.ts +18 -0
- package/dist-esm/src/operations/geographicHierarchies.d.ts.map +1 -0
- package/dist-esm/src/operations/geographicHierarchies.js +46 -0
- package/dist-esm/src/operations/geographicHierarchies.js.map +1 -0
- package/dist-esm/src/operations/heatMap.d.ts +20 -0
- package/dist-esm/src/operations/heatMap.d.ts.map +1 -0
- package/dist-esm/src/operations/heatMap.js +58 -0
- package/dist-esm/src/operations/heatMap.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/profiles.d.ts +80 -0
- package/dist-esm/src/operations/profiles.d.ts.map +1 -0
- package/dist-esm/src/operations/profiles.js +321 -0
- package/dist-esm/src/operations/profiles.js.map +1 -0
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.d.ts +28 -0
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.js +92 -0
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/endpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/endpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/geographicHierarchies.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/geographicHierarchies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/geographicHierarchies.js +9 -0
- package/dist-esm/src/operationsInterfaces/geographicHierarchies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/heatMap.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/heatMap.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/heatMap.js} +2 -1
- package/dist-esm/src/operationsInterfaces/heatMap.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/profiles.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/profiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/profiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/profiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.js.map +1 -0
- package/dist-esm/src/trafficManagerManagementClient.d.ts +23 -0
- package/dist-esm/src/trafficManagerManagementClient.d.ts.map +1 -0
- package/dist-esm/src/trafficManagerManagementClient.js +56 -0
- package/dist-esm/src/trafficManagerManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +80 -23
- package/review/arm-trafficmanager.api.md +486 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/models/index.ts +434 -760
- package/src/models/mappers.ts +364 -339
- package/src/models/parameters.ts +109 -57
- package/src/operations/endpoints.ts +120 -205
- package/src/operations/geographicHierarchies.ts +30 -40
- package/src/operations/heatMap.ts +39 -54
- package/src/operations/index.ts +1 -2
- package/src/operations/profiles.ts +242 -292
- package/src/operations/trafficManagerUserMetricsKeys.ts +57 -105
- package/src/operationsInterfaces/endpoints.ts +91 -0
- package/src/operationsInterfaces/geographicHierarchies.ts +23 -0
- package/src/operationsInterfaces/heatMap.ts +24 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/profiles.ts +106 -0
- package/src/operationsInterfaces/trafficManagerUserMetricsKeys.ts +41 -0
- package/src/trafficManagerManagementClient.ts +83 -41
- package/tsconfig.json +5 -4
- package/types/arm-trafficmanager.d.ts +708 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-trafficmanager.js +0 -1824
- package/dist/arm-trafficmanager.js.map +0 -1
- package/dist/arm-trafficmanager.min.js +0 -1
- package/dist/arm-trafficmanager.min.js.map +0 -1
- package/esm/models/endpointsMappers.d.ts +0 -2
- package/esm/models/endpointsMappers.d.ts.map +0 -1
- package/esm/models/endpointsMappers.js +0 -9
- package/esm/models/endpointsMappers.js.map +0 -1
- package/esm/models/geographicHierarchiesMappers.d.ts +0 -2
- package/esm/models/geographicHierarchiesMappers.d.ts.map +0 -1
- package/esm/models/geographicHierarchiesMappers.js +0 -9
- package/esm/models/geographicHierarchiesMappers.js.map +0 -1
- package/esm/models/heatMapMappers.d.ts +0 -2
- package/esm/models/heatMapMappers.d.ts.map +0 -1
- package/esm/models/heatMapMappers.js +0 -9
- package/esm/models/heatMapMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -812
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -26
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/profilesMappers.d.ts +0 -2
- package/esm/models/profilesMappers.d.ts.map +0 -1
- package/esm/models/profilesMappers.js +0 -9
- package/esm/models/profilesMappers.js.map +0 -1
- package/esm/models/trafficManagerUserMetricsKeysMappers.d.ts +0 -2
- package/esm/models/trafficManagerUserMetricsKeysMappers.d.ts.map +0 -1
- package/esm/models/trafficManagerUserMetricsKeysMappers.js +0 -9
- package/esm/models/trafficManagerUserMetricsKeysMappers.js.map +0 -1
- package/esm/operations/endpoints.d.ts +0 -139
- package/esm/operations/endpoints.d.ts.map +0 -1
- package/esm/operations/endpoints.js +0 -181
- package/esm/operations/endpoints.js.map +0 -1
- package/esm/operations/geographicHierarchies.d.ts +0 -28
- package/esm/operations/geographicHierarchies.d.ts.map +0 -1
- package/esm/operations/geographicHierarchies.js +0 -50
- package/esm/operations/geographicHierarchies.js.map +0 -1
- package/esm/operations/heatMap.d.ts +0 -34
- package/esm/operations/heatMap.d.ts.map +0 -1
- package/esm/operations/heatMap.js +0 -60
- package/esm/operations/heatMap.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/profiles.d.ts +0 -166
- package/esm/operations/profiles.d.ts.map +0 -1
- package/esm/operations/profiles.js +0 -250
- package/esm/operations/profiles.js.map +0 -1
- package/esm/operations/trafficManagerUserMetricsKeys.d.ts +0 -58
- package/esm/operations/trafficManagerUserMetricsKeys.d.ts.map +0 -1
- package/esm/operations/trafficManagerUserMetricsKeys.js +0 -107
- package/esm/operations/trafficManagerUserMetricsKeys.js.map +0 -1
- package/esm/trafficManagerManagementClient.d.ts +0 -29
- package/esm/trafficManagerManagementClient.d.ts.map +0 -1
- package/esm/trafficManagerManagementClient.js +0 -42
- package/esm/trafficManagerManagementClient.js.map +0 -1
- package/esm/trafficManagerManagementClientContext.d.ts +0 -23
- package/esm/trafficManagerManagementClientContext.d.ts.map +0 -1
- package/esm/trafficManagerManagementClientContext.js +0 -61
- package/esm/trafficManagerManagementClientContext.js.map +0 -1
- package/src/models/endpointsMappers.ts +0 -31
- package/src/models/geographicHierarchiesMappers.ts +0 -30
- package/src/models/heatMapMappers.ts +0 -30
- package/src/models/profilesMappers.ts +0 -34
- package/src/models/trafficManagerUserMetricsKeysMappers.ts +0 -31
- package/src/trafficManagerManagementClientContext.ts +0 -68
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-trafficmanager"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import * as coreAuth from '@azure/core-auth';
|
|
8
|
+
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
+
|
|
11
|
+
// @public
|
|
12
|
+
export type AllowedEndpointRecordType = string;
|
|
13
|
+
|
|
14
|
+
// @public
|
|
15
|
+
export interface CheckTrafficManagerRelativeDnsNameAvailabilityParameters {
|
|
16
|
+
name?: string;
|
|
17
|
+
type?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// @public
|
|
21
|
+
export interface CloudError {
|
|
22
|
+
error?: CloudErrorBody;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// @public
|
|
26
|
+
export interface CloudErrorBody {
|
|
27
|
+
code?: string;
|
|
28
|
+
details?: CloudErrorBody[];
|
|
29
|
+
message?: string;
|
|
30
|
+
target?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// @public
|
|
34
|
+
export interface DeleteOperationResult {
|
|
35
|
+
readonly operationResult?: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// @public
|
|
39
|
+
export interface DnsConfig {
|
|
40
|
+
readonly fqdn?: string;
|
|
41
|
+
relativeName?: string;
|
|
42
|
+
ttl?: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// @public
|
|
46
|
+
export type Endpoint = ProxyResource & {
|
|
47
|
+
targetResourceId?: string;
|
|
48
|
+
target?: string;
|
|
49
|
+
endpointStatus?: EndpointStatus;
|
|
50
|
+
weight?: number;
|
|
51
|
+
priority?: number;
|
|
52
|
+
endpointLocation?: string;
|
|
53
|
+
endpointMonitorStatus?: EndpointMonitorStatus;
|
|
54
|
+
minChildEndpoints?: number;
|
|
55
|
+
minChildEndpointsIPv4?: number;
|
|
56
|
+
minChildEndpointsIPv6?: number;
|
|
57
|
+
geoMapping?: string[];
|
|
58
|
+
subnets?: EndpointPropertiesSubnetsItem[];
|
|
59
|
+
customHeaders?: EndpointPropertiesCustomHeadersItem[];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// @public
|
|
63
|
+
export type EndpointMonitorStatus = string;
|
|
64
|
+
|
|
65
|
+
// @public
|
|
66
|
+
export interface EndpointPropertiesCustomHeadersItem {
|
|
67
|
+
name?: string;
|
|
68
|
+
value?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// @public
|
|
72
|
+
export interface EndpointPropertiesSubnetsItem {
|
|
73
|
+
first?: string;
|
|
74
|
+
last?: string;
|
|
75
|
+
scope?: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// @public
|
|
79
|
+
export interface Endpoints {
|
|
80
|
+
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: EndpointType, endpointName: string, parameters: Endpoint, options?: EndpointsCreateOrUpdateOptionalParams): Promise<EndpointsCreateOrUpdateResponse>;
|
|
81
|
+
delete(resourceGroupName: string, profileName: string, endpointType: EndpointType, endpointName: string, options?: EndpointsDeleteOptionalParams): Promise<EndpointsDeleteResponse>;
|
|
82
|
+
get(resourceGroupName: string, profileName: string, endpointType: EndpointType, endpointName: string, options?: EndpointsGetOptionalParams): Promise<EndpointsGetResponse>;
|
|
83
|
+
update(resourceGroupName: string, profileName: string, endpointType: EndpointType, endpointName: string, parameters: Endpoint, options?: EndpointsUpdateOptionalParams): Promise<EndpointsUpdateResponse>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// @public
|
|
87
|
+
export interface EndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// @public
|
|
91
|
+
export type EndpointsCreateOrUpdateResponse = Endpoint;
|
|
92
|
+
|
|
93
|
+
// @public
|
|
94
|
+
export interface EndpointsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// @public
|
|
98
|
+
export type EndpointsDeleteResponse = DeleteOperationResult;
|
|
99
|
+
|
|
100
|
+
// @public
|
|
101
|
+
export interface EndpointsGetOptionalParams extends coreClient.OperationOptions {
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// @public
|
|
105
|
+
export type EndpointsGetResponse = Endpoint;
|
|
106
|
+
|
|
107
|
+
// @public
|
|
108
|
+
export type EndpointStatus = string;
|
|
109
|
+
|
|
110
|
+
// @public
|
|
111
|
+
export interface EndpointsUpdateOptionalParams extends coreClient.OperationOptions {
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// @public
|
|
115
|
+
export type EndpointsUpdateResponse = Endpoint;
|
|
116
|
+
|
|
117
|
+
// @public
|
|
118
|
+
export type EndpointType = "AzureEndpoints" | "ExternalEndpoints" | "NestedEndpoints";
|
|
119
|
+
|
|
120
|
+
// @public
|
|
121
|
+
export interface GeographicHierarchies {
|
|
122
|
+
getDefault(options?: GeographicHierarchiesGetDefaultOptionalParams): Promise<GeographicHierarchiesGetDefaultResponse>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// @public
|
|
126
|
+
export interface GeographicHierarchiesGetDefaultOptionalParams extends coreClient.OperationOptions {
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// @public
|
|
130
|
+
export type GeographicHierarchiesGetDefaultResponse = TrafficManagerGeographicHierarchy;
|
|
131
|
+
|
|
132
|
+
// @public
|
|
133
|
+
export interface HeatMap {
|
|
134
|
+
get(resourceGroupName: string, profileName: string, options?: HeatMapGetOptionalParams): Promise<HeatMapGetResponse>;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// @public
|
|
138
|
+
export interface HeatMapEndpoint {
|
|
139
|
+
endpointId?: number;
|
|
140
|
+
resourceId?: string;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// @public
|
|
144
|
+
export interface HeatMapGetOptionalParams extends coreClient.OperationOptions {
|
|
145
|
+
botRight?: number[];
|
|
146
|
+
topLeft?: number[];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// @public
|
|
150
|
+
export type HeatMapGetResponse = HeatMapModel;
|
|
151
|
+
|
|
152
|
+
// @public
|
|
153
|
+
export type HeatMapModel = ProxyResource & {
|
|
154
|
+
startTime?: Date;
|
|
155
|
+
endTime?: Date;
|
|
156
|
+
endpoints?: HeatMapEndpoint[];
|
|
157
|
+
trafficFlows?: TrafficFlow[];
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
// @public
|
|
161
|
+
export enum KnownAllowedEndpointRecordType {
|
|
162
|
+
// (undocumented)
|
|
163
|
+
Any = "Any",
|
|
164
|
+
// (undocumented)
|
|
165
|
+
DomainName = "DomainName",
|
|
166
|
+
// (undocumented)
|
|
167
|
+
IPv4Address = "IPv4Address",
|
|
168
|
+
// (undocumented)
|
|
169
|
+
IPv6Address = "IPv6Address"
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// @public
|
|
173
|
+
export enum KnownEndpointMonitorStatus {
|
|
174
|
+
// (undocumented)
|
|
175
|
+
CheckingEndpoint = "CheckingEndpoint",
|
|
176
|
+
// (undocumented)
|
|
177
|
+
Degraded = "Degraded",
|
|
178
|
+
// (undocumented)
|
|
179
|
+
Disabled = "Disabled",
|
|
180
|
+
// (undocumented)
|
|
181
|
+
Inactive = "Inactive",
|
|
182
|
+
// (undocumented)
|
|
183
|
+
Online = "Online",
|
|
184
|
+
// (undocumented)
|
|
185
|
+
Stopped = "Stopped"
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// @public
|
|
189
|
+
export enum KnownEndpointStatus {
|
|
190
|
+
// (undocumented)
|
|
191
|
+
Disabled = "Disabled",
|
|
192
|
+
// (undocumented)
|
|
193
|
+
Enabled = "Enabled"
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// @public
|
|
197
|
+
export enum KnownMonitorProtocol {
|
|
198
|
+
// (undocumented)
|
|
199
|
+
Http = "HTTP",
|
|
200
|
+
// (undocumented)
|
|
201
|
+
Https = "HTTPS",
|
|
202
|
+
// (undocumented)
|
|
203
|
+
TCP = "TCP"
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// @public
|
|
207
|
+
export enum KnownProfileMonitorStatus {
|
|
208
|
+
// (undocumented)
|
|
209
|
+
CheckingEndpoints = "CheckingEndpoints",
|
|
210
|
+
// (undocumented)
|
|
211
|
+
Degraded = "Degraded",
|
|
212
|
+
// (undocumented)
|
|
213
|
+
Disabled = "Disabled",
|
|
214
|
+
// (undocumented)
|
|
215
|
+
Inactive = "Inactive",
|
|
216
|
+
// (undocumented)
|
|
217
|
+
Online = "Online"
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// @public
|
|
221
|
+
export enum KnownProfileStatus {
|
|
222
|
+
// (undocumented)
|
|
223
|
+
Disabled = "Disabled",
|
|
224
|
+
// (undocumented)
|
|
225
|
+
Enabled = "Enabled"
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// @public
|
|
229
|
+
export enum KnownTrafficRoutingMethod {
|
|
230
|
+
// (undocumented)
|
|
231
|
+
Geographic = "Geographic",
|
|
232
|
+
// (undocumented)
|
|
233
|
+
MultiValue = "MultiValue",
|
|
234
|
+
// (undocumented)
|
|
235
|
+
Performance = "Performance",
|
|
236
|
+
// (undocumented)
|
|
237
|
+
Priority = "Priority",
|
|
238
|
+
// (undocumented)
|
|
239
|
+
Subnet = "Subnet",
|
|
240
|
+
// (undocumented)
|
|
241
|
+
Weighted = "Weighted"
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// @public
|
|
245
|
+
export enum KnownTrafficViewEnrollmentStatus {
|
|
246
|
+
// (undocumented)
|
|
247
|
+
Disabled = "Disabled",
|
|
248
|
+
// (undocumented)
|
|
249
|
+
Enabled = "Enabled"
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// @public
|
|
253
|
+
export interface MonitorConfig {
|
|
254
|
+
customHeaders?: MonitorConfigCustomHeadersItem[];
|
|
255
|
+
expectedStatusCodeRanges?: MonitorConfigExpectedStatusCodeRangesItem[];
|
|
256
|
+
intervalInSeconds?: number;
|
|
257
|
+
path?: string;
|
|
258
|
+
port?: number;
|
|
259
|
+
profileMonitorStatus?: ProfileMonitorStatus;
|
|
260
|
+
protocol?: MonitorProtocol;
|
|
261
|
+
timeoutInSeconds?: number;
|
|
262
|
+
toleratedNumberOfFailures?: number;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// @public
|
|
266
|
+
export interface MonitorConfigCustomHeadersItem {
|
|
267
|
+
name?: string;
|
|
268
|
+
value?: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// @public
|
|
272
|
+
export interface MonitorConfigExpectedStatusCodeRangesItem {
|
|
273
|
+
max?: number;
|
|
274
|
+
min?: number;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// @public
|
|
278
|
+
export type MonitorProtocol = string;
|
|
279
|
+
|
|
280
|
+
// @public
|
|
281
|
+
export type Profile = TrackedResource & {
|
|
282
|
+
profileStatus?: ProfileStatus;
|
|
283
|
+
trafficRoutingMethod?: TrafficRoutingMethod;
|
|
284
|
+
dnsConfig?: DnsConfig;
|
|
285
|
+
monitorConfig?: MonitorConfig;
|
|
286
|
+
endpoints?: Endpoint[];
|
|
287
|
+
trafficViewEnrollmentStatus?: TrafficViewEnrollmentStatus;
|
|
288
|
+
allowedEndpointRecordTypes?: AllowedEndpointRecordType[];
|
|
289
|
+
maxReturn?: number;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
// @public
|
|
293
|
+
export interface ProfileListResult {
|
|
294
|
+
value?: Profile[];
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// @public
|
|
298
|
+
export type ProfileMonitorStatus = string;
|
|
299
|
+
|
|
300
|
+
// @public
|
|
301
|
+
export interface Profiles {
|
|
302
|
+
checkTrafficManagerRelativeDnsNameAvailability(parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters, options?: ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams): Promise<ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse>;
|
|
303
|
+
createOrUpdate(resourceGroupName: string, profileName: string, parameters: Profile, options?: ProfilesCreateOrUpdateOptionalParams): Promise<ProfilesCreateOrUpdateResponse>;
|
|
304
|
+
delete(resourceGroupName: string, profileName: string, options?: ProfilesDeleteOptionalParams): Promise<ProfilesDeleteResponse>;
|
|
305
|
+
get(resourceGroupName: string, profileName: string, options?: ProfilesGetOptionalParams): Promise<ProfilesGetResponse>;
|
|
306
|
+
listByResourceGroup(resourceGroupName: string, options?: ProfilesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Profile>;
|
|
307
|
+
listBySubscription(options?: ProfilesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Profile>;
|
|
308
|
+
update(resourceGroupName: string, profileName: string, parameters: Profile, options?: ProfilesUpdateOptionalParams): Promise<ProfilesUpdateResponse>;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// @public
|
|
312
|
+
export interface ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams extends coreClient.OperationOptions {
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// @public
|
|
316
|
+
export type ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse = TrafficManagerNameAvailability;
|
|
317
|
+
|
|
318
|
+
// @public
|
|
319
|
+
export interface ProfilesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// @public
|
|
323
|
+
export type ProfilesCreateOrUpdateResponse = Profile;
|
|
324
|
+
|
|
325
|
+
// @public
|
|
326
|
+
export interface ProfilesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// @public
|
|
330
|
+
export type ProfilesDeleteResponse = DeleteOperationResult;
|
|
331
|
+
|
|
332
|
+
// @public
|
|
333
|
+
export interface ProfilesGetOptionalParams extends coreClient.OperationOptions {
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// @public
|
|
337
|
+
export type ProfilesGetResponse = Profile;
|
|
338
|
+
|
|
339
|
+
// @public
|
|
340
|
+
export interface ProfilesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// @public
|
|
344
|
+
export type ProfilesListByResourceGroupResponse = ProfileListResult;
|
|
345
|
+
|
|
346
|
+
// @public
|
|
347
|
+
export interface ProfilesListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// @public
|
|
351
|
+
export type ProfilesListBySubscriptionResponse = ProfileListResult;
|
|
352
|
+
|
|
353
|
+
// @public
|
|
354
|
+
export type ProfileStatus = string;
|
|
355
|
+
|
|
356
|
+
// @public
|
|
357
|
+
export interface ProfilesUpdateOptionalParams extends coreClient.OperationOptions {
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// @public
|
|
361
|
+
export type ProfilesUpdateResponse = Profile;
|
|
362
|
+
|
|
363
|
+
// @public
|
|
364
|
+
export type ProxyResource = Resource & {};
|
|
365
|
+
|
|
366
|
+
// @public
|
|
367
|
+
export interface QueryExperience {
|
|
368
|
+
endpointId: number;
|
|
369
|
+
latency?: number;
|
|
370
|
+
queryCount: number;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// @public
|
|
374
|
+
export interface Region {
|
|
375
|
+
code?: string;
|
|
376
|
+
name?: string;
|
|
377
|
+
regions?: Region[];
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// @public
|
|
381
|
+
export interface Resource {
|
|
382
|
+
id?: string;
|
|
383
|
+
name?: string;
|
|
384
|
+
type?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// @public
|
|
388
|
+
export type TrackedResource = Resource & {
|
|
389
|
+
tags?: {
|
|
390
|
+
[propertyName: string]: string;
|
|
391
|
+
};
|
|
392
|
+
location?: string;
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
// @public
|
|
396
|
+
export interface TrafficFlow {
|
|
397
|
+
latitude?: number;
|
|
398
|
+
longitude?: number;
|
|
399
|
+
queryExperiences?: QueryExperience[];
|
|
400
|
+
sourceIp?: string;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// @public
|
|
404
|
+
export type TrafficManagerGeographicHierarchy = ProxyResource & {
|
|
405
|
+
geographicHierarchy?: Region;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
// @public (undocumented)
|
|
409
|
+
export class TrafficManagerManagementClient extends coreClient.ServiceClient {
|
|
410
|
+
// (undocumented)
|
|
411
|
+
$host: string;
|
|
412
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: TrafficManagerManagementClientOptionalParams);
|
|
413
|
+
// (undocumented)
|
|
414
|
+
apiVersion: string;
|
|
415
|
+
// (undocumented)
|
|
416
|
+
endpoints: Endpoints;
|
|
417
|
+
// (undocumented)
|
|
418
|
+
geographicHierarchies: GeographicHierarchies;
|
|
419
|
+
// (undocumented)
|
|
420
|
+
heatMap: HeatMap;
|
|
421
|
+
// (undocumented)
|
|
422
|
+
profiles: Profiles;
|
|
423
|
+
// (undocumented)
|
|
424
|
+
subscriptionId: string;
|
|
425
|
+
// (undocumented)
|
|
426
|
+
trafficManagerUserMetricsKeys: TrafficManagerUserMetricsKeys;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
// @public
|
|
430
|
+
export interface TrafficManagerManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
431
|
+
$host?: string;
|
|
432
|
+
apiVersion?: string;
|
|
433
|
+
endpoint?: string;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// @public
|
|
437
|
+
export interface TrafficManagerNameAvailability {
|
|
438
|
+
message?: string;
|
|
439
|
+
name?: string;
|
|
440
|
+
nameAvailable?: boolean;
|
|
441
|
+
reason?: string;
|
|
442
|
+
type?: string;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// @public
|
|
446
|
+
export interface TrafficManagerUserMetricsKeys {
|
|
447
|
+
createOrUpdate(options?: TrafficManagerUserMetricsKeysCreateOrUpdateOptionalParams): Promise<TrafficManagerUserMetricsKeysCreateOrUpdateResponse>;
|
|
448
|
+
delete(options?: TrafficManagerUserMetricsKeysDeleteOptionalParams): Promise<TrafficManagerUserMetricsKeysDeleteResponse>;
|
|
449
|
+
get(options?: TrafficManagerUserMetricsKeysGetOptionalParams): Promise<TrafficManagerUserMetricsKeysGetResponse>;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// @public
|
|
453
|
+
export interface TrafficManagerUserMetricsKeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
// @public
|
|
457
|
+
export type TrafficManagerUserMetricsKeysCreateOrUpdateResponse = UserMetricsModel;
|
|
458
|
+
|
|
459
|
+
// @public
|
|
460
|
+
export interface TrafficManagerUserMetricsKeysDeleteOptionalParams extends coreClient.OperationOptions {
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
// @public
|
|
464
|
+
export type TrafficManagerUserMetricsKeysDeleteResponse = DeleteOperationResult;
|
|
465
|
+
|
|
466
|
+
// @public
|
|
467
|
+
export interface TrafficManagerUserMetricsKeysGetOptionalParams extends coreClient.OperationOptions {
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// @public
|
|
471
|
+
export type TrafficManagerUserMetricsKeysGetResponse = UserMetricsModel;
|
|
472
|
+
|
|
473
|
+
// @public
|
|
474
|
+
export type TrafficRoutingMethod = string;
|
|
475
|
+
|
|
476
|
+
// @public
|
|
477
|
+
export type TrafficViewEnrollmentStatus = string;
|
|
478
|
+
|
|
479
|
+
// @public
|
|
480
|
+
export type UserMetricsModel = ProxyResource & {
|
|
481
|
+
key?: string;
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
// (No @packageDocumentation comment for this package)
|
|
485
|
+
|
|
486
|
+
```
|
package/rollup.config.js
CHANGED
|
@@ -1,37 +1,188 @@
|
|
|
1
|
-
|
|
2
|
-
import nodeResolve from "rollup-plugin-node-resolve";
|
|
3
|
-
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @type {rollup.RollupFileOptions}
|
|
7
|
-
*/
|
|
8
|
-
const config = {
|
|
9
|
-
input: "./esm/trafficManagerManagementClient.js",
|
|
10
|
-
external: [
|
|
11
|
-
"@azure/ms-rest-js",
|
|
12
|
-
"@azure/ms-rest-azure-js"
|
|
13
|
-
],
|
|
14
|
-
output: {
|
|
15
|
-
file: "./dist/arm-trafficmanager.js",
|
|
16
|
-
format: "umd",
|
|
17
|
-
name: "Azure.ArmTrafficmanager",
|
|
18
|
-
sourcemap: true,
|
|
19
|
-
globals: {
|
|
20
|
-
"@azure/ms-rest-js": "msRest",
|
|
21
|
-
"@azure/ms-rest-azure-js": "msRestAzure"
|
|
22
|
-
},
|
|
23
|
-
banner: `/*
|
|
1
|
+
/*
|
|
24
2
|
* Copyright (c) Microsoft Corporation.
|
|
25
3
|
* Licensed under the MIT License.
|
|
26
4
|
*
|
|
27
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
28
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
+
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
+
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
+
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
+
import json from "@rollup/plugin-json";
|
|
14
|
+
|
|
15
|
+
import nodeBuiltins from "builtin-modules";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
+
*
|
|
20
|
+
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
+
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
+
* rollup's automatic discovery mechanism.
|
|
23
|
+
*
|
|
24
|
+
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
+
*/
|
|
26
|
+
export function openTelemetryCommonJs() {
|
|
27
|
+
const namedExports = {};
|
|
28
|
+
|
|
29
|
+
for (const key of [
|
|
30
|
+
"@opentelemetry/api",
|
|
31
|
+
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
+
]) {
|
|
33
|
+
namedExports[key] = [
|
|
34
|
+
"SpanKind",
|
|
35
|
+
"TraceFlags",
|
|
36
|
+
"getSpan",
|
|
37
|
+
"setSpan",
|
|
38
|
+
"SpanStatusCode",
|
|
39
|
+
"getSpanContext",
|
|
40
|
+
"setSpanContext"
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
+
|
|
46
|
+
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
+
namedExports[
|
|
48
|
+
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
+
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
+
] = [
|
|
51
|
+
"SpanKind",
|
|
52
|
+
"TraceFlags",
|
|
53
|
+
"getSpan",
|
|
54
|
+
"setSpan",
|
|
55
|
+
"StatusCode",
|
|
56
|
+
"CanonicalCode",
|
|
57
|
+
"getSpanContext",
|
|
58
|
+
"setSpanContext"
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return namedExports;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// #region Warning Handler
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A function that can determine whether a rollupwarning should be ignored. If
|
|
69
|
+
* the function returns `true`, then the warning will not be displayed.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
function ignoreNiseSinonEvalWarnings(warning) {
|
|
73
|
+
return (
|
|
74
|
+
warning.code === "EVAL" &&
|
|
75
|
+
warning.id &&
|
|
76
|
+
(warning.id.includes("node_modules/nise") ||
|
|
77
|
+
warning.id.includes("node_modules/sinon")) === true
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function ignoreChaiCircularDependencyWarnings(warning) {
|
|
82
|
+
return (
|
|
83
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const warningInhibitors = [
|
|
89
|
+
ignoreChaiCircularDependencyWarnings,
|
|
90
|
+
ignoreNiseSinonEvalWarnings
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Construct a warning handler for the shared rollup configuration
|
|
95
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
96
|
+
*/
|
|
97
|
+
function makeOnWarnForTesting() {
|
|
98
|
+
return (warning, warn) => {
|
|
99
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
100
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
101
|
+
warn(warning);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// #endregion
|
|
107
|
+
|
|
108
|
+
function makeBrowserTestConfig() {
|
|
109
|
+
const config = {
|
|
110
|
+
input: {
|
|
111
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
|
112
|
+
exclude: ["dist-esm/test/**/node/**"]
|
|
113
|
+
},
|
|
114
|
+
output: {
|
|
115
|
+
file: `dist-test/index.browser.js`,
|
|
116
|
+
format: "umd",
|
|
117
|
+
sourcemap: true
|
|
118
|
+
},
|
|
119
|
+
preserveSymlinks: false,
|
|
120
|
+
plugins: [
|
|
121
|
+
multiEntry({ exports: false }),
|
|
122
|
+
nodeResolve({
|
|
123
|
+
mainFields: ["module", "browser"]
|
|
124
|
+
}),
|
|
125
|
+
cjs({
|
|
126
|
+
namedExports: {
|
|
127
|
+
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
+
// analyze its exports.
|
|
129
|
+
chai: [
|
|
130
|
+
"version",
|
|
131
|
+
"use",
|
|
132
|
+
"util",
|
|
133
|
+
"config",
|
|
134
|
+
"expect",
|
|
135
|
+
"should",
|
|
136
|
+
"assert"
|
|
137
|
+
],
|
|
138
|
+
...openTelemetryCommonJs()
|
|
139
|
+
}
|
|
140
|
+
}),
|
|
141
|
+
json(),
|
|
142
|
+
sourcemaps()
|
|
143
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
144
|
+
],
|
|
145
|
+
onwarn: makeOnWarnForTesting(),
|
|
146
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
147
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
148
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
|
149
|
+
// code, which causes all tests to be removed by tree-shaking.
|
|
150
|
+
treeshake: false
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
return config;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const defaultConfigurationOptions = {
|
|
157
|
+
disableBrowserBundle: false
|
|
35
158
|
};
|
|
36
159
|
|
|
37
|
-
export
|
|
160
|
+
export function makeConfig(pkg, options) {
|
|
161
|
+
options = {
|
|
162
|
+
...defaultConfigurationOptions,
|
|
163
|
+
...(options || {})
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const baseConfig = {
|
|
167
|
+
// Use the package's module field if it has one
|
|
168
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
|
169
|
+
external: [
|
|
170
|
+
...nodeBuiltins,
|
|
171
|
+
...Object.keys(pkg.dependencies),
|
|
172
|
+
...Object.keys(pkg.devDependencies)
|
|
173
|
+
],
|
|
174
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
|
+
preserveSymlinks: false,
|
|
176
|
+
plugins: [sourcemaps(), nodeResolve(), cjs()]
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const config = [baseConfig];
|
|
180
|
+
|
|
181
|
+
if (!options.disableBrowserBundle) {
|
|
182
|
+
config.push(makeBrowserTestConfig());
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return config;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export default makeConfig(require("./package.json"));
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
|
|
9
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export * from "./models";
|
|
11
|
+
export { TrafficManagerManagementClient } from "./trafficManagerManagementClient";
|
|
12
|
+
export * from "./operationsInterfaces";
|