aboutsummaryrefslogtreecommitdiffstats
path: root/python_openapi_client/fatcat_openapi_client/models
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-18 23:37:17 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-18 23:38:27 -0700
commit02daeaf2652383985bc4d31170d8180f58ce1b18 (patch)
tree722c3ce7b193bc125d0c6bf2748abe5982fbbde8 /python_openapi_client/fatcat_openapi_client/models
parentbf9ec36fd482940a5bbe63cb13d2d6518b93a27d (diff)
downloadfatcat-02daeaf2652383985bc4d31170d8180f58ce1b18.tar.gz
fatcat-02daeaf2652383985bc4d31170d8180f58ce1b18.zip
python codegen with new openapi-generator tool
Diffstat (limited to 'python_openapi_client/fatcat_openapi_client/models')
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/__init__.py4
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/auth_oidc.py15
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.py17
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/auth_token_result.py15
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/changelog_entry.py17
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/container_auto_batch.py18
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/container_entity.py401
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.py18
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/creator_entity.py335
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/editgroup.py35
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.py37
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/editgroup_edits.py17
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/editor.py19
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/entity_edit.py45
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/entity_history_entry.py19
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/error_response.py15
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/file_auto_batch.py18
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/file_entity.py563
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/file_url.py15
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.py18
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_entity.py262
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_file.py33
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/fileset_url.py15
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_abstract.py19
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_auto_batch.py18
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_contrib.py29
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_entity.py1164
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py15
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/release_ref.py25
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/success.py15
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.py18
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_cdx_line.py23
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py468
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/webcapture_url.py15
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/work_auto_batch.py18
-rw-r--r--python_openapi_client/fatcat_openapi_client/models/work_entity.py237
36 files changed, 1992 insertions, 2023 deletions
diff --git a/python_openapi_client/fatcat_openapi_client/models/__init__.py b/python_openapi_client/fatcat_openapi_client/models/__init__.py
index 30025a32..10b80063 100644
--- a/python_openapi_client/fatcat_openapi_client/models/__init__.py
+++ b/python_openapi_client/fatcat_openapi_client/models/__init__.py
@@ -6,9 +6,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
"""
diff --git a/python_openapi_client/fatcat_openapi_client/models/auth_oidc.py b/python_openapi_client/fatcat_openapi_client/models/auth_oidc.py
index 4fbad558..7b1da81b 100644
--- a/python_openapi_client/fatcat_openapi_client/models/auth_oidc.py
+++ b/python_openapi_client/fatcat_openapi_client/models/auth_oidc.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 AuthOidc(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 = {
'provider': 'str',
'sub': 'str',
'iss': 'str',
@@ -45,7 +46,7 @@ class AuthOidc(object):
}
def __init__(self, provider=None, sub=None, iss=None, preferred_username=None): # noqa: E501
- """AuthOidc - a model defined in Swagger""" # noqa: E501
+ """AuthOidc - a model defined in OpenAPI""" # noqa: E501
self._provider = None
self._sub = None
@@ -162,7 +163,7 @@ class AuthOidc(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.py b/python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.py
index 54db8e76..5aa9dbfd 100644
--- a/python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.py
+++ b/python_openapi_client/fatcat_openapi_client/models/auth_oidc_result.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
"""
@@ -16,23 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editor import Editor # noqa: F401,E501
-
class AuthOidcResult(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': 'Editor',
'token': 'str'
}
@@ -43,7 +42,7 @@ class AuthOidcResult(object):
}
def __init__(self, editor=None, token=None): # noqa: E501
- """AuthOidcResult - a model defined in Swagger""" # noqa: E501
+ """AuthOidcResult - a model defined in OpenAPI""" # noqa: E501
self._editor = None
self._token = None
@@ -102,7 +101,7 @@ class AuthOidcResult(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/auth_token_result.py b/python_openapi_client/fatcat_openapi_client/models/auth_token_result.py
index f1097592..19c45e2e 100644
--- a/python_openapi_client/fatcat_openapi_client/models/auth_token_result.py
+++ b/python_openapi_client/fatcat_openapi_client/models/auth_token_result.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 AuthTokenResult(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 = {
'token': 'str'
}
@@ -39,7 +40,7 @@ class AuthTokenResult(object):
}
def __init__(self, token=None): # noqa: E501
- """AuthTokenResult - a model defined in Swagger""" # noqa: E501
+ """AuthTokenResult - a model defined in OpenAPI""" # noqa: E501
self._token = None
self.discriminator = None
@@ -73,7 +74,7 @@ class AuthTokenResult(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/changelog_entry.py b/python_openapi_client/fatcat_openapi_client/models/changelog_entry.py
index 79dbb0cf..bf9355d9 100644
--- a/python_openapi_client/fatcat_openapi_client/models/changelog_entry.py
+++ b/python_openapi_client/fatcat_openapi_client/models/changelog_entry.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
"""
@@ -16,23 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-
class ChangelogEntry(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 = {
'index': 'int',
'editgroup_id': 'str',
'timestamp': 'datetime',
@@ -47,7 +46,7 @@ class ChangelogEntry(object):
}
def __init__(self, index=None, editgroup_id=None, timestamp=None, editgroup=None): # noqa: E501
- """ChangelogEntry - a model defined in Swagger""" # noqa: E501
+ """ChangelogEntry - a model defined in OpenAPI""" # noqa: E501
self._index = None
self._editgroup_id = None
@@ -161,7 +160,7 @@ class ChangelogEntry(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/container_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/container_auto_batch.py
index df2e6b20..df30ca1d 100644
--- a/python_openapi_client/fatcat_openapi_client/models/container_auto_batch.py
+++ b/python_openapi_client/fatcat_openapi_client/models/container_auto_batch.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
"""
@@ -16,24 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.container_entity import ContainerEntity # noqa: F401,E501
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-
class ContainerAutoBatch(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 = {
'editgroup': 'Editgroup',
'entity_list': 'list[ContainerEntity]'
}
@@ -44,7 +42,7 @@ class ContainerAutoBatch(object):
}
def __init__(self, editgroup=None, entity_list=None): # noqa: E501
- """ContainerAutoBatch - a model defined in Swagger""" # noqa: E501
+ """ContainerAutoBatch - a model defined in OpenAPI""" # noqa: E501
self._editgroup = None
self._entity_list = None
@@ -103,7 +101,7 @@ class ContainerAutoBatch(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/container_entity.py b/python_openapi_client/fatcat_openapi_client/models/container_entity.py
index d44fd744..470f2ee0 100644
--- a/python_openapi_client/fatcat_openapi_client/models/container_entity.py
+++ b/python_openapi_client/fatcat_openapi_client/models/container_entity.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,203 +18,222 @@ import six
class ContainerEntity(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 = {
- 'wikidata_qid': 'str',
- 'issnl': 'str',
- 'publisher': 'str',
- 'container_type': 'str',
- 'name': 'str',
- 'edit_extra': 'object',
- 'extra': 'object',
- 'redirect': 'str',
- 'revision': 'str',
+ openapi_types = {
+ 'state': 'str',
'ident': 'str',
- 'state': 'str'
+ 'revision': 'str',
+ 'redirect': 'str',
+ 'extra': 'dict(str, object)',
+ 'edit_extra': 'dict(str, object)',
+ 'name': 'str',
+ 'container_type': 'str',
+ 'publisher': 'str',
+ 'issnl': 'str',
+ 'wikidata_qid': 'str'
}
attribute_map = {
- 'wikidata_qid': 'wikidata_qid',
- 'issnl': 'issnl',
- 'publisher': 'publisher',
- 'container_type': 'container_type',
- 'name': 'name',
- 'edit_extra': 'edit_extra',
- 'extra': 'extra',
- 'redirect': 'redirect',
- 'revision': 'revision',
+ 'state': 'state',
'ident': 'ident',
- 'state': 'state'
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'extra': 'extra',
+ 'edit_extra': 'edit_extra',
+ 'name': 'name',
+ 'container_type': 'container_type',
+ 'publisher': 'publisher',
+ 'issnl': 'issnl',
+ 'wikidata_qid': 'wikidata_qid'
}
- def __init__(self, wikidata_qid=None, issnl=None, publisher=None, container_type=None, name=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
- """ContainerEntity - a model defined in Swagger""" # noqa: E501
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, name=None, container_type=None, publisher=None, issnl=None, wikidata_qid=None): # noqa: E501
+ """ContainerEntity - a model defined in OpenAPI""" # noqa: E501
- self._wikidata_qid = None
- self._issnl = None
- self._publisher = None
- self._container_type = None
- self._name = None
- self._edit_extra = None
- self._extra = None
- self._redirect = None
- self._revision = None
- self._ident = None
self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._extra = None
+ self._edit_extra = None
+ self._name = None
+ self._container_type = None
+ self._publisher = None
+ self._issnl = None
+ self._wikidata_qid = None
self.discriminator = None
- if wikidata_qid is not None:
- self.wikidata_qid = wikidata_qid
- if issnl is not None:
- self.issnl = issnl
- if publisher is not None:
- self.publisher = publisher
- if container_type is not None:
- self.container_type = container_type
- if name is not None:
- self.name = name
- if edit_extra is not None:
- self.edit_extra = edit_extra
- if extra is not None:
- self.extra = extra
- if redirect is not None:
- self.redirect = redirect
- if revision is not None:
- self.revision = revision
- if ident is not None:
- self.ident = ident
if state is not None:
self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if redirect is not None:
+ self.redirect = redirect
+ if extra is not None:
+ self.extra = extra
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+ if name is not None:
+ self.name = name
+ if container_type is not None:
+ self.container_type = container_type
+ if publisher is not None:
+ self.publisher = publisher
+ if issnl is not None:
+ self.issnl = issnl
+ if wikidata_qid is not None:
+ self.wikidata_qid = wikidata_qid
@property
- def wikidata_qid(self):
- """Gets the wikidata_qid of this ContainerEntity. # noqa: E501
+ def state(self):
+ """Gets the state of this ContainerEntity. # noqa: E501
- :return: The wikidata_qid of this ContainerEntity. # noqa: E501
+ :return: The state of this ContainerEntity. # noqa: E501
:rtype: str
"""
- return self._wikidata_qid
+ return self._state
- @wikidata_qid.setter
- def wikidata_qid(self, wikidata_qid):
- """Sets the wikidata_qid of this ContainerEntity.
+ @state.setter
+ def state(self, state):
+ """Sets the state of this ContainerEntity.
- :param wikidata_qid: The wikidata_qid of this ContainerEntity. # noqa: E501
+ :param state: The state of this ContainerEntity. # noqa: E501
:type: str
"""
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
- self._wikidata_qid = wikidata_qid
+ self._state = state
@property
- def issnl(self):
- """Gets the issnl of this ContainerEntity. # noqa: E501
+ def ident(self):
+ """Gets the ident of this ContainerEntity. # noqa: E501
- Linking ISSN number (ISSN-L). Should be valid and registered with issn.org # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :return: The issnl of this ContainerEntity. # noqa: E501
+ :return: The ident of this ContainerEntity. # noqa: E501
:rtype: str
"""
- return self._issnl
+ return self._ident
- @issnl.setter
- def issnl(self, issnl):
- """Sets the issnl of this ContainerEntity.
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this ContainerEntity.
- Linking ISSN number (ISSN-L). Should be valid and registered with issn.org # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :param issnl: The issnl of this ContainerEntity. # noqa: E501
+ :param ident: The ident of this ContainerEntity. # noqa: E501
:type: str
"""
- if issnl is not None and len(issnl) > 9:
- raise ValueError("Invalid value for `issnl`, length must be less than or equal to `9`") # noqa: E501
- if issnl is not None and len(issnl) < 9:
- raise ValueError("Invalid value for `issnl`, length must be greater than or equal to `9`") # noqa: E501
- if issnl is not None and not re.search('\\d{4}-\\d{3}[0-9X]', issnl): # noqa: E501
- raise ValueError("Invalid value for `issnl`, must be a follow pattern or equal to `/\\d{4}-\\d{3}[0-9X]/`") # noqa: E501
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search(r'[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError(r"Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._issnl = issnl
+ self._ident = ident
@property
- def publisher(self):
- """Gets the publisher of this ContainerEntity. # noqa: E501
+ def revision(self):
+ """Gets the revision of this ContainerEntity. # noqa: E501
- Name of the organization or entity responsible for publication. Not the complete imprint/brand. # noqa: E501
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :return: The publisher of this ContainerEntity. # noqa: E501
+ :return: The revision of this ContainerEntity. # noqa: E501
:rtype: str
"""
- return self._publisher
+ return self._revision
- @publisher.setter
- def publisher(self, publisher):
- """Sets the publisher of this ContainerEntity.
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this ContainerEntity.
- Name of the organization or entity responsible for publication. Not the complete imprint/brand. # noqa: E501
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :param publisher: The publisher of this ContainerEntity. # noqa: E501
+ :param revision: The revision of this ContainerEntity. # noqa: E501
:type: str
"""
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError(r"Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
- self._publisher = publisher
+ self._revision = revision
@property
- def container_type(self):
- """Gets the container_type of this ContainerEntity. # noqa: E501
+ def redirect(self):
+ """Gets the redirect of this ContainerEntity. # noqa: E501
- Type of container, eg 'journal' or 'proceedings'. See Guide for list of valid types. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :return: The container_type of this ContainerEntity. # noqa: E501
+ :return: The redirect of this ContainerEntity. # noqa: E501
:rtype: str
"""
- return self._container_type
+ return self._redirect
- @container_type.setter
- def container_type(self, container_type):
- """Sets the container_type of this ContainerEntity.
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this ContainerEntity.
- Type of container, eg 'journal' or 'proceedings'. See Guide for list of valid types. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :param container_type: The container_type of this ContainerEntity. # noqa: E501
+ :param redirect: The redirect of this ContainerEntity. # noqa: E501
:type: str
"""
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search(r'[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError(r"Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._container_type = container_type
+ self._redirect = redirect
@property
- def name(self):
- """Gets the name of this ContainerEntity. # noqa: E501
+ def extra(self):
+ """Gets the extra of this ContainerEntity. # noqa: E501
- Name of the container (eg, Journal title). Required for entity creation. # noqa: E501
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :return: The name of this ContainerEntity. # noqa: E501
- :rtype: str
+ :return: The extra of this ContainerEntity. # noqa: E501
+ :rtype: dict(str, object)
"""
- return self._name
+ return self._extra
- @name.setter
- def name(self, name):
- """Sets the name of this ContainerEntity.
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this ContainerEntity.
- Name of the container (eg, Journal title). Required for entity creation. # noqa: E501
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :param name: The name of this ContainerEntity. # noqa: E501
- :type: str
+ :param extra: The extra of this ContainerEntity. # noqa: E501
+ :type: dict(str, object)
"""
- self._name = name
+ self._extra = extra
@property
def edit_extra(self):
@@ -223,7 +242,7 @@ class ContainerEntity(object):
Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
:return: The edit_extra of this ContainerEntity. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._edit_extra
@@ -234,153 +253,135 @@ class ContainerEntity(object):
Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
:param edit_extra: The edit_extra of this ContainerEntity. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._edit_extra = edit_extra
@property
- def extra(self):
- """Gets the extra of this ContainerEntity. # noqa: E501
+ def name(self):
+ """Gets the name of this ContainerEntity. # noqa: E501
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
+ Name of the container (eg, Journal title). Required for entity creation. # noqa: E501
- :return: The extra of this ContainerEntity. # noqa: E501
- :rtype: object
+ :return: The name of this ContainerEntity. # noqa: E501
+ :rtype: str
"""
- return self._extra
+ return self._name
- @extra.setter
- def extra(self, extra):
- """Sets the extra of this ContainerEntity.
+ @name.setter
+ def name(self, name):
+ """Sets the name of this ContainerEntity.
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
+ Name of the container (eg, Journal title). Required for entity creation. # noqa: E501
- :param extra: The extra of this ContainerEntity. # noqa: E501
- :type: object
+ :param name: The name of this ContainerEntity. # noqa: E501
+ :type: str
"""
- self._extra = extra
+ self._name = name
@property
- def redirect(self):
- """Gets the redirect of this ContainerEntity. # noqa: E501
+ def container_type(self):
+ """Gets the container_type of this ContainerEntity. # noqa: E501
- base32-encoded unique identifier # noqa: E501
+ Type of container, eg 'journal' or 'proceedings'. See Guide for list of valid types. # noqa: E501
- :return: The redirect of this ContainerEntity. # noqa: E501
+ :return: The container_type of this ContainerEntity. # noqa: E501
:rtype: str
"""
- return self._redirect
+ return self._container_type
- @redirect.setter
- def redirect(self, redirect):
- """Sets the redirect of this ContainerEntity.
+ @container_type.setter
+ def container_type(self, container_type):
+ """Sets the container_type of this ContainerEntity.
- base32-encoded unique identifier # noqa: E501
+ Type of container, eg 'journal' or 'proceedings'. See Guide for list of valid types. # noqa: E501
- :param redirect: The redirect of this ContainerEntity. # noqa: E501
+ :param container_type: The container_type of this ContainerEntity. # noqa: E501
:type: str
"""
- if redirect is not None and len(redirect) > 26:
- raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
- if redirect is not None and len(redirect) < 26:
- raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
- if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
- raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._redirect = redirect
+ self._container_type = container_type
@property
- def revision(self):
- """Gets the revision of this ContainerEntity. # noqa: E501
+ def publisher(self):
+ """Gets the publisher of this ContainerEntity. # noqa: E501
- UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+ Name of the organization or entity responsible for publication. Not the complete imprint/brand. # noqa: E501
- :return: The revision of this ContainerEntity. # noqa: E501
+ :return: The publisher of this ContainerEntity. # noqa: E501
:rtype: str
"""
- return self._revision
+ return self._publisher
- @revision.setter
- def revision(self, revision):
- """Sets the revision of this ContainerEntity.
+ @publisher.setter
+ def publisher(self, publisher):
+ """Sets the publisher of this ContainerEntity.
- UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+ Name of the organization or entity responsible for publication. Not the complete imprint/brand. # noqa: E501
- :param revision: The revision of this ContainerEntity. # noqa: E501
+ :param publisher: The publisher of this ContainerEntity. # noqa: E501
:type: str
"""
- if revision is not None and len(revision) > 36:
- raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
- if revision is not None and len(revision) < 36:
- raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
- if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
- raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
- self._revision = revision
+ self._publisher = publisher
@property
- def ident(self):
- """Gets the ident of this ContainerEntity. # noqa: E501
+ def issnl(self):
+ """Gets the issnl of this ContainerEntity. # noqa: E501
- base32-encoded unique identifier # noqa: E501
+ Linking ISSN number (ISSN-L). Should be valid and registered with issn.org # noqa: E501
- :return: The ident of this ContainerEntity. # noqa: E501
+ :return: The issnl of this ContainerEntity. # noqa: E501
:rtype: str
"""
- return self._ident
+ return self._issnl
- @ident.setter
- def ident(self, ident):
- """Sets the ident of this ContainerEntity.
+ @issnl.setter
+ def issnl(self, issnl):
+ """Sets the issnl of this ContainerEntity.
- base32-encoded unique identifier # noqa: E501
+ Linking ISSN number (ISSN-L). Should be valid and registered with issn.org # noqa: E501
- :param ident: The ident of this ContainerEntity. # noqa: E501
+ :param issnl: The issnl of this ContainerEntity. # noqa: E501
:type: str
"""
- if ident is not None and len(ident) > 26:
- raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
- if ident is not None and len(ident) < 26:
- raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
- if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
- raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if issnl is not None and len(issnl) > 9:
+ raise ValueError("Invalid value for `issnl`, length must be less than or equal to `9`") # noqa: E501
+ if issnl is not None and len(issnl) < 9:
+ raise ValueError("Invalid value for `issnl`, length must be greater than or equal to `9`") # noqa: E501
+ if issnl is not None and not re.search(r'\d{4}-\d{3}[0-9X]', issnl): # noqa: E501
+ raise ValueError(r"Invalid value for `issnl`, must be a follow pattern or equal to `/\d{4}-\d{3}[0-9X]/`") # noqa: E501
- self._ident = ident
+ self._issnl = issnl
@property
- def state(self):
- """Gets the state of this ContainerEntity. # noqa: E501
+ def wikidata_qid(self):
+ """Gets the wikidata_qid of this ContainerEntity. # noqa: E501
- :return: The state of this ContainerEntity. # noqa: E501
+ :return: The wikidata_qid of this ContainerEntity. # noqa: E501
:rtype: str
"""
- return self._state
+ return self._wikidata_qid
- @state.setter
- def state(self, state):
- """Sets the state of this ContainerEntity.
+ @wikidata_qid.setter
+ def wikidata_qid(self, wikidata_qid):
+ """Sets the wikidata_qid of this ContainerEntity.
- :param state: The state of this ContainerEntity. # noqa: E501
+ :param wikidata_qid: The wikidata_qid of this ContainerEntity. # noqa: E501
:type: str
"""
- allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
- if state not in allowed_values:
- raise ValueError(
- "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
- .format(state, allowed_values)
- )
- self._state = state
+ self._wikidata_qid = wikidata_qid
def to_dict(self):
"""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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.py
index 50cc00c2..d6a2df87 100644
--- a/python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.py
+++ b/python_openapi_client/fatcat_openapi_client/models/creator_auto_batch.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
"""
@@ -16,24 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.creator_entity import CreatorEntity # noqa: F401,E501
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-
class CreatorAutoBatch(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 = {
'editgroup': 'Editgroup',
'entity_list': 'list[CreatorEntity]'
}
@@ -44,7 +42,7 @@ class CreatorAutoBatch(object):
}
def __init__(self, editgroup=None, entity_list=None): # noqa: E501
- """CreatorAutoBatch - a model defined in Swagger""" # noqa: E501
+ """CreatorAutoBatch - a model defined in OpenAPI""" # noqa: E501
self._editgroup = None
self._entity_list = None
@@ -103,7 +101,7 @@ class CreatorAutoBatch(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/creator_entity.py b/python_openapi_client/fatcat_openapi_client/models/creator_entity.py
index 56c19e99..41d00b6e 100644
--- a/python_openapi_client/fatcat_openapi_client/models/creator_entity.py
+++ b/python_openapi_client/fatcat_openapi_client/models/creator_entity.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,72 +18,63 @@ import six
class CreatorEntity(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 = {
- 'wikidata_qid': 'str',
- 'orcid': 'str',
- 'surname': 'str',
- 'given_name': 'str',
- 'display_name': 'str',
+ openapi_types = {
'state': 'str',
'ident': 'str',
'revision': 'str',
'redirect': 'str',
- 'extra': 'object',
- 'edit_extra': 'object'
+ 'extra': 'dict(str, object)',
+ 'edit_extra': 'dict(str, object)',
+ 'display_name': 'str',
+ 'given_name': 'str',
+ 'surname': 'str',
+ 'orcid': 'str',
+ 'wikidata_qid': 'str'
}
attribute_map = {
- 'wikidata_qid': 'wikidata_qid',
- 'orcid': 'orcid',
- 'surname': 'surname',
- 'given_name': 'given_name',
- 'display_name': 'display_name',
'state': 'state',
'ident': 'ident',
'revision': 'revision',
'redirect': 'redirect',
'extra': 'extra',
- 'edit_extra': 'edit_extra'
+ 'edit_extra': 'edit_extra',
+ 'display_name': 'display_name',
+ 'given_name': 'given_name',
+ 'surname': 'surname',
+ 'orcid': 'orcid',
+ 'wikidata_qid': 'wikidata_qid'
}
- def __init__(self, wikidata_qid=None, orcid=None, surname=None, given_name=None, display_name=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
- """CreatorEntity - a model defined in Swagger""" # noqa: E501
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, display_name=None, given_name=None, surname=None, orcid=None, wikidata_qid=None): # noqa: E501
+ """CreatorEntity - a model defined in OpenAPI""" # noqa: E501
- self._wikidata_qid = None
- self._orcid = None
- self._surname = None
- self._given_name = None
- self._display_name = None
self._state = None
self._ident = None
self._revision = None
self._redirect = None
self._extra = None
self._edit_extra = None
+ self._display_name = None
+ self._given_name = None
+ self._surname = None
+ self._orcid = None
+ self._wikidata_qid = None
self.discriminator = None
- if wikidata_qid is not None:
- self.wikidata_qid = wikidata_qid
- if orcid is not None:
- self.orcid = orcid
- if surname is not None:
- self.surname = surname
- if given_name is not None:
- self.given_name = given_name
- if display_name is not None:
- self.display_name = display_name
if state is not None:
self.state = state
if ident is not None:
@@ -96,127 +87,16 @@ class CreatorEntity(object):
self.extra = extra
if edit_extra is not None:
self.edit_extra = edit_extra
-
- @property
- def wikidata_qid(self):
- """Gets the wikidata_qid of this CreatorEntity. # noqa: E501
-
- Wikidata entity QID # noqa: E501
-
- :return: The wikidata_qid of this CreatorEntity. # noqa: E501
- :rtype: str
- """
- return self._wikidata_qid
-
- @wikidata_qid.setter
- def wikidata_qid(self, wikidata_qid):
- """Sets the wikidata_qid of this CreatorEntity.
-
- Wikidata entity QID # noqa: E501
-
- :param wikidata_qid: The wikidata_qid of this CreatorEntity. # noqa: E501
- :type: str
- """
-
- self._wikidata_qid = wikidata_qid
-
- @property
- def orcid(self):
- """Gets the orcid of this CreatorEntity. # noqa: E501
-
- ORCiD (https://orcid.org) identifier # noqa: E501
-
- :return: The orcid of this CreatorEntity. # noqa: E501
- :rtype: str
- """
- return self._orcid
-
- @orcid.setter
- def orcid(self, orcid):
- """Sets the orcid of this CreatorEntity.
-
- ORCiD (https://orcid.org) identifier # noqa: E501
-
- :param orcid: The orcid of this CreatorEntity. # noqa: E501
- :type: str
- """
- if orcid is not None and len(orcid) > 19:
- raise ValueError("Invalid value for `orcid`, length must be less than or equal to `19`") # noqa: E501
- if orcid is not None and len(orcid) < 19:
- raise ValueError("Invalid value for `orcid`, length must be greater than or equal to `19`") # noqa: E501
- if orcid is not None and not re.search('\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]', orcid): # noqa: E501
- raise ValueError("Invalid value for `orcid`, must be a follow pattern or equal to `/\\d{4}-\\d{4}-\\d{4}-\\d{3}[\\dX]/`") # noqa: E501
-
- self._orcid = orcid
-
- @property
- def surname(self):
- """Gets the surname of this CreatorEntity. # noqa: E501
-
- In English commonly the last, or family name, but ordering is context and culture specific. # noqa: E501
-
- :return: The surname of this CreatorEntity. # noqa: E501
- :rtype: str
- """
- return self._surname
-
- @surname.setter
- def surname(self, surname):
- """Sets the surname of this CreatorEntity.
-
- In English commonly the last, or family name, but ordering is context and culture specific. # noqa: E501
-
- :param surname: The surname of this CreatorEntity. # noqa: E501
- :type: str
- """
-
- self._surname = surname
-
- @property
- def given_name(self):
- """Gets the given_name of this CreatorEntity. # noqa: E501
-
- In English commonly the first name, but ordering is context and culture specific. # noqa: E501
-
- :return: The given_name of this CreatorEntity. # noqa: E501
- :rtype: str
- """
- return self._given_name
-
- @given_name.setter
- def given_name(self, given_name):
- """Sets the given_name of this CreatorEntity.
-
- In English commonly the first name, but ordering is context and culture specific. # noqa: E501
-
- :param given_name: The given_name of this CreatorEntity. # noqa: E501
- :type: str
- """
-
- self._given_name = given_name
-
- @property
- def display_name(self):
- """Gets the display_name of this CreatorEntity. # noqa: E501
-
- Name as should be displayed in web interface or in author lists (not index/sorted). Required for valid entities. # noqa: E501
-
- :return: The display_name of this CreatorEntity. # noqa: E501
- :rtype: str
- """
- return self._display_name
-
- @display_name.setter
- def display_name(self, display_name):
- """Sets the display_name of this CreatorEntity.
-
- Name as should be displayed in web interface or in author lists (not index/sorted). Required for valid entities. # noqa: E501
-
- :param display_name: The display_name of this CreatorEntity. # noqa: E501
- :type: str
- """
-
- self._display_name = display_name
+ if display_name is not None:
+ self.display_name = display_name
+ if given_name is not None:
+ self.given_name = given_name
+ if surname is not None:
+ self.surname = surname
+ if orcid is not None:
+ self.orcid = orcid
+ if wikidata_qid is not None:
+ self.wikidata_qid = wikidata_qid
@property
def state(self):
@@ -269,8 +149,8 @@ class CreatorEntity(object):
raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
if ident is not None and len(ident) < 26:
raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
- if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
- raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if ident is not None and not re.search(r'[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError(r"Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._ident = ident
@@ -298,8 +178,8 @@ class CreatorEntity(object):
raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
if revision is not None and len(revision) < 36:
raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
- if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
- raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ if revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError(r"Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
self._revision = revision
@@ -327,8 +207,8 @@ class CreatorEntity(object):
raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
if redirect is not None and len(redirect) < 26:
raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
- if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
- raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if redirect is not None and not re.search(r'[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError(r"Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._redirect = redirect
@@ -339,7 +219,7 @@ class CreatorEntity(object):
Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
:return: The extra of this CreatorEntity. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._extra
@@ -350,7 +230,7 @@ class CreatorEntity(object):
Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
:param extra: The extra of this CreatorEntity. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._extra = extra
@@ -362,7 +242,7 @@ class CreatorEntity(object):
Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
:return: The edit_extra of this CreatorEntity. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._edit_extra
@@ -373,16 +253,137 @@ class CreatorEntity(object):
Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
:param edit_extra: The edit_extra of this CreatorEntity. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._edit_extra = edit_extra
+ @property
+ def display_name(self):
+ """Gets the display_name of this CreatorEntity. # noqa: E501
+
+ Name as should be displayed in web interface or in author lists (not index/sorted). Required for valid entities. # noqa: E501
+
+ :return: The display_name of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """Sets the display_name of this CreatorEntity.
+
+ Name as should be displayed in web interface or in author lists (not index/sorted). Required for valid entities. # noqa: E501
+
+ :param display_name: The display_name of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._display_name = display_name
+
+ @property
+ def given_name(self):
+ """Gets the given_name of this CreatorEntity. # noqa: E501
+
+ In English commonly the first name, but ordering is context and culture specific. # noqa: E501
+
+ :return: The given_name of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._given_name
+
+ @given_name.setter
+ def given_name(self, given_name):
+ """Sets the given_name of this CreatorEntity.
+
+ In English commonly the first name, but ordering is context and culture specific. # noqa: E501
+
+ :param given_name: The given_name of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._given_name = given_name
+
+ @property
+ def surname(self):
+ """Gets the surname of this CreatorEntity. # noqa: E501
+
+ In English commonly the last, or family name, but ordering is context and culture specific. # noqa: E501
+
+ :return: The surname of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._surname
+
+ @surname.setter
+ def surname(self, surname):
+ """Sets the surname of this CreatorEntity.
+
+ In English commonly the last, or family name, but ordering is context and culture specific. # noqa: E501
+
+ :param surname: The surname of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._surname = surname
+
+ @property
+ def orcid(self):
+ """Gets the orcid of this CreatorEntity. # noqa: E501
+
+ ORCiD (https://orcid.org) identifier # noqa: E501
+
+ :return: The orcid of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._orcid
+
+ @orcid.setter
+ def orcid(self, orcid):
+ """Sets the orcid of this CreatorEntity.
+
+ ORCiD (https://orcid.org) identifier # noqa: E501
+
+ :param orcid: The orcid of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+ if orcid is not None and len(orcid) > 19:
+ raise ValueError("Invalid value for `orcid`, length must be less than or equal to `19`") # noqa: E501
+ if orcid is not None and len(orcid) < 19:
+ raise ValueError("Invalid value for `orcid`, length must be greater than or equal to `19`") # noqa: E501
+ if orcid is not None and not re.search(r'\d{4}-\d{4}-\d{4}-\d{3}[\dX]', orcid): # noqa: E501
+ raise ValueError(r"Invalid value for `orcid`, must be a follow pattern or equal to `/\d{4}-\d{4}-\d{4}-\d{3}[\dX]/`") # noqa: E501
+
+ self._orcid = orcid
+
+ @property
+ def wikidata_qid(self):
+ """Gets the wikidata_qid of this CreatorEntity. # noqa: E501
+
+ Wikidata entity QID # noqa: E501
+
+ :return: The wikidata_qid of this CreatorEntity. # noqa: E501
+ :rtype: str
+ """
+ return self._wikidata_qid
+
+ @wikidata_qid.setter
+ def wikidata_qid(self, wikidata_qid):
+ """Sets the wikidata_qid of this CreatorEntity.
+
+ Wikidata entity QID # noqa: E501
+
+ :param wikidata_qid: The wikidata_qid of this CreatorEntity. # noqa: E501
+ :type: str
+ """
+
+ self._wikidata_qid = wikidata_qid
+
def to_dict(self):
"""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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/editgroup.py b/python_openapi_client/fatcat_openapi_client/models/editgroup.py
index 37e0628a..37742d90 100644
--- a/python_openapi_client/fatcat_openapi_client/models/editgroup.py
+++ b/python_openapi_client/fatcat_openapi_client/models/editgroup.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
"""
@@ -16,25 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editgroup_annotation import EditgroupAnnotation # noqa: F401,E501
-from fatcat_openapi_client.models.editgroup_edits import EditgroupEdits # noqa: F401,E501
-from fatcat_openapi_client.models.editor import Editor # noqa: F401,E501
-
class Editgroup(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 = {
'editgroup_id': 'str',
'editor_id': 'str',
'editor': 'Editor',
@@ -42,7 +39,7 @@ class Editgroup(object):
'created': 'datetime',
'submitted': 'datetime',
'description': 'str',
- 'extra': 'object',
+ 'extra': 'dict(str, object)',
'annotations': 'list[EditgroupAnnotation]',
'edits': 'EditgroupEdits'
}
@@ -61,7 +58,7 @@ class Editgroup(object):
}
def __init__(self, editgroup_id=None, editor_id=None, editor=None, changelog_index=None, created=None, submitted=None, description=None, extra=None, annotations=None, edits=None): # noqa: E501
- """Editgroup - a model defined in Swagger""" # noqa: E501
+ """Editgroup - a model defined in OpenAPI""" # noqa: E501
self._editgroup_id = None
self._editor_id = None
@@ -120,8 +117,8 @@ class Editgroup(object):
raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501
if editgroup_id is not None and len(editgroup_id) < 26:
raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501
- if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
- raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if editgroup_id is not None and not re.search(r'[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
+ raise ValueError(r"Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._editgroup_id = editgroup_id
@@ -149,8 +146,8 @@ class Editgroup(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
@@ -158,7 +155,6 @@ class Editgroup(object):
def editor(self):
"""Gets the editor of this Editgroup. # noqa: E501
- Complete editor object identified by `container_id` field. Only included in GET responses. # noqa: E501
:return: The editor of this Editgroup. # noqa: E501
:rtype: Editor
@@ -169,7 +165,6 @@ class Editgroup(object):
def editor(self, editor):
"""Sets the editor of this Editgroup.
- Complete editor object identified by `container_id` field. Only included in GET responses. # noqa: E501
:param editor: The editor of this Editgroup. # noqa: E501
:type: Editor
@@ -276,7 +271,7 @@ class Editgroup(object):
Free-form JSON metadata attached to this editgroup. Eg, metadata provenance, or script user-agent details. See guide for (unenforced) schema norms. # noqa: E501
:return: The extra of this Editgroup. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._extra
@@ -287,7 +282,7 @@ class Editgroup(object):
Free-form JSON metadata attached to this editgroup. Eg, metadata provenance, or script user-agent details. See guide for (unenforced) schema norms. # noqa: E501
:param extra: The extra of this Editgroup. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._extra = extra
@@ -340,7 +335,7 @@ class Editgroup(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.py b/python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.py
index 5f648a92..81868060 100644
--- a/python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.py
+++ b/python_openapi_client/fatcat_openapi_client/models/editgroup_annotation.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
"""
@@ -16,30 +16,29 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editor import Editor # noqa: F401,E501
-
class EditgroupAnnotation(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 = {
'annotation_id': 'str',
'editgroup_id': 'str',
'editor_id': 'str',
'editor': 'Editor',
'created': 'datetime',
'comment_markdown': 'str',
- 'extra': 'object'
+ 'extra': 'dict(str, object)'
}
attribute_map = {
@@ -53,7 +52,7 @@ class EditgroupAnnotation(object):
}
def __init__(self, annotation_id=None, editgroup_id=None, editor_id=None, editor=None, created=None, comment_markdown=None, extra=None): # noqa: E501
- """EditgroupAnnotation - a model defined in Swagger""" # noqa: E501
+ """EditgroupAnnotation - a model defined in OpenAPI""" # noqa: E501
self._annotation_id = None
self._editgroup_id = None
@@ -103,8 +102,8 @@ class EditgroupAnnotation(object):
raise ValueError("Invalid value for `annotation_id`, length must be less than or equal to `36`") # noqa: E501
if annotation_id is not None and len(annotation_id) < 36:
raise ValueError("Invalid value for `annotation_id`, length must be greater than or equal to `36`") # noqa: E501
- if annotation_id is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', annotation_id): # noqa: E501
- raise ValueError("Invalid value for `annotation_id`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ if annotation_id is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', annotation_id): # noqa: E501
+ raise ValueError(r"Invalid value for `annotation_id`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
self._annotation_id = annotation_id
@@ -132,8 +131,8 @@ class EditgroupAnnotation(object):
raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501
if editgroup_id is not None and len(editgroup_id) < 26:
raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501
- if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
- raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if editgroup_id is not None and not re.search(r'[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
+ raise ValueError(r"Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._editgroup_id = editgroup_id
@@ -161,8 +160,8 @@ class EditgroupAnnotation(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
@@ -170,7 +169,6 @@ class EditgroupAnnotation(object):
def editor(self):
"""Gets the editor of this EditgroupAnnotation. # noqa: E501
- Only included in GET responses; ignored in PUT or POST requests. # noqa: E501
:return: The editor of this EditgroupAnnotation. # noqa: E501
:rtype: Editor
@@ -181,7 +179,6 @@ class EditgroupAnnotation(object):
def editor(self, editor):
"""Sets the editor of this EditgroupAnnotation.
- Only included in GET responses; ignored in PUT or POST requests. # noqa: E501
:param editor: The editor of this EditgroupAnnotation. # noqa: E501
:type: Editor
@@ -240,7 +237,7 @@ class EditgroupAnnotation(object):
Additional free-form JSON metadata that can be included as part of the annotation (or even as the primary annotation itself). See guide for details. # noqa: E501
:return: The extra of this EditgroupAnnotation. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._extra
@@ -251,7 +248,7 @@ class EditgroupAnnotation(object):
Additional free-form JSON metadata that can be included as part of the annotation (or even as the primary annotation itself). See guide for details. # noqa: E501
:param extra: The extra of this EditgroupAnnotation. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._extra = extra
@@ -260,7 +257,7 @@ class EditgroupAnnotation(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/editgroup_edits.py b/python_openapi_client/fatcat_openapi_client/models/editgroup_edits.py
index 6a8e2a46..39340ce9 100644
--- a/python_openapi_client/fatcat_openapi_client/models/editgroup_edits.py
+++ b/python_openapi_client/fatcat_openapi_client/models/editgroup_edits.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
"""
@@ -16,23 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.entity_edit import EntityEdit # noqa: F401,E501
-
class EditgroupEdits(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 = {
'containers': 'list[EntityEdit]',
'creators': 'list[EntityEdit]',
'files': 'list[EntityEdit]',
@@ -53,7 +52,7 @@ class EditgroupEdits(object):
}
def __init__(self, containers=None, creators=None, files=None, filesets=None, webcaptures=None, releases=None, works=None): # noqa: E501
- """EditgroupEdits - a model defined in Swagger""" # noqa: E501
+ """EditgroupEdits - a model defined in OpenAPI""" # noqa: E501
self._containers = None
self._creators = None
@@ -230,7 +229,7 @@ class EditgroupEdits(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(
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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/entity_edit.py b/python_openapi_client/fatcat_openapi_client/models/entity_edit.py
index 7b28ae70..be35815f 100644
--- a/python_openapi_client/fatcat_openapi_client/models/entity_edit.py
+++ b/python_openapi_client/fatcat_openapi_client/models/entity_edit.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,26 +18,27 @@ import six
class EntityEdit(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 = {
'edit_id': 'str',
'ident': 'str',
'revision': 'str',
'prev_revision': 'str',
'redirect_ident': 'str',
'editgroup_id': 'str',
- 'extra': 'object'
+ 'extra': 'dict(str, object)'
}
attribute_map = {
@@ -51,7 +52,7 @@ class EntityEdit(object):
}
def __init__(self, edit_id=None, ident=None, revision=None, prev_revision=None, redirect_ident=None, editgroup_id=None, extra=None): # noqa: E501
- """EntityEdit - a model defined in Swagger""" # noqa: E501
+ """EntityEdit - a model defined in OpenAPI""" # noqa: E501
self._edit_id = None
self._ident = None
@@ -100,8 +101,8 @@ class EntityEdit(object):
raise ValueError("Invalid value for `edit_id`, length must be less than or equal to `36`") # noqa: E501
if edit_id is not None and len(edit_id) < 36:
raise ValueError("Invalid value for `edit_id`, length must be greater than or equal to `36`") # noqa: E501
- if edit_id is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', edit_id): # noqa: E501
- raise ValueError("Invalid value for `edit_id`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ if edit_id is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', edit_id): # noqa: E501
+ raise ValueError(r"Invalid value for `edit_id`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
self._edit_id = edit_id
@@ -131,8 +132,8 @@ class EntityEdit(object):
raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
if ident is not None and len(ident) < 26:
raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
- if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
- raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if ident is not None and not re.search(r'[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError(r"Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._ident = ident
@@ -160,8 +161,8 @@ class EntityEdit(object):
raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
if revision is not None and len(revision) < 36:
raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
- if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
- raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ if revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError(r"Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
self._revision = revision
@@ -189,8 +190,8 @@ class EntityEdit(object):
raise ValueError("Invalid value for `prev_revision`, length must be less than or equal to `36`") # noqa: E501
if prev_revision is not None and len(prev_revision) < 36:
raise ValueError("Invalid value for `prev_revision`, length must be greater than or equal to `36`") # noqa: E501
- if prev_revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', prev_revision): # noqa: E501
- raise ValueError("Invalid value for `prev_revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ if prev_revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', prev_revision): # noqa: E501
+ raise ValueError(r"Invalid value for `prev_revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
self._prev_revision = prev_revision
@@ -218,8 +219,8 @@ class EntityEdit(object):
raise ValueError("Invalid value for `redirect_ident`, length must be less than or equal to `26`") # noqa: E501
if redirect_ident is not None and len(redirect_ident) < 26:
raise ValueError("Invalid value for `redirect_ident`, length must be greater than or equal to `26`") # noqa: E501
- if redirect_ident is not None and not re.search('[a-zA-Z2-7]{26}', redirect_ident): # noqa: E501
- raise ValueError("Invalid value for `redirect_ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if redirect_ident is not None and not re.search(r'[a-zA-Z2-7]{26}', redirect_ident): # noqa: E501
+ raise ValueError(r"Invalid value for `redirect_ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._redirect_ident = redirect_ident
@@ -249,8 +250,8 @@ class EntityEdit(object):
raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501
if editgroup_id is not None and len(editgroup_id) < 26:
raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501
- if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
- raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if editgroup_id is not None and not re.search(r'[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501
+ raise ValueError(r"Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._editgroup_id = editgroup_id
@@ -260,7 +261,7 @@ class EntityEdit(object):
:return: The extra of this EntityEdit. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._extra
@@ -270,7 +271,7 @@ class EntityEdit(object):
:param extra: The extra of this EntityEdit. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._extra = extra
@@ -279,7 +280,7 @@ class EntityEdit(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/entity_history_entry.py b/python_openapi_client/fatcat_openapi_client/models/entity_history_entry.py
index e3f18836..14639b1a 100644
--- a/python_openapi_client/fatcat_openapi_client/models/entity_history_entry.py
+++ b/python_openapi_client/fatcat_openapi_client/models/entity_history_entry.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
"""
@@ -16,25 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.changelog_entry import ChangelogEntry # noqa: F401,E501
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-from fatcat_openapi_client.models.entity_edit import EntityEdit # noqa: F401,E501
-
class EntityHistoryEntry(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 = {
'edit': 'EntityEdit',
'editgroup': 'Editgroup',
'changelog_entry': 'ChangelogEntry'
@@ -47,7 +44,7 @@ class EntityHistoryEntry(object):
}
def __init__(self, edit=None, editgroup=None, changelog_entry=None): # noqa: E501
- """EntityHistoryEntry - a model defined in Swagger""" # noqa: E501
+ """EntityHistoryEntry - a model defined in OpenAPI""" # noqa: E501
self._edit = None
self._editgroup = None
@@ -131,7 +128,7 @@ class EntityHistoryEntry(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/error_response.py b/python_openapi_client/fatcat_openapi_client/models/error_response.py
index 7c03b68d..3406c52e 100644
--- a/python_openapi_client/fatcat_openapi_client/models/error_response.py
+++ b/python_openapi_client/fatcat_openapi_client/models/error_response.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 ErrorResponse(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 = {
'success': 'bool',
'error': 'str',
'message': 'str'
@@ -43,7 +44,7 @@ class ErrorResponse(object):
}
def __init__(self, success=None, error=None, message=None): # noqa: E501
- """ErrorResponse - a model defined in Swagger""" # noqa: E501
+ """ErrorResponse - a model defined in OpenAPI""" # noqa: E501
self._success = None
self._error = None
@@ -127,7 +128,7 @@ class ErrorResponse(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/file_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/file_auto_batch.py
index a9b22f2a..b34f5401 100644
--- a/python_openapi_client/fatcat_openapi_client/models/file_auto_batch.py
+++ b/python_openapi_client/fatcat_openapi_client/models/file_auto_batch.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
"""
@@ -16,24 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-from fatcat_openapi_client.models.file_entity import FileEntity # noqa: F401,E501
-
class FileAutoBatch(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 = {
'editgroup': 'Editgroup',
'entity_list': 'list[FileEntity]'
}
@@ -44,7 +42,7 @@ class FileAutoBatch(object):
}
def __init__(self, editgroup=None, entity_list=None): # noqa: E501
- """FileAutoBatch - a model defined in Swagger""" # noqa: E501
+ """FileAutoBatch - a model defined in OpenAPI""" # noqa: E501
self._editgroup = None
self._entity_list = None
@@ -103,7 +101,7 @@ class FileAutoBatch(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/file_entity.py b/python_openapi_client/fatcat_openapi_client/models/file_entity.py
index d5d5cbba..e52635a6 100644
--- a/python_openapi_client/fatcat_openapi_client/models/file_entity.py
+++ b/python_openapi_client/fatcat_openapi_client/models/file_entity.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
"""
@@ -16,278 +16,262 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.file_url import FileUrl # noqa: F401,E501
-
class FileEntity(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 = {
- 'releases': 'list[ReleaseEntity]',
- 'release_ids': 'list[str]',
- 'mimetype': 'str',
- 'urls': 'list[FileUrl]',
- 'sha256': 'str',
- 'sha1': 'str',
- 'md5': 'str',
- 'size': 'int',
- 'edit_extra': 'object',
- 'extra': 'object',
- 'redirect': 'str',
- 'revision': 'str',
+ openapi_types = {
+ 'state': 'str',
'ident': 'str',
- 'state': 'str'
+ 'revision': 'str',
+ 'redirect': 'str',
+ 'extra': 'dict(str, object)',
+ 'edit_extra': 'dict(str, object)',
+ 'size': 'int',
+ 'md5': 'str',
+ 'sha1': 'str',
+ 'sha256': 'str',
+ 'urls': 'list[FileUrl]',
+ 'mimetype': 'str',
+ 'release_ids': 'list[str]',
+ 'releases': 'list[ReleaseEntity]'
}
attribute_map = {
- 'releases': 'releases',
- 'release_ids': 'release_ids',
- 'mimetype': 'mimetype',
- 'urls': 'urls',
- 'sha256': 'sha256',
- 'sha1': 'sha1',
- 'md5': 'md5',
- 'size': 'size',
- 'edit_extra': 'edit_extra',
- 'extra': 'extra',
- 'redirect': 'redirect',
- 'revision': 'revision',
+ 'state': 'state',
'ident': 'ident',
- 'state': 'state'
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'extra': 'extra',
+ 'edit_extra': 'edit_extra',
+ 'size': 'size',
+ 'md5': 'md5',
+ 'sha1': 'sha1',
+ 'sha256': 'sha256',
+ 'urls': 'urls',
+ 'mimetype': 'mimetype',
+ 'release_ids': 'release_ids',
+ 'releases': 'releases'
}
- 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
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, size=None, md5=None, sha1=None, sha256=None, urls=None, mimetype=None, release_ids=None, releases=None): # noqa: E501
+ """FileEntity - a model defined in OpenAPI""" # noqa: E501
- self._releases = None
- self._release_ids = None
- self._mimetype = None
- self._urls = None
- self._sha256 = None
- self._sha1 = None
- self._md5 = None
- self._size = None
- self._edit_extra = None
- self._extra = None
- self._redirect = None
- self._revision = None
- self._ident = None
self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._extra = None
+ self._edit_extra = None
+ self._size = None
+ self._md5 = None
+ self._sha1 = None
+ self._sha256 = None
+ self._urls = None
+ self._mimetype = None
+ self._release_ids = None
+ self._releases = 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:
- self.mimetype = mimetype
- if urls is not None:
- self.urls = urls
- if sha256 is not None:
- self.sha256 = sha256
- if sha1 is not None:
- self.sha1 = sha1
- if md5 is not None:
- self.md5 = md5
- if size is not None:
- self.size = size
- if edit_extra is not None:
- self.edit_extra = edit_extra
- if extra is not None:
- self.extra = extra
- if redirect is not None:
- self.redirect = redirect
- if revision is not None:
- self.revision = revision
- if ident is not None:
- self.ident = ident
if state is not None:
self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if redirect is not None:
+ self.redirect = redirect
+ if extra is not None:
+ self.extra = extra
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+ if size is not None:
+ self.size = size
+ if md5 is not None:
+ self.md5 = md5
+ if sha1 is not None:
+ self.sha1 = sha1
+ if sha256 is not None:
+ self.sha256 = sha256
+ if urls is not None:
+ self.urls = urls
+ if mimetype is not None:
+ self.mimetype = mimetype
+ if release_ids is not None:
+ self.release_ids = release_ids
+ if releases is not None:
+ self.releases = releases
@property
- def releases(self):
- """Gets the releases of this FileEntity. # noqa: E501
-
- Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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.
-
- Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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
+ def state(self):
+ """Gets the state of this FileEntity. # noqa: E501
- Set of identifier of release entities this file represents a full manifestation of. Usually a single release, but some files contain content of multiple full releases (eg, an issue of a journal). # noqa: E501
- :return: The release_ids of this FileEntity. # noqa: E501
- :rtype: list[str]
+ :return: The state of this FileEntity. # noqa: E501
+ :rtype: str
"""
- return self._release_ids
+ return self._state
- @release_ids.setter
- def release_ids(self, release_ids):
- """Sets the release_ids of this FileEntity.
+ @state.setter
+ def state(self, state):
+ """Sets the state of this FileEntity.
- Set of identifier of release entities this file represents a full manifestation of. Usually a single release, but some files contain content of multiple full releases (eg, an issue of a journal). # noqa: E501
- :param release_ids: The release_ids of this FileEntity. # noqa: E501
- :type: list[str]
+ :param state: The state of this FileEntity. # noqa: E501
+ :type: str
"""
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
- self._release_ids = release_ids
+ self._state = state
@property
- def mimetype(self):
- """Gets the mimetype of this FileEntity. # noqa: E501
+ def ident(self):
+ """Gets the ident of this FileEntity. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :return: The mimetype of this FileEntity. # noqa: E501
+ :return: The ident of this FileEntity. # noqa: E501
:rtype: str
"""
- return self._mimetype
+ return self._ident
- @mimetype.setter
- def mimetype(self, mimetype):
- """Sets the mimetype of this FileEntity.
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this FileEntity.
+ base32-encoded unique identifier # noqa: E501
- :param mimetype: The mimetype of this FileEntity. # noqa: E501
+ :param ident: The ident of this FileEntity. # noqa: E501
:type: str
"""
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search(r'[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError(r"Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._mimetype = mimetype
+ self._ident = ident
@property
- def urls(self):
- """Gets the urls of this FileEntity. # noqa: E501
+ def revision(self):
+ """Gets the revision of this FileEntity. # noqa: E501
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :return: The urls of this FileEntity. # noqa: E501
- :rtype: list[FileUrl]
+ :return: The revision of this FileEntity. # noqa: E501
+ :rtype: str
"""
- return self._urls
+ return self._revision
- @urls.setter
- def urls(self, urls):
- """Sets the urls of this FileEntity.
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this FileEntity.
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :param urls: The urls of this FileEntity. # noqa: E501
- :type: list[FileUrl]
+ :param revision: The revision of this FileEntity. # noqa: E501
+ :type: str
"""
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError(r"Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
- self._urls = urls
+ self._revision = revision
@property
- def sha256(self):
- """Gets the sha256 of this FileEntity. # noqa: E501
+ def redirect(self):
+ """Gets the redirect of this FileEntity. # noqa: E501
- SHA-256 hash of data, in hex encoding # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :return: The sha256 of this FileEntity. # noqa: E501
+ :return: The redirect of this FileEntity. # noqa: E501
:rtype: str
"""
- return self._sha256
+ return self._redirect
- @sha256.setter
- def sha256(self, sha256):
- """Sets the sha256 of this FileEntity.
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this FileEntity.
- SHA-256 hash of data, in hex encoding # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :param sha256: The sha256 of this FileEntity. # noqa: E501
+ :param redirect: The redirect of this FileEntity. # noqa: E501
:type: str
"""
- if sha256 is not None and len(sha256) > 64:
- 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 redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search(r'[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError(r"Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._sha256 = sha256
+ self._redirect = redirect
@property
- def sha1(self):
- """Gets the sha1 of this FileEntity. # noqa: E501
+ def extra(self):
+ """Gets the extra of this FileEntity. # noqa: E501
- SHA-1 hash of data, in hex encoding # noqa: E501
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :return: The sha1 of this FileEntity. # noqa: E501
- :rtype: str
+ :return: The extra of this FileEntity. # noqa: E501
+ :rtype: dict(str, object)
"""
- return self._sha1
+ return self._extra
- @sha1.setter
- def sha1(self, sha1):
- """Sets the sha1 of this FileEntity.
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this FileEntity.
- SHA-1 hash of data, in hex encoding # noqa: E501
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :param sha1: The sha1 of this FileEntity. # noqa: E501
- :type: str
+ :param extra: The extra of this FileEntity. # noqa: E501
+ :type: dict(str, object)
"""
- if sha1 is not None and len(sha1) > 40:
- 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
- self._sha1 = sha1
+ self._extra = extra
@property
- def md5(self):
- """Gets the md5 of this FileEntity. # noqa: E501
+ def edit_extra(self):
+ """Gets the edit_extra of this FileEntity. # noqa: E501
- MD5 hash of data, in hex encoding # noqa: E501
+ Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
- :return: The md5 of this FileEntity. # noqa: E501
- :rtype: str
+ :return: The edit_extra of this FileEntity. # noqa: E501
+ :rtype: dict(str, object)
"""
- return self._md5
+ return self._edit_extra
- @md5.setter
- def md5(self, md5):
- """Sets the md5 of this FileEntity.
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this FileEntity.
- MD5 hash of data, in hex encoding # noqa: E501
+ Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
- :param md5: The md5 of this FileEntity. # noqa: E501
- :type: str
+ :param edit_extra: The edit_extra of this FileEntity. # noqa: E501
+ :type: dict(str, object)
"""
- if md5 is not None and len(md5) > 32:
- raise ValueError("Invalid value for `md5`, length must be less than or equal to `32`") # noqa: E501
- if md5 is not None and len(md5) < 32:
- raise ValueError("Invalid value for `md5`, length must be greater than or equal to `32`") # noqa: E501
- if md5 is not None and not re.search('[a-f0-9]{32}', md5): # noqa: E501
- raise ValueError("Invalid value for `md5`, must be a follow pattern or equal to `/[a-f0-9]{32}/`") # noqa: E501
- self._md5 = md5
+ self._edit_extra = edit_extra
@property
def size(self):
@@ -313,170 +297,185 @@ class FileEntity(object):
self._size = size
@property
- def edit_extra(self):
- """Gets the edit_extra of this FileEntity. # noqa: E501
+ def md5(self):
+ """Gets the md5 of this FileEntity. # noqa: E501
- Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
+ MD5 hash of data, in hex encoding # noqa: E501
- :return: The edit_extra of this FileEntity. # noqa: E501
- :rtype: object
+ :return: The md5 of this FileEntity. # noqa: E501
+ :rtype: str
"""
- return self._edit_extra
+ return self._md5
- @edit_extra.setter
- def edit_extra(self, edit_extra):
- """Sets the edit_extra of this FileEntity.
+ @md5.setter
+ def md5(self, md5):
+ """Sets the md5 of this FileEntity.
- Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
+ MD5 hash of data, in hex encoding # noqa: E501
- :param edit_extra: The edit_extra of this FileEntity. # noqa: E501
- :type: object
+ :param md5: The md5 of this FileEntity. # noqa: E501
+ :type: str
"""
+ if md5 is not None and len(md5) > 32:
+ raise ValueError("Invalid value for `md5`, length must be less than or equal to `32`") # noqa: E501
+ if md5 is not None and len(md5) < 32:
+ raise ValueError("Invalid value for `md5`, length must be greater than or equal to `32`") # noqa: E501
+ if md5 is not None and not re.search(r'[a-f0-9]{32}', md5): # noqa: E501
+ raise ValueError(r"Invalid value for `md5`, must be a follow pattern or equal to `/[a-f0-9]{32}/`") # noqa: E501
- self._edit_extra = edit_extra
+ self._md5 = md5
@property
- def extra(self):
- """Gets the extra of this FileEntity. # noqa: E501
+ def sha1(self):
+ """Gets the sha1 of this FileEntity. # noqa: E501
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
+ SHA-1 hash of data, in hex encoding # noqa: E501
- :return: The extra of this FileEntity. # noqa: E501
- :rtype: object
+ :return: The sha1 of this FileEntity. # noqa: E501
+ :rtype: str
"""
- return self._extra
+ return self._sha1
- @extra.setter
- def extra(self, extra):
- """Sets the extra of this FileEntity.
+ @sha1.setter
+ def sha1(self, sha1):
+ """Sets the sha1 of this FileEntity.
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
+ SHA-1 hash of data, in hex encoding # noqa: E501
- :param extra: The extra of this FileEntity. # noqa: E501
- :type: object
+ :param sha1: The sha1 of this FileEntity. # noqa: E501
+ :type: str
"""
+ if sha1 is not None and len(sha1) > 40:
+ 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(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._extra = extra
+ self._sha1 = sha1
@property
- def redirect(self):
- """Gets the redirect of this FileEntity. # noqa: E501
+ def sha256(self):
+ """Gets the sha256 of this FileEntity. # noqa: E501
- base32-encoded unique identifier # noqa: E501
+ SHA-256 hash of data, in hex encoding # noqa: E501
- :return: The redirect of this FileEntity. # noqa: E501
+ :return: The sha256 of this FileEntity. # noqa: E501
:rtype: str
"""
- return self._redirect
+ return self._sha256
- @redirect.setter
- def redirect(self, redirect):
- """Sets the redirect of this FileEntity.
+ @sha256.setter
+ def sha256(self, sha256):
+ """Sets the sha256 of this FileEntity.
- base32-encoded unique identifier # noqa: E501
+ SHA-256 hash of data, in hex encoding # noqa: E501
- :param redirect: The redirect of this FileEntity. # noqa: E501
+ :param sha256: The sha256 of this FileEntity. # noqa: E501
:type: str
"""
- if redirect is not None and len(redirect) > 26:
- raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
- if redirect is not None and len(redirect) < 26:
- raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
- if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
- raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if sha256 is not None and len(sha256) > 64:
+ 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(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._redirect = redirect
+ self._sha256 = sha256
@property
- def revision(self):
- """Gets the revision of this FileEntity. # noqa: E501
+ def urls(self):
+ """Gets the urls of this FileEntity. # noqa: E501
- UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :return: The revision of this FileEntity. # noqa: E501
- :rtype: str
+ :return: The urls of this FileEntity. # noqa: E501
+ :rtype: list[FileUrl]
"""
- return self._revision
+ return self._urls
- @revision.setter
- def revision(self, revision):
- """Sets the revision of this FileEntity.
+ @urls.setter
+ def urls(self, urls):
+ """Sets the urls of this FileEntity.
- UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :param revision: The revision of this FileEntity. # noqa: E501
- :type: str
+ :param urls: The urls of this FileEntity. # noqa: E501
+ :type: list[FileUrl]
"""
- if revision is not None and len(revision) > 36:
- raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
- if revision is not None and len(revision) < 36:
- raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
- if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
- raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
- self._revision = revision
+ self._urls = urls
@property
- def ident(self):
- """Gets the ident of this FileEntity. # noqa: E501
+ def mimetype(self):
+ """Gets the mimetype of this FileEntity. # noqa: E501
- base32-encoded unique identifier # noqa: E501
- :return: The ident of this FileEntity. # noqa: E501
+ :return: The mimetype of this FileEntity. # noqa: E501
:rtype: str
"""
- return self._ident
+ return self._mimetype
- @ident.setter
- def ident(self, ident):
- """Sets the ident of this FileEntity.
+ @mimetype.setter
+ def mimetype(self, mimetype):
+ """Sets the mimetype of this FileEntity.
- base32-encoded unique identifier # noqa: E501
- :param ident: The ident of this FileEntity. # noqa: E501
+ :param mimetype: The mimetype of this FileEntity. # noqa: E501
:type: str
"""
- if ident is not None and len(ident) > 26:
- raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
- if ident is not None and len(ident) < 26:
- raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
- if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
- raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._ident = ident
+ self._mimetype = mimetype
@property
- def state(self):
- """Gets the state of this FileEntity. # noqa: E501
+ def release_ids(self):
+ """Gets the release_ids of this FileEntity. # noqa: E501
+ Set of identifier of release entities this file represents a full manifestation of. Usually a single release, but some files contain content of multiple full releases (eg, an issue of a journal). # noqa: E501
- :return: The state of this FileEntity. # noqa: E501
- :rtype: str
+ :return: The release_ids of this FileEntity. # noqa: E501
+ :rtype: list[str]
"""
- return self._state
+ return self._release_ids
- @state.setter
- def state(self, state):
- """Sets the state of this FileEntity.
+ @release_ids.setter
+ def release_ids(self, release_ids):
+ """Sets the release_ids of this FileEntity.
+ Set of identifier of release entities this file represents a full manifestation of. Usually a single release, but some files contain content of multiple full releases (eg, an issue of a journal). # noqa: E501
- :param state: The state of this FileEntity. # noqa: E501
- :type: str
+ :param release_ids: The release_ids of this FileEntity. # noqa: E501
+ :type: list[str]
"""
- allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
- if state not in allowed_values:
- raise ValueError(
- "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
- .format(state, allowed_values)
- )
- self._state = state
+ self._release_ids = release_ids
+
+ @property
+ def releases(self):
+ """Gets the releases of this FileEntity. # noqa: E501
+
+ Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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.
+
+ Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # noqa: E501
+
+ :param releases: The releases of this FileEntity. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+
+ self._releases = releases
def to_dict(self):
"""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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/file_url.py b/python_openapi_client/fatcat_openapi_client/models/file_url.py
index 9390e2b8..6dc8ebe6 100644
--- a/python_openapi_client/fatcat_openapi_client/models/file_url.py
+++ b/python_openapi_client/fatcat_openapi_client/models/file_url.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 FileUrl(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 = {
'url': 'str',
'rel': 'str'
}
@@ -41,7 +42,7 @@ class FileUrl(object):
}
def __init__(self, url=None, rel=None): # noqa: E501
- """FileUrl - a model defined in Swagger""" # noqa: E501
+ """FileUrl - a model defined in OpenAPI""" # noqa: E501
self._url = None
self._rel = None
@@ -104,7 +105,7 @@ class FileUrl(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.py
index 4a2987ea..d3a15279 100644
--- a/python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.py
+++ b/python_openapi_client/fatcat_openapi_client/models/fileset_auto_batch.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
"""
@@ -16,24 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-from fatcat_openapi_client.models.fileset_entity import FilesetEntity # noqa: F401,E501
-
class FilesetAutoBatch(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 = {
'editgroup': 'Editgroup',
'entity_list': 'list[FilesetEntity]'
}
@@ -44,7 +42,7 @@ class FilesetAutoBatch(object):
}
def __init__(self, editgroup=None, entity_list=None): # noqa: E501
- """FilesetAutoBatch - a model defined in Swagger""" # noqa: E501
+ """FilesetAutoBatch - a model defined in OpenAPI""" # noqa: E501
self._editgroup = None
self._entity_list = None
@@ -103,7 +101,7 @@ class FilesetAutoBatch(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py b/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py
index e35c7a1a..51952d2a 100644
--- a/python_openapi_client/fatcat_openapi_client/models/fileset_entity.py
+++ b/python_openapi_client/fatcat_openapi_client/models/fileset_entity.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
"""
@@ -16,72 +16,62 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.fileset_file import FilesetFile # noqa: F401,E501
-from fatcat_openapi_client.models.fileset_url import FilesetUrl # noqa: F401,E501
-
class FilesetEntity(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 = {
- 'releases': 'list[ReleaseEntity]',
- 'release_ids': 'list[str]',
- 'urls': 'list[FilesetUrl]',
- 'manifest': 'list[FilesetFile]',
+ openapi_types = {
'state': 'str',
'ident': 'str',
'revision': 'str',
'redirect': 'str',
- 'extra': 'object',
- 'edit_extra': 'object'
+ 'extra': 'dict(str, object)',
+ 'edit_extra': 'dict(str, object)',
+ 'manifest': 'list[FilesetFile]',
+ 'urls': 'list[FilesetUrl]',
+ 'release_ids': 'list[str]',
+ 'releases': 'list[ReleaseEntity]'
}
attribute_map = {
- 'releases': 'releases',
- 'release_ids': 'release_ids',
- 'urls': 'urls',
- 'manifest': 'manifest',
'state': 'state',
'ident': 'ident',
'revision': 'revision',
'redirect': 'redirect',
'extra': 'extra',
- 'edit_extra': 'edit_extra'
+ 'edit_extra': 'edit_extra',
+ 'manifest': 'manifest',
+ 'urls': 'urls',
+ 'release_ids': 'release_ids',
+ 'releases': 'releases'
}
- 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
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, manifest=None, urls=None, release_ids=None, releases=None): # noqa: E501
+ """FilesetEntity - a model defined in OpenAPI""" # noqa: E501
- self._releases = None
- self._release_ids = None
- self._urls = None
- self._manifest = None
self._state = None
self._ident = None
self._revision = None
self._redirect = None
self._extra = None
self._edit_extra = None
+ self._manifest = None
+ self._urls = None
+ self._release_ids = None
+ self._releases = 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:
- self.urls = urls
- if manifest is not None:
- self.manifest = manifest
if state is not None:
self.state = state
if ident is not None:
@@ -94,94 +84,14 @@ class FilesetEntity(object):
self.extra = extra
if edit_extra is not None:
self.edit_extra = edit_extra
-
- @property
- def releases(self):
- """Gets the releases of this FilesetEntity. # noqa: E501
-
- Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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.
-
- Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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
-
- Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. # noqa: E501
-
- :return: The release_ids of this FilesetEntity. # noqa: E501
- :rtype: list[str]
- """
- return self._release_ids
-
- @release_ids.setter
- def release_ids(self, release_ids):
- """Sets the release_ids of this FilesetEntity.
-
- Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. # noqa: E501
-
- :param release_ids: The release_ids of this FilesetEntity. # noqa: E501
- :type: list[str]
- """
-
- self._release_ids = release_ids
-
- @property
- def urls(self):
- """Gets the urls of this FilesetEntity. # noqa: E501
-
-
- :return: The urls of this FilesetEntity. # noqa: E501
- :rtype: list[FilesetUrl]
- """
- return self._urls
-
- @urls.setter
- def urls(self, urls):
- """Sets the urls of this FilesetEntity.
-
-
- :param urls: The urls of this FilesetEntity. # noqa: E501
- :type: list[FilesetUrl]
- """
-
- self._urls = urls
-
- @property
- def manifest(self):
- """Gets the manifest of this FilesetEntity. # noqa: E501
-
-
- :return: The manifest of this FilesetEntity. # noqa: E501
- :rtype: list[FilesetFile]
- """
- return self._manifest
-
- @manifest.setter
- def manifest(self, manifest):
- """Sets the manifest of this FilesetEntity.
-
-
- :param manifest: The manifest of this FilesetEntity. # noqa: E501
- :type: list[FilesetFile]
- """
-
- self._manifest = manifest
+ if manifest is not None:
+ self.manifest = manifest
+ if urls is not None:
+ self.urls = urls
+ if release_ids is not None:
+ self.release_ids = release_ids
+ if releases is not None:
+ self.releases = releases
@property
def state(self):
@@ -234,8 +144,8 @@ class FilesetEntity(object):
raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
if ident is not None and len(ident) < 26:
raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
- if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
- raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if ident is not None and not re.search(r'[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError(r"Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._ident = ident
@@ -263,8 +173,8 @@ class FilesetEntity(object):
raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
if revision is not None and len(revision) < 36:
raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
- if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
- raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ if revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError(r"Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
self._revision = revision
@@ -292,8 +202,8 @@ class FilesetEntity(object):
raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
if redirect is not None and len(redirect) < 26:
raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
- if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
- raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if redirect is not None and not re.search(r'[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError(r"Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._redirect = redirect
@@ -304,7 +214,7 @@ class FilesetEntity(object):
Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
:return: The extra of this FilesetEntity. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._extra
@@ -315,7 +225,7 @@ class FilesetEntity(object):
Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
:param extra: The extra of this FilesetEntity. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._extra = extra
@@ -327,7 +237,7 @@ class FilesetEntity(object):
Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
:return: The edit_extra of this FilesetEntity. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._edit_extra
@@ -338,16 +248,104 @@ class FilesetEntity(object):
Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
:param edit_extra: The edit_extra of this FilesetEntity. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._edit_extra = edit_extra
+ @property
+ def manifest(self):
+ """Gets the manifest of this FilesetEntity. # noqa: E501
+
+
+ :return: The manifest of this FilesetEntity. # noqa: E501
+ :rtype: list[FilesetFile]
+ """
+ return self._manifest
+
+ @manifest.setter
+ def manifest(self, manifest):
+ """Sets the manifest of this FilesetEntity.
+
+
+ :param manifest: The manifest of this FilesetEntity. # noqa: E501
+ :type: list[FilesetFile]
+ """
+
+ self._manifest = manifest
+
+ @property
+ def urls(self):
+ """Gets the urls of this FilesetEntity. # noqa: E501
+
+
+ :return: The urls of this FilesetEntity. # noqa: E501
+ :rtype: list[FilesetUrl]
+ """
+ return self._urls
+
+ @urls.setter
+ def urls(self, urls):
+ """Sets the urls of this FilesetEntity.
+
+
+ :param urls: The urls of this FilesetEntity. # noqa: E501
+ :type: list[FilesetUrl]
+ """
+
+ self._urls = urls
+
+ @property
+ def release_ids(self):
+ """Gets the release_ids of this FilesetEntity. # noqa: E501
+
+ Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. # noqa: E501
+
+ :return: The release_ids of this FilesetEntity. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._release_ids
+
+ @release_ids.setter
+ def release_ids(self, release_ids):
+ """Sets the release_ids of this FilesetEntity.
+
+ Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. # noqa: E501
+
+ :param release_ids: The release_ids of this FilesetEntity. # noqa: E501
+ :type: list[str]
+ """
+
+ self._release_ids = release_ids
+
+ @property
+ def releases(self):
+ """Gets the releases of this FilesetEntity. # noqa: E501
+
+ Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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.
+
+ Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # noqa: E501
+
+ :param releases: The releases of this FilesetEntity. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+
+ self._releases = releases
+
def to_dict(self):
"""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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_file.py b/python_openapi_client/fatcat_openapi_client/models/fileset_file.py
index 9da23aad..15afd2f1 100644
--- a/python_openapi_client/fatcat_openapi_client/models/fileset_file.py
+++ b/python_openapi_client/fatcat_openapi_client/models/fileset_file.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,25 +18,26 @@ import six
class FilesetFile(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 = {
'path': 'str',
'size': 'int',
'md5': 'str',
'sha1': 'str',
'sha256': 'str',
- 'extra': 'object'
+ 'extra': 'dict(str, object)'
}
attribute_map = {
@@ -49,7 +50,7 @@ class FilesetFile(object):
}
def __init__(self, path=None, size=None, md5=None, sha1=None, sha256=None, extra=None): # noqa: E501
- """FilesetFile - a model defined in Swagger""" # noqa: E501
+ """FilesetFile - a model defined in OpenAPI""" # noqa: E501
self._path = None
self._size = None
@@ -144,8 +145,8 @@ class FilesetFile(object):
raise ValueError("Invalid value for `md5`, length must be less than or equal to `32`") # noqa: E501
if md5 is not None and len(md5) < 32:
raise ValueError("Invalid value for `md5`, length must be greater than or equal to `32`") # noqa: E501
- if md5 is not None and not re.search('[a-f0-9]{32}', md5): # noqa: E501
- raise ValueError("Invalid value for `md5`, must be a follow pattern or equal to `/[a-f0-9]{32}/`") # noqa: E501
+ if md5 is not None and not re.search(r'[a-f0-9]{32}', md5): # noqa: E501
+ raise ValueError(r"Invalid value for `md5`, must be a follow pattern or equal to `/[a-f0-9]{32}/`") # noqa: E501
self._md5 = md5
@@ -173,8 +174,8 @@ class FilesetFile(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
@@ -202,8 +203,8 @@ class FilesetFile(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
@@ -214,7 +215,7 @@ class FilesetFile(object):
Free-form additional metadata about this specific file in the set. Eg, `mimetype`. See guide for nomative (but unenforced) schema fields. # noqa: E501
:return: The extra of this FilesetFile. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._extra
@@ -225,7 +226,7 @@ class FilesetFile(object):
Free-form additional metadata about this specific file in the set. Eg, `mimetype`. See guide for nomative (but unenforced) schema fields. # noqa: E501
:param extra: The extra of this FilesetFile. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._extra = extra
@@ -234,7 +235,7 @@ class FilesetFile(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/fileset_url.py b/python_openapi_client/fatcat_openapi_client/models/fileset_url.py
index f7efab60..cde1119c 100644
--- a/python_openapi_client/fatcat_openapi_client/models/fileset_url.py
+++ b/python_openapi_client/fatcat_openapi_client/models/fileset_url.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 FilesetUrl(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 = {
'url': 'str',
'rel': 'str'
}
@@ -41,7 +42,7 @@ class FilesetUrl(object):
}
def __init__(self, url=None, rel=None): # noqa: E501
- """FilesetUrl - a model defined in Swagger""" # noqa: E501
+ """FilesetUrl - a model defined in OpenAPI""" # noqa: E501
self._url = None
self._rel = None
@@ -102,7 +103,7 @@ class FilesetUrl(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_abstract.py b/python_openapi_client/fatcat_openapi_client/models/release_abstract.py
index 7ba8348e..c6c7aab7 100644
--- a/python_openapi_client/fatcat_openapi_client/models/release_abstract.py
+++ b/python_openapi_client/fatcat_openapi_client/models/release_abstract.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 ReleaseAbstract(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 = {
'sha1': 'str',
'content': 'str',
'mimetype': 'str',
@@ -45,7 +46,7 @@ class ReleaseAbstract(object):
}
def __init__(self, sha1=None, content=None, mimetype=None, lang=None): # noqa: E501
- """ReleaseAbstract - a model defined in Swagger""" # noqa: E501
+ """ReleaseAbstract - a model defined in OpenAPI""" # noqa: E501
self._sha1 = None
self._content = None
@@ -86,8 +87,8 @@ class ReleaseAbstract(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
@@ -164,7 +165,7 @@ class ReleaseAbstract(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/release_auto_batch.py
index 6c8df967..9d1f6bbc 100644
--- a/python_openapi_client/fatcat_openapi_client/models/release_auto_batch.py
+++ b/python_openapi_client/fatcat_openapi_client/models/release_auto_batch.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
"""
@@ -16,24 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-from fatcat_openapi_client.models.release_entity import ReleaseEntity # noqa: F401,E501
-
class ReleaseAutoBatch(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 = {
'editgroup': 'Editgroup',
'entity_list': 'list[ReleaseEntity]'
}
@@ -44,7 +42,7 @@ class ReleaseAutoBatch(object):
}
def __init__(self, editgroup=None, entity_list=None): # noqa: E501
- """ReleaseAutoBatch - a model defined in Swagger""" # noqa: E501
+ """ReleaseAutoBatch - a model defined in OpenAPI""" # noqa: E501
self._editgroup = None
self._entity_list = None
@@ -103,7 +101,7 @@ class ReleaseAutoBatch(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_contrib.py b/python_openapi_client/fatcat_openapi_client/models/release_contrib.py
index 01b464ac..f2de29df 100644
--- a/python_openapi_client/fatcat_openapi_client/models/release_contrib.py
+++ b/python_openapi_client/fatcat_openapi_client/models/release_contrib.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
"""
@@ -16,23 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.creator_entity import CreatorEntity # noqa: F401,E501
-
class ReleaseContrib(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 = {
'index': 'int',
'creator_id': 'str',
'creator': 'CreatorEntity',
@@ -41,7 +40,7 @@ class ReleaseContrib(object):
'surname': 'str',
'role': 'str',
'raw_affiliation': 'str',
- 'extra': 'object'
+ 'extra': 'dict(str, object)'
}
attribute_map = {
@@ -57,7 +56,7 @@ class ReleaseContrib(object):
}
def __init__(self, index=None, creator_id=None, creator=None, raw_name=None, given_name=None, surname=None, role=None, raw_affiliation=None, extra=None): # noqa: E501
- """ReleaseContrib - a model defined in Swagger""" # noqa: E501
+ """ReleaseContrib - a model defined in OpenAPI""" # noqa: E501
self._index = None
self._creator_id = None
@@ -136,8 +135,8 @@ class ReleaseContrib(object):
raise ValueError("Invalid value for `creator_id`, length must be less than or equal to `26`") # noqa: E501
if creator_id is not None and len(creator_id) < 26:
raise ValueError("Invalid value for `creator_id`, length must be greater than or equal to `26`") # noqa: E501
- if creator_id is not None and not re.search('[a-zA-Z2-7]{26}', creator_id): # noqa: E501
- raise ValueError("Invalid value for `creator_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if creator_id is not None and not re.search(r'[a-zA-Z2-7]{26}', creator_id): # noqa: E501
+ raise ValueError(r"Invalid value for `creator_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._creator_id = creator_id
@@ -145,7 +144,6 @@ class ReleaseContrib(object):
def creator(self):
"""Gets the creator of this ReleaseContrib. # noqa: E501
- Complete creator entity. Only returned in GET responses, and only if `contribs` included in the `expand` query parameter. # noqa: E501
:return: The creator of this ReleaseContrib. # noqa: E501
:rtype: CreatorEntity
@@ -156,7 +154,6 @@ class ReleaseContrib(object):
def creator(self, creator):
"""Sets the creator of this ReleaseContrib.
- Complete creator entity. Only returned in GET responses, and only if `contribs` included in the `expand` query parameter. # noqa: E501
:param creator: The creator of this ReleaseContrib. # noqa: E501
:type: CreatorEntity
@@ -286,7 +283,7 @@ class ReleaseContrib(object):
Additional free-form JSON metadata about this contributor/contribution. See guide for normative schema. # noqa: E501
:return: The extra of this ReleaseContrib. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._extra
@@ -297,7 +294,7 @@ class ReleaseContrib(object):
Additional free-form JSON metadata about this contributor/contribution. See guide for normative schema. # noqa: E501
:param extra: The extra of this ReleaseContrib. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._extra = extra
@@ -306,7 +303,7 @@ class ReleaseContrib(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_entity.py b/python_openapi_client/fatcat_openapi_client/models/release_entity.py
index 03a27cae..a88124d4 100644
--- a/python_openapi_client/fatcat_openapi_client/models/release_entity.py
+++ b/python_openapi_client/fatcat_openapi_client/models/release_entity.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
"""
@@ -16,197 +16,134 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.container_entity import ContainerEntity # noqa: F401,E501
-from fatcat_openapi_client.models.file_entity import FileEntity # noqa: F401,E501
-from fatcat_openapi_client.models.fileset_entity import FilesetEntity # noqa: F401,E501
-from fatcat_openapi_client.models.release_abstract import ReleaseAbstract # noqa: F401,E501
-from fatcat_openapi_client.models.release_contrib import ReleaseContrib # noqa: F401,E501
-from fatcat_openapi_client.models.release_ext_ids import ReleaseExtIds # noqa: F401,E501
-from fatcat_openapi_client.models.release_ref import ReleaseRef # noqa: F401,E501
-from fatcat_openapi_client.models.webcapture_entity import WebcaptureEntity # noqa: F401,E501
-
class ReleaseEntity(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 = {
- 'abstracts': 'list[ReleaseAbstract]',
- 'refs': 'list[ReleaseRef]',
- 'contribs': 'list[ReleaseContrib]',
- 'license_slug': 'str',
- 'language': 'str',
- 'publisher': 'str',
- 'version': 'str',
- 'number': 'str',
- 'pages': 'str',
- 'issue': 'str',
- 'volume': 'str',
- 'ext_ids': 'ReleaseExtIds',
- 'withdrawn_year': 'int',
- 'withdrawn_date': 'date',
- 'withdrawn_status': 'str',
- 'release_year': 'int',
- 'release_date': 'date',
- 'release_stage': 'str',
- 'release_type': 'str',
- 'container_id': 'str',
- 'webcaptures': 'list[WebcaptureEntity]',
- 'filesets': 'list[FilesetEntity]',
- 'files': 'list[FileEntity]',
- 'container': 'ContainerEntity',
- 'work_id': 'str',
- 'original_title': 'str',
- 'subtitle': 'str',
- 'title': 'str',
+ openapi_types = {
'state': 'str',
'ident': 'str',
'revision': 'str',
'redirect': 'str',
- 'extra': 'object',
- 'edit_extra': 'object'
+ 'extra': 'dict(str, object)',
+ 'edit_extra': 'dict(str, object)',
+ 'title': 'str',
+ 'subtitle': 'str',
+ 'original_title': 'str',
+ 'work_id': 'str',
+ 'container': 'ContainerEntity',
+ 'files': 'list[FileEntity]',
+ 'filesets': 'list[FilesetEntity]',
+ 'webcaptures': 'list[WebcaptureEntity]',
+ 'container_id': 'str',
+ 'release_type': 'str',
+ 'release_stage': 'str',
+ 'release_date': 'date',
+ 'release_year': 'int',
+ 'withdrawn_status': 'str',
+ 'withdrawn_date': 'date',
+ 'withdrawn_year': 'int',
+ 'ext_ids': 'ReleaseExtIds',
+ 'volume': 'str',
+ 'issue': 'str',
+ 'pages': 'str',
+ 'number': 'str',
+ 'version': 'str',
+ 'publisher': 'str',
+ 'language': 'str',
+ 'license_slug': 'str',
+ 'contribs': 'list[ReleaseContrib]',
+ 'refs': 'list[ReleaseRef]',
+ 'abstracts': 'list[ReleaseAbstract]'
}
attribute_map = {
- 'abstracts': 'abstracts',
- 'refs': 'refs',
- 'contribs': 'contribs',
- 'license_slug': 'license_slug',
- 'language': 'language',
- 'publisher': 'publisher',
- 'version': 'version',
- 'number': 'number',
- 'pages': 'pages',
- 'issue': 'issue',
- 'volume': 'volume',
- 'ext_ids': 'ext_ids',
- 'withdrawn_year': 'withdrawn_year',
- 'withdrawn_date': 'withdrawn_date',
- 'withdrawn_status': 'withdrawn_status',
- 'release_year': 'release_year',
- 'release_date': 'release_date',
- 'release_stage': 'release_stage',
- 'release_type': 'release_type',
- 'container_id': 'container_id',
- 'webcaptures': 'webcaptures',
- 'filesets': 'filesets',
- 'files': 'files',
- 'container': 'container',
- 'work_id': 'work_id',
- 'original_title': 'original_title',
- 'subtitle': 'subtitle',
- 'title': 'title',
'state': 'state',
'ident': 'ident',
'revision': 'revision',
'redirect': 'redirect',
'extra': 'extra',
- 'edit_extra': 'edit_extra'
+ 'edit_extra': 'edit_extra',
+ 'title': 'title',
+ 'subtitle': 'subtitle',
+ 'original_title': 'original_title',
+ 'work_id': 'work_id',
+ 'container': 'container',
+ 'files': 'files',
+ 'filesets': 'filesets',
+ 'webcaptures': 'webcaptures',
+ 'container_id': 'container_id',
+ 'release_type': 'release_type',
+ 'release_stage': 'release_stage',
+ 'release_date': 'release_date',
+ 'release_year': 'release_year',
+ 'withdrawn_status': 'withdrawn_status',
+ 'withdrawn_date': 'withdrawn_date',
+ 'withdrawn_year': 'withdrawn_year',
+ 'ext_ids': 'ext_ids',
+ 'volume': 'volume',
+ 'issue': 'issue',
+ 'pages': 'pages',
+ 'number': 'number',
+ 'version': 'version',
+ 'publisher': 'publisher',
+ 'language': 'language',
+ 'license_slug': 'license_slug',
+ 'contribs': 'contribs',
+ 'refs': 'refs',
+ 'abstracts': 'abstracts'
}
- def __init__(self, abstracts=None, refs=None, contribs=None, license_slug=None, language=None, publisher=None, version=None, number=None, pages=None, issue=None, volume=None, ext_ids=None, withdrawn_year=None, withdrawn_date=None, withdrawn_status=None, release_year=None, release_date=None, release_stage=None, release_type=None, container_id=None, webcaptures=None, filesets=None, files=None, container=None, work_id=None, original_title=None, subtitle=None, title=None, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
- """ReleaseEntity - a model defined in Swagger""" # noqa: E501
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, title=None, subtitle=None, original_title=None, work_id=None, container=None, files=None, filesets=None, webcaptures=None, container_id=None, release_type=None, release_stage=None, release_date=None, release_year=None, withdrawn_status=None, withdrawn_date=None, withdrawn_year=None, ext_ids=None, volume=None, issue=None, pages=None, number=None, version=None, publisher=None, language=None, license_slug=None, contribs=None, refs=None, abstracts=None): # noqa: E501
+ """ReleaseEntity - a model defined in OpenAPI""" # noqa: E501
- self._abstracts = None
- self._refs = None
- self._contribs = None
- self._license_slug = None
- self._language = None
- self._publisher = None
- self._version = None
- self._number = None
- self._pages = None
- self._issue = None
- self._volume = None
- self._ext_ids = None
- self._withdrawn_year = None
- self._withdrawn_date = None
- self._withdrawn_status = None
- self._release_year = None
- self._release_date = None
- self._release_stage = None
- self._release_type = None
- self._container_id = None
- self._webcaptures = None
- self._filesets = None
- self._files = None
- self._container = None
- self._work_id = None
- self._original_title = None
- self._subtitle = None
- self._title = None
self._state = None
self._ident = None
self._revision = None
self._redirect = None
self._extra = None
self._edit_extra = None
+ self._title = None
+ self._subtitle = None
+ self._original_title = None
+ self._work_id = None
+ self._container = None
+ self._files = None
+ self._filesets = None
+ self._webcaptures = None
+ self._container_id = None
+ self._release_type = None
+ self._release_stage = None
+ self._release_date = None
+ self._release_year = None
+ self._withdrawn_status = None
+ self._withdrawn_date = None
+ self._withdrawn_year = None
+ self._ext_ids = None
+ self._volume = None
+ self._issue = None
+ self._pages = None
+ self._number = None
+ self._version = None
+ self._publisher = None
+ self._language = None
+ self._license_slug = None
+ self._contribs = None
+ self._refs = None
+ self._abstracts = None
self.discriminator = None
- if abstracts is not None:
- self.abstracts = abstracts
- if refs is not None:
- self.refs = refs
- if contribs is not None:
- self.contribs = contribs
- if license_slug is not None:
- self.license_slug = license_slug
- if language is not None:
- self.language = language
- if publisher is not None:
- self.publisher = publisher
- if version is not None:
- self.version = version
- if number is not None:
- self.number = number
- if pages is not None:
- self.pages = pages
- if issue is not None:
- self.issue = issue
- if volume is not None:
- self.volume = volume
- self.ext_ids = ext_ids
- if withdrawn_year is not None:
- self.withdrawn_year = withdrawn_year
- if withdrawn_date is not None:
- self.withdrawn_date = withdrawn_date
- if withdrawn_status is not None:
- self.withdrawn_status = withdrawn_status
- if release_year is not None:
- self.release_year = release_year
- if release_date is not None:
- self.release_date = release_date
- if release_stage is not None:
- self.release_stage = release_stage
- if release_type is not None:
- self.release_type = release_type
- if container_id is not None:
- self.container_id = container_id
- if webcaptures is not None:
- self.webcaptures = webcaptures
- if filesets is not None:
- self.filesets = filesets
- if files is not None:
- self.files = files
- if container is not None:
- self.container = container
- if work_id is not None:
- self.work_id = work_id
- if original_title is not None:
- self.original_title = original_title
- if subtitle is not None:
- self.subtitle = subtitle
- if title is not None:
- self.title = title
if state is not None:
self.state = state
if ident is not None:
@@ -219,393 +156,449 @@ class ReleaseEntity(object):
self.extra = extra
if edit_extra is not None:
self.edit_extra = edit_extra
+ if title is not None:
+ self.title = title
+ if subtitle is not None:
+ self.subtitle = subtitle
+ if original_title is not None:
+ self.original_title = original_title
+ if work_id is not None:
+ self.work_id = work_id
+ if container is not None:
+ self.container = container
+ if files is not None:
+ self.files = files
+ if filesets is not None:
+ self.filesets = filesets
+ if webcaptures is not None:
+ self.webcaptures = webcaptures
+ if container_id is not None:
+ self.container_id = container_id
+ if release_type is not None:
+ self.release_type = release_type
+ if release_stage is not None:
+ self.release_stage = release_stage
+ if release_date is not None:
+ self.release_date = release_date
+ if release_year is not None:
+ self.release_year = release_year
+ if withdrawn_status is not None:
+ self.withdrawn_status = withdrawn_status
+ if withdrawn_date is not None:
+ self.withdrawn_date = withdrawn_date
+ if withdrawn_year is not None:
+ self.withdrawn_year = withdrawn_year
+ self.ext_ids = ext_ids
+ if volume is not None:
+ self.volume = volume
+ if issue is not None:
+ self.issue = issue
+ if pages is not None:
+ self.pages = pages
+ if number is not None:
+ self.number = number
+ if version is not None:
+ self.version = version
+ if publisher is not None:
+ self.publisher = publisher
+ if language is not None:
+ self.language = language
+ if license_slug is not None:
+ self.license_slug = license_slug
+ if contribs is not None:
+ self.contribs = contribs
+ if refs is not None:
+ self.refs = refs
+ if abstracts is not None:
+ self.abstracts = abstracts
@property
- def abstracts(self):
- """Gets the abstracts of this ReleaseEntity. # noqa: E501
-
-
- :return: The abstracts of this ReleaseEntity. # noqa: E501
- :rtype: list[ReleaseAbstract]
- """
- return self._abstracts
-
- @abstracts.setter
- def abstracts(self, abstracts):
- """Sets the abstracts of this ReleaseEntity.
-
-
- :param abstracts: The abstracts of this ReleaseEntity. # noqa: E501
- :type: list[ReleaseAbstract]
- """
-
- self._abstracts = abstracts
-
- @property
- def refs(self):
- """Gets the refs of this ReleaseEntity. # noqa: E501
+ def state(self):
+ """Gets the state of this ReleaseEntity. # noqa: E501
- :return: The refs of this ReleaseEntity. # noqa: E501
- :rtype: list[ReleaseRef]
+ :return: The state of this ReleaseEntity. # noqa: E501
+ :rtype: str
"""
- return self._refs
+ return self._state
- @refs.setter
- def refs(self, refs):
- """Sets the refs of this ReleaseEntity.
+ @state.setter
+ def state(self, state):
+ """Sets the state of this ReleaseEntity.
- :param refs: The refs of this ReleaseEntity. # noqa: E501
- :type: list[ReleaseRef]
+ :param state: The state of this ReleaseEntity. # noqa: E501
+ :type: str
"""
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
- self._refs = refs
+ self._state = state
@property
- def contribs(self):
- """Gets the contribs of this ReleaseEntity. # noqa: E501
+ def ident(self):
+ """Gets the ident of this ReleaseEntity. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :return: The contribs of this ReleaseEntity. # noqa: E501
- :rtype: list[ReleaseContrib]
+ :return: The ident of this ReleaseEntity. # noqa: E501
+ :rtype: str
"""
- return self._contribs
+ return self._ident
- @contribs.setter
- def contribs(self, contribs):
- """Sets the contribs of this ReleaseEntity.
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this ReleaseEntity.
+ base32-encoded unique identifier # noqa: E501
- :param contribs: The contribs of this ReleaseEntity. # noqa: E501
- :type: list[ReleaseContrib]
+ :param ident: The ident of this ReleaseEntity. # noqa: E501
+ :type: str
"""
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search(r'[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError(r"Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._contribs = contribs
+ self._ident = ident
@property
- def license_slug(self):
- """Gets the license_slug of this ReleaseEntity. # noqa: E501
+ def revision(self):
+ """Gets the revision of this ReleaseEntity. # noqa: E501
- Short string (slug) name of license under which release is openly published (if applicable). # noqa: E501
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :return: The license_slug of this ReleaseEntity. # noqa: E501
+ :return: The revision of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._license_slug
+ return self._revision
- @license_slug.setter
- def license_slug(self, license_slug):
- """Sets the license_slug of this ReleaseEntity.
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this ReleaseEntity.
- Short string (slug) name of license under which release is openly published (if applicable). # noqa: E501
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :param license_slug: The license_slug of this ReleaseEntity. # noqa: E501
+ :param revision: The revision of this ReleaseEntity. # noqa: E501
:type: str
"""
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError(r"Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
- self._license_slug = license_slug
+ self._revision = revision
@property
- def language(self):
- """Gets the language of this ReleaseEntity. # noqa: E501
+ def redirect(self):
+ """Gets the redirect of this ReleaseEntity. # noqa: E501
- Primary language of the content of the full release. Two-letter RFC1766/ISO639-1 language code, with some custom extensions/additions. See guide. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :return: The language of this ReleaseEntity. # noqa: E501
+ :return: The redirect of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._language
+ return self._redirect
- @language.setter
- def language(self, language):
- """Sets the language of this ReleaseEntity.
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this ReleaseEntity.
- Primary language of the content of the full release. Two-letter RFC1766/ISO639-1 language code, with some custom extensions/additions. See guide. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :param language: The language of this ReleaseEntity. # noqa: E501
+ :param redirect: The redirect of this ReleaseEntity. # noqa: E501
:type: str
"""
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search(r'[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError(r"Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._language = language
+ self._redirect = redirect
@property
- def publisher(self):
- """Gets the publisher of this ReleaseEntity. # noqa: E501
+ def extra(self):
+ """Gets the extra of this ReleaseEntity. # noqa: E501
- Name, usually English, of the entity or institution responsible for publication of this release. Not necessarily the imprint/brand. See guide. # noqa: E501
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :return: The publisher of this ReleaseEntity. # noqa: E501
- :rtype: str
+ :return: The extra of this ReleaseEntity. # noqa: E501
+ :rtype: dict(str, object)
"""
- return self._publisher
+ return self._extra
- @publisher.setter
- def publisher(self, publisher):
- """Sets the publisher of this ReleaseEntity.
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this ReleaseEntity.
- Name, usually English, of the entity or institution responsible for publication of this release. Not necessarily the imprint/brand. See guide. # noqa: E501
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :param publisher: The publisher of this ReleaseEntity. # noqa: E501
- :type: str
+ :param extra: The extra of this ReleaseEntity. # noqa: E501
+ :type: dict(str, object)
"""
- self._publisher = publisher
+ self._extra = extra
@property
- def version(self):
- """Gets the version of this ReleaseEntity. # noqa: E501
+ def edit_extra(self):
+ """Gets the edit_extra of this ReleaseEntity. # noqa: E501
- For, eg, updated technical reports or software packages, where the version string may be the only field disambiguating between releases. # noqa: E501
+ Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
- :return: The version of this ReleaseEntity. # noqa: E501
- :rtype: str
+ :return: The edit_extra of this ReleaseEntity. # noqa: E501
+ :rtype: dict(str, object)
"""
- return self._version
+ return self._edit_extra
- @version.setter
- def version(self, version):
- """Sets the version of this ReleaseEntity.
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this ReleaseEntity.
- For, eg, updated technical reports or software packages, where the version string may be the only field disambiguating between releases. # noqa: E501
+ Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
- :param version: The version of this ReleaseEntity. # noqa: E501
- :type: str
+ :param edit_extra: The edit_extra of this ReleaseEntity. # noqa: E501
+ :type: dict(str, object)
"""
- self._version = version
+ self._edit_extra = edit_extra
@property
- def number(self):
- """Gets the number of this ReleaseEntity. # noqa: E501
+ def title(self):
+ """Gets the title of this ReleaseEntity. # noqa: E501
- For, eg, technical reports, which are published in series or assigned some other institutional or container-specific identifier. # noqa: E501
+ Required for valid entities. The title used in citations and for display. Sometimes the English translation of title e even if release content is not English. # noqa: E501
- :return: The number of this ReleaseEntity. # noqa: E501
+ :return: The title of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._number
+ return self._title
- @number.setter
- def number(self, number):
- """Sets the number of this ReleaseEntity.
+ @title.setter
+ def title(self, title):
+ """Sets the title of this ReleaseEntity.
- For, eg, technical reports, which are published in series or assigned some other institutional or container-specific identifier. # noqa: E501
+ Required for valid entities. The title used in citations and for display. Sometimes the English translation of title e even if release content is not English. # noqa: E501
- :param number: The number of this ReleaseEntity. # noqa: E501
+ :param title: The title of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._number = number
+ self._title = title
@property
- def pages(self):
- """Gets the pages of this ReleaseEntity. # noqa: E501
+ def subtitle(self):
+ """Gets the subtitle of this ReleaseEntity. # noqa: E501
- Either a single page number (\"first page\") or a range of pages separated by a dash (\"-\"). See guide for details. # noqa: E501
+ Subtitle of release. In many cases, better to merge with title than include as separate field (unless combined title would be very long). See guide for details. # noqa: E501
- :return: The pages of this ReleaseEntity. # noqa: E501
+ :return: The subtitle of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._pages
+ return self._subtitle
- @pages.setter
- def pages(self, pages):
- """Sets the pages of this ReleaseEntity.
+ @subtitle.setter
+ def subtitle(self, subtitle):
+ """Sets the subtitle of this ReleaseEntity.
- Either a single page number (\"first page\") or a range of pages separated by a dash (\"-\"). See guide for details. # noqa: E501
+ Subtitle of release. In many cases, better to merge with title than include as separate field (unless combined title would be very long). See guide for details. # noqa: E501
- :param pages: The pages of this ReleaseEntity. # noqa: E501
+ :param subtitle: The subtitle of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._pages = pages
+ self._subtitle = subtitle
@property
- def issue(self):
- """Gets the issue of this ReleaseEntity. # noqa: E501
+ def original_title(self):
+ """Gets the original_title of this ReleaseEntity. # noqa: E501
- Issue number of volume/container that this release was published in. Sometimes coresponds to a month number in the year, but can be any string. See guide. # noqa: E501
+ Title in original language if `title` field has been translated. See guide for details. # noqa: E501
- :return: The issue of this ReleaseEntity. # noqa: E501
+ :return: The original_title of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._issue
+ return self._original_title
- @issue.setter
- def issue(self, issue):
- """Sets the issue of this ReleaseEntity.
+ @original_title.setter
+ def original_title(self, original_title):
+ """Sets the original_title of this ReleaseEntity.
- Issue number of volume/container that this release was published in. Sometimes coresponds to a month number in the year, but can be any string. See guide. # noqa: E501
+ Title in original language if `title` field has been translated. See guide for details. # noqa: E501
- :param issue: The issue of this ReleaseEntity. # noqa: E501
+ :param original_title: The original_title of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._issue = issue
+ self._original_title = original_title
@property
- def volume(self):
- """Gets the volume of this ReleaseEntity. # noqa: E501
+ def work_id(self):
+ """Gets the work_id of this ReleaseEntity. # noqa: E501
- Volume number of container that this release was published in. Often corresponds to the \"Nth\" year of publication, but can be any string. See guide. # noqa: E501
+ Identifier of work this release is part of. In creation (POST) requests, a work entity will be created automatically if this field is not set. # noqa: E501
- :return: The volume of this ReleaseEntity. # noqa: E501
+ :return: The work_id of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._volume
+ return self._work_id
- @volume.setter
- def volume(self, volume):
- """Sets the volume of this ReleaseEntity.
+ @work_id.setter
+ def work_id(self, work_id):
+ """Sets the work_id of this ReleaseEntity.
- Volume number of container that this release was published in. Often corresponds to the \"Nth\" year of publication, but can be any string. See guide. # noqa: E501
+ Identifier of work this release is part of. In creation (POST) requests, a work entity will be created automatically if this field is not set. # noqa: E501
- :param volume: The volume of this ReleaseEntity. # noqa: E501
+ :param work_id: The work_id of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._volume = volume
+ self._work_id = work_id
@property
- def ext_ids(self):
- """Gets the ext_ids of this ReleaseEntity. # noqa: E501
+ def container(self):
+ """Gets the container of this ReleaseEntity. # noqa: E501
- Set of external identifiers for this release. # noqa: E501
- :return: The ext_ids of this ReleaseEntity. # noqa: E501
- :rtype: ReleaseExtIds
+ :return: The container of this ReleaseEntity. # noqa: E501
+ :rtype: ContainerEntity
"""
- return self._ext_ids
+ return self._container
- @ext_ids.setter
- def ext_ids(self, ext_ids):
- """Sets the ext_ids of this ReleaseEntity.
+ @container.setter
+ def container(self, container):
+ """Sets the container of this ReleaseEntity.
- Set of external identifiers for this release. # noqa: E501
- :param ext_ids: The ext_ids of this ReleaseEntity. # noqa: E501
- :type: ReleaseExtIds
+ :param container: The container of this ReleaseEntity. # noqa: E501
+ :type: ContainerEntity
"""
- if ext_ids is None:
- raise ValueError("Invalid value for `ext_ids`, must not be `None`") # noqa: E501
- self._ext_ids = ext_ids
+ self._container = container
@property
- def withdrawn_year(self):
- """Gets the withdrawn_year of this ReleaseEntity. # noqa: E501
+ def files(self):
+ """Gets the files of this ReleaseEntity. # noqa: E501
- Year corresponding with `withdrawn_date` like `release_year`/`release_date`. # noqa: E501
+ Complete file entities identified by `file_ids` field. Only included in GET responses when `files` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
- :return: The withdrawn_year of this ReleaseEntity. # noqa: E501
- :rtype: int
+ :return: The files of this ReleaseEntity. # noqa: E501
+ :rtype: list[FileEntity]
"""
- return self._withdrawn_year
+ return self._files
- @withdrawn_year.setter
- def withdrawn_year(self, withdrawn_year):
- """Sets the withdrawn_year of this ReleaseEntity.
+ @files.setter
+ def files(self, files):
+ """Sets the files of this ReleaseEntity.
- Year corresponding with `withdrawn_date` like `release_year`/`release_date`. # noqa: E501
+ Complete file entities identified by `file_ids` field. Only included in GET responses when `files` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
- :param withdrawn_year: The withdrawn_year of this ReleaseEntity. # noqa: E501
- :type: int
+ :param files: The files of this ReleaseEntity. # noqa: E501
+ :type: list[FileEntity]
"""
- self._withdrawn_year = withdrawn_year
+ self._files = files
@property
- def withdrawn_date(self):
- """Gets the withdrawn_date of this ReleaseEntity. # noqa: E501
+ def filesets(self):
+ """Gets the filesets of this ReleaseEntity. # noqa: E501
- Full date when this release was formally withdrawn (if applicable). ISO format, like `release_date`. # noqa: E501
+ Complete file entities identified by `filesets_ids` field. Only included in GET responses when `filesets` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
- :return: The withdrawn_date of this ReleaseEntity. # noqa: E501
- :rtype: date
+ :return: The filesets of this ReleaseEntity. # noqa: E501
+ :rtype: list[FilesetEntity]
"""
- return self._withdrawn_date
+ return self._filesets
- @withdrawn_date.setter
- def withdrawn_date(self, withdrawn_date):
- """Sets the withdrawn_date of this ReleaseEntity.
+ @filesets.setter
+ def filesets(self, filesets):
+ """Sets the filesets of this ReleaseEntity.
- Full date when this release was formally withdrawn (if applicable). ISO format, like `release_date`. # noqa: E501
+ Complete file entities identified by `filesets_ids` field. Only included in GET responses when `filesets` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
- :param withdrawn_date: The withdrawn_date of this ReleaseEntity. # noqa: E501
- :type: date
+ :param filesets: The filesets of this ReleaseEntity. # noqa: E501
+ :type: list[FilesetEntity]
"""
- self._withdrawn_date = withdrawn_date
+ self._filesets = filesets
@property
- def withdrawn_status(self):
- """Gets the withdrawn_status of this ReleaseEntity. # noqa: E501
+ def webcaptures(self):
+ """Gets the webcaptures of this ReleaseEntity. # noqa: E501
- Type of withdrawl or retraction of this release, if applicable. If release has not been withdrawn, should be `null` (aka, not set, not the string \"null\" or an empty string). # noqa: E501
+ Complete webcapture entities identified by `webcapture_ids` field. Only included in GET responses when `webcaptures` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
- :return: The withdrawn_status of this ReleaseEntity. # noqa: E501
- :rtype: str
+ :return: The webcaptures of this ReleaseEntity. # noqa: E501
+ :rtype: list[WebcaptureEntity]
"""
- return self._withdrawn_status
+ return self._webcaptures
- @withdrawn_status.setter
- def withdrawn_status(self, withdrawn_status):
- """Sets the withdrawn_status of this ReleaseEntity.
+ @webcaptures.setter
+ def webcaptures(self, webcaptures):
+ """Sets the webcaptures of this ReleaseEntity.
- Type of withdrawl or retraction of this release, if applicable. If release has not been withdrawn, should be `null` (aka, not set, not the string \"null\" or an empty string). # noqa: E501
+ Complete webcapture entities identified by `webcapture_ids` field. Only included in GET responses when `webcaptures` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
- :param withdrawn_status: The withdrawn_status of this ReleaseEntity. # noqa: E501
- :type: str
+ :param webcaptures: The webcaptures of this ReleaseEntity. # noqa: E501
+ :type: list[WebcaptureEntity]
"""
- self._withdrawn_status = withdrawn_status
+ self._webcaptures = webcaptures
@property
- def release_year(self):
- """Gets the release_year of this ReleaseEntity. # noqa: E501
+ def container_id(self):
+ """Gets the container_id of this ReleaseEntity. # noqa: E501
- Year when this release was formally published. Must match `release_date` if that field is set; this field exists because sometimes only the year is known. # noqa: E501
+ Used to link this release to a container entity that the release was published as part of. # noqa: E501
- :return: The release_year of this ReleaseEntity. # noqa: E501
- :rtype: int
+ :return: The container_id of this ReleaseEntity. # noqa: E501
+ :rtype: str
"""
- return self._release_year
+ return self._container_id
- @release_year.setter
- def release_year(self, release_year):
- """Sets the release_year of this ReleaseEntity.
+ @container_id.setter
+ def container_id(self, container_id):
+ """Sets the container_id of this ReleaseEntity.
- Year when this release was formally published. Must match `release_date` if that field is set; this field exists because sometimes only the year is known. # noqa: E501
+ Used to link this release to a container entity that the release was published as part of. # noqa: E501
- :param release_year: The release_year of this ReleaseEntity. # noqa: E501
- :type: int
+ :param container_id: The container_id of this ReleaseEntity. # noqa: E501
+ :type: str
"""
- self._release_year = release_year
+ self._container_id = container_id
@property
- def release_date(self):
- """Gets the release_date of this ReleaseEntity. # noqa: E501
+ def release_type(self):
+ """Gets the release_type of this ReleaseEntity. # noqa: E501
- Full date when this release was formally published. ISO format, like `2019-03-05`. See guide for semantics. # noqa: E501
+ \"Type\" or \"medium\" that this release is published as. See guide for valid values. # noqa: E501
- :return: The release_date of this ReleaseEntity. # noqa: E501
- :rtype: date
+ :return: The release_type of this ReleaseEntity. # noqa: E501
+ :rtype: str
"""
- return self._release_date
+ return self._release_type
- @release_date.setter
- def release_date(self, release_date):
- """Sets the release_date of this ReleaseEntity.
+ @release_type.setter
+ def release_type(self, release_type):
+ """Sets the release_type of this ReleaseEntity.
- Full date when this release was formally published. ISO format, like `2019-03-05`. See guide for semantics. # noqa: E501
+ \"Type\" or \"medium\" that this release is published as. See guide for valid values. # noqa: E501
- :param release_date: The release_date of this ReleaseEntity. # noqa: E501
- :type: date
+ :param release_type: The release_type of this ReleaseEntity. # noqa: E501
+ :type: str
"""
- self._release_date = release_date
+ self._release_type = release_type
@property
def release_stage(self):
@@ -631,400 +624,395 @@ class ReleaseEntity(object):
self._release_stage = release_stage
@property
- def release_type(self):
- """Gets the release_type of this ReleaseEntity. # noqa: E501
+ def release_date(self):
+ """Gets the release_date of this ReleaseEntity. # noqa: E501
- \"Type\" or \"medium\" that this release is published as. See guide for valid values. # noqa: E501
+ Full date when this release was formally published. ISO format, like `2019-03-05`. See guide for semantics. # noqa: E501
- :return: The release_type of this ReleaseEntity. # noqa: E501
- :rtype: str
+ :return: The release_date of this ReleaseEntity. # noqa: E501
+ :rtype: date
"""
- return self._release_type
+ return self._release_date
- @release_type.setter
- def release_type(self, release_type):
- """Sets the release_type of this ReleaseEntity.
+ @release_date.setter
+ def release_date(self, release_date):
+ """Sets the release_date of this ReleaseEntity.
- \"Type\" or \"medium\" that this release is published as. See guide for valid values. # noqa: E501
+ Full date when this release was formally published. ISO format, like `2019-03-05`. See guide for semantics. # noqa: E501
- :param release_type: The release_type of this ReleaseEntity. # noqa: E501
- :type: str
+ :param release_date: The release_date of this ReleaseEntity. # noqa: E501
+ :type: date
"""
- self._release_type = release_type
+ self._release_date = release_date
@property
- def container_id(self):
- """Gets the container_id of this ReleaseEntity. # noqa: E501
+ def release_year(self):
+ """Gets the release_year of this ReleaseEntity. # noqa: E501
- Used to link this release to a container entity that the release was published as part of. # noqa: E501
+ Year when this release was formally published. Must match `release_date` if that field is set; this field exists because sometimes only the year is known. # noqa: E501
- :return: The container_id of this ReleaseEntity. # noqa: E501
- :rtype: str
+ :return: The release_year of this ReleaseEntity. # noqa: E501
+ :rtype: int
"""
- return self._container_id
+ return self._release_year
- @container_id.setter
- def container_id(self, container_id):
- """Sets the container_id of this ReleaseEntity.
+ @release_year.setter
+ def release_year(self, release_year):
+ """Sets the release_year of this ReleaseEntity.
- Used to link this release to a container entity that the release was published as part of. # noqa: E501
+ Year when this release was formally published. Must match `release_date` if that field is set; this field exists because sometimes only the year is known. # noqa: E501
- :param container_id: The container_id of this ReleaseEntity. # noqa: E501
- :type: str
+ :param release_year: The release_year of this ReleaseEntity. # noqa: E501
+ :type: int
"""
- self._container_id = container_id
+ self._release_year = release_year
@property
- def webcaptures(self):
- """Gets the webcaptures of this ReleaseEntity. # noqa: E501
+ def withdrawn_status(self):
+ """Gets the withdrawn_status of this ReleaseEntity. # noqa: E501
- Complete webcapture entities identified by `webcapture_ids` field. Only included in GET responses when `webcaptures` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
+ Type of withdrawl or retraction of this release, if applicable. If release has not been withdrawn, should be `null` (aka, not set, not the string \"null\" or an empty string). # noqa: E501
- :return: The webcaptures of this ReleaseEntity. # noqa: E501
- :rtype: list[WebcaptureEntity]
+ :return: The withdrawn_status of this ReleaseEntity. # noqa: E501
+ :rtype: str
"""
- return self._webcaptures
+ return self._withdrawn_status
- @webcaptures.setter
- def webcaptures(self, webcaptures):
- """Sets the webcaptures of this ReleaseEntity.
+ @withdrawn_status.setter
+ def withdrawn_status(self, withdrawn_status):
+ """Sets the withdrawn_status of this ReleaseEntity.
- Complete webcapture entities identified by `webcapture_ids` field. Only included in GET responses when `webcaptures` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
+ Type of withdrawl or retraction of this release, if applicable. If release has not been withdrawn, should be `null` (aka, not set, not the string \"null\" or an empty string). # noqa: E501
- :param webcaptures: The webcaptures of this ReleaseEntity. # noqa: E501
- :type: list[WebcaptureEntity]
+ :param withdrawn_status: The withdrawn_status of this ReleaseEntity. # noqa: E501
+ :type: str
"""
- self._webcaptures = webcaptures
+ self._withdrawn_status = withdrawn_status
@property
- def filesets(self):
- """Gets the filesets of this ReleaseEntity. # noqa: E501
+ def withdrawn_date(self):
+ """Gets the withdrawn_date of this ReleaseEntity. # noqa: E501
- Complete file entities identified by `filesets_ids` field. Only included in GET responses when `filesets` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
+ Full date when this release was formally withdrawn (if applicable). ISO format, like `release_date`. # noqa: E501
- :return: The filesets of this ReleaseEntity. # noqa: E501
- :rtype: list[FilesetEntity]
+ :return: The withdrawn_date of this ReleaseEntity. # noqa: E501
+ :rtype: date
"""
- return self._filesets
+ return self._withdrawn_date
- @filesets.setter
- def filesets(self, filesets):
- """Sets the filesets of this ReleaseEntity.
+ @withdrawn_date.setter
+ def withdrawn_date(self, withdrawn_date):
+ """Sets the withdrawn_date of this ReleaseEntity.
- Complete file entities identified by `filesets_ids` field. Only included in GET responses when `filesets` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
+ Full date when this release was formally withdrawn (if applicable). ISO format, like `release_date`. # noqa: E501
- :param filesets: The filesets of this ReleaseEntity. # noqa: E501
- :type: list[FilesetEntity]
+ :param withdrawn_date: The withdrawn_date of this ReleaseEntity. # noqa: E501
+ :type: date
"""
- self._filesets = filesets
+ self._withdrawn_date = withdrawn_date
@property
- def files(self):
- """Gets the files of this ReleaseEntity. # noqa: E501
+ def withdrawn_year(self):
+ """Gets the withdrawn_year of this ReleaseEntity. # noqa: E501
- Complete file entities identified by `file_ids` field. Only included in GET responses when `files` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
+ Year corresponding with `withdrawn_date` like `release_year`/`release_date`. # noqa: E501
- :return: The files of this ReleaseEntity. # noqa: E501
- :rtype: list[FileEntity]
+ :return: The withdrawn_year of this ReleaseEntity. # noqa: E501
+ :rtype: int
"""
- return self._files
+ return self._withdrawn_year
- @files.setter
- def files(self, files):
- """Sets the files of this ReleaseEntity.
+ @withdrawn_year.setter
+ def withdrawn_year(self, withdrawn_year):
+ """Sets the withdrawn_year of this ReleaseEntity.
- Complete file entities identified by `file_ids` field. Only included in GET responses when `files` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
+ Year corresponding with `withdrawn_date` like `release_year`/`release_date`. # noqa: E501
- :param files: The files of this ReleaseEntity. # noqa: E501
- :type: list[FileEntity]
+ :param withdrawn_year: The withdrawn_year of this ReleaseEntity. # noqa: E501
+ :type: int
"""
- self._files = files
+ self._withdrawn_year = withdrawn_year
@property
- def container(self):
- """Gets the container of this ReleaseEntity. # noqa: E501
+ def ext_ids(self):
+ """Gets the ext_ids of this ReleaseEntity. # noqa: E501
- Complete container entity identified by `container_id` field. Only included in GET reponses when `container` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
- :return: The container of this ReleaseEntity. # noqa: E501
- :rtype: ContainerEntity
+ :return: The ext_ids of this ReleaseEntity. # noqa: E501
+ :rtype: ReleaseExtIds
"""
- return self._container
+ return self._ext_ids
- @container.setter
- def container(self, container):
- """Sets the container of this ReleaseEntity.
+ @ext_ids.setter
+ def ext_ids(self, ext_ids):
+ """Sets the ext_ids of this ReleaseEntity.
- Complete container entity identified by `container_id` field. Only included in GET reponses when `container` included in `expand` parameter; ignored in PUT or POST requests. # noqa: E501
- :param container: The container of this ReleaseEntity. # noqa: E501
- :type: ContainerEntity
+ :param ext_ids: The ext_ids of this ReleaseEntity. # noqa: E501
+ :type: ReleaseExtIds
"""
+ if ext_ids is None:
+ raise ValueError("Invalid value for `ext_ids`, must not be `None`") # noqa: E501
- self._container = container
+ self._ext_ids = ext_ids
@property
- def work_id(self):
- """Gets the work_id of this ReleaseEntity. # noqa: E501
+ def volume(self):
+ """Gets the volume of this ReleaseEntity. # noqa: E501
- Identifier of work this release is part of. In creation (POST) requests, a work entity will be created automatically if this field is not set. # noqa: E501
+ Volume number of container that this release was published in. Often corresponds to the \"Nth\" year of publication, but can be any string. See guide. # noqa: E501
- :return: The work_id of this ReleaseEntity. # noqa: E501
+ :return: The volume of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._work_id
+ return self._volume
- @work_id.setter
- def work_id(self, work_id):
- """Sets the work_id of this ReleaseEntity.
+ @volume.setter
+ def volume(self, volume):
+ """Sets the volume of this ReleaseEntity.
- Identifier of work this release is part of. In creation (POST) requests, a work entity will be created automatically if this field is not set. # noqa: E501
+ Volume number of container that this release was published in. Often corresponds to the \"Nth\" year of publication, but can be any string. See guide. # noqa: E501
- :param work_id: The work_id of this ReleaseEntity. # noqa: E501
+ :param volume: The volume of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._work_id = work_id
+ self._volume = volume
@property
- def original_title(self):
- """Gets the original_title of this ReleaseEntity. # noqa: E501
+ def issue(self):
+ """Gets the issue of this ReleaseEntity. # noqa: E501
- Title in original language if `title` field has been translated. See guide for details. # noqa: E501
+ Issue number of volume/container that this release was published in. Sometimes coresponds to a month number in the year, but can be any string. See guide. # noqa: E501
- :return: The original_title of this ReleaseEntity. # noqa: E501
+ :return: The issue of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._original_title
+ return self._issue
- @original_title.setter
- def original_title(self, original_title):
- """Sets the original_title of this ReleaseEntity.
+ @issue.setter
+ def issue(self, issue):
+ """Sets the issue of this ReleaseEntity.
- Title in original language if `title` field has been translated. See guide for details. # noqa: E501
+ Issue number of volume/container that this release was published in. Sometimes coresponds to a month number in the year, but can be any string. See guide. # noqa: E501
- :param original_title: The original_title of this ReleaseEntity. # noqa: E501
+ :param issue: The issue of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._original_title = original_title
+ self._issue = issue
@property
- def subtitle(self):
- """Gets the subtitle of this ReleaseEntity. # noqa: E501
+ def pages(self):
+ """Gets the pages of this ReleaseEntity. # noqa: E501
- Subtitle of release. In many cases, better to merge with title than include as separate field (unless combined title would be very long). See guide for details. # noqa: E501
+ Either a single page number (\"first page\") or a range of pages separated by a dash (\"-\"). See guide for details. # noqa: E501
- :return: The subtitle of this ReleaseEntity. # noqa: E501
+ :return: The pages of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._subtitle
+ return self._pages
- @subtitle.setter
- def subtitle(self, subtitle):
- """Sets the subtitle of this ReleaseEntity.
+ @pages.setter
+ def pages(self, pages):
+ """Sets the pages of this ReleaseEntity.
- Subtitle of release. In many cases, better to merge with title than include as separate field (unless combined title would be very long). See guide for details. # noqa: E501
+ Either a single page number (\"first page\") or a range of pages separated by a dash (\"-\"). See guide for details. # noqa: E501
- :param subtitle: The subtitle of this ReleaseEntity. # noqa: E501
+ :param pages: The pages of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._subtitle = subtitle
+ self._pages = pages
@property
- def title(self):
- """Gets the title of this ReleaseEntity. # noqa: E501
+ def number(self):
+ """Gets the number of this ReleaseEntity. # noqa: E501
- Required for valid entities. The title used in citations and for display. Sometimes the English translation of title e even if release content is not English. # noqa: E501
+ For, eg, technical reports, which are published in series or assigned some other institutional or container-specific identifier. # noqa: E501
- :return: The title of this ReleaseEntity. # noqa: E501
+ :return: The number of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._title
+ return self._number
- @title.setter
- def title(self, title):
- """Sets the title of this ReleaseEntity.
+ @number.setter
+ def number(self, number):
+ """Sets the number of this ReleaseEntity.
- Required for valid entities. The title used in citations and for display. Sometimes the English translation of title e even if release content is not English. # noqa: E501
+ For, eg, technical reports, which are published in series or assigned some other institutional or container-specific identifier. # noqa: E501
- :param title: The title of this ReleaseEntity. # noqa: E501
+ :param number: The number of this ReleaseEntity. # noqa: E501
:type: str
"""
- self._title = title
+ self._number = number
@property
- def state(self):
- """Gets the state of this ReleaseEntity. # noqa: E501
+ def version(self):
+ """Gets the version of this ReleaseEntity. # noqa: E501
+ For, eg, updated technical reports or software packages, where the version string may be the only field disambiguating between releases. # noqa: E501
- :return: The state of this ReleaseEntity. # noqa: E501
+ :return: The version of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._state
+ return self._version
- @state.setter
- def state(self, state):
- """Sets the state of this ReleaseEntity.
+ @version.setter
+ def version(self, version):
+ """Sets the version of this ReleaseEntity.
+ For, eg, updated technical reports or software packages, where the version string may be the only field disambiguating between releases. # noqa: E501
- :param state: The state of this ReleaseEntity. # noqa: E501
+ :param version: The version of this ReleaseEntity. # noqa: E501
:type: str
"""
- allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
- if state not in allowed_values:
- raise ValueError(
- "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
- .format(state, allowed_values)
- )
- self._state = state
+ self._version = version
@property
- def ident(self):
- """Gets the ident of this ReleaseEntity. # noqa: E501
+ def publisher(self):
+ """Gets the publisher of this ReleaseEntity. # noqa: E501
- base32-encoded unique identifier # noqa: E501
+ Name, usually English, of the entity or institution responsible for publication of this release. Not necessarily the imprint/brand. See guide. # noqa: E501
- :return: The ident of this ReleaseEntity. # noqa: E501
+ :return: The publisher of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._ident
+ return self._publisher
- @ident.setter
- def ident(self, ident):
- """Sets the ident of this ReleaseEntity.
+ @publisher.setter
+ def publisher(self, publisher):
+ """Sets the publisher of this ReleaseEntity.
- base32-encoded unique identifier # noqa: E501
+ Name, usually English, of the entity or institution responsible for publication of this release. Not necessarily the imprint/brand. See guide. # noqa: E501
- :param ident: The ident of this ReleaseEntity. # noqa: E501
+ :param publisher: The publisher of this ReleaseEntity. # noqa: E501
:type: str
"""
- if ident is not None and len(ident) > 26:
- raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
- if ident is not None and len(ident) < 26:
- raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
- if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
- raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._ident = ident
+ self._publisher = publisher
@property
- def revision(self):
- """Gets the revision of this ReleaseEntity. # noqa: E501
+ def language(self):
+ """Gets the language of this ReleaseEntity. # noqa: E501
- UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+ Primary language of the content of the full release. Two-letter RFC1766/ISO639-1 language code, with some custom extensions/additions. See guide. # noqa: E501
- :return: The revision of this ReleaseEntity. # noqa: E501
+ :return: The language of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._revision
+ return self._language
- @revision.setter
- def revision(self, revision):
- """Sets the revision of this ReleaseEntity.
+ @language.setter
+ def language(self, language):
+ """Sets the language of this ReleaseEntity.
- UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+ Primary language of the content of the full release. Two-letter RFC1766/ISO639-1 language code, with some custom extensions/additions. See guide. # noqa: E501
- :param revision: The revision of this ReleaseEntity. # noqa: E501
+ :param language: The language of this ReleaseEntity. # noqa: E501
:type: str
"""
- if revision is not None and len(revision) > 36:
- raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
- if revision is not None and len(revision) < 36:
- raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
- if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
- raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
- self._revision = revision
+ self._language = language
@property
- def redirect(self):
- """Gets the redirect of this ReleaseEntity. # noqa: E501
+ def license_slug(self):
+ """Gets the license_slug of this ReleaseEntity. # noqa: E501
- base32-encoded unique identifier # noqa: E501
+ Short string (slug) name of license under which release is openly published (if applicable). # noqa: E501
- :return: The redirect of this ReleaseEntity. # noqa: E501
+ :return: The license_slug of this ReleaseEntity. # noqa: E501
:rtype: str
"""
- return self._redirect
+ return self._license_slug
- @redirect.setter
- def redirect(self, redirect):
- """Sets the redirect of this ReleaseEntity.
+ @license_slug.setter
+ def license_slug(self, license_slug):
+ """Sets the license_slug of this ReleaseEntity.
- base32-encoded unique identifier # noqa: E501
+ Short string (slug) name of license under which release is openly published (if applicable). # noqa: E501
- :param redirect: The redirect of this ReleaseEntity. # noqa: E501
+ :param license_slug: The license_slug of this ReleaseEntity. # noqa: E501
:type: str
"""
- if redirect is not None and len(redirect) > 26:
- raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
- if redirect is not None and len(redirect) < 26:
- raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
- if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
- raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._redirect = redirect
+ self._license_slug = license_slug
@property
- def extra(self):
- """Gets the extra of this ReleaseEntity. # noqa: E501
+ def contribs(self):
+ """Gets the contribs of this ReleaseEntity. # noqa: E501
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :return: The extra of this ReleaseEntity. # noqa: E501
- :rtype: object
+ :return: The contribs of this ReleaseEntity. # noqa: E501
+ :rtype: list[ReleaseContrib]
"""
- return self._extra
+ return self._contribs
- @extra.setter
- def extra(self, extra):
- """Sets the extra of this ReleaseEntity.
+ @contribs.setter
+ def contribs(self, contribs):
+ """Sets the contribs of this ReleaseEntity.
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :param extra: The extra of this ReleaseEntity. # noqa: E501
- :type: object
+ :param contribs: The contribs of this ReleaseEntity. # noqa: E501
+ :type: list[ReleaseContrib]
"""
- self._extra = extra
+ self._contribs = contribs
@property
- def edit_extra(self):
- """Gets the edit_extra of this ReleaseEntity. # noqa: E501
+ def refs(self):
+ """Gets the refs of this ReleaseEntity. # noqa: E501
- Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
- :return: The edit_extra of this ReleaseEntity. # noqa: E501
- :rtype: object
+ :return: The refs of this ReleaseEntity. # noqa: E501
+ :rtype: list[ReleaseRef]
"""
- return self._edit_extra
+ return self._refs
- @edit_extra.setter
- def edit_extra(self, edit_extra):
- """Sets the edit_extra of this ReleaseEntity.
+ @refs.setter
+ def refs(self, refs):
+ """Sets the refs of this ReleaseEntity.
- Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
- :param edit_extra: The edit_extra of this ReleaseEntity. # noqa: E501
- :type: object
+ :param refs: The refs of this ReleaseEntity. # noqa: E501
+ :type: list[ReleaseRef]
"""
- self._edit_extra = edit_extra
+ self._refs = refs
+
+ @property
+ def abstracts(self):
+ """Gets the abstracts of this ReleaseEntity. # noqa: E501
+
+
+ :return: The abstracts of this ReleaseEntity. # noqa: E501
+ :rtype: list[ReleaseAbstract]
+ """
+ return self._abstracts
+
+ @abstracts.setter
+ def abstracts(self, abstracts):
+ """Sets the abstracts of this ReleaseEntity.
+
+
+ :param abstracts: The abstracts of this ReleaseEntity. # noqa: E501
+ :type: list[ReleaseAbstract]
+ """
+
+ self._abstracts = abstracts
def to_dict(self):
"""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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py b/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py
index 3b0e3e70..c986e1fe 100644
--- a/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.py
+++ b/python_openapi_client/fatcat_openapi_client/models/release_ext_ids.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 ReleaseExtIds(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 = {
'doi': 'str',
'wikidata_qid': 'str',
'isbn13': 'str',
@@ -57,7 +58,7 @@ class ReleaseExtIds(object):
}
def __init__(self, doi=None, wikidata_qid=None, isbn13=None, pmid=None, pmcid=None, core=None, arxiv=None, jstor=None, ark=None, mag=None): # noqa: E501
- """ReleaseExtIds - a model defined in Swagger""" # noqa: E501
+ """ReleaseExtIds - a model defined in OpenAPI""" # noqa: E501
self._doi = None
self._wikidata_qid = None
@@ -326,7 +327,7 @@ class ReleaseExtIds(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/release_ref.py b/python_openapi_client/fatcat_openapi_client/models/release_ref.py
index 42131973..1fd5288d 100644
--- a/python_openapi_client/fatcat_openapi_client/models/release_ref.py
+++ b/python_openapi_client/fatcat_openapi_client/models/release_ref.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,22 +18,23 @@ import six
class ReleaseRef(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 = {
'index': 'int',
'target_release_id': 'str',
- 'extra': 'object',
+ 'extra': 'dict(str, object)',
'key': 'str',
'year': 'int',
'container_name': 'str',
@@ -53,7 +54,7 @@ class ReleaseRef(object):
}
def __init__(self, index=None, target_release_id=None, extra=None, key=None, year=None, container_name=None, title=None, locator=None): # noqa: E501
- """ReleaseRef - a model defined in Swagger""" # noqa: E501
+ """ReleaseRef - a model defined in OpenAPI""" # noqa: E501
self._index = None
self._target_release_id = None
@@ -129,8 +130,8 @@ class ReleaseRef(object):
raise ValueError("Invalid value for `target_release_id`, length must be less than or equal to `26`") # noqa: E501
if target_release_id is not None and len(target_release_id) < 26:
raise ValueError("Invalid value for `target_release_id`, length must be greater than or equal to `26`") # noqa: E501
- if target_release_id is not None and not re.search('[a-zA-Z2-7]{26}', target_release_id): # noqa: E501
- raise ValueError("Invalid value for `target_release_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if target_release_id is not None and not re.search(r'[a-zA-Z2-7]{26}', target_release_id): # noqa: E501
+ raise ValueError(r"Invalid value for `target_release_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
self._target_release_id = target_release_id
@@ -141,7 +142,7 @@ class ReleaseRef(object):
Additional free-form JSON metadata about this citation. Generally follows Citation Style Language (CSL) JSON schema. See guide for details. # noqa: E501
:return: The extra of this ReleaseRef. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._extra
@@ -152,7 +153,7 @@ class ReleaseRef(object):
Additional free-form JSON metadata about this citation. Generally follows Citation Style Language (CSL) JSON schema. See guide for details. # noqa: E501
:param extra: The extra of this ReleaseRef. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._extra = extra
@@ -276,7 +277,7 @@ class ReleaseRef(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/success.py b/python_openapi_client/fatcat_openapi_client/models/success.py
index 1e7a3f6c..7313d652 100644
--- a/python_openapi_client/fatcat_openapi_client/models/success.py
+++ b/python_openapi_client/fatcat_openapi_client/models/success.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 Success(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 = {
'success': 'bool',
'message': 'str'
}
@@ -41,7 +42,7 @@ class Success(object):
}
def __init__(self, success=None, message=None): # noqa: E501
- """Success - a model defined in Swagger""" # noqa: E501
+ """Success - a model defined in OpenAPI""" # noqa: E501
self._success = None
self._message = None
@@ -100,7 +101,7 @@ class Success(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.py
index 8a0957b2..1a021d9b 100644
--- a/python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.py
+++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_auto_batch.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
"""
@@ -16,24 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-from fatcat_openapi_client.models.webcapture_entity import WebcaptureEntity # noqa: F401,E501
-
class WebcaptureAutoBatch(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 = {
'editgroup': 'Editgroup',
'entity_list': 'list[WebcaptureEntity]'
}
@@ -44,7 +42,7 @@ class WebcaptureAutoBatch(object):
}
def __init__(self, editgroup=None, entity_list=None): # noqa: E501
- """WebcaptureAutoBatch - a model defined in Swagger""" # noqa: E501
+ """WebcaptureAutoBatch - a model defined in OpenAPI""" # noqa: E501
self._editgroup = None
self._entity_list = None
@@ -103,7 +101,7 @@ class WebcaptureAutoBatch(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(
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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py
index 642d156d..82363c23 100644
--- a/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.py
+++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_entity.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
"""
@@ -16,228 +16,229 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.webcapture_cdx_line import WebcaptureCdxLine # noqa: F401,E501
-from fatcat_openapi_client.models.webcapture_url import WebcaptureUrl # noqa: F401,E501
-
class WebcaptureEntity(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 = {
- 'releases': 'list[ReleaseEntity]',
- 'release_ids': 'list[str]',
- 'timestamp': 'datetime',
- 'original_url': 'str',
- 'archive_urls': 'list[WebcaptureUrl]',
- 'cdx': 'list[WebcaptureCdxLine]',
- 'edit_extra': 'object',
- 'extra': 'object',
- 'redirect': 'str',
- 'revision': 'str',
+ openapi_types = {
+ 'state': 'str',
'ident': 'str',
- 'state': 'str'
+ 'revision': 'str',
+ 'redirect': 'str',
+ 'extra': 'dict(str, object)',
+ 'edit_extra': 'dict(str, object)',
+ 'cdx': 'list[WebcaptureCdxLine]',
+ 'archive_urls': 'list[WebcaptureUrl]',
+ 'original_url': 'str',
+ 'timestamp': 'datetime',
+ 'release_ids': 'list[str]',
+ 'releases': 'list[ReleaseEntity]'
}
attribute_map = {
- 'releases': 'releases',
- 'release_ids': 'release_ids',
- 'timestamp': 'timestamp',
- 'original_url': 'original_url',
- 'archive_urls': 'archive_urls',
- 'cdx': 'cdx',
- 'edit_extra': 'edit_extra',
- 'extra': 'extra',
- 'redirect': 'redirect',
- 'revision': 'revision',
+ 'state': 'state',
'ident': 'ident',
- 'state': 'state'
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'extra': 'extra',
+ 'edit_extra': 'edit_extra',
+ 'cdx': 'cdx',
+ 'archive_urls': 'archive_urls',
+ 'original_url': 'original_url',
+ 'timestamp': 'timestamp',
+ 'release_ids': 'release_ids',
+ 'releases': 'releases'
}
- 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
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None, cdx=None, archive_urls=None, original_url=None, timestamp=None, release_ids=None, releases=None): # noqa: E501
+ """WebcaptureEntity - a model defined in OpenAPI""" # noqa: E501
- self._releases = None
- self._release_ids = None
- self._timestamp = None
- self._original_url = None
- self._archive_urls = None
- self._cdx = None
- self._edit_extra = None
- self._extra = None
- self._redirect = None
- self._revision = None
- self._ident = None
self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._extra = None
+ self._edit_extra = None
+ self._cdx = None
+ self._archive_urls = None
+ self._original_url = None
+ self._timestamp = None
+ self._release_ids = None
+ self._releases = 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:
- self.timestamp = timestamp
- if original_url is not None:
- self.original_url = original_url
- if archive_urls is not None:
- self.archive_urls = archive_urls
- if cdx is not None:
- self.cdx = cdx
- if edit_extra is not None:
- self.edit_extra = edit_extra
- if extra is not None:
- self.extra = extra
- if redirect is not None:
- self.redirect = redirect
- if revision is not None:
- self.revision = revision
- if ident is not None:
- self.ident = ident
if state is not None:
self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if redirect is not None:
+ self.redirect = redirect
+ if extra is not None:
+ self.extra = extra
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
+ if cdx is not None:
+ self.cdx = cdx
+ if archive_urls is not None:
+ self.archive_urls = archive_urls
+ if original_url is not None:
+ self.original_url = original_url
+ if timestamp is not None:
+ self.timestamp = timestamp
+ if release_ids is not None:
+ self.release_ids = release_ids
+ if releases is not None:
+ self.releases = releases
@property
- def releases(self):
- """Gets the releases of this WebcaptureEntity. # noqa: E501
-
- Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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.
-
- Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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
+ def state(self):
+ """Gets the state of this WebcaptureEntity. # noqa: E501
- Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. # noqa: E501
- :return: The release_ids of this WebcaptureEntity. # noqa: E501
- :rtype: list[str]
+ :return: The state of this WebcaptureEntity. # noqa: E501
+ :rtype: str
"""
- return self._release_ids
+ return self._state
- @release_ids.setter
- def release_ids(self, release_ids):
- """Sets the release_ids of this WebcaptureEntity.
+ @state.setter
+ def state(self, state):
+ """Sets the state of this WebcaptureEntity.
- Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. # noqa: E501
- :param release_ids: The release_ids of this WebcaptureEntity. # noqa: E501
- :type: list[str]
+ :param state: The state of this WebcaptureEntity. # noqa: E501
+ :type: str
"""
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
- self._release_ids = release_ids
+ self._state = state
@property
- def timestamp(self):
- """Gets the timestamp of this WebcaptureEntity. # noqa: E501
+ def ident(self):
+ """Gets the ident of this WebcaptureEntity. # noqa: E501
- Same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Should generally be the timestamp of capture of the primary resource URL. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :return: The timestamp of this WebcaptureEntity. # noqa: E501
- :rtype: datetime
+ :return: The ident of this WebcaptureEntity. # noqa: E501
+ :rtype: str
"""
- return self._timestamp
+ return self._ident
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this WebcaptureEntity.
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this WebcaptureEntity.
- Same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Should generally be the timestamp of capture of the primary resource URL. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :param timestamp: The timestamp of this WebcaptureEntity. # noqa: E501
- :type: datetime
+ :param ident: The ident of this WebcaptureEntity. # noqa: E501
+ :type: str
"""
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search(r'[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError(r"Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._timestamp = timestamp
+ self._ident = ident
@property
- def original_url(self):
- """Gets the original_url of this WebcaptureEntity. # noqa: E501
+ def revision(self):
+ """Gets the revision of this WebcaptureEntity. # noqa: E501
- Base URL of the primary resource this is a capture of # noqa: E501
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :return: The original_url of this WebcaptureEntity. # noqa: E501
+ :return: The revision of this WebcaptureEntity. # noqa: E501
:rtype: str
"""
- return self._original_url
+ return self._revision
- @original_url.setter
- def original_url(self, original_url):
- """Sets the original_url of this WebcaptureEntity.
+ @revision.setter
+ def revision(self, revision):
+ """Sets the revision of this WebcaptureEntity.
- Base URL of the primary resource this is a capture of # noqa: E501
+ UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
- :param original_url: The original_url of this WebcaptureEntity. # noqa: E501
+ :param revision: The revision of this WebcaptureEntity. # noqa: E501
:type: str
"""
+ if revision is not None and len(revision) > 36:
+ raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
+ if revision is not None and len(revision) < 36:
+ raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
+ if revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError(r"Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
- self._original_url = original_url
+ self._revision = revision
@property
- def archive_urls(self):
- """Gets the archive_urls of this WebcaptureEntity. # noqa: E501
+ def redirect(self):
+ """Gets the redirect of this WebcaptureEntity. # noqa: E501
+ base32-encoded unique identifier # noqa: E501
- :return: The archive_urls of this WebcaptureEntity. # noqa: E501
- :rtype: list[WebcaptureUrl]
+ :return: The redirect of this WebcaptureEntity. # noqa: E501
+ :rtype: str
"""
- return self._archive_urls
+ return self._redirect
- @archive_urls.setter
- def archive_urls(self, archive_urls):
- """Sets the archive_urls of this WebcaptureEntity.
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this WebcaptureEntity.
+ base32-encoded unique identifier # noqa: E501
- :param archive_urls: The archive_urls of this WebcaptureEntity. # noqa: E501
- :type: list[WebcaptureUrl]
+ :param redirect: The redirect of this WebcaptureEntity. # noqa: E501
+ :type: str
"""
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search(r'[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError(r"Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._archive_urls = archive_urls
+ self._redirect = redirect
@property
- def cdx(self):
- """Gets the cdx of this WebcaptureEntity. # noqa: E501
+ def extra(self):
+ """Gets the extra of this WebcaptureEntity. # noqa: E501
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :return: The cdx of this WebcaptureEntity. # noqa: E501
- :rtype: list[WebcaptureCdxLine]
+ :return: The extra of this WebcaptureEntity. # noqa: E501
+ :rtype: dict(str, object)
"""
- return self._cdx
+ return self._extra
- @cdx.setter
- def cdx(self, cdx):
- """Sets the cdx of this WebcaptureEntity.
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this WebcaptureEntity.
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :param cdx: The cdx of this WebcaptureEntity. # noqa: E501
- :type: list[WebcaptureCdxLine]
+ :param extra: The extra of this WebcaptureEntity. # noqa: E501
+ :type: dict(str, object)
"""
- self._cdx = cdx
+ self._extra = extra
@property
def edit_extra(self):
@@ -246,7 +247,7 @@ class WebcaptureEntity(object):
Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
:return: The edit_extra of this WebcaptureEntity. # noqa: E501
- :rtype: object
+ :rtype: dict(str, object)
"""
return self._edit_extra
@@ -257,153 +258,150 @@ class WebcaptureEntity(object):
Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
:param edit_extra: The edit_extra of this WebcaptureEntity. # noqa: E501
- :type: object
+ :type: dict(str, object)
"""
self._edit_extra = edit_extra
@property
- def extra(self):
- """Gets the extra of this WebcaptureEntity. # noqa: E501
+ def cdx(self):
+ """Gets the cdx of this WebcaptureEntity. # noqa: E501
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :return: The extra of this WebcaptureEntity. # noqa: E501
- :rtype: object
+ :return: The cdx of this WebcaptureEntity. # noqa: E501
+ :rtype: list[WebcaptureCdxLine]
"""
- return self._extra
+ return self._cdx
- @extra.setter
- def extra(self, extra):
- """Sets the extra of this WebcaptureEntity.
+ @cdx.setter
+ def cdx(self, cdx):
+ """Sets the cdx of this WebcaptureEntity.
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :param extra: The extra of this WebcaptureEntity. # noqa: E501
- :type: object
+ :param cdx: The cdx of this WebcaptureEntity. # noqa: E501
+ :type: list[WebcaptureCdxLine]
"""
- self._extra = extra
+ self._cdx = cdx
@property
- def redirect(self):
- """Gets the redirect of this WebcaptureEntity. # noqa: E501
+ def archive_urls(self):
+ """Gets the archive_urls of this WebcaptureEntity. # noqa: E501
- base32-encoded unique identifier # noqa: E501
- :return: The redirect of this WebcaptureEntity. # noqa: E501
- :rtype: str
+ :return: The archive_urls of this WebcaptureEntity. # noqa: E501
+ :rtype: list[WebcaptureUrl]
"""
- return self._redirect
+ return self._archive_urls
- @redirect.setter
- def redirect(self, redirect):
- """Sets the redirect of this WebcaptureEntity.
+ @archive_urls.setter
+ def archive_urls(self, archive_urls):
+ """Sets the archive_urls of this WebcaptureEntity.
- base32-encoded unique identifier # noqa: E501
- :param redirect: The redirect of this WebcaptureEntity. # noqa: E501
- :type: str
+ :param archive_urls: The archive_urls of this WebcaptureEntity. # noqa: E501
+ :type: list[WebcaptureUrl]
"""
- if redirect is not None and len(redirect) > 26:
- raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
- if redirect is not None and len(redirect) < 26:
- raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
- if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
- raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._redirect = redirect
+ self._archive_urls = archive_urls
@property
- def revision(self):
- """Gets the revision of this WebcaptureEntity. # noqa: E501
+ def original_url(self):
+ """Gets the original_url of this WebcaptureEntity. # noqa: E501
- UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+ Base URL of the primary resource this is a capture of # noqa: E501
- :return: The revision of this WebcaptureEntity. # noqa: E501
+ :return: The original_url of this WebcaptureEntity. # noqa: E501
:rtype: str
"""
- return self._revision
+ return self._original_url
- @revision.setter
- def revision(self, revision):
- """Sets the revision of this WebcaptureEntity.
+ @original_url.setter
+ def original_url(self, original_url):
+ """Sets the original_url of this WebcaptureEntity.
- UUID (lower-case, dash-separated, hex-encoded 128-bit) # noqa: E501
+ Base URL of the primary resource this is a capture of # noqa: E501
- :param revision: The revision of this WebcaptureEntity. # noqa: E501
+ :param original_url: The original_url of this WebcaptureEntity. # noqa: E501
:type: str
"""
- if revision is not None and len(revision) > 36:
- raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
- if revision is not None and len(revision) < 36:
- raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
- if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
- raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
- self._revision = revision
+ self._original_url = original_url
@property
- def ident(self):
- """Gets the ident of this WebcaptureEntity. # noqa: E501
+ def timestamp(self):
+ """Gets the timestamp of this WebcaptureEntity. # noqa: E501
- base32-encoded unique identifier # noqa: E501
+ Same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Should generally be the timestamp of capture of the primary resource URL. # noqa: E501
- :return: The ident of this WebcaptureEntity. # noqa: E501
- :rtype: str
+ :return: The timestamp of this WebcaptureEntity. # noqa: E501
+ :rtype: datetime
"""
- return self._ident
+ return self._timestamp
- @ident.setter
- def ident(self, ident):
- """Sets the ident of this WebcaptureEntity.
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this WebcaptureEntity.
- base32-encoded unique identifier # noqa: E501
+ Same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Should generally be the timestamp of capture of the primary resource URL. # noqa: E501
- :param ident: The ident of this WebcaptureEntity. # noqa: E501
- :type: str
+ :param timestamp: The timestamp of this WebcaptureEntity. # noqa: E501
+ :type: datetime
"""
- if ident is not None and len(ident) > 26:
- raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
- if ident is not None and len(ident) < 26:
- raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
- if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
- raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._ident = ident
+ self._timestamp = timestamp
@property
- def state(self):
- """Gets the state of this WebcaptureEntity. # noqa: E501
+ def release_ids(self):
+ """Gets the release_ids of this WebcaptureEntity. # noqa: E501
+ Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. # noqa: E501
- :return: The state of this WebcaptureEntity. # noqa: E501
- :rtype: str
+ :return: The release_ids of this WebcaptureEntity. # noqa: E501
+ :rtype: list[str]
"""
- return self._state
+ return self._release_ids
- @state.setter
- def state(self, state):
- """Sets the state of this WebcaptureEntity.
+ @release_ids.setter
+ def release_ids(self, release_ids):
+ """Sets the release_ids of this WebcaptureEntity.
+ Set of identifier of release entities this fileset represents a full manifestation of. Usually a single release. # noqa: E501
- :param state: The state of this WebcaptureEntity. # noqa: E501
- :type: str
+ :param release_ids: The release_ids of this WebcaptureEntity. # noqa: E501
+ :type: list[str]
"""
- allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
- if state not in allowed_values:
- raise ValueError(
- "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
- .format(state, allowed_values)
- )
- self._state = state
+ self._release_ids = release_ids
+
+ @property
+ def releases(self):
+ """Gets the releases of this WebcaptureEntity. # noqa: E501
+
+ Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # 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.
+
+ Full release entities, included in GET responses when `releases` included in `expand` parameter. Ignored if included in PUT or POST requests. # noqa: E501
+
+ :param releases: The releases of this WebcaptureEntity. # noqa: E501
+ :type: list[ReleaseEntity]
+ """
+
+ self._releases = releases
def to_dict(self):
"""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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/webcapture_url.py b/python_openapi_client/fatcat_openapi_client/models/webcapture_url.py
index 881263bf..f9740c61 100644
--- a/python_openapi_client/fatcat_openapi_client/models/webcapture_url.py
+++ b/python_openapi_client/fatcat_openapi_client/models/webcapture_url.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 WebcaptureUrl(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 = {
'url': 'str',
'rel': 'str'
}
@@ -41,7 +42,7 @@ class WebcaptureUrl(object):
}
def __init__(self, url=None, rel=None): # noqa: E501
- """WebcaptureUrl - a model defined in Swagger""" # noqa: E501
+ """WebcaptureUrl - a model defined in OpenAPI""" # noqa: E501
self._url = None
self._rel = None
@@ -104,7 +105,7 @@ class WebcaptureUrl(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/work_auto_batch.py b/python_openapi_client/fatcat_openapi_client/models/work_auto_batch.py
index 475cf379..b403c850 100644
--- a/python_openapi_client/fatcat_openapi_client/models/work_auto_batch.py
+++ b/python_openapi_client/fatcat_openapi_client/models/work_auto_batch.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
"""
@@ -16,24 +16,22 @@ import re # noqa: F401
import six
-from fatcat_openapi_client.models.editgroup import Editgroup # noqa: F401,E501
-from fatcat_openapi_client.models.work_entity import WorkEntity # noqa: F401,E501
-
class WorkAutoBatch(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 = {
'editgroup': 'Editgroup',
'entity_list': 'list[WorkEntity]'
}
@@ -44,7 +42,7 @@ class WorkAutoBatch(object):
}
def __init__(self, editgroup=None, entity_list=None): # noqa: E501
- """WorkAutoBatch - a model defined in Swagger""" # noqa: E501
+ """WorkAutoBatch - a model defined in OpenAPI""" # noqa: E501
self._editgroup = None
self._entity_list = None
@@ -103,7 +101,7 @@ class WorkAutoBatch(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(
diff --git a/python_openapi_client/fatcat_openapi_client/models/work_entity.py b/python_openapi_client/fatcat_openapi_client/models/work_entity.py
index 4ddcf7a5..25f81e96 100644
--- a/python_openapi_client/fatcat_openapi_client/models/work_entity.py
+++ b/python_openapi_client/fatcat_openapi_client/models/work_entity.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,134 +18,116 @@ import six
class WorkEntity(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 = {
- 'edit_extra': 'object',
- 'extra': 'object',
- 'redirect': 'str',
- 'revision': 'str',
+ openapi_types = {
+ 'state': 'str',
'ident': 'str',
- 'state': 'str'
+ 'revision': 'str',
+ 'redirect': 'str',
+ 'extra': 'dict(str, object)',
+ 'edit_extra': 'dict(str, object)'
}
attribute_map = {
- 'edit_extra': 'edit_extra',
- 'extra': 'extra',
- 'redirect': 'redirect',
- 'revision': 'revision',
+ 'state': 'state',
'ident': 'ident',
- 'state': 'state'
+ 'revision': 'revision',
+ 'redirect': 'redirect',
+ 'extra': 'extra',
+ 'edit_extra': 'edit_extra'
}
- def __init__(self, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501
- """WorkEntity - a model defined in Swagger""" # noqa: E501
+ def __init__(self, state=None, ident=None, revision=None, redirect=None, extra=None, edit_extra=None): # noqa: E501
+ """WorkEntity - a model defined in OpenAPI""" # noqa: E501
- self._edit_extra = None
- self._extra = None
- self._redirect = None
- self._revision = None
- self._ident = None
self._state = None
+ self._ident = None
+ self._revision = None
+ self._redirect = None
+ self._extra = None
+ self._edit_extra = None
self.discriminator = None
- if edit_extra is not None:
- self.edit_extra = edit_extra
- if extra is not None:
- self.extra = extra
- if redirect is not None:
- self.redirect = redirect
- if revision is not None:
- self.revision = revision
- if ident is not None:
- self.ident = ident
if state is not None:
self.state = state
+ if ident is not None:
+ self.ident = ident
+ if revision is not None:
+ self.revision = revision
+ if redirect is not None:
+ self.redirect = redirect
+ if extra is not None:
+ self.extra = extra
+ if edit_extra is not None:
+ self.edit_extra = edit_extra
@property
- def edit_extra(self):
- """Gets the edit_extra of this WorkEntity. # noqa: E501
-
- Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
-
- :return: The edit_extra of this WorkEntity. # noqa: E501
- :rtype: object
- """
- return self._edit_extra
-
- @edit_extra.setter
- def edit_extra(self, edit_extra):
- """Sets the edit_extra of this WorkEntity.
-
- Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
-
- :param edit_extra: The edit_extra of this WorkEntity. # noqa: E501
- :type: object
- """
-
- self._edit_extra = edit_extra
-
- @property
- def extra(self):
- """Gets the extra of this WorkEntity. # noqa: E501
+ def state(self):
+ """Gets the state of this WorkEntity. # noqa: E501
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :return: The extra of this WorkEntity. # noqa: E501
- :rtype: object
+ :return: The state of this WorkEntity. # noqa: E501
+ :rtype: str
"""
- return self._extra
+ return self._state
- @extra.setter
- def extra(self, extra):
- """Sets the extra of this WorkEntity.
+ @state.setter
+ def state(self, state):
+ """Sets the state of this WorkEntity.
- Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :param extra: The extra of this WorkEntity. # noqa: E501
- :type: object
+ :param state: The state of this WorkEntity. # noqa: E501
+ :type: str
"""
+ allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
+ if state not in allowed_values:
+ raise ValueError(
+ "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
+ .format(state, allowed_values)
+ )
- self._extra = extra
+ self._state = state
@property
- def redirect(self):
- """Gets the redirect of this WorkEntity. # noqa: E501
+ def ident(self):
+ """Gets the ident of this WorkEntity. # noqa: E501
base32-encoded unique identifier # noqa: E501
- :return: The redirect of this WorkEntity. # noqa: E501
+ :return: The ident of this WorkEntity. # noqa: E501
:rtype: str
"""
- return self._redirect
+ return self._ident
- @redirect.setter
- def redirect(self, redirect):
- """Sets the redirect of this WorkEntity.
+ @ident.setter
+ def ident(self, ident):
+ """Sets the ident of this WorkEntity.
base32-encoded unique identifier # noqa: E501
- :param redirect: The redirect of this WorkEntity. # noqa: E501
+ :param ident: The ident of this WorkEntity. # noqa: E501
:type: str
"""
- if redirect is not None and len(redirect) > 26:
- raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
- if redirect is not None and len(redirect) < 26:
- raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
- if redirect is not None and not re.search('[a-zA-Z2-7]{26}', redirect): # noqa: E501
- raise ValueError("Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if ident is not None and len(ident) > 26:
+ raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
+ if ident is not None and len(ident) < 26:
+ raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
+ if ident is not None and not re.search(r'[a-zA-Z2-7]{26}', ident): # noqa: E501
+ raise ValueError(r"Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._redirect = redirect
+ self._ident = ident
@property
def revision(self):
@@ -171,72 +153,91 @@ class WorkEntity(object):
raise ValueError("Invalid value for `revision`, length must be less than or equal to `36`") # noqa: E501
if revision is not None and len(revision) < 36:
raise ValueError("Invalid value for `revision`, length must be greater than or equal to `36`") # noqa: E501
- if revision is not None and not re.search('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
- raise ValueError("Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
+ if revision is not None and not re.search(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', revision): # noqa: E501
+ raise ValueError(r"Invalid value for `revision`, must be a follow pattern or equal to `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/`") # noqa: E501
self._revision = revision
@property
- def ident(self):
- """Gets the ident of this WorkEntity. # noqa: E501
+ def redirect(self):
+ """Gets the redirect of this WorkEntity. # noqa: E501
base32-encoded unique identifier # noqa: E501
- :return: The ident of this WorkEntity. # noqa: E501
+ :return: The redirect of this WorkEntity. # noqa: E501
:rtype: str
"""
- return self._ident
+ return self._redirect
- @ident.setter
- def ident(self, ident):
- """Sets the ident of this WorkEntity.
+ @redirect.setter
+ def redirect(self, redirect):
+ """Sets the redirect of this WorkEntity.
base32-encoded unique identifier # noqa: E501
- :param ident: The ident of this WorkEntity. # noqa: E501
+ :param redirect: The redirect of this WorkEntity. # noqa: E501
:type: str
"""
- if ident is not None and len(ident) > 26:
- raise ValueError("Invalid value for `ident`, length must be less than or equal to `26`") # noqa: E501
- if ident is not None and len(ident) < 26:
- raise ValueError("Invalid value for `ident`, length must be greater than or equal to `26`") # noqa: E501
- if ident is not None and not re.search('[a-zA-Z2-7]{26}', ident): # noqa: E501
- raise ValueError("Invalid value for `ident`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
+ if redirect is not None and len(redirect) > 26:
+ raise ValueError("Invalid value for `redirect`, length must be less than or equal to `26`") # noqa: E501
+ if redirect is not None and len(redirect) < 26:
+ raise ValueError("Invalid value for `redirect`, length must be greater than or equal to `26`") # noqa: E501
+ if redirect is not None and not re.search(r'[a-zA-Z2-7]{26}', redirect): # noqa: E501
+ raise ValueError(r"Invalid value for `redirect`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501
- self._ident = ident
+ self._redirect = redirect
@property
- def state(self):
- """Gets the state of this WorkEntity. # noqa: E501
+ def extra(self):
+ """Gets the extra of this WorkEntity. # noqa: E501
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :return: The state of this WorkEntity. # noqa: E501
- :rtype: str
+ :return: The extra of this WorkEntity. # noqa: E501
+ :rtype: dict(str, object)
"""
- return self._state
+ return self._extra
- @state.setter
- def state(self, state):
- """Sets the state of this WorkEntity.
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this WorkEntity.
+ Free-form JSON metadata that will be stored with the other entity metadata. See guide for (unenforced) schema conventions. # noqa: E501
- :param state: The state of this WorkEntity. # noqa: E501
- :type: str
+ :param extra: The extra of this WorkEntity. # noqa: E501
+ :type: dict(str, object)
"""
- allowed_values = ["wip", "active", "redirect", "deleted"] # noqa: E501
- if state not in allowed_values:
- raise ValueError(
- "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
- .format(state, allowed_values)
- )
- self._state = state
+ self._extra = extra
+
+ @property
+ def edit_extra(self):
+ """Gets the edit_extra of this WorkEntity. # noqa: E501
+
+ Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
+
+ :return: The edit_extra of this WorkEntity. # noqa: E501
+ :rtype: dict(str, object)
+ """
+ return self._edit_extra
+
+ @edit_extra.setter
+ def edit_extra(self, edit_extra):
+ """Sets the edit_extra of this WorkEntity.
+
+ Free-form JSON metadata that will be stored with specific entity edits (eg, creation/update/delete). # noqa: E501
+
+ :param edit_extra: The edit_extra of this WorkEntity. # noqa: E501
+ :type: dict(str, object)
+ """
+
+ self._edit_extra = edit_extra
def to_dict(self):
"""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(