11import logging
22
33from schematics import Model
4- from schematics .types import StringType , ModelType , ListType
4+ from schematics .types import StringType , ModelType , ListType , DateTimeType
55
6- from spaceone .inventory .libs .schema .dynamic_field import DateTimeDyField
76from spaceone .inventory .libs .schema .resource import AWSCloudService
87
98_LOGGER = logging .getLogger (__name__ )
@@ -19,7 +18,7 @@ class Action(Model):
1918
2019
2120class History (Model ):
22- date = DateTimeDyField (deserialize_from = "date" )
21+ date = DateTimeType (deserialize_from = "date" )
2322 type = StringType (choices = ("ConfigurationUpdate" ,"StateUpdate" ,"Action" ), deserialize_from = "type" )
2423 description = StringType (deserialize_from = "description" )
2524
@@ -28,7 +27,7 @@ class Alarms(AWSCloudService):
2827 alarm_arn = StringType (deserialize_from = "AlarmArn" )
2928 name = StringType (deserialize_from = "AlarmName" )
3029 state_value = StringType (choices = ("OK" ,"ALARM" ,"INSUFFICIENT_DATA" ), deserialize_from = "StateValue" )
31- state_updated_timestamp = DateTimeDyField (deserialize_from = "StateUpdatedTimestamp" )
30+ state_updated_timestamp = DateTimeType (deserialize_from = "StateUpdatedTimestamp" )
3231 actions_enabled = StringType (deserialize_from = "actions_enabled" )
3332 conditions = StringType (deserialize_from = "conditions" )
3433 actions = ListType (ModelType (Action , deserialize_from = "action" ), deserialize_from = "actions" )
0 commit comments