diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-20 19:15:41 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-20 19:15:59 -0700 |
commit | c06079af0949ac44472c9fdc2fc81766316cb88d (patch) | |
tree | 91eba894520e3aa3aff004230c97d7ea13d1a009 /python_client/fatcat_client/models/fileset_entity.py | |
parent | dd9598577da8dfccaf0bb6daff56bab9d1d8e9a6 (diff) | |
download | fatcat-c06079af0949ac44472c9fdc2fc81766316cb88d.tar.gz fatcat-c06079af0949ac44472c9fdc2fc81766316cb88d.zip |
schema: allow releases expansion on file/fileset/webcapture
And codegen rust and python
Diffstat (limited to 'python_client/fatcat_client/models/fileset_entity.py')
-rw-r--r-- | python_client/fatcat_client/models/fileset_entity.py | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/python_client/fatcat_client/models/fileset_entity.py b/python_client/fatcat_client/models/fileset_entity.py index d4a46a81..5619edb4 100644 --- a/python_client/fatcat_client/models/fileset_entity.py +++ b/python_client/fatcat_client/models/fileset_entity.py @@ -18,6 +18,7 @@ import six from fatcat_client.models.fileset_file import FilesetFile # noqa: F401,E501 from fatcat_client.models.fileset_url import FilesetUrl # noqa: F401,E501 +from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501 class FilesetEntity(object): @@ -34,6 +35,7 @@ class FilesetEntity(object): and the value is json key in definition. """ swagger_types = { + 'releases': 'list[ReleaseEntity]', 'release_ids': 'list[str]', 'urls': 'list[FilesetUrl]', 'manifest': 'list[FilesetFile]', @@ -46,6 +48,7 @@ class FilesetEntity(object): } attribute_map = { + 'releases': 'releases', 'release_ids': 'release_ids', 'urls': 'urls', 'manifest': 'manifest', @@ -57,9 +60,10 @@ class FilesetEntity(object): 'edit_extra': 'edit_extra' } - def __init__(self, release_ids=None, urls=None, manifest=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501 + def __init__(self, releases=None, release_ids=None, urls=None, manifest=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501 """FilesetEntity - a model defined in Swagger""" # noqa: E501 + self._releases = None self._release_ids = None self._urls = None self._manifest = None @@ -71,6 +75,8 @@ class FilesetEntity(object): self._edit_extra = None self.discriminator = None + if releases is not None: + self.releases = releases if release_ids is not None: self.release_ids = release_ids if urls is not None: @@ -91,6 +97,29 @@ class FilesetEntity(object): self.edit_extra = edit_extra @property + def releases(self): + """Gets the releases of this FilesetEntity. # noqa: E501 + + Optional; GET-only # noqa: E501 + + :return: The releases of this FilesetEntity. # noqa: E501 + :rtype: list[ReleaseEntity] + """ + return self._releases + + @releases.setter + def releases(self, releases): + """Sets the releases of this FilesetEntity. + + Optional; GET-only # noqa: E501 + + :param releases: The releases of this FilesetEntity. # noqa: E501 + :type: list[ReleaseEntity] + """ + + self._releases = releases + + @property def release_ids(self): """Gets the release_ids of this FilesetEntity. # noqa: E501 |