aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/models/container_entity.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-07-26 01:01:15 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-07-26 01:01:15 -0700
commite564602a656abedd3c5f15ee4b4495d29ef96e04 (patch)
tree671c776d0389040d92575d641cc3b15356e151c2 /python/fatcat_client/models/container_entity.py
parent38b145908bee4b7fd9be5d1310a0fe875d92aeff (diff)
downloadfatcat-e564602a656abedd3c5f15ee4b4495d29ef96e04.tar.gz
fatcat-e564602a656abedd3c5f15ee4b4495d29ef96e04.zip
update fatcat_client with codegen changes
Diffstat (limited to 'python/fatcat_client/models/container_entity.py')
-rw-r--r--python/fatcat_client/models/container_entity.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/python/fatcat_client/models/container_entity.py b/python/fatcat_client/models/container_entity.py
index 0d8dffef..4ca2653e 100644
--- a/python/fatcat_client/models/container_entity.py
+++ b/python/fatcat_client/models/container_entity.py
@@ -182,6 +182,12 @@ class ContainerEntity(object):
:param issnl: The issnl of this ContainerEntity. # noqa: E501
:type: str
"""
+ if issnl is not None and len(issnl) > 9:
+ raise ValueError("Invalid value for `issnl`, length must be less than or equal to `9`") # noqa: E501
+ if issnl is not None and len(issnl) < 9:
+ raise ValueError("Invalid value for `issnl`, length must be greater than or equal to `9`") # noqa: E501
+ if issnl is not None and not re.search('\\d{4}-\\d{3}[0-9X]', issnl): # noqa: E501
+ raise ValueError("Invalid value for `issnl`, must be a follow pattern or equal to `/\\d{4}-\\d{3}[0-9X]/`") # noqa: E501
self._issnl = issnl
@@ -254,6 +260,7 @@ class ContainerEntity(object):
def editgroup_id(self):
"""Gets the editgroup_id of this ContainerEntity. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
:return: The editgroup_id of this ContainerEntity. # noqa: E501
:rtype: str
@@ -264,10 +271,17 @@ class ContainerEntity(object):
def editgroup_id(self, editgroup_id):
"""Sets the editgroup_id of this ContainerEntity.
+ base32-encoded unique identifier # noqa: E501
:param editgroup_id: The editgroup_id of this ContainerEntity. # noqa: E501
:type: str
"""
+ if editgroup_id is not None and len(editgroup_id) > 26:
+ raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501
+ if editgroup_id is not None and len(editgroup_id) < 26:
+ raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501
+ if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
+ raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._editgroup_id = editgroup_id
@@ -275,6 +289,7 @@ class ContainerEntity(object):
def redirect(self):
"""Gets the redirect of this ContainerEntity. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
:return: The redirect of this ContainerEntity. # noqa: E501
:rtype: str
@@ -285,10 +300,17 @@ class ContainerEntity(object):
def redirect(self, redirect):
"""Sets the redirect of this ContainerEntity.
+ base32-encoded unique identifier # noqa: E501
:param redirect: The redirect of this ContainerEntity. # noqa: E501
:type: str
"""
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._redirect = redirect
@@ -296,6 +318,7 @@ class ContainerEntity(object):
def revision(self):
"""Gets the revision of this ContainerEntity. # noqa: E501
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
:return: The revision of this ContainerEntity. # noqa: E501
:rtype: str
@@ -306,10 +329,17 @@ class ContainerEntity(object):
def revision(self, revision):
"""Sets the revision of this ContainerEntity.
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
:param revision: The revision of this ContainerEntity. # noqa: E501
:type: str
"""
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
self._revision = revision
@@ -317,6 +347,7 @@ class ContainerEntity(object):
def ident(self):
"""Gets the ident of this ContainerEntity. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
:return: The ident of this ContainerEntity. # noqa: E501
:rtype: str
@@ -327,10 +358,17 @@ class ContainerEntity(object):
def ident(self, ident):
"""Sets the ident of this ContainerEntity.
+ base32-encoded unique identifier # noqa: E501
:param ident: The ident of this ContainerEntity. # noqa: E501
:type: str
"""
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._ident = ident