summaryrefslogtreecommitdiffstats
path: root/python/fatcat_client/models/webcapture_entity_cdx.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-26 18:18:30 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-26 18:18:30 -0800
commita8a22fabf26c23fbd7e9bae28b99d9bf17b98cbe (patch)
treeab1b5cc37a6ff6bc1824a3881b0156c297733f94 /python/fatcat_client/models/webcapture_entity_cdx.py
parent9555367d693ccb894eb8960c98507315e581f60a (diff)
downloadfatcat-a8a22fabf26c23fbd7e9bae28b99d9bf17b98cbe.tar.gz
fatcat-a8a22fabf26c23fbd7e9bae28b99d9bf17b98cbe.zip
python codegren for fileset/web
Diffstat (limited to 'python/fatcat_client/models/webcapture_entity_cdx.py')
-rw-r--r--python/fatcat_client/models/webcapture_entity_cdx.py273
1 files changed, 273 insertions, 0 deletions
diff --git a/python/fatcat_client/models/webcapture_entity_cdx.py b/python/fatcat_client/models/webcapture_entity_cdx.py
new file mode 100644
index 00000000..eb621d2f
--- /dev/null
+++ b/python/fatcat_client/models/webcapture_entity_cdx.py
@@ -0,0 +1,273 @@
+# coding: utf-8
+
+"""
+ fatcat
+
+ A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata # noqa: E501
+
+ OpenAPI spec version: 0.1.0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class WebcaptureEntityCdx(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'surt': 'str',
+ 'timestamp': 'int',
+ 'url': 'str',
+ 'mimetype': 'str',
+ 'status_code': 'int',
+ 'sha1': 'str',
+ 'sha256': 'str'
+ }
+
+ attribute_map = {
+ 'surt': 'surt',
+ 'timestamp': 'timestamp',
+ 'url': 'url',
+ 'mimetype': 'mimetype',
+ 'status_code': 'status_code',
+ 'sha1': 'sha1',
+ 'sha256': 'sha256'
+ }
+
+ def __init__(self, surt=None, timestamp=None, url=None, mimetype=None, status_code=None, sha1=None, sha256=None): # noqa: E501
+ """WebcaptureEntityCdx - a model defined in Swagger""" # noqa: E501
+
+ self._surt = None
+ self._timestamp = None
+ self._url = None
+ self._mimetype = None
+ self._status_code = None
+ self._sha1 = None
+ self._sha256 = None
+ self.discriminator = None
+
+ self.surt = surt
+ self.timestamp = timestamp
+ self.url = url
+ if mimetype is not None:
+ self.mimetype = mimetype
+ self.status_code = status_code
+ self.sha1 = sha1
+ if sha256 is not None:
+ self.sha256 = sha256
+
+ @property
+ def surt(self):
+ """Gets the surt of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The surt of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._surt
+
+ @surt.setter
+ def surt(self, surt):
+ """Sets the surt of this WebcaptureEntityCdx.
+
+
+ :param surt: The surt of this WebcaptureEntityCdx. # noqa: E501
+ :type: str
+ """
+ if surt is None:
+ raise ValueError("Invalid value for `surt`, must not be `None`") # noqa: E501
+
+ self._surt = surt
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The timestamp of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this WebcaptureEntityCdx.
+
+
+ :param timestamp: The timestamp of this WebcaptureEntityCdx. # noqa: E501
+ :type: int
+ """
+ if timestamp is None:
+ raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
+
+ self._timestamp = timestamp
+
+ @property
+ def url(self):
+ """Gets the url of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The url of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """Sets the url of this WebcaptureEntityCdx.
+
+
+ :param url: The url of this WebcaptureEntityCdx. # noqa: E501
+ :type: str
+ """
+ if url is None:
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
+
+ self._url = url
+
+ @property
+ def mimetype(self):
+ """Gets the mimetype of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The mimetype of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._mimetype
+
+ @mimetype.setter
+ def mimetype(self, mimetype):
+ """Sets the mimetype of this WebcaptureEntityCdx.
+
+
+ :param mimetype: The mimetype of this WebcaptureEntityCdx. # noqa: E501
+ :type: str
+ """
+
+ self._mimetype = mimetype
+
+ @property
+ def status_code(self):
+ """Gets the status_code of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The status_code of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: int
+ """
+ return self._status_code
+
+ @status_code.setter
+ def status_code(self, status_code):
+ """Sets the status_code of this WebcaptureEntityCdx.
+
+
+ :param status_code: The status_code of this WebcaptureEntityCdx. # noqa: E501
+ :type: int
+ """
+ if status_code is None:
+ raise ValueError("Invalid value for `status_code`, must not be `None`") # noqa: E501
+
+ self._status_code = status_code
+
+ @property
+ def sha1(self):
+ """Gets the sha1 of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The sha1 of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._sha1
+
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this WebcaptureEntityCdx.
+
+
+ :param sha1: The sha1 of this WebcaptureEntityCdx. # noqa: E501
+ :type: str
+ """
+ if sha1 is None:
+ raise ValueError("Invalid value for `sha1`, must not be `None`") # noqa: E501
+
+ self._sha1 = sha1
+
+ @property
+ def sha256(self):
+ """Gets the sha256 of this WebcaptureEntityCdx. # noqa: E501
+
+
+ :return: The sha256 of this WebcaptureEntityCdx. # noqa: E501
+ :rtype: str
+ """
+ return self._sha256
+
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this WebcaptureEntityCdx.
+
+
+ :param sha256: The sha256 of this WebcaptureEntityCdx. # noqa: E501
+ :type: str
+ """
+
+ self._sha256 = sha256
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, WebcaptureEntityCdx):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other