![Dmitry Ukov](/assets/img/avatar_default.png)
OpenApi Generator conceders On/Off values in spec as boolean. Therefore we need to specify On/Off values as strings explicitly to avoid conversion to bool Change-Id: I011c3f11aa6dc2fefe5d4a1333b0f7b7aceff6d6
21 lines
471 B
Go
21 lines
471 B
Go
/*
|
|
* Redfish OAPI specification
|
|
*
|
|
* Partial Redfish OAPI specification for a limited client
|
|
*
|
|
* API version: 0.0.1
|
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
*/
|
|
|
|
package client
|
|
// PowerState the model 'PowerState'
|
|
type PowerState string
|
|
|
|
// List of PowerState
|
|
const (
|
|
POWERSTATE_ON PowerState = "On"
|
|
POWERSTATE_OFF PowerState = "Off"
|
|
POWERSTATE_POWERING_ON PowerState = "PoweringOn"
|
|
POWERSTATE_POWERING_OFF PowerState = "PoweringOff"
|
|
)
|