# coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
[docs]class ResourceUpdate(Model):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self, urn: str=None, description: str=None): # noqa: E501
"""ResourceUpdate - a model defined in Swagger
:param urn: The urn of this ResourceUpdate. # noqa: E501
:type urn: str
:param description: The description of this ResourceUpdate. # noqa: E501
:type description: str
"""
self.swagger_types = {
'urn': str,
'description': str
}
self.attribute_map = {
'urn': 'urn',
'description': 'description'
}
self._urn = urn
self._description = description
[docs] @classmethod
def from_dict(cls, dikt) -> 'ResourceUpdate':
"""Returns the dict as a model
:param dikt: A dict.
:type: dict
:return: The resource_update of this ResourceUpdate. # noqa: E501
:rtype: ResourceUpdate
"""
return util.deserialize_model(dikt, cls)
@property
def urn(self) -> str:
"""Gets the urn of this ResourceUpdate.
:return: The urn of this ResourceUpdate.
:rtype: str
"""
return self._urn
@urn.setter
def urn(self, urn: str):
"""Sets the urn of this ResourceUpdate.
:param urn: The urn of this ResourceUpdate.
:type urn: str
"""
self._urn = urn
@property
def description(self) -> str:
"""Gets the description of this ResourceUpdate.
:return: The description of this ResourceUpdate.
:rtype: str
"""
return self._description
@description.setter
def description(self, description: str):
"""Sets the description of this ResourceUpdate.
:param description: The description of this ResourceUpdate.
:type description: str
"""
self._description = description