summaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/models/container_entity.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-14 22:05:22 +0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-14 22:05:22 +0800
commit7c937dd781d7bef4c5a49cc6ecd8feb3ece9d0d0 (patch)
tree2951d0e88652465d1fb4ff135c9affc46ea7bdda /python/fatcat_client/models/container_entity.py
parent595a15cfd3b3bd1e06d13f6274867616bea61ef0 (diff)
downloadfatcat-7c937dd781d7bef4c5a49cc6ecd8feb3ece9d0d0.tar.gz
fatcat-7c937dd781d7bef4c5a49cc6ecd8feb3ece9d0d0.zip
python codegen
Diffstat (limited to 'python/fatcat_client/models/container_entity.py')
-rw-r--r--python/fatcat_client/models/container_entity.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/fatcat_client/models/container_entity.py b/python/fatcat_client/models/container_entity.py
index 5fc48a7e..5ed7eb0a 100644
--- a/python/fatcat_client/models/container_entity.py
+++ b/python/fatcat_client/models/container_entity.py
@@ -87,7 +87,8 @@ class ContainerEntity(object):
self.issnl = issnl
if publisher is not None:
self.publisher = publisher
- self.name = name
+ if name is not None:
+ self.name = name
if edit_extra is not None:
self.edit_extra = edit_extra
if extra is not None:
@@ -216,6 +217,7 @@ class ContainerEntity(object):
def name(self):
"""Gets the name of this ContainerEntity. # noqa: E501
+ Required for valid entities # noqa: E501
:return: The name of this ContainerEntity. # noqa: E501
:rtype: str
@@ -226,12 +228,11 @@ class ContainerEntity(object):
def name(self, name):
"""Sets the name of this ContainerEntity.
+ Required for valid entities # noqa: E501
:param name: The name of this ContainerEntity. # noqa: E501
:type: str
"""
- if name is None:
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name