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:
Kanwar Saad Bin Liaqat 2019-09-19 03:40:48 +03:00
parent 1be688562a
commit 7977676acb
No known key found for this signature in database
GPG Key ID: F5189DC439490C63
4 changed files with 6 additions and 8 deletions

View File

@ -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

View File

@ -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]

View File

@ -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

View File

@ -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