diff options
Diffstat (limited to 'python_openapi_client/fatcat_openapi_client/models/editor.py')
-rw-r--r-- | python_openapi_client/fatcat_openapi_client/models/editor.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/python_openapi_client/fatcat_openapi_client/models/editor.py b/python_openapi_client/fatcat_openapi_client/models/editor.py index 1d6b6c81..d526531e 100644 --- a/python_openapi_client/fatcat_openapi_client/models/editor.py +++ b/python_openapi_client/fatcat_openapi_client/models/editor.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 Editor(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 = { 'editor_id': 'str', 'username': 'str', 'is_admin': 'bool', @@ -47,7 +48,7 @@ class Editor(object): } def __init__(self, editor_id=None, username=None, is_admin=None, is_bot=None, is_active=None): # noqa: E501 - """Editor - a model defined in Swagger""" # noqa: E501 + """Editor - a model defined in OpenAPI""" # noqa: E501 self._editor_id = None self._username = None @@ -90,8 +91,8 @@ class Editor(object): raise ValueError("Invalid value for `editor_id`, length must be less than or equal to `26`") # noqa: E501 if editor_id is not None and len(editor_id) < 26: raise ValueError("Invalid value for `editor_id`, length must be greater than or equal to `26`") # noqa: E501 - if editor_id is not None and not re.search('[a-zA-Z2-7]{26}', editor_id): # noqa: E501 - raise ValueError("Invalid value for `editor_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501 + if editor_id is not None and not re.search(r'[a-zA-Z2-7]{26}', editor_id): # noqa: E501 + raise ValueError(r"Invalid value for `editor_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501 self._editor_id = editor_id @@ -193,7 +194,7 @@ class Editor(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( |