aboutsummaryrefslogtreecommitdiffstats
path: root/python_client/fatcat_client/models
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-20 19:15:41 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-20 19:15:59 -0700
commitc06079af0949ac44472c9fdc2fc81766316cb88d (patch)
tree91eba894520e3aa3aff004230c97d7ea13d1a009 /python_client/fatcat_client/models
parentdd9598577da8dfccaf0bb6daff56bab9d1d8e9a6 (diff)
downloadfatcat-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')
-rw-r--r--python_client/fatcat_client/models/file_entity.py31
-rw-r--r--python_client/fatcat_client/models/fileset_entity.py31
-rw-r--r--python_client/fatcat_client/models/webcapture_entity.py31
3 files changed, 90 insertions, 3 deletions
diff --git a/python_client/fatcat_client/models/file_entity.py b/python_client/fatcat_client/models/file_entity.py
index c876c345..424cd55b 100644
--- a/python_client/fatcat_client/models/file_entity.py
+++ b/python_client/fatcat_client/models/file_entity.py
@@ -17,6 +17,7 @@ import re # noqa: F401
import six
from fatcat_client.models.file_url import FileUrl # noqa: F401,E501
+from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501
class FileEntity(object):
@@ -33,6 +34,7 @@ class FileEntity(object):
and the value is json key in definition.
"""
swagger_types = {
+ 'releases': 'list[ReleaseEntity]',
'release_ids': 'list[str]',
'mimetype': 'str',
'urls': 'list[FileUrl]',
@@ -49,6 +51,7 @@ class FileEntity(object):
}
attribute_map = {
+ 'releases': 'releases',
'release_ids': 'release_ids',
'mimetype': 'mimetype',
'urls': 'urls',
@@ -64,9 +67,10 @@ class FileEntity(object):
'state': 'state'
}
- 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
+ def __init__(self, releases=None, 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
@@ -82,6 +86,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:
@@ -110,6 +116,29 @@ class FileEntity(object):
self.state = state
@property
+ def releases(self):
+ """Gets the releases of this FileEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The releases of this FileEntity. # noqa: E501
+ :rtype: list[ReleaseEntity]
+ """
+ return self._releases
+
+ @releases.setter
+ def releases(self, releases):
+ """Sets the releases of this FileEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param releases: The releases of this FileEntity. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+
+ self._releases = releases
+
+ @property
def release_ids(self):
"""Gets the release_ids of this FileEntity. # noqa: E501
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
diff --git a/python_client/fatcat_client/models/webcapture_entity.py b/python_client/fatcat_client/models/webcapture_entity.py
index 03c0e595..9ff8fd28 100644
--- a/python_client/fatcat_client/models/webcapture_entity.py
+++ b/python_client/fatcat_client/models/webcapture_entity.py
@@ -16,6 +16,7 @@ import re # noqa: F401
import six
+from fatcat_client.models.release_entity import ReleaseEntity # noqa: F401,E501
from fatcat_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: F401,E501
from fatcat_client.models.webcapture_url import WebcaptureUrl # noqa: F401,E501
@@ -34,6 +35,7 @@ class WebcaptureEntity(object):
and the value is json key in definition.
"""
swagger_types = {
+ 'releases': 'list[ReleaseEntity]',
'release_ids': 'list[str]',
'timestamp': 'datetime',
'original_url': 'str',
@@ -48,6 +50,7 @@ class WebcaptureEntity(object):
}
attribute_map = {
+ 'releases': 'releases',
'release_ids': 'release_ids',
'timestamp': 'timestamp',
'original_url': 'original_url',
@@ -61,9 +64,10 @@ class WebcaptureEntity(object):
'state': 'state'
}
- def __init__(self, release_ids=None, timestamp=None, original_url=None, archive_urls=None, cdx=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
+ def __init__(self, releases=None, release_ids=None, timestamp=None, original_url=None, archive_urls=None, cdx=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
"""WebcaptureEntity - a model defined in Swagger""" # noqa: E501
+ self._releases = None
self._release_ids = None
self._timestamp = None
self._original_url = None
@@ -77,6 +81,8 @@ class WebcaptureEntity(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 timestamp is not None:
@@ -101,6 +107,29 @@ class WebcaptureEntity(object):
self.state = state
@property
+ def releases(self):
+ """Gets the releases of this WebcaptureEntity. # noqa: E501
+
+ Optional; GET-only # noqa: E501
+
+ :return: The releases of this WebcaptureEntity. # noqa: E501
+ :rtype: list[ReleaseEntity]
+ """
+ return self._releases
+
+ @releases.setter
+ def releases(self, releases):
+ """Sets the releases of this WebcaptureEntity.
+
+ Optional; GET-only # noqa: E501
+
+ :param releases: The releases of this WebcaptureEntity. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+
+ self._releases = releases
+
+ @property
def release_ids(self):
"""Gets the release_ids of this WebcaptureEntity. # noqa: E501