@azure/arm-trafficmanager 6.0.2-alpha.20221101.1 → 6.1.0-beta.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 +14 -10
- package/README.md +1 -1
- package/dist/index.js +153 -48
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js +32 -4
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/endpointsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/endpointsGetSample.js +3 -3
- package/dist-esm/samples-dev/endpointsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.js +1 -1
- package/dist-esm/samples-dev/heatMapGetSample.js +3 -3
- package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/profilesCreateOrUpdateSample.js +6 -6
- package/dist-esm/samples-dev/profilesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/profilesGetSample.js +3 -3
- package/dist-esm/samples-dev/profilesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/profilesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/profilesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.js +1 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.js +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +62 -13
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +38 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +5 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +8 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/endpoints.d.ts +4 -7
- package/dist-esm/src/operations/endpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/endpoints.js +4 -7
- package/dist-esm/src/operations/endpoints.js.map +1 -1
- package/dist-esm/src/operations/heatMap.d.ts +1 -1
- package/dist-esm/src/operations/heatMap.js +1 -1
- package/dist-esm/src/operations/profiles.d.ts +6 -9
- package/dist-esm/src/operations/profiles.d.ts.map +1 -1
- package/dist-esm/src/operations/profiles.js +22 -17
- package/dist-esm/src/operations/profiles.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts +4 -7
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/heatMap.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/profiles.d.ts +5 -7
- package/dist-esm/src/operationsInterfaces/profiles.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/trafficManagerManagementClient.d.ts +3 -2
- package/dist-esm/src/trafficManagerManagementClient.d.ts.map +1 -1
- package/dist-esm/src/trafficManagerManagementClient.js +51 -21
- package/dist-esm/src/trafficManagerManagementClient.js.map +1 -1
- package/dist-esm/test/trafficmanager_examples.spec.d.ts +4 -0
- package/dist-esm/test/trafficmanager_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/trafficmanager_examples.spec.js +112 -0
- package/dist-esm/test/trafficmanager_examples.spec.js.map +1 -0
- package/package.json +13 -9
- package/review/arm-trafficmanager.api.md +42 -58
- package/src/index.ts +1 -0
- package/src/models/index.ts +63 -13
- package/src/models/mappers.ts +6 -0
- package/src/models/parameters.ts +8 -1
- package/src/operations/endpoints.ts +4 -7
- package/src/operations/heatMap.ts +1 -1
- package/src/operations/profiles.ts +31 -20
- package/src/operationsInterfaces/endpoints.ts +4 -7
- package/src/operationsInterfaces/heatMap.ts +1 -1
- package/src/operationsInterfaces/profiles.ts +5 -7
- package/src/pagingHelper.ts +39 -0
- package/src/trafficManagerManagementClient.ts +62 -23
- package/types/arm-trafficmanager.d.ts +86 -30
- package/dist-esm/samples-dev/endpointDeleteExternal.d.ts +0 -2
- package/dist-esm/samples-dev/endpointDeleteExternal.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointDeleteExternal.js +0 -33
- package/dist-esm/samples-dev/endpointDeleteExternal.js.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts +0 -2
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js +0 -33
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts +0 -2
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.js +0 -33
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.js.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts +0 -2
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js +0 -33
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js.map +0 -1
- package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPatchExternalTarget.js +0 -39
- package/dist-esm/samples-dev/endpointPatchExternalTarget.js.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js +0 -44
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js +0 -40
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.js +0 -40
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.js.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js +0 -43
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js.map +0 -1
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts +0 -2
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts.map +0 -1
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.js +0 -29
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.js.map +0 -1
- package/dist-esm/samples-dev/heatMapGet.d.ts +0 -2
- package/dist-esm/samples-dev/heatMapGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/heatMapGet.js +0 -31
- package/dist-esm/samples-dev/heatMapGet.js.map +0 -1
- package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts +0 -2
- package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts.map +0 -1
- package/dist-esm/samples-dev/heatMapGetWithNullValues.js +0 -31
- package/dist-esm/samples-dev/heatMapGetWithNullValues.js.map +0 -1
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts +0 -2
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts.map +0 -1
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js +0 -34
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js.map +0 -1
- package/dist-esm/samples-dev/listBySubscription.d.ts +0 -2
- package/dist-esm/samples-dev/listBySubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/listBySubscription.js +0 -43
- package/dist-esm/samples-dev/listBySubscription.js.map +0 -1
- package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listProfilesByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listProfilesByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts +0 -2
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts.map +0 -1
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js +0 -33
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js.map +0 -1
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts +0 -2
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts.map +0 -1
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js +0 -33
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js.map +0 -1
- package/dist-esm/samples-dev/profileDelete.d.ts +0 -2
- package/dist-esm/samples-dev/profileDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/profileDelete.js +0 -31
- package/dist-esm/samples-dev/profileDelete.js.map +0 -1
- package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts +0 -2
- package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts.map +0 -1
- package/dist-esm/samples-dev/profileGetWithEndpoints.js +0 -31
- package/dist-esm/samples-dev/profileGetWithEndpoints.js.map +0 -1
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts +0 -2
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts.map +0 -1
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js +0 -31
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js.map +0 -1
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts +0 -2
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts.map +0 -1
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js +0 -31
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js.map +0 -1
- package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts +0 -2
- package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePatchMonitorConfig.js +0 -45
- package/dist-esm/samples-dev/profilePatchMonitorConfig.js.map +0 -1
- package/dist-esm/samples-dev/profilePutMultiValue.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutMultiValue.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutMultiValue.js +0 -40
- package/dist-esm/samples-dev/profilePutMultiValue.js.map +0 -1
- package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutNoEndpoints.js +0 -38
- package/dist-esm/samples-dev/profilePutNoEndpoints.js.map +0 -1
- package/dist-esm/samples-dev/profilePutWithAliasing.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutWithAliasing.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutWithAliasing.js +0 -58
- package/dist-esm/samples-dev/profilePutWithAliasing.js.map +0 -1
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.js +0 -67
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.js.map +0 -1
- package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutWithEndpoints.js +0 -57
- package/dist-esm/samples-dev/profilePutWithEndpoints.js.map +0 -1
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js +0 -69
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js +0 -29
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js +0 -29
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js +0 -29
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -40
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -14,6 +14,16 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare type AllowedEndpointRecordType = string;
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Defines values for AlwaysServe. \
|
|
19
|
+
* {@link KnownAlwaysServe} can be used interchangeably with AlwaysServe,
|
|
20
|
+
* this enum contains the known values that the service supports.
|
|
21
|
+
* ### Known values supported by the service
|
|
22
|
+
* **Enabled** \
|
|
23
|
+
* **Disabled**
|
|
24
|
+
*/
|
|
25
|
+
export declare type AlwaysServe = string;
|
|
26
|
+
|
|
17
27
|
/** Parameters supplied to check Traffic Manager name operation. */
|
|
18
28
|
export declare interface CheckTrafficManagerRelativeDnsNameAvailabilityParameters {
|
|
19
29
|
/** The name of the resource. */
|
|
@@ -63,7 +73,7 @@ export declare interface DnsConfig {
|
|
|
63
73
|
}
|
|
64
74
|
|
|
65
75
|
/** Class representing a Traffic Manager endpoint. */
|
|
66
|
-
export declare
|
|
76
|
+
export declare interface Endpoint extends ProxyResource {
|
|
67
77
|
/** The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. */
|
|
68
78
|
targetResourceId?: string;
|
|
69
79
|
/** The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint. */
|
|
@@ -90,7 +100,9 @@ export declare type Endpoint = ProxyResource & {
|
|
|
90
100
|
subnets?: EndpointPropertiesSubnetsItem[];
|
|
91
101
|
/** List of custom headers. */
|
|
92
102
|
customHeaders?: EndpointPropertiesCustomHeadersItem[];
|
|
93
|
-
|
|
103
|
+
/** If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. */
|
|
104
|
+
alwaysServe?: AlwaysServe;
|
|
105
|
+
}
|
|
94
106
|
|
|
95
107
|
/**
|
|
96
108
|
* Defines values for EndpointMonitorStatus. \
|
|
@@ -128,8 +140,7 @@ export declare interface EndpointPropertiesSubnetsItem {
|
|
|
128
140
|
export declare interface Endpoints {
|
|
129
141
|
/**
|
|
130
142
|
* Update a Traffic Manager endpoint.
|
|
131
|
-
* @param resourceGroupName The name of the resource group
|
|
132
|
-
* be updated.
|
|
143
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
133
144
|
* @param profileName The name of the Traffic Manager profile.
|
|
134
145
|
* @param endpointType The type of the Traffic Manager endpoint to be updated.
|
|
135
146
|
* @param endpointName The name of the Traffic Manager endpoint to be updated.
|
|
@@ -139,7 +150,7 @@ export declare interface Endpoints {
|
|
|
139
150
|
update(resourceGroupName: string, profileName: string, endpointType: EndpointType, endpointName: string, parameters: Endpoint, options?: EndpointsUpdateOptionalParams): Promise<EndpointsUpdateResponse>;
|
|
140
151
|
/**
|
|
141
152
|
* Gets a Traffic Manager endpoint.
|
|
142
|
-
* @param resourceGroupName The name of the resource group
|
|
153
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
143
154
|
* @param profileName The name of the Traffic Manager profile.
|
|
144
155
|
* @param endpointType The type of the Traffic Manager endpoint.
|
|
145
156
|
* @param endpointName The name of the Traffic Manager endpoint.
|
|
@@ -148,8 +159,7 @@ export declare interface Endpoints {
|
|
|
148
159
|
get(resourceGroupName: string, profileName: string, endpointType: EndpointType, endpointName: string, options?: EndpointsGetOptionalParams): Promise<EndpointsGetResponse>;
|
|
149
160
|
/**
|
|
150
161
|
* Create or update a Traffic Manager endpoint.
|
|
151
|
-
* @param resourceGroupName The name of the resource group
|
|
152
|
-
* be created or updated.
|
|
162
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
153
163
|
* @param profileName The name of the Traffic Manager profile.
|
|
154
164
|
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
|
|
155
165
|
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
|
|
@@ -159,8 +169,7 @@ export declare interface Endpoints {
|
|
|
159
169
|
createOrUpdate(resourceGroupName: string, profileName: string, endpointType: EndpointType, endpointName: string, parameters: Endpoint, options?: EndpointsCreateOrUpdateOptionalParams): Promise<EndpointsCreateOrUpdateResponse>;
|
|
160
170
|
/**
|
|
161
171
|
* Deletes a Traffic Manager endpoint.
|
|
162
|
-
* @param resourceGroupName The name of the resource group
|
|
163
|
-
* be deleted.
|
|
172
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
164
173
|
* @param profileName The name of the Traffic Manager profile.
|
|
165
174
|
* @param endpointType The type of the Traffic Manager endpoint to be deleted.
|
|
166
175
|
* @param endpointName The name of the Traffic Manager endpoint to be deleted.
|
|
@@ -226,11 +235,20 @@ export declare interface GeographicHierarchiesGetDefaultOptionalParams extends c
|
|
|
226
235
|
/** Contains response data for the getDefault operation. */
|
|
227
236
|
export declare type GeographicHierarchiesGetDefaultResponse = TrafficManagerGeographicHierarchy;
|
|
228
237
|
|
|
238
|
+
/**
|
|
239
|
+
* Given a result page from a pageable operation, returns a
|
|
240
|
+
* continuation token that can be used to begin paging from
|
|
241
|
+
* that point later.
|
|
242
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
243
|
+
* @returns The continuation token that can be passed into byPage().
|
|
244
|
+
*/
|
|
245
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
246
|
+
|
|
229
247
|
/** Interface representing a HeatMap. */
|
|
230
248
|
export declare interface HeatMap {
|
|
231
249
|
/**
|
|
232
250
|
* Gets latest heatmap for Traffic Manager profile.
|
|
233
|
-
* @param resourceGroupName The name of the resource group
|
|
251
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
234
252
|
* @param profileName The name of the Traffic Manager profile.
|
|
235
253
|
* @param options The options parameters.
|
|
236
254
|
*/
|
|
@@ -257,7 +275,7 @@ export declare interface HeatMapGetOptionalParams extends coreClient.OperationOp
|
|
|
257
275
|
export declare type HeatMapGetResponse = HeatMapModel;
|
|
258
276
|
|
|
259
277
|
/** Class representing a Traffic Manager HeatMap. */
|
|
260
|
-
export declare
|
|
278
|
+
export declare interface HeatMapModel extends ProxyResource {
|
|
261
279
|
/** The beginning of the time window for this HeatMap, inclusive. */
|
|
262
280
|
startTime?: Date;
|
|
263
281
|
/** The ending of the time window for this HeatMap, exclusive. */
|
|
@@ -266,67 +284,105 @@ export declare type HeatMapModel = ProxyResource & {
|
|
|
266
284
|
endpoints?: HeatMapEndpoint[];
|
|
267
285
|
/** The traffic flows produced in this HeatMap calculation. */
|
|
268
286
|
trafficFlows?: TrafficFlow[];
|
|
269
|
-
}
|
|
287
|
+
}
|
|
270
288
|
|
|
271
289
|
/** Known values of {@link AllowedEndpointRecordType} that the service accepts. */
|
|
272
290
|
export declare enum KnownAllowedEndpointRecordType {
|
|
291
|
+
/** DomainName */
|
|
273
292
|
DomainName = "DomainName",
|
|
293
|
+
/** IPv4Address */
|
|
274
294
|
IPv4Address = "IPv4Address",
|
|
295
|
+
/** IPv6Address */
|
|
275
296
|
IPv6Address = "IPv6Address",
|
|
297
|
+
/** Any */
|
|
276
298
|
Any = "Any"
|
|
277
299
|
}
|
|
278
300
|
|
|
301
|
+
/** Known values of {@link AlwaysServe} that the service accepts. */
|
|
302
|
+
export declare enum KnownAlwaysServe {
|
|
303
|
+
/** Enabled */
|
|
304
|
+
Enabled = "Enabled",
|
|
305
|
+
/** Disabled */
|
|
306
|
+
Disabled = "Disabled"
|
|
307
|
+
}
|
|
308
|
+
|
|
279
309
|
/** Known values of {@link EndpointMonitorStatus} that the service accepts. */
|
|
280
310
|
export declare enum KnownEndpointMonitorStatus {
|
|
311
|
+
/** CheckingEndpoint */
|
|
281
312
|
CheckingEndpoint = "CheckingEndpoint",
|
|
313
|
+
/** Online */
|
|
282
314
|
Online = "Online",
|
|
315
|
+
/** Degraded */
|
|
283
316
|
Degraded = "Degraded",
|
|
317
|
+
/** Disabled */
|
|
284
318
|
Disabled = "Disabled",
|
|
319
|
+
/** Inactive */
|
|
285
320
|
Inactive = "Inactive",
|
|
321
|
+
/** Stopped */
|
|
286
322
|
Stopped = "Stopped"
|
|
287
323
|
}
|
|
288
324
|
|
|
289
325
|
/** Known values of {@link EndpointStatus} that the service accepts. */
|
|
290
326
|
export declare enum KnownEndpointStatus {
|
|
327
|
+
/** Enabled */
|
|
291
328
|
Enabled = "Enabled",
|
|
329
|
+
/** Disabled */
|
|
292
330
|
Disabled = "Disabled"
|
|
293
331
|
}
|
|
294
332
|
|
|
295
333
|
/** Known values of {@link MonitorProtocol} that the service accepts. */
|
|
296
334
|
export declare enum KnownMonitorProtocol {
|
|
335
|
+
/** Http */
|
|
297
336
|
Http = "HTTP",
|
|
337
|
+
/** Https */
|
|
298
338
|
Https = "HTTPS",
|
|
339
|
+
/** TCP */
|
|
299
340
|
TCP = "TCP"
|
|
300
341
|
}
|
|
301
342
|
|
|
302
343
|
/** Known values of {@link ProfileMonitorStatus} that the service accepts. */
|
|
303
344
|
export declare enum KnownProfileMonitorStatus {
|
|
345
|
+
/** CheckingEndpoints */
|
|
304
346
|
CheckingEndpoints = "CheckingEndpoints",
|
|
347
|
+
/** Online */
|
|
305
348
|
Online = "Online",
|
|
349
|
+
/** Degraded */
|
|
306
350
|
Degraded = "Degraded",
|
|
351
|
+
/** Disabled */
|
|
307
352
|
Disabled = "Disabled",
|
|
353
|
+
/** Inactive */
|
|
308
354
|
Inactive = "Inactive"
|
|
309
355
|
}
|
|
310
356
|
|
|
311
357
|
/** Known values of {@link ProfileStatus} that the service accepts. */
|
|
312
358
|
export declare enum KnownProfileStatus {
|
|
359
|
+
/** Enabled */
|
|
313
360
|
Enabled = "Enabled",
|
|
361
|
+
/** Disabled */
|
|
314
362
|
Disabled = "Disabled"
|
|
315
363
|
}
|
|
316
364
|
|
|
317
365
|
/** Known values of {@link TrafficRoutingMethod} that the service accepts. */
|
|
318
366
|
export declare enum KnownTrafficRoutingMethod {
|
|
367
|
+
/** Performance */
|
|
319
368
|
Performance = "Performance",
|
|
369
|
+
/** Priority */
|
|
320
370
|
Priority = "Priority",
|
|
371
|
+
/** Weighted */
|
|
321
372
|
Weighted = "Weighted",
|
|
373
|
+
/** Geographic */
|
|
322
374
|
Geographic = "Geographic",
|
|
375
|
+
/** MultiValue */
|
|
323
376
|
MultiValue = "MultiValue",
|
|
377
|
+
/** Subnet */
|
|
324
378
|
Subnet = "Subnet"
|
|
325
379
|
}
|
|
326
380
|
|
|
327
381
|
/** Known values of {@link TrafficViewEnrollmentStatus} that the service accepts. */
|
|
328
382
|
export declare enum KnownTrafficViewEnrollmentStatus {
|
|
383
|
+
/** Enabled */
|
|
329
384
|
Enabled = "Enabled",
|
|
385
|
+
/** Disabled */
|
|
330
386
|
Disabled = "Disabled"
|
|
331
387
|
}
|
|
332
388
|
|
|
@@ -380,7 +436,7 @@ export declare interface MonitorConfigExpectedStatusCodeRangesItem {
|
|
|
380
436
|
export declare type MonitorProtocol = string;
|
|
381
437
|
|
|
382
438
|
/** Class representing a Traffic Manager profile. */
|
|
383
|
-
export declare
|
|
439
|
+
export declare interface Profile extends TrackedResource {
|
|
384
440
|
/** The status of the Traffic Manager profile. */
|
|
385
441
|
profileStatus?: ProfileStatus;
|
|
386
442
|
/** The traffic routing method of the Traffic Manager profile. */
|
|
@@ -397,7 +453,7 @@ export declare type Profile = TrackedResource & {
|
|
|
397
453
|
allowedEndpointRecordTypes?: AllowedEndpointRecordType[];
|
|
398
454
|
/** Maximum number of endpoints to be returned for MultiValue routing type. */
|
|
399
455
|
maxReturn?: number;
|
|
400
|
-
}
|
|
456
|
+
}
|
|
401
457
|
|
|
402
458
|
/** The list Traffic Manager profiles operation response. */
|
|
403
459
|
export declare interface ProfileListResult {
|
|
@@ -422,8 +478,7 @@ export declare type ProfileMonitorStatus = string;
|
|
|
422
478
|
export declare interface Profiles {
|
|
423
479
|
/**
|
|
424
480
|
* Lists all Traffic Manager profiles within a resource group.
|
|
425
|
-
* @param resourceGroupName The name of the resource group
|
|
426
|
-
* be listed.
|
|
481
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
427
482
|
* @param options The options parameters.
|
|
428
483
|
*/
|
|
429
484
|
listByResourceGroup(resourceGroupName: string, options?: ProfilesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Profile>;
|
|
@@ -441,14 +496,14 @@ export declare interface Profiles {
|
|
|
441
496
|
checkTrafficManagerRelativeDnsNameAvailability(parameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters, options?: ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams): Promise<ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse>;
|
|
442
497
|
/**
|
|
443
498
|
* Gets a Traffic Manager profile.
|
|
444
|
-
* @param resourceGroupName The name of the resource group
|
|
499
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
445
500
|
* @param profileName The name of the Traffic Manager profile.
|
|
446
501
|
* @param options The options parameters.
|
|
447
502
|
*/
|
|
448
503
|
get(resourceGroupName: string, profileName: string, options?: ProfilesGetOptionalParams): Promise<ProfilesGetResponse>;
|
|
449
504
|
/**
|
|
450
505
|
* Create or update a Traffic Manager profile.
|
|
451
|
-
* @param resourceGroupName The name of the resource group
|
|
506
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
452
507
|
* @param profileName The name of the Traffic Manager profile.
|
|
453
508
|
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
|
|
454
509
|
* @param options The options parameters.
|
|
@@ -456,15 +511,14 @@ export declare interface Profiles {
|
|
|
456
511
|
createOrUpdate(resourceGroupName: string, profileName: string, parameters: Profile, options?: ProfilesCreateOrUpdateOptionalParams): Promise<ProfilesCreateOrUpdateResponse>;
|
|
457
512
|
/**
|
|
458
513
|
* Deletes a Traffic Manager profile.
|
|
459
|
-
* @param resourceGroupName The name of the resource group
|
|
460
|
-
* deleted.
|
|
514
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
461
515
|
* @param profileName The name of the Traffic Manager profile to be deleted.
|
|
462
516
|
* @param options The options parameters.
|
|
463
517
|
*/
|
|
464
518
|
delete(resourceGroupName: string, profileName: string, options?: ProfilesDeleteOptionalParams): Promise<ProfilesDeleteResponse>;
|
|
465
519
|
/**
|
|
466
520
|
* Update a Traffic Manager profile.
|
|
467
|
-
* @param resourceGroupName The name of the resource group
|
|
521
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
468
522
|
* @param profileName The name of the Traffic Manager profile.
|
|
469
523
|
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
|
|
470
524
|
* @param options The options parameters.
|
|
@@ -532,7 +586,8 @@ export declare interface ProfilesUpdateOptionalParams extends coreClient.Operati
|
|
|
532
586
|
export declare type ProfilesUpdateResponse = Profile;
|
|
533
587
|
|
|
534
588
|
/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */
|
|
535
|
-
export declare
|
|
589
|
+
export declare interface ProxyResource extends Resource {
|
|
590
|
+
}
|
|
536
591
|
|
|
537
592
|
/** Class representing a Traffic Manager HeatMap query experience properties. */
|
|
538
593
|
export declare interface QueryExperience {
|
|
@@ -565,14 +620,14 @@ export declare interface Resource {
|
|
|
565
620
|
}
|
|
566
621
|
|
|
567
622
|
/** The resource model definition for a ARM tracked top level resource */
|
|
568
|
-
export declare
|
|
623
|
+
export declare interface TrackedResource extends Resource {
|
|
569
624
|
/** Resource tags. */
|
|
570
625
|
tags?: {
|
|
571
626
|
[propertyName: string]: string;
|
|
572
627
|
};
|
|
573
628
|
/** The Azure Region where the resource lives */
|
|
574
629
|
location?: string;
|
|
575
|
-
}
|
|
630
|
+
}
|
|
576
631
|
|
|
577
632
|
/** Class representing a Traffic Manager HeatMap traffic flow properties. */
|
|
578
633
|
export declare interface TrafficFlow {
|
|
@@ -587,10 +642,10 @@ export declare interface TrafficFlow {
|
|
|
587
642
|
}
|
|
588
643
|
|
|
589
644
|
/** Class representing the Geographic hierarchy used with the Geographic traffic routing method. */
|
|
590
|
-
export declare
|
|
645
|
+
export declare interface TrafficManagerGeographicHierarchy extends ProxyResource {
|
|
591
646
|
/** The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved. */
|
|
592
647
|
geographicHierarchy?: Region;
|
|
593
|
-
}
|
|
648
|
+
}
|
|
594
649
|
|
|
595
650
|
export declare class TrafficManagerManagementClient extends coreClient.ServiceClient {
|
|
596
651
|
$host: string;
|
|
@@ -599,11 +654,12 @@ export declare class TrafficManagerManagementClient extends coreClient.ServiceCl
|
|
|
599
654
|
/**
|
|
600
655
|
* Initializes a new instance of the TrafficManagerManagementClient class.
|
|
601
656
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
602
|
-
* @param subscriptionId
|
|
603
|
-
* subscription. The subscription ID forms part of the URI for every service call.
|
|
657
|
+
* @param subscriptionId The ID of the target subscription.
|
|
604
658
|
* @param options The parameter options
|
|
605
659
|
*/
|
|
606
660
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: TrafficManagerManagementClientOptionalParams);
|
|
661
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
662
|
+
private addCustomApiVersionPolicy;
|
|
607
663
|
endpoints: Endpoints;
|
|
608
664
|
profiles: Profiles;
|
|
609
665
|
geographicHierarchies: GeographicHierarchies;
|
|
@@ -700,9 +756,9 @@ export declare type TrafficRoutingMethod = string;
|
|
|
700
756
|
export declare type TrafficViewEnrollmentStatus = string;
|
|
701
757
|
|
|
702
758
|
/** Class representing Traffic Manager User Metrics. */
|
|
703
|
-
export declare
|
|
759
|
+
export declare interface UserMetricsModel extends ProxyResource {
|
|
704
760
|
/** The key returned by the User Metrics operation. */
|
|
705
761
|
key?: string;
|
|
706
|
-
}
|
|
762
|
+
}
|
|
707
763
|
|
|
708
764
|
export { }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointDeleteExternal.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointDeleteExternal.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Deletes a Traffic Manager endpoint.
|
|
13
|
-
*
|
|
14
|
-
* @summary Deletes a Traffic Manager endpoint.
|
|
15
|
-
* x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Endpoint-DELETE-External.json
|
|
16
|
-
*/
|
|
17
|
-
import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function endpointDeleteExternal() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "azuresdkfornetautoresttrafficmanager1421";
|
|
23
|
-
const profileName = "azsmnet6386";
|
|
24
|
-
const endpointType = "ExternalEndpoints";
|
|
25
|
-
const endpointName = "azsmnet7187";
|
|
26
|
-
const credential = new DefaultAzureCredential();
|
|
27
|
-
const client = new TrafficManagerManagementClient(credential, subscriptionId);
|
|
28
|
-
const result = yield client.endpoints.delete(resourceGroupName, profileName, endpointType, endpointName);
|
|
29
|
-
console.log(result);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
endpointDeleteExternal().catch(console.error);
|
|
33
|
-
//# sourceMappingURL=endpointDeleteExternal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointDeleteExternal.js","sourceRoot":"","sources":["../../samples-dev/endpointDeleteExternal.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACzC,MAAM,YAAY,GAAG,aAAa,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAC1C,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointGetExternalWithGeoMapping.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointGetExternalWithGeoMapping.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets a Traffic Manager endpoint.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets a Traffic Manager endpoint.
|
|
15
|
-
* x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Endpoint-GET-External-WithGeoMapping.json
|
|
16
|
-
*/
|
|
17
|
-
import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function endpointGetExternalWithGeoMapping() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "azuresdkfornetautoresttrafficmanager2191";
|
|
23
|
-
const profileName = "azuresdkfornetautoresttrafficmanager8224";
|
|
24
|
-
const endpointType = "ExternalEndpoints";
|
|
25
|
-
const endpointName = "My%20external%20endpoint";
|
|
26
|
-
const credential = new DefaultAzureCredential();
|
|
27
|
-
const client = new TrafficManagerManagementClient(credential, subscriptionId);
|
|
28
|
-
const result = yield client.endpoints.get(resourceGroupName, profileName, endpointType, endpointName);
|
|
29
|
-
console.log(result);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
endpointGetExternalWithGeoMapping().catch(console.error);
|
|
33
|
-
//# sourceMappingURL=endpointGetExternalWithGeoMapping.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointGetExternalWithGeoMapping.js","sourceRoot":"","sources":["../../samples-dev/endpointGetExternalWithGeoMapping.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,iCAAiC;;QAC9C,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,0CAA0C,CAAC;QAC/D,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACzC,MAAM,YAAY,GAAG,0BAA0B,CAAC;QAChD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointGetExternalWithLocation.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointGetExternalWithLocation.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets a Traffic Manager endpoint.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets a Traffic Manager endpoint.
|
|
15
|
-
* x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Endpoint-GET-External-WithLocation.json
|
|
16
|
-
*/
|
|
17
|
-
import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function endpointGetExternalWithLocation() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "azuresdkfornetautoresttrafficmanager1421";
|
|
23
|
-
const profileName = "azsmnet6386";
|
|
24
|
-
const endpointType = "ExternalEndpoints";
|
|
25
|
-
const endpointName = "azsmnet7187";
|
|
26
|
-
const credential = new DefaultAzureCredential();
|
|
27
|
-
const client = new TrafficManagerManagementClient(credential, subscriptionId);
|
|
28
|
-
const result = yield client.endpoints.get(resourceGroupName, profileName, endpointType, endpointName);
|
|
29
|
-
console.log(result);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
endpointGetExternalWithLocation().catch(console.error);
|
|
33
|
-
//# sourceMappingURL=endpointGetExternalWithLocation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointGetExternalWithLocation.js","sourceRoot":"","sources":["../../samples-dev/endpointGetExternalWithLocation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACzC,MAAM,YAAY,GAAG,aAAa,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointGetExternalWithSubnetMapping.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointGetExternalWithSubnetMapping.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets a Traffic Manager endpoint.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets a Traffic Manager endpoint.
|
|
15
|
-
* x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Endpoint-GET-External-WithSubnetMapping.json
|
|
16
|
-
*/
|
|
17
|
-
import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function endpointGetExternalWithSubnetMapping() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "azuresdkfornetautoresttrafficmanager2191";
|
|
23
|
-
const profileName = "azuresdkfornetautoresttrafficmanager8224";
|
|
24
|
-
const endpointType = "ExternalEndpoints";
|
|
25
|
-
const endpointName = "My%20external%20endpoint";
|
|
26
|
-
const credential = new DefaultAzureCredential();
|
|
27
|
-
const client = new TrafficManagerManagementClient(credential, subscriptionId);
|
|
28
|
-
const result = yield client.endpoints.get(resourceGroupName, profileName, endpointType, endpointName);
|
|
29
|
-
console.log(result);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
endpointGetExternalWithSubnetMapping().catch(console.error);
|
|
33
|
-
//# sourceMappingURL=endpointGetExternalWithSubnetMapping.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointGetExternalWithSubnetMapping.js","sourceRoot":"","sources":["../../samples-dev/endpointGetExternalWithSubnetMapping.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oCAAoC;;QACjD,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,0CAA0C,CAAC;QAC/D,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACzC,MAAM,YAAY,GAAG,0BAA0B,CAAC;QAChD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointPatchExternalTarget.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointPatchExternalTarget.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Update a Traffic Manager endpoint.
|
|
13
|
-
*
|
|
14
|
-
* @summary Update a Traffic Manager endpoint.
|
|
15
|
-
* x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Endpoint-PATCH-External-Target.json
|
|
16
|
-
*/
|
|
17
|
-
import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function endpointPatchExternalTarget() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "azuresdkfornetautoresttrafficmanager1421";
|
|
23
|
-
const profileName = "azsmnet6386";
|
|
24
|
-
const endpointType = "ExternalEndpoints";
|
|
25
|
-
const endpointName = "azsmnet7187";
|
|
26
|
-
const parameters = {
|
|
27
|
-
name: "azsmnet7187",
|
|
28
|
-
type: "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
|
|
29
|
-
id: "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
|
|
30
|
-
target: "another.foobar.contoso.com"
|
|
31
|
-
};
|
|
32
|
-
const credential = new DefaultAzureCredential();
|
|
33
|
-
const client = new TrafficManagerManagementClient(credential, subscriptionId);
|
|
34
|
-
const result = yield client.endpoints.update(resourceGroupName, profileName, endpointType, endpointName, parameters);
|
|
35
|
-
console.log(result);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
endpointPatchExternalTarget().catch(console.error);
|
|
39
|
-
//# sourceMappingURL=endpointPatchExternalTarget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointPatchExternalTarget.js","sourceRoot":"","sources":["../../samples-dev/endpointPatchExternalTarget.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACzC,MAAM,YAAY,GAAG,aAAa,CAAC;QACnC,MAAM,UAAU,GAAa;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,4DAA4D;YAClE,EAAE,EACA,uLAAuL;YACzL,MAAM,EAAE,4BAA4B;SACrC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAC1C,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointPutExternalWithCustomHeaders.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointPutExternalWithCustomHeaders.ts"],"names":[],"mappings":""}
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Create or update a Traffic Manager endpoint.
|
|
13
|
-
*
|
|
14
|
-
* @summary Create or update a Traffic Manager endpoint.
|
|
15
|
-
* x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Endpoint-PUT-External-WithCustomHeaders.json
|
|
16
|
-
*/
|
|
17
|
-
import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function endpointPutExternalWithCustomHeaders() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "azuresdkfornetautoresttrafficmanager1421";
|
|
23
|
-
const profileName = "azsmnet6386";
|
|
24
|
-
const endpointType = "ExternalEndpoints";
|
|
25
|
-
const endpointName = "azsmnet7187";
|
|
26
|
-
const parameters = {
|
|
27
|
-
name: "azsmnet7187",
|
|
28
|
-
type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
|
|
29
|
-
customHeaders: [
|
|
30
|
-
{ name: "header-1", value: "value-1" },
|
|
31
|
-
{ name: "header-2", value: "value-2" }
|
|
32
|
-
],
|
|
33
|
-
endpointLocation: "North Europe",
|
|
34
|
-
endpointStatus: "Enabled",
|
|
35
|
-
target: "foobar.contoso.com"
|
|
36
|
-
};
|
|
37
|
-
const credential = new DefaultAzureCredential();
|
|
38
|
-
const client = new TrafficManagerManagementClient(credential, subscriptionId);
|
|
39
|
-
const result = yield client.endpoints.createOrUpdate(resourceGroupName, profileName, endpointType, endpointName, parameters);
|
|
40
|
-
console.log(result);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
endpointPutExternalWithCustomHeaders().catch(console.error);
|
|
44
|
-
//# sourceMappingURL=endpointPutExternalWithCustomHeaders.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointPutExternalWithCustomHeaders.js","sourceRoot":"","sources":["../../samples-dev/endpointPutExternalWithCustomHeaders.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oCAAoC;;QACjD,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACzC,MAAM,YAAY,GAAG,aAAa,CAAC;QACnC,MAAM,UAAU,GAAa;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,4DAA4D;YAClE,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;aACvC;YACD,gBAAgB,EAAE,cAAc;YAChC,cAAc,EAAE,SAAS;YACzB,MAAM,EAAE,oBAAoB;SAC7B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,cAAc,CAClD,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpointPutExternalWithGeoMapping.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointPutExternalWithGeoMapping.ts"],"names":[],"mappings":""}
|