aboutsummaryrefslogtreecommitdiffstats
path: root/python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py
diff options
context:
space:
mode:
Diffstat (limited to 'python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py')
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py
index 85ed0aec..7787c0c4 100644
--- a/python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py
+++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py
@@ -5,9 +5,9 @@
Fatcat is a scalable, versioned, API-oriented catalog of bibliographic entities and file metadata. # noqa: E501
- OpenAPI spec version: 0.3.1
+ The version of the OpenAPI document: 0.3.1
Contact: webservices@archive.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
+ Generated by: https://openapi-generator.tech
"""
@@ -18,19 +18,20 @@ import six
class WebcaptureCdxLine(object):
- """NOTE: This class is auto generated by the swagger code generator program.
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
- swagger_types (dict): The key is attribute name
+ openapi_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 = {
+ openapi_types = {
'surt': 'str',
'timestamp': 'datetime',
'url': 'str',
@@ -53,7 +54,7 @@ class WebcaptureCdxLine(object):
}
def __init__(self, surt=None, timestamp=None, url=None, mimetype=None, status_code=None, size=None, sha1=None, sha256=None): # noqa: E501
- """WebcaptureCdxLine - a model defined in Swagger""" # noqa: E501
+ """WebcaptureCdxLine - a model defined in OpenAPI""" # noqa: E501
self._surt = None
self._timestamp = None
@@ -248,8 +249,8 @@ class WebcaptureCdxLine(object):
raise ValueError("Invalid value for `sha1`, length must be less than or equal to `40`") # noqa: E501
if sha1 is not None and len(sha1) < 40:
raise ValueError("Invalid value for `sha1`, length must be greater than or equal to `40`") # noqa: E501
- if sha1 is not None and not re.search('[a-f0-9]{40}', sha1): # noqa: E501
- raise ValueError("Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
+ if sha1 is not None and not re.search(r'[a-f0-9]{40}', sha1): # noqa: E501
+ raise ValueError(r"Invalid value for `sha1`, must be a follow pattern or equal to `/[a-f0-9]{40}/`") # noqa: E501
self._sha1 = sha1
@@ -277,8 +278,8 @@ class WebcaptureCdxLine(object):
raise ValueError("Invalid value for `sha256`, length must be less than or equal to `64`") # noqa: E501
if sha256 is not None and len(sha256) < 64:
raise ValueError("Invalid value for `sha256`, length must be greater than or equal to `64`") # noqa: E501
- if sha256 is not None and not re.search('[a-f0-9]{64}', sha256): # noqa: E501
- raise ValueError("Invalid value for `sha256`, must be a follow pattern or equal to `/[a-f0-9]{64}/`") # noqa: E501
+ if sha256 is not None and not re.search(r'[a-f0-9]{64}', sha256): # noqa: E501
+ raise ValueError(r"Invalid value for `sha256`, must be a follow pattern or equal to `/[a-f0-9]{64}/`") # noqa: E501
self._sha256 = sha256
@@ -286,7 +287,7 @@ class WebcaptureCdxLine(object):
"""Returns the model properties as a dict"""
result = {}
- for attr, _ in six.iteritems(self.swagger_types):
+ for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(