@microsoft/dev-tunnels-contracts 1.3.5 → 1.3.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/clusterDetails.d.ts +19 -19
- package/clusterDetails.js +6 -6
- package/errorCodes.d.ts +17 -17
- package/errorCodes.js +25 -25
- package/errorDetail.d.ts +27 -27
- package/errorDetail.js +6 -6
- package/index.d.ts +24 -24
- package/index.js +29 -29
- package/innerErrorDetail.d.ts +15 -15
- package/innerErrorDetail.js +6 -6
- package/localNetworkTunnelEndpoint.d.ts +20 -20
- package/localNetworkTunnelEndpoint.js +6 -6
- package/namedRateStatus.d.ts +10 -10
- package/namedRateStatus.js +6 -6
- package/package.json +1 -1
- package/problemDetails.d.ts +24 -24
- package/problemDetails.js +6 -6
- package/rateStatus.d.ts +19 -19
- package/rateStatus.js +6 -6
- package/resourceStatus.d.ts +22 -22
- package/resourceStatus.js +6 -6
- package/serviceVersionDetails.d.ts +26 -26
- package/serviceVersionDetails.js +6 -6
- package/tsbuildinfo.json +1 -1
- package/tunnel.d.ts +87 -87
- package/tunnel.js +6 -6
- package/tunnelAccessControl.d.ts +27 -27
- package/tunnelAccessControl.js +13 -13
- package/tunnelAccessControlEntry.d.ts +116 -116
- package/tunnelAccessControlEntry.js +40 -40
- package/tunnelAccessControlEntryType.d.ts +45 -45
- package/tunnelAccessControlEntryType.js +53 -53
- package/tunnelAccessControlStatics.d.ts +10 -10
- package/tunnelAccessControlStatics.js +46 -46
- package/tunnelAccessScopes.d.ts +38 -38
- package/tunnelAccessScopes.js +46 -46
- package/tunnelAccessSubject.d.ts +39 -39
- package/tunnelAccessSubject.js +6 -6
- package/tunnelAuthenticationSchemes.d.ts +21 -21
- package/tunnelAuthenticationSchemes.js +29 -29
- package/tunnelConnectionMode.d.ts +19 -19
- package/tunnelConnectionMode.js +27 -27
- package/tunnelConstraints.d.ts +268 -253
- package/tunnelConstraints.d.ts.map +1 -1
- package/tunnelConstraints.js +276 -261
- package/tunnelConstraints.js.map +1 -1
- package/tunnelEndpoint.d.ts +76 -76
- package/tunnelEndpoint.js +20 -20
- package/tunnelEndpointStatics.d.ts +19 -19
- package/tunnelEndpointStatics.js +48 -48
- package/tunnelEvent.d.ts +48 -48
- package/tunnelEvent.js +24 -24
- package/tunnelHeaderNames.d.ts +27 -27
- package/tunnelHeaderNames.js +35 -35
- package/tunnelListByRegion.d.ts +23 -23
- package/tunnelListByRegion.js +6 -6
- package/tunnelListByRegionResponse.d.ts +14 -14
- package/tunnelListByRegionResponse.js +6 -6
- package/tunnelOptions.d.ts +99 -67
- package/tunnelOptions.d.ts.map +1 -1
- package/tunnelOptions.js +6 -6
- package/tunnelPort.d.ts +93 -93
- package/tunnelPort.js +6 -6
- package/tunnelPortListResponse.d.ts +14 -14
- package/tunnelPortListResponse.js +6 -6
- package/tunnelPortStatus.d.ts +39 -39
- package/tunnelPortStatus.js +6 -6
- package/tunnelProgress.d.ts +45 -45
- package/tunnelProgress.js +53 -53
- package/tunnelProtocol.d.ts +33 -33
- package/tunnelProtocol.js +41 -41
- package/tunnelRelayTunnelEndpoint.d.ts +14 -14
- package/tunnelRelayTunnelEndpoint.js +6 -6
- package/tunnelReportProgressEventArgs.d.ts +15 -15
- package/tunnelReportProgressEventArgs.js +6 -6
- package/tunnelServiceProperties.d.ts +107 -106
- package/tunnelServiceProperties.d.ts.map +1 -1
- package/tunnelServiceProperties.js +85 -84
- package/tunnelServiceProperties.js.map +1 -1
- package/tunnelServicePropertiesStatics.d.ts +17 -17
- package/tunnelServicePropertiesStatics.js +55 -55
- package/tunnelStatus.d.ts +100 -100
- package/tunnelStatus.js +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnelServiceProperties.d.ts","sourceRoot":"","sources":["../../../src/contracts/tunnelServiceProperties.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,4CAA4C,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU,gDAAgD,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,UAAU,+CAA+C,CAAC;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,yCAAyC,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAEzE
|
|
1
|
+
{"version":3,"file":"tunnelServiceProperties.d.ts","sourceRoot":"","sources":["../../../src/contracts/tunnelServiceProperties.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,4CAA4C,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,UAAU,gDAAgD,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,UAAU,+CAA+C,CAAC;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,yCAAyC,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,yCAAyC,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,yCAAyC,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAI/D,OAAO,EAIH,WAAW,EACd,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,uBAAuB;;;;;CAKnC,CAAC"}
|
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
// Generated from ../../../cs/src/Contracts/TunnelServiceProperties.cs
|
|
5
|
-
/* eslint-disable */
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.TunnelServiceProperties = exports.nonProdGitHubAppClientId = exports.prodGitHubAppClientId = exports.devThirdPartyAppId = exports.ppeThirdPartyAppId = exports.prodThirdPartyAppId = exports.devFirstPartyAppId = exports.ppeFirstPartyAppId = exports.prodFirstPartyAppId = exports.devDnsName = exports.ppeDnsName = exports.prodDnsName = void 0;
|
|
8
|
-
/**
|
|
9
|
-
* Global DNS name of the production tunnel service.
|
|
10
|
-
*/
|
|
11
|
-
exports.prodDnsName = 'global.rel.tunnels.api.visualstudio.com';
|
|
12
|
-
/**
|
|
13
|
-
* Global DNS name of the pre-production tunnel service.
|
|
14
|
-
*/
|
|
15
|
-
exports.ppeDnsName = 'global.rel.tunnels.ppe.api.visualstudio.com';
|
|
16
|
-
/**
|
|
17
|
-
* Global DNS name of the development tunnel service.
|
|
18
|
-
*/
|
|
19
|
-
exports.devDnsName = 'global.ci.tunnels.dev.api.visualstudio.com';
|
|
20
|
-
/**
|
|
21
|
-
* First-party app ID: `Visual Studio Tunnel Service`
|
|
22
|
-
*
|
|
23
|
-
* Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
|
|
24
|
-
* in the PROD service environment.
|
|
25
|
-
*/
|
|
26
|
-
exports.prodFirstPartyAppId = '46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2';
|
|
27
|
-
/**
|
|
28
|
-
* First-party app ID: `Visual Studio Tunnel Service - Test`
|
|
29
|
-
*
|
|
30
|
-
* Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
|
|
31
|
-
* in the PPE service environments.
|
|
32
|
-
*/
|
|
33
|
-
exports.ppeFirstPartyAppId = '54c45752-bacd-424a-b928-652f3eca2b18';
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
|
|
38
|
-
* in the DEV service environment
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* service
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* service
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* in the
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
//
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
// Generated from ../../../cs/src/Contracts/TunnelServiceProperties.cs
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.TunnelServiceProperties = exports.nonProdGitHubAppClientId = exports.prodGitHubAppClientId = exports.devThirdPartyAppId = exports.ppeThirdPartyAppId = exports.prodThirdPartyAppId = exports.devFirstPartyAppId = exports.ppeFirstPartyAppId = exports.prodFirstPartyAppId = exports.devDnsName = exports.ppeDnsName = exports.prodDnsName = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Global DNS name of the production tunnel service.
|
|
10
|
+
*/
|
|
11
|
+
exports.prodDnsName = 'global.rel.tunnels.api.visualstudio.com';
|
|
12
|
+
/**
|
|
13
|
+
* Global DNS name of the pre-production tunnel service.
|
|
14
|
+
*/
|
|
15
|
+
exports.ppeDnsName = 'global.rel.tunnels.ppe.api.visualstudio.com';
|
|
16
|
+
/**
|
|
17
|
+
* Global DNS name of the development tunnel service.
|
|
18
|
+
*/
|
|
19
|
+
exports.devDnsName = 'global.ci.tunnels.dev.api.visualstudio.com';
|
|
20
|
+
/**
|
|
21
|
+
* First-party app ID: `Visual Studio Tunnel Service`
|
|
22
|
+
*
|
|
23
|
+
* Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
|
|
24
|
+
* in the PROD service environment.
|
|
25
|
+
*/
|
|
26
|
+
exports.prodFirstPartyAppId = '46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2';
|
|
27
|
+
/**
|
|
28
|
+
* First-party app ID: `Visual Studio Tunnel Service - Test`
|
|
29
|
+
*
|
|
30
|
+
* Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
|
|
31
|
+
* in the PPE service environments.
|
|
32
|
+
*/
|
|
33
|
+
exports.ppeFirstPartyAppId = '54c45752-bacd-424a-b928-652f3eca2b18';
|
|
34
|
+
/**
|
|
35
|
+
* Third-party app ID: `DEV-VSTunnelService-3P`
|
|
36
|
+
*
|
|
37
|
+
* Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
|
|
38
|
+
* in the DEV service environment. This is a 3P app registration in the Microsoft corp
|
|
39
|
+
* tenant, replacing the former 1P FPA.
|
|
40
|
+
*/
|
|
41
|
+
exports.devFirstPartyAppId = '906ce216-6f2e-40be-875d-7fe1a9bc288a';
|
|
42
|
+
/**
|
|
43
|
+
* Third-party app ID: `tunnels-prod-app-sp`
|
|
44
|
+
*
|
|
45
|
+
* Used for authenticating internal AAD service principals in the AME tenant, in the PROD
|
|
46
|
+
* service environment.
|
|
47
|
+
*/
|
|
48
|
+
exports.prodThirdPartyAppId = 'ce65d243-a913-4cae-a7dd-cb52e9f77647';
|
|
49
|
+
/**
|
|
50
|
+
* Third-party app ID: `tunnels-ppe-app-sp`
|
|
51
|
+
*
|
|
52
|
+
* Used for authenticating internal AAD service principals in the AME tenant, in the PPE
|
|
53
|
+
* service environment.
|
|
54
|
+
*/
|
|
55
|
+
exports.ppeThirdPartyAppId = '544167a6-f431-4518-aac6-2fd50071928e';
|
|
56
|
+
/**
|
|
57
|
+
* Third-party app ID: `tunnels-dev-app-sp`
|
|
58
|
+
*
|
|
59
|
+
* Used for authenticating internal AAD service principals in the corp tenant (not AME!),
|
|
60
|
+
* in the DEV service environment.
|
|
61
|
+
*/
|
|
62
|
+
exports.devThirdPartyAppId = 'a118c979-0249-44bb-8f95-eb0457127aeb';
|
|
63
|
+
/**
|
|
64
|
+
* GitHub App Client ID for 'Visual Studio Tunnel Service'
|
|
65
|
+
*
|
|
66
|
+
* Used by client apps that authenticate tunnel users with GitHub, in the PROD service
|
|
67
|
+
* environment.
|
|
68
|
+
*/
|
|
69
|
+
exports.prodGitHubAppClientId = 'Iv1.e7b89e013f801f03';
|
|
70
|
+
/**
|
|
71
|
+
* GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
|
|
72
|
+
*
|
|
73
|
+
* Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
|
|
74
|
+
* service environments.
|
|
75
|
+
*/
|
|
76
|
+
exports.nonProdGitHubAppClientId = 'Iv1.b231c327f1eaa229';
|
|
77
|
+
// Import static members from a non-generated file,
|
|
78
|
+
// and re-export them as an object with the same name as the interface.
|
|
79
|
+
const tunnelServicePropertiesStatics_1 = require("./tunnelServicePropertiesStatics");
|
|
80
|
+
exports.TunnelServiceProperties = {
|
|
81
|
+
production: tunnelServicePropertiesStatics_1.production,
|
|
82
|
+
staging: tunnelServicePropertiesStatics_1.staging,
|
|
83
|
+
development: tunnelServicePropertiesStatics_1.development,
|
|
84
|
+
environment: tunnelServicePropertiesStatics_1.environment,
|
|
85
|
+
};
|
|
85
86
|
//# sourceMappingURL=tunnelServiceProperties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnelServiceProperties.js","sourceRoot":"","sources":["../../../src/contracts/tunnelServiceProperties.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAClC,sEAAsE;AACtE,oBAAoB;;;AAqCpB;;GAEG;AACU,QAAA,WAAW,GAAG,yCAAyC,CAAC;AAErE;;GAEG;AACU,QAAA,UAAU,GAAG,6CAA6C,CAAC;AAExE;;GAEG;AACU,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAEvE;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAE1E;;;;;GAKG;AACU,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAEzE
|
|
1
|
+
{"version":3,"file":"tunnelServiceProperties.js","sourceRoot":"","sources":["../../../src/contracts/tunnelServiceProperties.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAClC,sEAAsE;AACtE,oBAAoB;;;AAqCpB;;GAEG;AACU,QAAA,WAAW,GAAG,yCAAyC,CAAC;AAErE;;GAEG;AACU,QAAA,UAAU,GAAG,6CAA6C,CAAC;AAExE;;GAEG;AACU,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAEvE;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAE1E;;;;;GAKG;AACU,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAEzE;;;;;;GAMG;AACU,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAEzE;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAE1E;;;;;GAKG;AACU,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAEzE;;;;;GAKG;AACU,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAEzE;;;;;GAKG;AACU,QAAA,qBAAqB,GAAG,sBAAsB,CAAC;AAE5D;;;;;GAKG;AACU,QAAA,wBAAwB,GAAG,sBAAsB,CAAC;AAE/D,mDAAmD;AACnD,uEAAuE;AACvE,qFAK0C;AAE7B,QAAA,uBAAuB,GAAG;IACnC,UAAU,EAAV,2CAAU;IACV,OAAO,EAAP,wCAAO;IACP,WAAW,EAAX,4CAAW;IACX,WAAW,EAAX,4CAAW;CACd,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { TunnelServiceProperties as ITunnelServiceProperties } from './tunnelServiceProperties';
|
|
2
|
-
/**
|
|
3
|
-
* Gets production service properties.
|
|
4
|
-
*/
|
|
5
|
-
export declare const production: ITunnelServiceProperties;
|
|
6
|
-
/**
|
|
7
|
-
* Gets properties for the service in the staging environment (PPE).
|
|
8
|
-
*/
|
|
9
|
-
export declare const staging: ITunnelServiceProperties;
|
|
10
|
-
/**
|
|
11
|
-
* Gets properties for the service in the development environment.
|
|
12
|
-
*/
|
|
13
|
-
export declare const development: ITunnelServiceProperties;
|
|
14
|
-
/**
|
|
15
|
-
* Gets properties for the service in the specified environment.
|
|
16
|
-
*/
|
|
17
|
-
export declare function environment(environmentName: string): ITunnelServiceProperties;
|
|
1
|
+
import { TunnelServiceProperties as ITunnelServiceProperties } from './tunnelServiceProperties';
|
|
2
|
+
/**
|
|
3
|
+
* Gets production service properties.
|
|
4
|
+
*/
|
|
5
|
+
export declare const production: ITunnelServiceProperties;
|
|
6
|
+
/**
|
|
7
|
+
* Gets properties for the service in the staging environment (PPE).
|
|
8
|
+
*/
|
|
9
|
+
export declare const staging: ITunnelServiceProperties;
|
|
10
|
+
/**
|
|
11
|
+
* Gets properties for the service in the development environment.
|
|
12
|
+
*/
|
|
13
|
+
export declare const development: ITunnelServiceProperties;
|
|
14
|
+
/**
|
|
15
|
+
* Gets properties for the service in the specified environment.
|
|
16
|
+
*/
|
|
17
|
+
export declare function environment(environmentName: string): ITunnelServiceProperties;
|
|
18
18
|
//# sourceMappingURL=tunnelServicePropertiesStatics.d.ts.map
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.environment = exports.development = exports.staging = exports.production = void 0;
|
|
6
|
-
const tunnelServiceProperties_1 = require("./tunnelServiceProperties");
|
|
7
|
-
/**
|
|
8
|
-
* Gets production service properties.
|
|
9
|
-
*/
|
|
10
|
-
exports.production = {
|
|
11
|
-
serviceUri: `https://${tunnelServiceProperties_1.prodDnsName}/`,
|
|
12
|
-
serviceAppId: tunnelServiceProperties_1.prodFirstPartyAppId,
|
|
13
|
-
serviceInternalAppId: tunnelServiceProperties_1.prodThirdPartyAppId,
|
|
14
|
-
gitHubAppClientId: tunnelServiceProperties_1.prodGitHubAppClientId,
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Gets properties for the service in the staging environment (PPE).
|
|
18
|
-
*/
|
|
19
|
-
exports.staging = {
|
|
20
|
-
serviceUri: `https://${tunnelServiceProperties_1.ppeDnsName}/`,
|
|
21
|
-
serviceAppId: tunnelServiceProperties_1.ppeFirstPartyAppId,
|
|
22
|
-
serviceInternalAppId: tunnelServiceProperties_1.ppeThirdPartyAppId,
|
|
23
|
-
gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Gets properties for the service in the development environment.
|
|
27
|
-
*/
|
|
28
|
-
exports.development = {
|
|
29
|
-
serviceUri: `https://${tunnelServiceProperties_1.devDnsName}/`,
|
|
30
|
-
serviceAppId: tunnelServiceProperties_1.devFirstPartyAppId,
|
|
31
|
-
serviceInternalAppId: tunnelServiceProperties_1.devThirdPartyAppId,
|
|
32
|
-
gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Gets properties for the service in the specified environment.
|
|
36
|
-
*/
|
|
37
|
-
function environment(environmentName) {
|
|
38
|
-
if (!environmentName) {
|
|
39
|
-
throw new Error(`Invalid argument: ${environmentName}`);
|
|
40
|
-
}
|
|
41
|
-
switch (environmentName.toLowerCase()) {
|
|
42
|
-
case 'prod':
|
|
43
|
-
case 'production':
|
|
44
|
-
return exports.production;
|
|
45
|
-
case 'ppe':
|
|
46
|
-
case 'preprod':
|
|
47
|
-
return exports.staging;
|
|
48
|
-
case 'dev':
|
|
49
|
-
case 'development':
|
|
50
|
-
return exports.development;
|
|
51
|
-
default:
|
|
52
|
-
throw new Error(`Invalid service environment: ${environmentName}`);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.environment = environment;
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.environment = exports.development = exports.staging = exports.production = void 0;
|
|
6
|
+
const tunnelServiceProperties_1 = require("./tunnelServiceProperties");
|
|
7
|
+
/**
|
|
8
|
+
* Gets production service properties.
|
|
9
|
+
*/
|
|
10
|
+
exports.production = {
|
|
11
|
+
serviceUri: `https://${tunnelServiceProperties_1.prodDnsName}/`,
|
|
12
|
+
serviceAppId: tunnelServiceProperties_1.prodFirstPartyAppId,
|
|
13
|
+
serviceInternalAppId: tunnelServiceProperties_1.prodThirdPartyAppId,
|
|
14
|
+
gitHubAppClientId: tunnelServiceProperties_1.prodGitHubAppClientId,
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Gets properties for the service in the staging environment (PPE).
|
|
18
|
+
*/
|
|
19
|
+
exports.staging = {
|
|
20
|
+
serviceUri: `https://${tunnelServiceProperties_1.ppeDnsName}/`,
|
|
21
|
+
serviceAppId: tunnelServiceProperties_1.ppeFirstPartyAppId,
|
|
22
|
+
serviceInternalAppId: tunnelServiceProperties_1.ppeThirdPartyAppId,
|
|
23
|
+
gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Gets properties for the service in the development environment.
|
|
27
|
+
*/
|
|
28
|
+
exports.development = {
|
|
29
|
+
serviceUri: `https://${tunnelServiceProperties_1.devDnsName}/`,
|
|
30
|
+
serviceAppId: tunnelServiceProperties_1.devFirstPartyAppId,
|
|
31
|
+
serviceInternalAppId: tunnelServiceProperties_1.devThirdPartyAppId,
|
|
32
|
+
gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Gets properties for the service in the specified environment.
|
|
36
|
+
*/
|
|
37
|
+
function environment(environmentName) {
|
|
38
|
+
if (!environmentName) {
|
|
39
|
+
throw new Error(`Invalid argument: ${environmentName}`);
|
|
40
|
+
}
|
|
41
|
+
switch (environmentName.toLowerCase()) {
|
|
42
|
+
case 'prod':
|
|
43
|
+
case 'production':
|
|
44
|
+
return exports.production;
|
|
45
|
+
case 'ppe':
|
|
46
|
+
case 'preprod':
|
|
47
|
+
return exports.staging;
|
|
48
|
+
case 'dev':
|
|
49
|
+
case 'development':
|
|
50
|
+
return exports.development;
|
|
51
|
+
default:
|
|
52
|
+
throw new Error(`Invalid service environment: ${environmentName}`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.environment = environment;
|
|
56
56
|
//# sourceMappingURL=tunnelServicePropertiesStatics.js.map
|
package/tunnelStatus.d.ts
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { RateStatus } from './rateStatus';
|
|
2
|
-
import { ResourceStatus } from './resourceStatus';
|
|
3
|
-
/**
|
|
4
|
-
* Data contract for {@link Tunnel} status.
|
|
5
|
-
*/
|
|
6
|
-
export interface TunnelStatus {
|
|
7
|
-
/**
|
|
8
|
-
* Gets or sets the current value and limit for the number of ports on the tunnel.
|
|
9
|
-
*/
|
|
10
|
-
portCount?: number | ResourceStatus;
|
|
11
|
-
/**
|
|
12
|
-
* Gets or sets the current value and limit for the number of hosts currently
|
|
13
|
-
* accepting connections to the tunnel.
|
|
14
|
-
*
|
|
15
|
-
* This is typically 0 or 1, but may be more than 1 if the tunnel options allow
|
|
16
|
-
* multiple hosts.
|
|
17
|
-
*/
|
|
18
|
-
hostConnectionCount?: number | ResourceStatus;
|
|
19
|
-
/**
|
|
20
|
-
* Gets or sets the UTC time when a host was last accepting connections to the tunnel,
|
|
21
|
-
* or null if a host has never connected.
|
|
22
|
-
*/
|
|
23
|
-
lastHostConnectionTime?: Date;
|
|
24
|
-
/**
|
|
25
|
-
* Gets or sets the current value and limit for the number of clients connected to the
|
|
26
|
-
* tunnel.
|
|
27
|
-
*
|
|
28
|
-
* This counts non-port-specific client connections, which is SDK and SSH clients. See
|
|
29
|
-
* {@link TunnelPortStatus} for status of per-port client connections.
|
|
30
|
-
*/
|
|
31
|
-
clientConnectionCount?: number | ResourceStatus;
|
|
32
|
-
/**
|
|
33
|
-
* Gets or sets the UTC time when a client last connected to the tunnel, or null if a
|
|
34
|
-
* client has never connected.
|
|
35
|
-
*
|
|
36
|
-
* This reports times for non-port-specific client connections, which is SDK client
|
|
37
|
-
* and SSH clients. See {@link TunnelPortStatus} for per-port client connections.
|
|
38
|
-
*/
|
|
39
|
-
lastClientConnectionTime?: Date;
|
|
40
|
-
/**
|
|
41
|
-
* Gets or sets the current value and limit for the rate of client connections to the
|
|
42
|
-
* tunnel.
|
|
43
|
-
*
|
|
44
|
-
* This counts non-port-specific client connections, which is SDK client and SSH
|
|
45
|
-
* clients. See {@link TunnelPortStatus} for status of per-port client connections.
|
|
46
|
-
*/
|
|
47
|
-
clientConnectionRate?: RateStatus;
|
|
48
|
-
/**
|
|
49
|
-
* Gets or sets the current value and limit for the rate of bytes being received by
|
|
50
|
-
* the tunnel host and uploaded by tunnel clients.
|
|
51
|
-
*
|
|
52
|
-
* All types of tunnel and port connections, from potentially multiple clients, can
|
|
53
|
-
* contribute to this rate. The reported rate may differ slightly from the rate
|
|
54
|
-
* measurable by applications, due to protocol overhead. Data rate status reporting is
|
|
55
|
-
* delayed by a few seconds, so this value is a snapshot of the data transfer rate
|
|
56
|
-
* from a few seconds earlier.
|
|
57
|
-
*/
|
|
58
|
-
uploadRate?: RateStatus;
|
|
59
|
-
/**
|
|
60
|
-
* Gets or sets the current value and limit for the rate of bytes being sent by the
|
|
61
|
-
* tunnel host and downloaded by tunnel clients.
|
|
62
|
-
*
|
|
63
|
-
* All types of tunnel and port connections, from potentially multiple clients, can
|
|
64
|
-
* contribute to this rate. The reported rate may differ slightly from the rate
|
|
65
|
-
* measurable by applications, due to protocol overhead. Data rate status reporting is
|
|
66
|
-
* delayed by a few seconds, so this value is a snapshot of the data transfer rate
|
|
67
|
-
* from a few seconds earlier.
|
|
68
|
-
*/
|
|
69
|
-
downloadRate?: RateStatus;
|
|
70
|
-
/**
|
|
71
|
-
* Gets or sets the total number of bytes received by the tunnel host and uploaded by
|
|
72
|
-
* tunnel clients, over the lifetime of the tunnel.
|
|
73
|
-
*
|
|
74
|
-
* All types of tunnel and port connections, from potentially multiple clients, can
|
|
75
|
-
* contribute to this total. The reported value may differ slightly from the value
|
|
76
|
-
* measurable by applications, due to protocol overhead. Data transfer status
|
|
77
|
-
* reporting is delayed by a few seconds.
|
|
78
|
-
*/
|
|
79
|
-
uploadTotal?: number;
|
|
80
|
-
/**
|
|
81
|
-
* Gets or sets the total number of bytes sent by the tunnel host and downloaded by
|
|
82
|
-
* tunnel clients, over the lifetime of the tunnel.
|
|
83
|
-
*
|
|
84
|
-
* All types of tunnel and port connections, from potentially multiple clients, can
|
|
85
|
-
* contribute to this total. The reported value may differ slightly from the value
|
|
86
|
-
* measurable by applications, due to protocol overhead. Data transfer status
|
|
87
|
-
* reporting is delayed by a few seconds.
|
|
88
|
-
*/
|
|
89
|
-
downloadTotal?: number;
|
|
90
|
-
/**
|
|
91
|
-
* Gets or sets the current value and limit for the rate of management API read
|
|
92
|
-
* operations for the tunnel or tunnel ports.
|
|
93
|
-
*/
|
|
94
|
-
apiReadRate?: RateStatus;
|
|
95
|
-
/**
|
|
96
|
-
* Gets or sets the current value and limit for the rate of management API update
|
|
97
|
-
* operations for the tunnel or tunnel ports.
|
|
98
|
-
*/
|
|
99
|
-
apiUpdateRate?: RateStatus;
|
|
100
|
-
}
|
|
1
|
+
import { RateStatus } from './rateStatus';
|
|
2
|
+
import { ResourceStatus } from './resourceStatus';
|
|
3
|
+
/**
|
|
4
|
+
* Data contract for {@link Tunnel} status.
|
|
5
|
+
*/
|
|
6
|
+
export interface TunnelStatus {
|
|
7
|
+
/**
|
|
8
|
+
* Gets or sets the current value and limit for the number of ports on the tunnel.
|
|
9
|
+
*/
|
|
10
|
+
portCount?: number | ResourceStatus;
|
|
11
|
+
/**
|
|
12
|
+
* Gets or sets the current value and limit for the number of hosts currently
|
|
13
|
+
* accepting connections to the tunnel.
|
|
14
|
+
*
|
|
15
|
+
* This is typically 0 or 1, but may be more than 1 if the tunnel options allow
|
|
16
|
+
* multiple hosts.
|
|
17
|
+
*/
|
|
18
|
+
hostConnectionCount?: number | ResourceStatus;
|
|
19
|
+
/**
|
|
20
|
+
* Gets or sets the UTC time when a host was last accepting connections to the tunnel,
|
|
21
|
+
* or null if a host has never connected.
|
|
22
|
+
*/
|
|
23
|
+
lastHostConnectionTime?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Gets or sets the current value and limit for the number of clients connected to the
|
|
26
|
+
* tunnel.
|
|
27
|
+
*
|
|
28
|
+
* This counts non-port-specific client connections, which is SDK and SSH clients. See
|
|
29
|
+
* {@link TunnelPortStatus} for status of per-port client connections.
|
|
30
|
+
*/
|
|
31
|
+
clientConnectionCount?: number | ResourceStatus;
|
|
32
|
+
/**
|
|
33
|
+
* Gets or sets the UTC time when a client last connected to the tunnel, or null if a
|
|
34
|
+
* client has never connected.
|
|
35
|
+
*
|
|
36
|
+
* This reports times for non-port-specific client connections, which is SDK client
|
|
37
|
+
* and SSH clients. See {@link TunnelPortStatus} for per-port client connections.
|
|
38
|
+
*/
|
|
39
|
+
lastClientConnectionTime?: Date;
|
|
40
|
+
/**
|
|
41
|
+
* Gets or sets the current value and limit for the rate of client connections to the
|
|
42
|
+
* tunnel.
|
|
43
|
+
*
|
|
44
|
+
* This counts non-port-specific client connections, which is SDK client and SSH
|
|
45
|
+
* clients. See {@link TunnelPortStatus} for status of per-port client connections.
|
|
46
|
+
*/
|
|
47
|
+
clientConnectionRate?: RateStatus;
|
|
48
|
+
/**
|
|
49
|
+
* Gets or sets the current value and limit for the rate of bytes being received by
|
|
50
|
+
* the tunnel host and uploaded by tunnel clients.
|
|
51
|
+
*
|
|
52
|
+
* All types of tunnel and port connections, from potentially multiple clients, can
|
|
53
|
+
* contribute to this rate. The reported rate may differ slightly from the rate
|
|
54
|
+
* measurable by applications, due to protocol overhead. Data rate status reporting is
|
|
55
|
+
* delayed by a few seconds, so this value is a snapshot of the data transfer rate
|
|
56
|
+
* from a few seconds earlier.
|
|
57
|
+
*/
|
|
58
|
+
uploadRate?: RateStatus;
|
|
59
|
+
/**
|
|
60
|
+
* Gets or sets the current value and limit for the rate of bytes being sent by the
|
|
61
|
+
* tunnel host and downloaded by tunnel clients.
|
|
62
|
+
*
|
|
63
|
+
* All types of tunnel and port connections, from potentially multiple clients, can
|
|
64
|
+
* contribute to this rate. The reported rate may differ slightly from the rate
|
|
65
|
+
* measurable by applications, due to protocol overhead. Data rate status reporting is
|
|
66
|
+
* delayed by a few seconds, so this value is a snapshot of the data transfer rate
|
|
67
|
+
* from a few seconds earlier.
|
|
68
|
+
*/
|
|
69
|
+
downloadRate?: RateStatus;
|
|
70
|
+
/**
|
|
71
|
+
* Gets or sets the total number of bytes received by the tunnel host and uploaded by
|
|
72
|
+
* tunnel clients, over the lifetime of the tunnel.
|
|
73
|
+
*
|
|
74
|
+
* All types of tunnel and port connections, from potentially multiple clients, can
|
|
75
|
+
* contribute to this total. The reported value may differ slightly from the value
|
|
76
|
+
* measurable by applications, due to protocol overhead. Data transfer status
|
|
77
|
+
* reporting is delayed by a few seconds.
|
|
78
|
+
*/
|
|
79
|
+
uploadTotal?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Gets or sets the total number of bytes sent by the tunnel host and downloaded by
|
|
82
|
+
* tunnel clients, over the lifetime of the tunnel.
|
|
83
|
+
*
|
|
84
|
+
* All types of tunnel and port connections, from potentially multiple clients, can
|
|
85
|
+
* contribute to this total. The reported value may differ slightly from the value
|
|
86
|
+
* measurable by applications, due to protocol overhead. Data transfer status
|
|
87
|
+
* reporting is delayed by a few seconds.
|
|
88
|
+
*/
|
|
89
|
+
downloadTotal?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Gets or sets the current value and limit for the rate of management API read
|
|
92
|
+
* operations for the tunnel or tunnel ports.
|
|
93
|
+
*/
|
|
94
|
+
apiReadRate?: RateStatus;
|
|
95
|
+
/**
|
|
96
|
+
* Gets or sets the current value and limit for the rate of management API update
|
|
97
|
+
* operations for the tunnel or tunnel ports.
|
|
98
|
+
*/
|
|
99
|
+
apiUpdateRate?: RateStatus;
|
|
100
|
+
}
|
|
101
101
|
//# sourceMappingURL=tunnelStatus.d.ts.map
|
package/tunnelStatus.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
// Generated from ../../../cs/src/Contracts/TunnelStatus.cs
|
|
5
|
-
/* eslint-disable */
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
// Generated from ../../../cs/src/Contracts/TunnelStatus.cs
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
//# sourceMappingURL=tunnelStatus.js.map
|