1 | //
|
2 | // Copyright (c) Microsoft and contributors. All rights reserved.
|
3 | //
|
4 | // Licensed under the Apache License, Version 2.0 (the "License");
|
5 | // you may not use this file except in compliance with the License.
|
6 | // You may obtain a copy of the License at
|
7 | // http://www.apache.org/licenses/LICENSE-2.0
|
8 | //
|
9 | // Unless required by applicable law or agreed to in writing, software
|
10 | // distributed under the License is distributed on an "AS IS" BASIS,
|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 | //
|
13 | // See the License for the specific language governing permissions and
|
14 | // limitations under the License.
|
15 | //
|
16 |
|
17 | exports = module.exports;
|
18 |
|
19 | var Constants = {
|
20 | API_VERSIONS: {
|
21 | ASM: 'asm',
|
22 | ARM: 'arm'
|
23 | },
|
24 |
|
25 | /**
|
26 | * Constant default http port.
|
27 | *
|
28 | * @const
|
29 | * @type {string}
|
30 | */
|
31 | DEFAULT_HTTP_PORT: 80,
|
32 |
|
33 | /**
|
34 | * Constant default https port.
|
35 | *
|
36 | * @const
|
37 | * @type {string}
|
38 | */
|
39 | DEFAULT_HTTPS_PORT: 443,
|
40 |
|
41 | /**
|
42 | * Constant client ID used by the CLI
|
43 | *
|
44 | * @const
|
45 | * @type {string}
|
46 | */
|
47 | XPLAT_CLI_CLIENT_ID: '04b07795-8ddb-461a-bbee-02f9e1bf7b46',
|
48 |
|
49 | /**
|
50 | * Constant xml2js 1.0 metadata marker.
|
51 | *
|
52 | * @const
|
53 | * @type {string}
|
54 | */
|
55 | XML_METADATA_MARKER: '@',
|
56 |
|
57 | /**
|
58 | * Constant xml2js 1.0 value marker.
|
59 | *
|
60 | * @const
|
61 | * @type {string}
|
62 | */
|
63 | XML_VALUE_MARKER: '#',
|
64 |
|
65 | /**
|
66 | * Constant max file size allowed for custom data.
|
67 | *
|
68 | * @const
|
69 | * @type {integer}
|
70 | */
|
71 | CUSTOM_DATA_FILE_SIZE: 65535,
|
72 |
|
73 | Namespaces: {
|
74 | Arrays: 'http://schemas.microsoft.com/2003/10/Serialization/Arrays',
|
75 | WindowsAzure: 'http://schemas.microsoft.com/windowsazure',
|
76 | XMLSchema: 'http://www.w3.org/2001/XMLSchema-instance'
|
77 | },
|
78 |
|
79 | AAD_COMMON_TENANT: 'common',
|
80 |
|
81 | /**
|
82 | * Constant telemetry config file name.
|
83 | *
|
84 | * @const
|
85 | * @type {string}
|
86 | */
|
87 | TELEMETRY: 'telemetry.json',
|
88 |
|
89 | /**
|
90 | * Constant instrumentation key used by telemetry.
|
91 | *
|
92 | * @const
|
93 | * @type {string}
|
94 | */
|
95 | TELEMETRY_INSTRUMENTATION_KEY: '218959e7-a213-4923-a22b-d8b001062f28',
|
96 |
|
97 | XMS_COMMAND_NAME: 'x-ms-command-name',
|
98 | XMS_PARAMETER_SET_NAME: 'x-ms-parameter-set-name'
|
99 | };
|
100 |
|
101 | module.exports = Constants; |
\ | No newline at end of file |