hcs-cli 0.1.318__py3-none-any.whl → 0.1.320__py3-none-any.whl

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.
Files changed (119) hide show
  1. hcs_cli/__init__.py +2 -2
  2. hcs_cli/cmds/advisor/html_utils.py +30 -26
  3. hcs_cli/cmds/advisor/recommendation_engine.py +7 -10
  4. hcs_cli/cmds/daas/tenant/plan.py +1 -1
  5. hcs_cli/cmds/debug/start.py +0 -1
  6. hcs_cli/cmds/dev/fs/clear.py +8 -0
  7. hcs_cli/cmds/dev/fs/helper/credential_helper.py +2 -0
  8. hcs_cli/cmds/dev/fs/helper/k8s_util.py +0 -1
  9. hcs_cli/cmds/dev/fs/init.py +38 -5
  10. hcs_cli/cmds/dev/fs/profiler.py +0 -1
  11. hcs_cli/cmds/dev/fs/provided_files/akka.plan.yml +94 -250
  12. hcs_cli/cmds/dev/fs/provided_files/azsim.plan.yml +27 -34
  13. hcs_cli/cmds/dev/fs/provided_files/azure.plan.yml +294 -322
  14. hcs_cli/cmds/dev/fs/provided_files/mqtt-secret.yaml +188 -93
  15. hcs_cli/cmds/dev/fs/provided_files/mqtt-server-external.yaml +4 -5
  16. hcs_cli/cmds/dev/fs/provided_files/patch-mqtt-hostname.yml +3 -3
  17. hcs_cli/cmds/dev/fs/provided_files/patch-vernemq-ssl-depth.json +1 -1
  18. hcs_cli/cmds/dev/fs/tailor.py +7 -12
  19. hcs_cli/cmds/dev/mqtt.py +1 -2
  20. hcs_cli/cmds/dev/util/mqtt_helper.py +0 -1
  21. hcs_cli/cmds/hoc/search.py +39 -9
  22. hcs_cli/cmds/hoc/stats.py +46 -0
  23. hcs_cli/cmds/hst/clean.py +2 -1
  24. hcs_cli/cmds/inventory/assign.py +1 -3
  25. hcs_cli/cmds/inventory/deassign.py +1 -1
  26. hcs_cli/cmds/inventory/delete.py +48 -0
  27. hcs_cli/cmds/lcm/provider/create.py +11 -2
  28. hcs_cli/cmds/lcm/template/expand.py +46 -0
  29. hcs_cli/cmds/lcm/vm/delete.py +3 -2
  30. hcs_cli/cmds/scm/plan.py +131 -3
  31. hcs_cli/cmds/task.py +2 -4
  32. hcs_cli/cmds/template/expand.py +64 -19
  33. hcs_cli/cmds/template/list_usage.py +2 -2
  34. hcs_cli/cmds/template/update.py +2 -2
  35. hcs_cli/cmds/template/usage.py +20 -7
  36. hcs_cli/cmds/vm/delete.py +3 -2
  37. hcs_cli/cmds/vm/list.py +51 -40
  38. hcs_cli/cmds/vmm/rootca_migrate.py +1 -1
  39. hcs_cli/config/hcs-deployments.yaml +52 -52
  40. hcs_cli/main.py +0 -2
  41. hcs_cli/payload/akka.blueprint.yml +95 -243
  42. hcs_cli/payload/app/manual.json +19 -19
  43. hcs_cli/payload/edge/akka.json +6 -6
  44. hcs_cli/payload/edge/vsphere.json +6 -6
  45. hcs_cli/payload/hoc/lcm-capcalc.json.template +43 -0
  46. hcs_cli/payload/hoc/no-spare.json.template +1 -1
  47. hcs_cli/payload/inventory/assign.json +14 -16
  48. hcs_cli/payload/inventory/deassign.json +11 -11
  49. hcs_cli/payload/lcm/akka.json +31 -33
  50. hcs_cli/payload/lcm/azure-dummy.json +64 -66
  51. hcs_cli/payload/lcm/azure-real.json +13 -11
  52. hcs_cli/payload/lcm/edge-proxy.json +34 -36
  53. hcs_cli/payload/lcm/zero-dedicated.json +34 -36
  54. hcs_cli/payload/lcm/zero-delay-1m-per-vm.json +53 -69
  55. hcs_cli/payload/lcm/zero-fail-delete-template.json +43 -0
  56. hcs_cli/payload/lcm/zero-fail-destroy-onthread.json +38 -40
  57. hcs_cli/payload/lcm/zero-fail-destroy.json +38 -40
  58. hcs_cli/payload/lcm/zero-fail-prepare-onthread.json +38 -40
  59. hcs_cli/payload/lcm/zero-fail-prepare.json +38 -40
  60. hcs_cli/payload/lcm/zero-fail-vm-onthread.json +58 -74
  61. hcs_cli/payload/lcm/zero-fail-vm.json +58 -74
  62. hcs_cli/payload/lcm/zero-floating.json +34 -36
  63. hcs_cli/payload/lcm/zero-manual.json +33 -35
  64. hcs_cli/payload/lcm/zero-multisession.json +34 -36
  65. hcs_cli/payload/lcm/zero-nanw.json +31 -33
  66. hcs_cli/payload/lcm/zero-new-5k-delay.json +69 -78
  67. hcs_cli/payload/lcm/zero-new-5k.json +36 -38
  68. hcs_cli/payload/lcm/zero-new-snapshot.json +37 -39
  69. hcs_cli/payload/lcm/zero-new.json +37 -39
  70. hcs_cli/payload/lcm/zero-reuse-vm-id.json +33 -35
  71. hcs_cli/payload/lcm/zero-with-max-id-offset.json +32 -34
  72. hcs_cli/payload/lcm/zero.json +59 -73
  73. hcs_cli/payload/provider/ad-stes-vsphere.json +26 -26
  74. hcs_cli/payload/provider/akka.json +12 -12
  75. hcs_cli/payload/provider/azure.json +14 -14
  76. hcs_cli/payload/provider/edgeproxy.json +12 -12
  77. hcs_cli/payload/provider/vsphere.json +14 -14
  78. hcs_cli/payload/scm/starter.json +22 -23
  79. hcs_cli/payload/synt/core/p01-dummy-success.json +11 -15
  80. hcs_cli/payload/synt/core/p02-dummy-fail.json +12 -15
  81. hcs_cli/payload/synt/core/p03-dummy-exception.json +12 -15
  82. hcs_cli/payload/synt/core/p04-dummy-success-repeat.json +12 -15
  83. hcs_cli/payload/synt/core/p05-dummy-fail-repeat.json +13 -16
  84. hcs_cli/payload/synt/core/p06-dummy-exception-repeat.json +13 -16
  85. hcs_cli/payload/synt/core/p07-dummy-delay.json +12 -15
  86. hcs_cli/payload/synt/core/p08-dummy-property.json +12 -15
  87. hcs_cli/payload/synt/ext/p20-connect-success.json +12 -15
  88. hcs_cli/payload/synt/ext/p21-connect-fail.json +12 -15
  89. hcs_cli/payload/synt/ext/p30-ssl-success.json +12 -15
  90. hcs_cli/payload/synt/ext/p31-ssl-fail.json +13 -16
  91. hcs_cli/payload/synt/ext/p40-http-success.json +12 -15
  92. hcs_cli/payload/synt/ext/p41-http-fail.json +12 -15
  93. hcs_cli/payload/synt/ext/p42-http-status-code.json +14 -20
  94. hcs_cli/payload/synt/ext1/p10-ping-success.json +13 -16
  95. hcs_cli/payload/synt/ext1/p11-ping-fail.json +12 -15
  96. hcs_cli/payload/synt/ext1/p12-ping-success-repeat.json +14 -17
  97. hcs_cli/provider/hcs/cert.py +0 -1
  98. hcs_cli/provider/hcs/edge.py +1 -1
  99. hcs_cli/provider/hcs/uag.py +1 -1
  100. hcs_cli/service/admin/template.py +10 -1
  101. hcs_cli/service/hoc/diagnostic.py +11 -3
  102. hcs_cli/service/inventory/__init__.py +15 -2
  103. hcs_cli/service/inventory/vm.py +12 -0
  104. hcs_cli/service/lcm/template.py +9 -6
  105. hcs_cli/service/lcm/vm.py +0 -1
  106. hcs_cli/service/task.py +0 -1
  107. hcs_cli/service/template.py +1 -1
  108. hcs_cli/support/debug_util.py +0 -1
  109. hcs_cli/support/plan_util.py +0 -1
  110. hcs_cli/support/predefined_payload.py +4 -1
  111. hcs_cli/support/template_util.py +0 -1
  112. hcs_cli/support/test_utils.py +2 -2
  113. hcs_cli/support/test_utils2.py +536 -0
  114. hcs_cli/support/vm_table.py +2 -2
  115. {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.320.dist-info}/METADATA +24 -17
  116. {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.320.dist-info}/RECORD +118 -113
  117. hcs_cli/payload/lcm/azure-dummy-nt.json +0 -69
  118. {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.320.dist-info}/WHEEL +0 -0
  119. {hcs_cli-0.1.318.dist-info → hcs_cli-0.1.320.dist-info}/entry_points.txt +0 -0
@@ -1,34 +1,32 @@
1
1
  {
2
- "region": "westus2",
3
- "id": "${id}",
4
- "name": "nanw-test1",
5
- "templateType" : "FLOATING",
6
- "provisionWithAgentReady": false,
7
- "vmNamePattern": "z-s",
8
- "provider": {
9
- "providerAccessId": "${providerId}"
10
- },
11
- "sparePolicy": {
12
- "increment": 200,
13
- "limit": 3,
14
- "max": 2,
15
- "min": 1
16
- },
17
- "providerType": "ZEROCLOUD",
18
- "hdc": {
19
- "vmHubName": "westus2",
20
- "vmHubURL": ""
21
- },
22
- "edgeGateway": {
23
- "id": "abcdefghijklmnopqrstuvwx",
24
- "iotDeviceName": "syntheticIotDeviceName",
25
- "adTwinId": "syntheticAdTwinId"
26
- },
27
- "orgId" : "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
28
- "agentCustomization": {
29
- "sessionsPerVm": 1
30
- },
31
- "location": "US"
32
- }
33
-
34
-
2
+ "region": "westus2",
3
+ "id": "${id}",
4
+ "name": "nanw-test1",
5
+ "templateType": "FLOATING",
6
+ "provisionWithAgentReady": false,
7
+ "vmNamePattern": "z-s",
8
+ "provider": {
9
+ "providerAccessId": "${providerId}"
10
+ },
11
+ "sparePolicy": {
12
+ "increment": 200,
13
+ "limit": 3,
14
+ "max": 2,
15
+ "min": 1
16
+ },
17
+ "providerType": "ZEROCLOUD",
18
+ "hdc": {
19
+ "vmHubName": "westus2",
20
+ "vmHubURL": ""
21
+ },
22
+ "edgeGateway": {
23
+ "id": "abcdefghijklmnopqrstuvwx",
24
+ "iotDeviceName": "syntheticIotDeviceName",
25
+ "adTwinId": "syntheticAdTwinId"
26
+ },
27
+ "orgId": "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
28
+ "agentCustomization": {
29
+ "sessionsPerVm": 1
30
+ },
31
+ "location": "US"
32
+ }
@@ -1,69 +1,67 @@
1
1
  {
2
- "id": "azure-dummy",
3
- "orgId" : "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
4
- "location": "US",
5
- "region": "westus2",
6
- "name": "azure-dummy",
7
- "templateType" : "FLOATING",
8
- "provisionWithAgentReady": false,
9
- "vmNamePattern": "azdummy-",
10
- "resourceManagerTemplate": "dev/dummy",
11
- "vmRefreshType":"DELETE_VM",
12
- "reuseVmIds": false,
13
- "useAZ": false,
14
- "provider": {
15
- "providerAccessId": "dev-azure"
2
+ "id": "azure-dummy",
3
+ "orgId": "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
4
+ "location": "US",
5
+ "region": "westus2",
6
+ "name": "azure-dummy",
7
+ "templateType": "FLOATING",
8
+ "provisionWithAgentReady": false,
9
+ "vmNamePattern": "azdummy-",
10
+ "resourceManagerTemplate": "dev/dummy",
11
+ "vmRefreshType": "DELETE_VM",
12
+ "reuseVmIds": false,
13
+ "useAZ": false,
14
+ "provider": {
15
+ "providerAccessId": "dev-azure"
16
+ },
17
+ "sparePolicy": {
18
+ "increment": 600,
19
+ "limit": 3,
20
+ "max": 3,
21
+ "min": 1
22
+ },
23
+ "providerType": "AZURE",
24
+ "hdc": {
25
+ "vmHubName": "westus2",
26
+ "vmHubURL": "https://nanw.fs.devframe.cp.horizon.omnissa.com"
27
+ },
28
+ "edgeGateway": {
29
+ "id": "abcdefghijklmnopqrstuvwx",
30
+ "iotDeviceName": "syntheticIotDeviceName",
31
+ "adTwinId": "syntheticAdTwinId"
32
+ },
33
+ "activeDirectory": {
34
+ "domain": "nanw.local"
35
+ },
36
+ "network": {
37
+ "vNetName": "nanw-vnet",
38
+ "subnetName": "default",
39
+ "vNetResourceGroup": "nanw-infra",
40
+ "location": "westus2",
41
+ "publicIpAddressType": "DYNAMIC",
42
+ "publicIpAddressSku": "Basic"
43
+ },
44
+ "image": {
45
+ "imageReference": {
46
+ "publisher": "canonical",
47
+ "offer": "0001-com-ubuntu-server-jammy",
48
+ "sku": "22_04-lts-gen2",
49
+ "version": "latest"
16
50
  },
17
- "sparePolicy": {
18
- "increment": 600,
19
- "limit": 3,
20
- "max": 3,
21
- "min": 1
22
- },
23
- "providerType": "AZURE",
24
- "hdc": {
25
- "vmHubName": "westus2",
26
- "vmHubURL": "https://nanw.fs.devframe.cp.horizon.omnissa.com"
27
- },
28
- "edgeGateway": {
29
- "id": "abcdefghijklmnopqrstuvwx",
30
- "iotDeviceName": "syntheticIotDeviceName",
31
- "adTwinId": "syntheticAdTwinId"
32
- },
33
- "activeDirectory": {
34
- "domain": "nanw.local"
35
- },
36
- "network": {
37
- "vNetName": "nanw-vnet",
38
- "subnetName": "default",
39
- "vNetResourceGroup": "nanw-infra",
40
- "location": "westus2",
41
- "publicIpAddressType": "DYNAMIC",
42
- "publicIpAddressSku": "Basic"
43
- },
44
- "image": {
45
- "imageReference": {
46
- "publisher": "Canonical",
47
- "offer": "UbuntuServer",
48
- "sku": "18.04-LTS",
49
- "version": "latest"
50
- },
51
- "os": "linux",
52
- "guestUsername": "ubuntu",
53
- "guestPassword": "dummy-password"
54
- },
55
- "vmSpec": {
56
- "diskSize": 127,
57
- "diskType": "Standard_LRS"
58
- },
59
- "agentCustomization": {
60
- "sessionsPerVm": 1
61
- },
62
- "properties": {
63
- "azureCreateResourceGroup": true,
64
- "new-task-engine": false,
65
- "simulateAgentStatus": "AVAILABLE"
66
- }
51
+ "os": "linux",
52
+ "guestUsername": "ubuntu",
53
+ "guestPassword": "dummy-password"
54
+ },
55
+ "vmSpec": {
56
+ "diskSize": 127,
57
+ "diskType": "Standard_LRS"
58
+ },
59
+ "agentCustomization": {
60
+ "sessionsPerVm": 1
61
+ },
62
+ "properties": {
63
+ "azureCreateResourceGroup": true,
64
+ "new-task-engine": true,
65
+ "simulateAgentStatus": "AVAILABLE"
67
66
  }
68
-
69
-
67
+ }
@@ -2,8 +2,8 @@
2
2
  "region": "westus2",
3
3
  "id": "nanw-test",
4
4
  "name": "nanw-test",
5
- "templateType" : "FLOATING",
6
- "vmRefreshType":"DELETE_VM",
5
+ "templateType": "FLOATING",
6
+ "vmRefreshType": "DELETE_VM",
7
7
  "image": {
8
8
  "guestPassword": "***********",
9
9
  "guestUsername": "hellomortal",
@@ -16,15 +16,17 @@
16
16
  "version": "latest"
17
17
  }
18
18
  },
19
- "vmSize" : "Standard_D2_v3",
19
+ "vmSize": "Standard_D2_v3",
20
20
  "vmNamePattern": "f-t",
21
21
  "network": {
22
22
  "subnetName": "default",
23
23
  "vnetName": "nanw-vnet",
24
24
  "vnetResourceGroup": "nanw-infra",
25
- "subnets": [{
26
- "id": "/subscriptions/a2ef2de8-f2b5-43da-bf68-2b182dd5f928/resourceGroups/nanw-infra/providers/Microsoft.Network/virtualNetworks/nanw-vnet/subnets/default"
27
- }]
25
+ "subnets": [
26
+ {
27
+ "id": "/subscriptions/a2ef2de8-f2b5-43da-bf68-2b182dd5f928/resourceGroups/nanw-infra/providers/Microsoft.Network/virtualNetworks/nanw-vnet/subnets/default"
28
+ }
29
+ ]
28
30
  },
29
31
  "properties": {
30
32
  "simulateAgentStatus": "AVAILABLE"
@@ -48,14 +50,14 @@
48
50
  "vmHubName": "westus2",
49
51
  "vmHubURL": "https://dev1b-westus2-cp103.azcp.horizon.vmware.com/"
50
52
  },
51
- "edgeGateway" : {
53
+ "edgeGateway": {
52
54
  "id": "abcdefghijklmnopqrstuvwx",
53
- "managementIp" : "10.78.0.13",
54
- "fqdn" : "edge-deployment.example.com",
55
- "port" : "31883",
55
+ "managementIp": "10.78.0.13",
56
+ "fqdn": "edge-deployment.example.com",
57
+ "port": "31883",
56
58
  "iotDeviceName": "poolmaintNightlyDevice"
57
59
  },
58
- "orgId" : "",
60
+ "orgId": "",
59
61
  "agentCustomization": {
60
62
  "sessionsPerVm": 1
61
63
  },
@@ -1,38 +1,36 @@
1
1
  {
2
- "region": "westus2",
3
- "id": "${id}",
4
- "name": "nanw-test1",
5
- "templateType" : "FLOATING",
6
- "vmRefreshType": "DELETE_VM",
7
- "vmNamePattern": "ep-",
8
- "provider": {
9
- "providerAccessId": "${providerId}"
10
- },
11
- "sparePolicy": {
12
- "increment": 200,
13
- "limit": 3,
14
- "max": 1,
15
- "min": 1
16
- },
17
- "providerType": "EDGEPROXY",
18
- "hdc": {
19
- "vmHubName": "westus2",
20
- "vmHubURL": ""
21
- },
22
- "edgeGateway": {
23
- "id": "abcdefghijklmnopqrstuvwx",
24
- "iotDeviceName": "syntheticIotDeviceName",
25
- "adTwinId": "syntheticAdTwinId"
26
- },
27
- "orgId" : "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
28
- "agentCustomization": {
29
- "sessionsPerVm": 1
30
- },
31
- "location": "US",
32
- "properties": {
33
- "new-task-engine": true,
34
- "autonomous": true
35
- }
2
+ "region": "westus2",
3
+ "id": "${id}",
4
+ "name": "nanw-test1",
5
+ "templateType": "FLOATING",
6
+ "vmRefreshType": "DELETE_VM",
7
+ "vmNamePattern": "ep-",
8
+ "provider": {
9
+ "providerAccessId": "${providerId}"
10
+ },
11
+ "sparePolicy": {
12
+ "increment": 200,
13
+ "limit": 3,
14
+ "max": 1,
15
+ "min": 1
16
+ },
17
+ "providerType": "EDGEPROXY",
18
+ "hdc": {
19
+ "vmHubName": "westus2",
20
+ "vmHubURL": ""
21
+ },
22
+ "edgeGateway": {
23
+ "id": "abcdefghijklmnopqrstuvwx",
24
+ "iotDeviceName": "syntheticIotDeviceName",
25
+ "adTwinId": "syntheticAdTwinId"
26
+ },
27
+ "orgId": "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
28
+ "agentCustomization": {
29
+ "sessionsPerVm": 1
30
+ },
31
+ "location": "US",
32
+ "properties": {
33
+ "new-task-engine": true,
34
+ "autonomous": true
35
+ }
36
36
  }
37
-
38
-
@@ -1,38 +1,36 @@
1
1
  {
2
- "region": "westus2",
3
- "id": "zero-dedicated-1",
4
- "name": "zero-dedicated-1",
5
- "templateType" : "FLOATING",
6
- "provisionWithAgentReady": false,
7
- "vmNamePattern": "zvm",
8
- "provider": {
9
- "providerAccessId": "${providerId}"
10
- },
11
- "sparePolicy": {
12
- "increment": 200,
13
- "limit": 10,
14
- "max": 3,
15
- "min": 2
16
- },
17
- "providerType": "ZEROCLOUD",
18
- "hdc": {
19
- "vmHubName": "westus2",
20
- "vmHubURL": ""
21
- },
22
- "edgeGateway": {
23
- "id": "abcdefghijklmnopqrstuvwx",
24
- "iotDeviceName": "syntheticIotDeviceName",
25
- "adTwinId": "syntheticAdTwinId"
26
- },
27
- "orgId" : "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
28
- "agentCustomization": {
29
- "sessionsPerVm": 1
30
- },
31
- "location": "US",
32
- "properties": {
33
- "new-task-engine": false,
34
- "sg-lcm-enforced-provision": true
35
- }
2
+ "region": "westus2",
3
+ "id": "zero-dedicated-1",
4
+ "name": "zero-dedicated-1",
5
+ "templateType": "FLOATING",
6
+ "provisionWithAgentReady": false,
7
+ "vmNamePattern": "zvm",
8
+ "provider": {
9
+ "providerAccessId": "${providerId}"
10
+ },
11
+ "sparePolicy": {
12
+ "increment": 200,
13
+ "limit": 10,
14
+ "max": 3,
15
+ "min": 2
16
+ },
17
+ "providerType": "ZEROCLOUD",
18
+ "hdc": {
19
+ "vmHubName": "westus2",
20
+ "vmHubURL": ""
21
+ },
22
+ "edgeGateway": {
23
+ "id": "abcdefghijklmnopqrstuvwx",
24
+ "iotDeviceName": "syntheticIotDeviceName",
25
+ "adTwinId": "syntheticAdTwinId"
26
+ },
27
+ "orgId": "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
28
+ "agentCustomization": {
29
+ "sessionsPerVm": 1
30
+ },
31
+ "location": "US",
32
+ "properties": {
33
+ "new-task-engine": false,
34
+ "sg-lcm-enforced-provision": true
35
+ }
36
36
  }
37
-
38
-
@@ -1,71 +1,55 @@
1
1
  {
2
- "region": "westus2",
3
- "id": "${id}",
4
- "name": "nanw-test1",
5
- "templateType" : "FLOATING",
6
- "provisionWithAgentReady": false,
7
- "vmNamePattern": "z-s",
8
- "provider": {
9
- "providerAccessId": "${providerId}"
10
- },
11
- "sparePolicy": {
12
- "increment": 200,
13
- "limit": 3,
14
- "max": 2,
15
- "min": 1
16
- },
17
- "providerType": "ZEROCLOUD",
18
- "monkey": {
19
- "defaults": {
20
- },
21
- "onDeletePool": {
22
- },
23
- "onList": {
24
- },
25
- "onPrepare": {
26
- },
27
- "vms": {
28
- "#default": {
29
- "onCreate": {
30
- "delayAsyncMs": 60000
31
- },
32
- "onDelete": {
33
- },
34
- "onPowerOff": {
35
- },
36
- "onPowerOn": {
37
- },
38
- "onRestart": {
39
- },
40
- "onShutdown": {
41
- },
42
- "onRefresh": {
43
- },
44
- "onRevertSnapshot": {
45
- },
46
- "onTakeSnapshot": {
47
- }
48
- },
49
- "#0": {
2
+ "region": "westus2",
3
+ "id": "${id}",
4
+ "name": "nanw-test1",
5
+ "templateType": "FLOATING",
6
+ "provisionWithAgentReady": false,
7
+ "vmNamePattern": "z-s",
8
+ "provider": {
9
+ "providerAccessId": "${providerId}"
10
+ },
11
+ "sparePolicy": {
12
+ "increment": 200,
13
+ "limit": 3,
14
+ "max": 2,
15
+ "min": 1
16
+ },
17
+ "providerType": "ZEROCLOUD",
18
+ "monkey": {
19
+ "defaults": {},
20
+ "onDeletePool": {},
21
+ "onList": {},
22
+ "onPrepare": {},
23
+ "vms": {
24
+ "#default": {
25
+ "onCreate": {
26
+ "delayAsyncMs": 60000
50
27
  },
51
- "my-vm-0123": {
52
- }
53
- }
54
- },
55
- "hdc": {
56
- "vmHubName": "westus2",
57
- "vmHubURL": ""
58
- },
59
- "edgeGateway": {
60
- "id": "abcdefghijklmnopqrstuvwx",
61
- "iotDeviceName": "syntheticIotDeviceName",
62
- "adTwinId": "syntheticAdTwinId"
63
- },
64
- "orgId" : "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
65
- "agentCustomization": {
66
- "sessionsPerVm": 1
67
- },
68
- "location": "US"
69
- }
70
-
71
-
28
+ "onDelete": {},
29
+ "onPowerOff": {},
30
+ "onPowerOn": {},
31
+ "onRestart": {},
32
+ "onShutdown": {},
33
+ "onRefresh": {},
34
+ "onRevertSnapshot": {},
35
+ "onTakeSnapshot": {}
36
+ },
37
+ "#0": {},
38
+ "my-vm-0123": {}
39
+ }
40
+ },
41
+ "hdc": {
42
+ "vmHubName": "westus2",
43
+ "vmHubURL": ""
44
+ },
45
+ "edgeGateway": {
46
+ "id": "abcdefghijklmnopqrstuvwx",
47
+ "iotDeviceName": "syntheticIotDeviceName",
48
+ "adTwinId": "syntheticAdTwinId"
49
+ },
50
+ "orgId": "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
51
+ "agentCustomization": {
52
+ "sessionsPerVm": 1
53
+ },
54
+ "location": "US"
55
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "region": "westus2",
3
+ "id": "${id}",
4
+ "name": "nanw-test1",
5
+ "templateType": "FLOATING",
6
+ "provisionWithAgentReady": false,
7
+ "vmNamePattern": "z-s",
8
+ "provider": {
9
+ "providerAccessId": "${providerId}"
10
+ },
11
+ "sparePolicy": {
12
+ "increment": 200,
13
+ "limit": 3,
14
+ "max": 2,
15
+ "min": 1
16
+ },
17
+ "providerType": "ZEROCLOUD",
18
+ "monkey": {
19
+ "onDeletePool": {
20
+ "delayAsyncMs": 0,
21
+ "delayOnThreadMs": 0,
22
+ "errAsync": 1,
23
+ "errOnThread": 0
24
+ }
25
+ },
26
+ "hdc": {
27
+ "vmHubName": "westus2",
28
+ "vmHubURL": ""
29
+ },
30
+ "edgeGateway": {
31
+ "id": "abcdefghijklmnopqrstuvwx",
32
+ "iotDeviceName": "syntheticIotDeviceName",
33
+ "adTwinId": "syntheticAdTwinId"
34
+ },
35
+ "orgId": "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
36
+ "agentCustomization": {
37
+ "sessionsPerVm": 1
38
+ },
39
+ "location": "US",
40
+ "properties": {
41
+ "new-task-engine": true
42
+ }
43
+ }
@@ -1,43 +1,41 @@
1
1
  {
2
- "region": "westus2",
3
- "id": "${id}",
4
- "name": "nanw-test1",
5
- "templateType" : "FLOATING",
6
- "provisionWithAgentReady": false,
7
- "vmNamePattern": "z-s",
8
- "provider": {
9
- "providerAccessId": "${providerId}"
10
- },
11
- "sparePolicy": {
12
- "increment": 200,
13
- "limit": 3,
14
- "max": 2,
15
- "min": 1
16
- },
17
- "providerType": "ZEROCLOUD",
18
- "monkey": {
19
- "onDeletePool": {
20
- "errOnThread": 1.0,
21
- "delayOnThreadMs" : 0
22
- }
23
- },
24
- "hdc": {
25
- "vmHubName": "westus2",
26
- "vmHubURL": ""
27
- },
28
- "edgeGateway": {
29
- "id": "abcdefghijklmnopqrstuvwx",
30
- "iotDeviceName": "syntheticIotDeviceName",
31
- "adTwinId": "syntheticAdTwinId"
32
- },
33
- "orgId" : "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
34
- "agentCustomization": {
35
- "sessionsPerVm": 1
36
- },
37
- "location": "US",
38
- "properties": {
39
- "new-task-engine": true
2
+ "region": "westus2",
3
+ "id": "${id}",
4
+ "name": "nanw-test1",
5
+ "templateType": "FLOATING",
6
+ "provisionWithAgentReady": false,
7
+ "vmNamePattern": "z-s",
8
+ "provider": {
9
+ "providerAccessId": "${providerId}"
10
+ },
11
+ "sparePolicy": {
12
+ "increment": 200,
13
+ "limit": 3,
14
+ "max": 2,
15
+ "min": 1
16
+ },
17
+ "providerType": "ZEROCLOUD",
18
+ "monkey": {
19
+ "onDeletePool": {
20
+ "errOnThread": 1.0,
21
+ "delayOnThreadMs": 0
40
22
  }
23
+ },
24
+ "hdc": {
25
+ "vmHubName": "westus2",
26
+ "vmHubURL": ""
27
+ },
28
+ "edgeGateway": {
29
+ "id": "abcdefghijklmnopqrstuvwx",
30
+ "iotDeviceName": "syntheticIotDeviceName",
31
+ "adTwinId": "syntheticAdTwinId"
32
+ },
33
+ "orgId": "aecd10d9-ca4f-4af8-97fa-9d7b6f25e285",
34
+ "agentCustomization": {
35
+ "sessionsPerVm": 1
36
+ },
37
+ "location": "US",
38
+ "properties": {
39
+ "new-task-engine": true
41
40
  }
42
-
43
-
41
+ }