parse datetime as string
due to bug in sushi emulator, we will parse manager's time as string instead of datetime.
This commit is contained in:
parent
1be688562a
commit
7977676acb
@ -879,7 +879,7 @@ components:
|
|||||||
ServiceEntryPointUUID: ServiceEntryPointUUID
|
ServiceEntryPointUUID: ServiceEntryPointUUID
|
||||||
'@odata.type': '@odata.type'
|
'@odata.type': '@odata.type'
|
||||||
'@odata.context': '@odata.context'
|
'@odata.context': '@odata.context'
|
||||||
DateTime: 2000-01-23T04:56:07.000+00:00
|
DateTime: DateTime
|
||||||
FirmwareVersion: FirmwareVersion
|
FirmwareVersion: FirmwareVersion
|
||||||
Name: Name
|
Name: Name
|
||||||
'@odata.id': '@odata.id'
|
'@odata.id': '@odata.id'
|
||||||
@ -945,7 +945,7 @@ components:
|
|||||||
Status:
|
Status:
|
||||||
$ref: '#/components/schemas/Status'
|
$ref: '#/components/schemas/Status'
|
||||||
DateTime:
|
DateTime:
|
||||||
format: date-time
|
format: string
|
||||||
nullable: true
|
nullable: true
|
||||||
readOnly: false
|
readOnly: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|||||||
**Model** | Pointer to **string** | | [optional]
|
**Model** | Pointer to **string** | | [optional]
|
||||||
**ManagerType** | [**ManagerType**](ManagerType.md) | | [optional]
|
**ManagerType** | [**ManagerType**](ManagerType.md) | | [optional]
|
||||||
**Status** | [**Status**](Status.md) | | [optional]
|
**Status** | [**Status**](Status.md) | | [optional]
|
||||||
**DateTime** | Pointer to [**time.Time**](time.Time.md) | | [optional]
|
**DateTime** | Pointer to **string** | | [optional]
|
||||||
**DateTimeLocalOffset** | Pointer to **string** | The time offset from UTC that the DateTime property is set to in format: +06:00 . | [optional]
|
**DateTimeLocalOffset** | Pointer to **string** | The time offset from UTC that the DateTime property is set to in format: +06:00 . | [optional]
|
||||||
**Description** | Pointer to **string** | description | [optional]
|
**Description** | Pointer to **string** | description | [optional]
|
||||||
**EthernetInterfaces** | [**IdRef**](idRef.md) | | [optional]
|
**EthernetInterfaces** | [**IdRef**](idRef.md) | | [optional]
|
||||||
|
@ -8,9 +8,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
package client
|
package client
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Redfish manager resource.
|
// Redfish manager resource.
|
||||||
type Manager struct {
|
type Manager struct {
|
||||||
@ -31,7 +28,7 @@ type Manager struct {
|
|||||||
Model *string `json:"Model,omitempty"`
|
Model *string `json:"Model,omitempty"`
|
||||||
ManagerType ManagerType `json:"ManagerType,omitempty"`
|
ManagerType ManagerType `json:"ManagerType,omitempty"`
|
||||||
Status Status `json:"Status,omitempty"`
|
Status Status `json:"Status,omitempty"`
|
||||||
DateTime *time.Time `json:"DateTime,omitempty"`
|
DateTime *string `json:"DateTime,omitempty"`
|
||||||
// The time offset from UTC that the DateTime property is set to in format: +06:00 .
|
// The time offset from UTC that the DateTime property is set to in format: +06:00 .
|
||||||
DateTimeLocalOffset *string `json:"DateTimeLocalOffset,omitempty"`
|
DateTimeLocalOffset *string `json:"DateTimeLocalOffset,omitempty"`
|
||||||
// description
|
// description
|
||||||
|
@ -465,7 +465,8 @@ components:
|
|||||||
'Status':
|
'Status':
|
||||||
$ref: '#/components/schemas/Status'
|
$ref: '#/components/schemas/Status'
|
||||||
'DateTime':
|
'DateTime':
|
||||||
format: date-time
|
#format: date-time
|
||||||
|
format: string
|
||||||
nullable: true
|
nullable: true
|
||||||
readOnly: false
|
readOnly: false
|
||||||
type: string
|
type: string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user