summaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/models
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_client/models')
-rw-r--r--python/fatcat_client/models/editgroup.py44
-rw-r--r--python/fatcat_client/models/editor.py30
-rw-r--r--python/fatcat_client/models/file_entity.py30
3 files changed, 52 insertions, 52 deletions
diff --git a/python/fatcat_client/models/editgroup.py b/python/fatcat_client/models/editgroup.py
index ff21b800..5b1573ed 100644
--- a/python/fatcat_client/models/editgroup.py
+++ b/python/fatcat_client/models/editgroup.py
@@ -33,7 +33,7 @@ class Editgroup(object):
and the value is json key in definition.
"""
swagger_types = {
- 'id': 'str',
+ 'editgroup_id': 'str',
'editor_id': 'str',
'description': 'str',
'extra': 'object',
@@ -41,25 +41,25 @@ class Editgroup(object):
}
attribute_map = {
- 'id': 'id',
+ 'editgroup_id': 'editgroup_id',
'editor_id': 'editor_id',
'description': 'description',
'extra': 'extra',
'edits': 'edits'
}
- def __init__(self, id=None, editor_id=None, description=None, extra=None, edits=None): # noqa: E501
+ def __init__(self, editgroup_id=None, editor_id=None, description=None, extra=None, edits=None): # noqa: E501
"""Editgroup - a model defined in Swagger""" # noqa: E501
- self._id = None
+ self._editgroup_id = None
self._editor_id = None
self._description = None
self._extra = None
self._edits = None
self.discriminator = None
- if id is not None:
- self.id = id
+ if editgroup_id is not None:
+ self.editgroup_id = editgroup_id
self.editor_id = editor_id
if description is not None:
self.description = description
@@ -69,33 +69,33 @@ class Editgroup(object):
self.edits = edits
@property
- def id(self):
- """Gets the id of this Editgroup. # noqa: E501
+ def editgroup_id(self):
+ """Gets the editgroup_id of this Editgroup. # noqa: E501
base32-encoded unique identifier # noqa: E501
- :return: The id of this Editgroup. # noqa: E501
+ :return: The editgroup_id of this Editgroup. # noqa: E501
:rtype: str
"""
- return self._id
+ return self._editgroup_id
- @id.setter
- def id(self, id):
- """Sets the id of this Editgroup.
+ @editgroup_id.setter
+ def editgroup_id(self, editgroup_id):
+ """Sets the editgroup_id of this Editgroup.
base32-encoded unique identifier # noqa: E501
- :param id: The id of this Editgroup. # noqa: E501
+ :param editgroup_id: The editgroup_id of this Editgroup. # noqa: E501
:type: str
"""
- if id is not None and len(id) > 26:
- raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") # noqa: E501
- if id is not None and len(id) < 26:
- raise ValueError("Invalid value for `id`, length must be greater than or equal to `26`") # noqa: E501
- if id is not None and not re.search('[a-zA-Z2-7]{26}', id): # noqa: E501
- raise ValueError("Invalid value for `id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
-
- self._id = id
+ 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
@property
def editor_id(self):
diff --git a/python/fatcat_client/models/editor.py b/python/fatcat_client/models/editor.py
index d3523090..c926f86f 100644
--- a/python/fatcat_client/models/editor.py
+++ b/python/fatcat_client/models/editor.py
@@ -31,46 +31,46 @@ class Editor(object):
and the value is json key in definition.
"""
swagger_types = {
- 'id': 'str',
+ 'editor_id': 'str',
'username': 'str'
}
attribute_map = {
- 'id': 'id',
+ 'editor_id': 'editor_id',
'username': 'username'
}
- def __init__(self, id=None, username=None): # noqa: E501
+ def __init__(self, editor_id=None, username=None): # noqa: E501
"""Editor - a model defined in Swagger""" # noqa: E501
- self._id = None
+ self._editor_id = None
self._username = None
self.discriminator = None
- if id is not None:
- self.id = id
+ if editor_id is not None:
+ self.editor_id = editor_id
self.username = username
@property
- def id(self):
- """Gets the id of this Editor. # noqa: E501
+ def editor_id(self):
+ """Gets the editor_id of this Editor. # noqa: E501
- :return: The id of this Editor. # noqa: E501
+ :return: The editor_id of this Editor. # noqa: E501
:rtype: str
"""
- return self._id
+ return self._editor_id
- @id.setter
- def id(self, id):
- """Sets the id of this Editor.
+ @editor_id.setter
+ def editor_id(self, editor_id):
+ """Sets the editor_id of this Editor.
- :param id: The id of this Editor. # noqa: E501
+ :param editor_id: The editor_id of this Editor. # noqa: E501
:type: str
"""
- self._id = id
+ self._editor_id = editor_id
@property
def username(self):
diff --git a/python/fatcat_client/models/file_entity.py b/python/fatcat_client/models/file_entity.py
index c130c755..001f5b6e 100644
--- a/python/fatcat_client/models/file_entity.py
+++ b/python/fatcat_client/models/file_entity.py
@@ -33,7 +33,7 @@ class FileEntity(object):
and the value is json key in definition.
"""
swagger_types = {
- 'releases': 'list[str]',
+ 'release_ids': 'list[str]',
'mimetype': 'str',
'urls': 'list[FileEntityUrls]',
'sha256': 'str',
@@ -49,7 +49,7 @@ class FileEntity(object):
}
attribute_map = {
- 'releases': 'releases',
+ 'release_ids': 'release_ids',
'mimetype': 'mimetype',
'urls': 'urls',
'sha256': 'sha256',
@@ -64,10 +64,10 @@ class FileEntity(object):
'state': 'state'
}
- def __init__(self, releases=None, mimetype=None, urls=None, sha256=None, sha1=None, md5=None, size=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ def __init__(self, release_ids=None, mimetype=None, urls=None, sha256=None, sha1=None, md5=None, size=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
"""FileEntity - a model defined in Swagger""" # noqa: E501
- self._releases = None
+ self._release_ids = None
self._mimetype = None
self._urls = None
self._sha256 = None
@@ -82,8 +82,8 @@ class FileEntity(object):
self._state = None
self.discriminator = None
- if releases is not None:
- self.releases = releases
+ if release_ids is not None:
+ self.release_ids = release_ids
if mimetype is not None:
self.mimetype = mimetype
if urls is not None:
@@ -110,25 +110,25 @@ class FileEntity(object):
self.state = state
@property
- def releases(self):
- """Gets the releases of this FileEntity. # noqa: E501
+ def release_ids(self):
+ """Gets the release_ids of this FileEntity. # noqa: E501
- :return: The releases of this FileEntity. # noqa: E501
+ :return: The release_ids of this FileEntity. # noqa: E501
:rtype: list[str]
"""
- return self._releases
+ return self._release_ids
- @releases.setter
- def releases(self, releases):
- """Sets the releases of this FileEntity.
+ @release_ids.setter
+ def release_ids(self, release_ids):
+ """Sets the release_ids of this FileEntity.
- :param releases: The releases of this FileEntity. # noqa: E501
+ :param release_ids: The release_ids of this FileEntity. # noqa: E501
:type: list[str]
"""
- self._releases = releases
+ self._release_ids = release_ids
@property
def mimetype(self):