Skip to content

Commit 50e0317

Browse files
committed
move error codes and status down
1 parent c70fc2c commit 50e0317

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

cns/swagger.yaml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -415,52 +415,6 @@ components:
415415
type: string
416416
description: The error message
417417

418-
ErrorCode:
419-
type: integer
420-
description: Pre-defined error code of what went wrong, if anything (see cns/types/infiniband/errorcodes.go)
421-
oneOf:
422-
- title: Success
423-
const: 0
424-
description: Successful operation
425-
- title: PodNotFound
426-
const: 1
427-
description: Pod not found
428-
- title: DeviceUnavailable
429-
const: 2
430-
description: Device is unavailable
431-
- title: DeviceNotFound
432-
const: 3
433-
description: Device not found
434-
- title: AnnotationNotFound
435-
const: 4
436-
description: Annotation not found on pod
437-
- title: PodAlreadyAllocated
438-
const: 5
439-
description: Pod was already assigned IB devices (and new ones don't match)
440-
- title: InternalProgrammingError
441-
const: 6
442-
description: Something went wrong programming the devices
443-
444-
Status:
445-
type: integer
446-
description: Status of IB device (see cns/types/infiniband/status.go)
447-
oneOf:
448-
- title: ProgrammingPending
449-
const: 0
450-
description: Programming of device is pending
451-
- title: ProgrammingFailed
452-
const: 1
453-
description: Programming of device failed
454-
- title: ProgrammingComplete
455-
const: 2
456-
description: Programming of device is complete
457-
- title: ReleasePending
458-
const: 3
459-
description: Release of device is pending
460-
- title: Available
461-
const: 4
462-
description: Device is available for use
463-
464418
AssignIBDevicesToPodRequest:
465419
type: object
466420
required:
@@ -510,3 +464,49 @@ components:
510464
Message:
511465
type: string
512466
description: Human-readable message or error description
467+
468+
ErrorCode:
469+
type: integer
470+
description: Pre-defined error code of what went wrong, if anything (see cns/types/infiniband/errorcodes.go)
471+
oneOf:
472+
- title: Success
473+
const: 0
474+
description: Successful operation
475+
- title: PodNotFound
476+
const: 1
477+
description: Pod not found
478+
- title: DeviceUnavailable
479+
const: 2
480+
description: Device is unavailable
481+
- title: DeviceNotFound
482+
const: 3
483+
description: Device not found
484+
- title: AnnotationNotFound
485+
const: 4
486+
description: Annotation not found on pod
487+
- title: PodAlreadyAllocated
488+
const: 5
489+
description: Pod was already assigned IB devices (and new ones don't match)
490+
- title: InternalProgrammingError
491+
const: 6
492+
description: Something went wrong programming the devices
493+
494+
Status:
495+
type: integer
496+
description: Status of IB device (see cns/types/infiniband/status.go)
497+
oneOf:
498+
- title: ProgrammingPending
499+
const: 0
500+
description: Programming of device is pending
501+
- title: ProgrammingFailed
502+
const: 1
503+
description: Programming of device failed
504+
- title: ProgrammingComplete
505+
const: 2
506+
description: Programming of device is complete
507+
- title: ReleasePending
508+
const: 3
509+
description: Release of device is pending
510+
- title: Available
511+
const: 4
512+
description: Device is available for use

0 commit comments

Comments
 (0)