1.4.0
This commit is contained in:
@@ -38,16 +38,16 @@ class CloudapiVinsGetResultModel(_base.BaseAPIResultModel):
|
||||
vxlan_id: int
|
||||
zone_id: int
|
||||
|
||||
@property
|
||||
def created_datetime(self):
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
@property
|
||||
def deleted_datetime(self):
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
@property
|
||||
def updated_datetime(self):
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class CloudapiVinsNatRuleAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
public_port_start: int,
|
||||
vins_id: int,
|
||||
local_port: int | None = None,
|
||||
protocol: _nested.NATRuleProtocol = _nested.NATRuleProtocol.tcp,
|
||||
protocol: _nested.NATRuleProtocol = _nested.NATRuleProtocol.TCP,
|
||||
public_port_end: int | None = None,
|
||||
) -> CloudapiVinsNatRuleAddResultInt:
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user