Skip to content

Commit 647158b

Browse files
committed
EAM: allow for fractional vcpus
1 parent 1ca2bfa commit 647158b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

code/API_definitions/Edge-Application-Management.yaml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,7 @@ components:
10351035
- storage
10361036
properties:
10371037
numCPU:
1038-
type: integer
1039-
description: Number of virtual CPUs
1040-
example: 1
1038+
$ref: '#/components/schemas/Vcpu'
10411039
memory:
10421040
type: integer
10431041
example: 10
@@ -1067,6 +1065,18 @@ components:
10671065
identifies the endpoint within an Edge Cloud Zone where the user
10681066
equipment may connect to the selected application instance
10691067
1068+
Vcpu:
1069+
type: string
1070+
pattern: ^\d+((\.\d{1,3})|(m))?$
1071+
description: Number of vcpus in whole, decimal up to millivcpu, or millivcpu format.
1072+
example:
1073+
whole:
1074+
value: 2
1075+
decimal:
1076+
value: 0.500
1077+
millivcpu:
1078+
value: 500m
1079+
10701080
responses:
10711081
'400':
10721082
description: Bad request

0 commit comments

Comments
 (0)