Debian Codegraph @

ansible_collections/azure/azcollection/plugins/plugin_utils/constants.py

raw symbols SCIP
1 # --------------------------------------------------------------------------------------------
2 # Copyright (c) Microsoft Corporation. All rights reserved.
3 # Licensed under the MIT License. See License.txt in the project root for license information.
4 # --------------------------------------------------------------------------------------------
5 AGENT_MINIMUM_VERSION_MAJOR = 1
6 AGENT_MINIMUM_VERSION_MINOR = 31
7 CLIENT_PROXY_VERSION = "1.3.026973"
8 CLIENT_PROXY_MCR_TARGET = "mcr.microsoft.com/azureconnectivity/proxy"
9 CLEANUP_TOTAL_TIME_LIMIT_IN_SECONDS = 120
10 CLEANUP_TIME_INTERVAL_IN_SECONDS = 10
11 CLEANUP_AWAIT_TERMINATION_IN_SECONDS = 30
12 RELAY_INFO_MAXIMUM_DURATION_IN_SECONDS = 3600
13 RETRY_DELAY_IN_SECONDS = 10
14 SERVICE_CONNECTION_DELAY_IN_SECONDS = 15
15 WINDOWS_INVALID_FOLDERNAME_CHARS = "\\/*:<>?\"|"
16 RDP_TERMINATE_SSH_WAIT_TIME_IN_SECONDS = 30
17
18 ARC_RESOURCE_TYPE_PLACEHOLDER = "arc_resource_type_placeholder"
19
20 SUPPORTED_RESOURCE_TYPES = ["microsoft.hybridcompute/machines",
21 "microsoft.compute/virtualmachines",
22 "microsoft.connectedvmwarevsphere/virtualmachines",
23 "microsoft.scvmm/virtualmachines",
24 "microsoft.azurestackhci/virtualmachines"]
25
26 # Old version incorrectly used resource providers instead of resource type.
27 # Will continue to support to avoid breaking backwards compatibility.
28 LEGACY_SUPPORTED_RESOURCE_TYPES = ["microsoft.hybridcompute",
29 "microsoft.compute",
30 "microsoft.connectedvmwarevsphere",
31 "microsoft.scvmm",
32 "microsoft.azurestackhci"]
33
34 RESOURCE_PROVIDER_TO_RESOURCE_TYPE = {
35 "microsoft.hybridcompute": "Microsoft.HybridCompute/machines",
36 "microsoft.compute": "Microsoft.Compute/virtualMachines",
37 "microsoft.connectedvmwarevsphere": "Microsoft.ConnectedVMwarevSphere/virtualMachines",
38 "microsoft.azurestackhci": "Microsoft.AzureStackHCI/virtualMachines",
39 "microsoft.scvmm": "Microsoft.ScVmm/virtualMachines"
40 }
41
42 RESOURCE_TYPE_LOWER_CASE_TO_CORRECT_CASE = {
43 "microsoft.hybridcompute/machines": "Microsoft.HybridCompute/machines",
44 "microsoft.compute/virtualmachines": "Microsoft.Compute/virtualMachines",
45 "microsoft.connectedvmwarevsphere/virtualmachines": "Microsoft.ConnectedVMwarevSphere/virtualMachines",
46 "microsoft.scvmm/virtualmachines": "Microsoft.ScVmm/virtualMachines",
47 "microsoft.azurestackhci/virtualmachines": "Microsoft.AzureStackHCI/virtualMachines"
48 }