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
|
||||
'@odata.type': '@odata.type'
|
||||
'@odata.context': '@odata.context'
|
||||
DateTime: 2000-01-23T04:56:07.000+00:00
|
||||
DateTime: DateTime
|
||||
FirmwareVersion: FirmwareVersion
|
||||
Name: Name
|
||||
'@odata.id': '@odata.id'
|
||||
@ -945,7 +945,7 @@ components:
|
||||
Status:
|
||||
$ref: '#/components/schemas/Status'
|
||||
DateTime:
|
||||
format: date-time
|
||||
format: string
|
||||
nullable: true
|
||||
readOnly: false
|
||||
type: string
|
||||
|
@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
||||
**Model** | Pointer to **string** | | [optional]
|
||||
**ManagerType** | [**ManagerType**](ManagerType.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]
|
||||
**Description** | Pointer to **string** | description | [optional]
|
||||
**EthernetInterfaces** | [**IdRef**](idRef.md) | | [optional]
|
||||
|
@ -8,9 +8,6 @@
|
||||
*/
|
||||
|
||||
package client
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Redfish manager resource.
|
||||
type Manager struct {
|
||||
@ -31,7 +28,7 @@ type Manager struct {
|
||||
Model *string `json:"Model,omitempty"`
|
||||
ManagerType ManagerType `json:"ManagerType,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 .
|
||||
DateTimeLocalOffset *string `json:"DateTimeLocalOffset,omitempty"`
|
||||
// description
|
||||
|
@ -465,7 +465,8 @@ components:
|
||||
'Status':
|
||||
$ref: '#/components/schemas/Status'
|
||||
'DateTime':
|
||||
format: date-time
|
||||
#format: date-time
|
||||
format: string
|
||||
nullable: true
|
||||
readOnly: false
|
||||
type: string
|
||||
|
Loading…
x
Reference in New Issue
Block a user