Skip to content

Commit 215e3ad

Browse files
author
Raphael V Rosa
authored
Fixes apiv2 compatibility (#153)
1 parent 74652e4 commit 215e3ad

File tree

24 files changed

+2302
-1767
lines changed

24 files changed

+2302
-1767
lines changed

apiv2/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.4-dev
1+
0.0.4

apiv2/api/openapi/openapi.yaml

Lines changed: 54 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,6 +3102,8 @@ components:
31023102
format: enum
31033103
site:
31043104
$ref: '#/components/schemas/SiteResource'
3105+
provider:
3106+
$ref: '#/components/schemas/ProviderResource'
31053107
note:
31063108
readOnly: true
31073109
maxLength: 512
@@ -3187,6 +3189,23 @@ components:
31873189
readOnly: true
31883190
type: string
31893191
description: BIOS Vendor.
3192+
currentPowerState:
3193+
readOnly: true
3194+
enum:
3195+
- POWER_STATE_ERROR
3196+
- POWER_STATE_ON
3197+
- POWER_STATE_OFF
3198+
type: string
3199+
description: Current power state of the host
3200+
format: enum
3201+
desiredPowerState:
3202+
enum:
3203+
- POWER_STATE_ERROR
3204+
- POWER_STATE_ON
3205+
- POWER_STATE_OFF
3206+
type: string
3207+
description: Desired power state of the host
3208+
format: enum
31903209
hostStatus:
31913210
readOnly: true
31923211
maxLength: 1024
@@ -3277,6 +3296,7 @@ components:
32773296
type: string
32783297
description: The site where the host is located.
32793298
metadata:
3299+
maxItems: 100
32803300
type: array
32813301
items:
32823302
$ref: '#/components/schemas/MetadataItem'
@@ -3293,11 +3313,6 @@ components:
32933313
HostgpuResource:
32943314
type: object
32953315
properties:
3296-
resourceId:
3297-
readOnly: true
3298-
maxLength: 16
3299-
pattern: ^hostgpu-[0-9a-f]{8}$
3300-
type: string
33013316
pciId:
33023317
readOnly: true
33033318
type: string
@@ -3318,21 +3333,18 @@ components:
33183333
readOnly: true
33193334
type: string
33203335
description: GPU name as reported by OS.
3321-
features:
3336+
capabilities:
33223337
readOnly: true
3323-
type: string
3338+
type: array
3339+
items:
3340+
type: string
33243341
description: The features of this GPU device, comma separated.
33253342
timestamps:
33263343
$ref: '#/components/schemas/Timestamps'
33273344
description: The set of available host GPU cards.
33283345
HostnicResource:
33293346
type: object
33303347
properties:
3331-
resourceId:
3332-
readOnly: true
3333-
maxLength: 16
3334-
pattern: ^hostnic-[0-9a-f]{8}$
3335-
type: string
33363348
deviceName:
33373349
readOnly: true
33383350
type: string
@@ -3359,28 +3371,18 @@ components:
33593371
type: integer
33603372
description: The maximum number of VFs the interface supports, if SR-IOV is supported.
33613373
format: uint32
3362-
features:
3363-
readOnly: true
3364-
type: string
3365-
description: The features of this interface, comma separated.
33663374
mtu:
33673375
readOnly: true
33683376
type: integer
33693377
description: Maximum transmission unit of the interface.
33703378
format: uint32
33713379
linkState:
3372-
readOnly: true
3373-
enum:
3374-
- NETWORK_INTERFACE_LINK_STATE_UP
3375-
- NETWORK_INTERFACE_LINK_STATE_DOWN
3376-
type: string
3377-
description: Link state of this interface.
3378-
format: enum
3380+
$ref: '#/components/schemas/NetworkInterfaceLinkState'
33793381
bmcInterface:
33803382
readOnly: true
33813383
type: boolean
33823384
description: Whether this is a bmc interface or not.
3383-
ipAddresses:
3385+
ipaddresses:
33843386
readOnly: true
33853387
type: array
33863388
items:
@@ -3392,11 +3394,6 @@ components:
33923394
HoststorageResource:
33933395
type: object
33943396
properties:
3395-
resourceId:
3396-
readOnly: true
3397-
maxLength: 20
3398-
pattern: ^hoststorage-[0-9a-f]{8}$
3399-
type: string
34003397
wwid:
34013398
readOnly: true
34023399
type: string
@@ -3427,16 +3424,11 @@ components:
34273424
HostusbResource:
34283425
type: object
34293426
properties:
3430-
resourceId:
3431-
readOnly: true
3432-
maxLength: 20
3433-
pattern: ^hostusb-[0-9a-f]{8}$
3434-
type: string
3435-
idvendor:
3427+
idVendor:
34363428
readOnly: true
34373429
type: string
34383430
description: Hexadecimal number representing ID of the USB device vendor.
3439-
idproduct:
3431+
idProduct:
34403432
readOnly: true
34413433
type: string
34423434
description: Hexadecimal number representing ID of the USB device product.
@@ -3544,6 +3536,8 @@ components:
35443536
format: enum
35453537
host:
35463538
$ref: '#/components/schemas/HostResource'
3539+
os:
3540+
$ref: '#/components/schemas/OperatingSystemResource'
35473541
desiredOs:
35483542
$ref: '#/components/schemas/OperatingSystemResource'
35493543
currentOs:
@@ -4096,6 +4090,19 @@ components:
40964090
type: string
40974091
description: The metadata value.
40984092
description: A metadata item, represented by a key:value pair.
4093+
NetworkInterfaceLinkState:
4094+
type: object
4095+
properties:
4096+
type:
4097+
readOnly: true
4098+
enum:
4099+
- NETWORK_INTERFACE_LINK_STATE_UP
4100+
- NETWORK_INTERFACE_LINK_STATE_DOWN
4101+
type: string
4102+
description: The interface link state.
4103+
format: enum
4104+
timestamps:
4105+
$ref: '#/components/schemas/Timestamps'
40994106
OnboardHostResponse:
41004107
type: object
41014108
properties: {}
@@ -4128,6 +4135,7 @@ components:
41284135
type: string
41294136
description: The OS resource's kernel Command Line Options.
41304137
updateSources:
4138+
maxItems: 100
41314139
type: array
41324140
items:
41334141
maxLength: 10000
@@ -4203,7 +4211,7 @@ components:
42034211
maxLength: 500
42044212
pattern: ^$|^[a-zA-Z-_0-9./:;=@?!#,<>*()" ]+$
42054213
type: string
4206-
description: // OS image URL. URL of the original installation source.
4214+
description: Deprecated. OS image URL. URL of the original installation source.
42074215
timestamps:
42084216
$ref: '#/components/schemas/Timestamps'
42094217
description: An OS resource.
@@ -4244,6 +4252,7 @@ components:
42444252
type: string
42454253
description: The provider resource's API endpoint.
42464254
apiCredentials:
4255+
maxItems: 100
42474256
type: array
42484257
items:
42494258
maxLength: 500
@@ -4287,6 +4296,7 @@ components:
42874296
type: string
42884297
description: Deprecated, The Region unique identifier. Alias of resourceId.
42894298
metadata:
4299+
maxItems: 100
42904300
type: array
42914301
items:
42924302
$ref: '#/components/schemas/MetadataItem'
@@ -4499,6 +4509,7 @@ components:
44994509
type: string
45004510
description: Deprecated, The site unique identifier. Alias of resourceId.
45014511
metadata:
4512+
maxItems: 100
45024513
type: array
45034514
items:
45044515
$ref: '#/components/schemas/MetadataItem'
@@ -4567,9 +4578,11 @@ components:
45674578
description: The collector kind.
45684579
format: enum
45694580
groups:
4581+
maxItems: 100
45704582
type: array
45714583
items:
4572-
pattern: ^$|^[a-zA-Z-_0-9./:;=@?!#,<>*()"\ ]+$
4584+
maxLength: 1000
4585+
pattern: '"^$|^[a-zA-Z-_0-9./:;=@?!#,<>*()"\ ]+$"'
45734586
type: string
45744587
description: A list of log groups to collect.
45754588
timestamps:
@@ -4661,9 +4674,11 @@ components:
46614674
description: The collector kind.
46624675
format: enum
46634676
groups:
4677+
maxItems: 100
46644678
type: array
46654679
items:
4666-
pattern: ^$|^[a-zA-Z-_0-9./:;=@?!#,<>*()"\ ]+$
4680+
maxLength: 1000
4681+
pattern: '"^$|^[a-zA-Z-_0-9./:;=@?!#,<>*()"\ ]+$"'
46674682
type: string
46684683
description: A list of log groups to collect.
46694684
timestamps:

0 commit comments

Comments
 (0)