From 647158b1367d0c2ea4b1eeca4f0d4ee4584f8e7d Mon Sep 17 00:00:00 2001 From: Jonathan Gainsley <38672162+gainsley@users.noreply.github.com> Date: Thu, 6 Jun 2024 17:15:35 -0700 Subject: [PATCH 1/2] EAM: allow for fractional vcpus --- .../Edge-Application-Management.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/code/API_definitions/Edge-Application-Management.yaml b/code/API_definitions/Edge-Application-Management.yaml index fc4d684..c279fb8 100644 --- a/code/API_definitions/Edge-Application-Management.yaml +++ b/code/API_definitions/Edge-Application-Management.yaml @@ -1035,9 +1035,7 @@ components: - storage properties: numCPU: - type: integer - description: Number of virtual CPUs - example: 1 + $ref: '#/components/schemas/Vcpu' memory: type: integer example: 10 @@ -1067,6 +1065,18 @@ components: identifies the endpoint within an Edge Cloud Zone where the user equipment may connect to the selected application instance + Vcpu: + type: string + pattern: ^\d+((\.\d{1,3})|(m))?$ + description: Number of vcpus in whole, decimal up to millivcpu, or millivcpu format. + example: + whole: + value: 2 + decimal: + value: 0.500 + millivcpu: + value: 500m + responses: '400': description: Bad request From 9df8b986acbbf78b84ee9f6104cf6c6e0156dfd5 Mon Sep 17 00:00:00 2001 From: Jonathan Gainsley <38672162+gainsley@users.noreply.github.com> Date: Thu, 6 Jun 2024 17:30:41 -0700 Subject: [PATCH 2/2] fix line too long --- code/API_definitions/Edge-Application-Management.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/API_definitions/Edge-Application-Management.yaml b/code/API_definitions/Edge-Application-Management.yaml index c279fb8..28063b0 100644 --- a/code/API_definitions/Edge-Application-Management.yaml +++ b/code/API_definitions/Edge-Application-Management.yaml @@ -1068,7 +1068,9 @@ components: Vcpu: type: string pattern: ^\d+((\.\d{1,3})|(m))?$ - description: Number of vcpus in whole, decimal up to millivcpu, or millivcpu format. + description: | + Number of vcpus in whole, decimal up to millivcpu, + or millivcpu format. example: whole: value: 2