aboutsummaryrefslogtreecommitdiffstats
path: root/python_openapi_client/fatcat_openapi_client/models/container_entity.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-10-12 17:35:20 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-10-13 16:21:30 -0700
commit6214e9f251cfa945641d9fbd2149746e83ec8331 (patch)
tree665904635db7f646b14924e94a65b89873b65038 /python_openapi_client/fatcat_openapi_client/models/container_entity.py
parentf150c9f7389afaacde8a60cb933452e062aad9bb (diff)
downloadfatcat-6214e9f251cfa945641d9fbd2149746e83ec8331.tar.gz
fatcat-6214e9f251cfa945641d9fbd2149746e83ec8331.zip
python client: codegen for v0.4
Diffstat (limited to 'python_openapi_client/fatcat_openapi_client/models/container_entity.py')
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/container_entity.py100
1 files changed, 98 insertions, 2 deletions
diff --git a/python_openapi_client/fatcat_openapi_client/models/container_entity.py b/python_openapi_client/fatcat_openapi_client/models/container_entity.py
index 470f2ee0..d6b23469 100644
--- a/python_openapi_client/fatcat_openapi_client/models/container_entity.py
+++ b/python_openapi_client/fatcat_openapi_client/models/container_entity.py
@@ -5,7 +5,7 @@
Fatcat is a scalable, versioned, API-oriented catalog of bibliographic entities and file metadata. # noqa: E501
- The version of the OpenAPI document: 0.3.1
+ The version of the OpenAPI document: 0.4.0
Contact: webservices@archive.org
Generated by: https://openapi-generator.tech
"""
@@ -40,8 +40,11 @@ class ContainerEntity(object):
'edit_extra': 'dict(str, object)',
'name': 'str',
'container_type': 'str',
+ 'publication_status': 'str',
'publisher': 'str',
'issnl': 'str',
+ 'issne': 'str',
+ 'issnp': 'str',
'wikidata_qid': 'str'
}
@@ -54,12 +57,15 @@ class ContainerEntity(object):
'edit_extra': 'edit_extra',
'name': 'name',
'container_type': 'container_type',
+ 'publication_status': 'publication_status',
'publisher': 'publisher',
'issnl': 'issnl',
+ 'issne': 'issne',
+ 'issnp': 'issnp',
'wikidata_qid': 'wikidata_qid'
}
- def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, name=None, container_type=None, publisher=None, issnl=None, wikidata_qid=None): # noqa: E501
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, name=None, container_type=None, publication_status=None, publisher=None, issnl=None, issne=None, issnp=None, wikidata_qid=None): # noqa: E501
"""ContainerEntity - a model defined in OpenAPI""" # noqa: E501
self._state = None
@@ -70,8 +76,11 @@ class ContainerEntity(object):
self._edit_extra = None
self._name = None
self._container_type = None
+ self._publication_status = None
self._publisher = None
self._issnl = None
+ self._issne = None
+ self._issnp = None
self._wikidata_qid = None
self.discriminator = None
@@ -91,10 +100,16 @@ class ContainerEntity(object):
self.name = name
if container_type is not None:
self.container_type = container_type
+ if publication_status is not None:
+ self.publication_status = publication_status
if publisher is not None:
self.publisher = publisher
if issnl is not None:
self.issnl = issnl
+ if issne is not None:
+ self.issne = issne
+ if issnp is not None:
+ self.issnp = issnp
if wikidata_qid is not None:
self.wikidata_qid = wikidata_qid
@@ -305,6 +320,29 @@ class ContainerEntity(object):
self._container_type = container_type
@property
+ def publication_status(self):
+ """Gets the publication_status of this ContainerEntity. # noqa: E501
+
+ Whether the container is active, discontinued, etc # noqa: E501
+
+ :return: The publication_status of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._publication_status
+
+ @publication_status.setter
+ def publication_status(self, publication_status):
+ """Sets the publication_status of this ContainerEntity.
+
+ Whether the container is active, discontinued, etc # noqa: E501
+
+ :param publication_status: The publication_status of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+
+ self._publication_status = publication_status
+
+ @property
def publisher(self):
"""Gets the publisher of this ContainerEntity. # noqa: E501
@@ -357,6 +395,64 @@ class ContainerEntity(object):
self._issnl = issnl
@property
+ def issne(self):
+ """Gets the issne of this ContainerEntity. # noqa: E501
+
+ Electronic ISSN number (ISSN-E). Should be valid and registered with issn.org # noqa: E501
+
+ :return: The issne of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._issne
+
+ @issne.setter
+ def issne(self, issne):
+ """Sets the issne of this ContainerEntity.
+
+ Electronic ISSN number (ISSN-E). Should be valid and registered with issn.org # noqa: E501
+
+ :param issne: The issne of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ if issne is not None and len(issne) > 9:
+ raise ValueError("Invalid value for `issne`, length must be less than or equal to `9`") # noqa: E501
+ if issne is not None and len(issne) < 9:
+ raise ValueError("Invalid value for `issne`, length must be greater than or equal to `9`") # noqa: E501
+ if issne is not None and not re.search(r'\d{4}-\d{3}[0-9X]', issne): # noqa: E501
+ raise ValueError(r"Invalid value for `issne`, must be a follow pattern or equal to `/\d{4}-\d{3}[0-9X]/`") # noqa: E501
+
+ self._issne = issne
+
+ @property
+ def issnp(self):
+ """Gets the issnp of this ContainerEntity. # noqa: E501
+
+ Print ISSN number (ISSN-P). Should be valid and registered with issn.org # noqa: E501
+
+ :return: The issnp of this ContainerEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._issnp
+
+ @issnp.setter
+ def issnp(self, issnp):
+ """Sets the issnp of this ContainerEntity.
+
+ Print ISSN number (ISSN-P). Should be valid and registered with issn.org # noqa: E501
+
+ :param issnp: The issnp of this ContainerEntity. # noqa: E501
+ :type: str
+ """
+ if issnp is not None and len(issnp) > 9:
+ raise ValueError("Invalid value for `issnp`, length must be less than or equal to `9`") # noqa: E501
+ if issnp is not None and len(issnp) < 9:
+ raise ValueError("Invalid value for `issnp`, length must be greater than or equal to `9`") # noqa: E501
+ if issnp is not None and not re.search(r'\d{4}-\d{3}[0-9X]', issnp): # noqa: E501
+ raise ValueError(r"Invalid value for `issnp`, must be a follow pattern or equal to `/\d{4}-\d{3}[0-9X]/`") # noqa: E501
+
+ self._issnp = issnp
+
+ @property
def wikidata_qid(self):
"""Gets the wikidata_qid of this ContainerEntity. # noqa: E501