Source code for thamos.swagger_client.models.python_package_indexes_indexes
# coding: utf-8
"""
Thoth User API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.7.0-dev
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
[docs]class PythonPackageIndexesIndexes(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'only_if_package_seen': 'bool',
'url': 'str',
'verify_ssl': 'bool',
'warehouse_api_url': 'str'
}
attribute_map = {
'only_if_package_seen': 'only_if_package_seen',
'url': 'url',
'verify_ssl': 'verify_ssl',
'warehouse_api_url': 'warehouse_api_url'
}
def __init__(self, only_if_package_seen=None, url=None, verify_ssl=None, warehouse_api_url=None): # noqa: E501
"""PythonPackageIndexesIndexes - a model defined in Swagger""" # noqa: E501
self._only_if_package_seen = None
self._url = None
self._verify_ssl = None
self._warehouse_api_url = None
self.discriminator = None
self.only_if_package_seen = only_if_package_seen
self.url = url
self.verify_ssl = verify_ssl
self.warehouse_api_url = warehouse_api_url
@property
def only_if_package_seen(self):
"""Gets the only_if_package_seen of this PythonPackageIndexesIndexes. # noqa: E501
The backend is configured to monitor only releases of already seen packages # noqa: E501
:return: The only_if_package_seen of this PythonPackageIndexesIndexes. # noqa: E501
:rtype: bool
"""
return self._only_if_package_seen
@only_if_package_seen.setter
def only_if_package_seen(self, only_if_package_seen):
"""Sets the only_if_package_seen of this PythonPackageIndexesIndexes.
The backend is configured to monitor only releases of already seen packages # noqa: E501
:param only_if_package_seen: The only_if_package_seen of this PythonPackageIndexesIndexes. # noqa: E501
:type: bool
"""
if only_if_package_seen is None:
raise ValueError("Invalid value for `only_if_package_seen`, must not be `None`") # noqa: E501
self._only_if_package_seen = only_if_package_seen
@property
def url(self):
"""Gets the url of this PythonPackageIndexesIndexes. # noqa: E501
URL to the Python simple repository as described in PEP 503 # noqa: E501
:return: The url of this PythonPackageIndexesIndexes. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this PythonPackageIndexesIndexes.
URL to the Python simple repository as described in PEP 503 # noqa: E501
:param url: The url of this PythonPackageIndexesIndexes. # noqa: E501
:type: str
"""
if url is None:
raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
self._url = url
@property
def verify_ssl(self):
"""Gets the verify_ssl of this PythonPackageIndexesIndexes. # noqa: E501
Use secured connection to warehouse # noqa: E501
:return: The verify_ssl of this PythonPackageIndexesIndexes. # noqa: E501
:rtype: bool
"""
return self._verify_ssl
@verify_ssl.setter
def verify_ssl(self, verify_ssl):
"""Sets the verify_ssl of this PythonPackageIndexesIndexes.
Use secured connection to warehouse # noqa: E501
:param verify_ssl: The verify_ssl of this PythonPackageIndexesIndexes. # noqa: E501
:type: bool
"""
if verify_ssl is None:
raise ValueError("Invalid value for `verify_ssl`, must not be `None`") # noqa: E501
self._verify_ssl = verify_ssl
@property
def warehouse_api_url(self):
"""Gets the warehouse_api_url of this PythonPackageIndexesIndexes. # noqa: E501
URL to the warehouse API # noqa: E501
:return: The warehouse_api_url of this PythonPackageIndexesIndexes. # noqa: E501
:rtype: str
"""
return self._warehouse_api_url
@warehouse_api_url.setter
def warehouse_api_url(self, warehouse_api_url):
"""Sets the warehouse_api_url of this PythonPackageIndexesIndexes.
URL to the warehouse API # noqa: E501
:param warehouse_api_url: The warehouse_api_url of this PythonPackageIndexesIndexes. # noqa: E501
:type: str
"""
self._warehouse_api_url = warehouse_api_url
[docs] def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(PythonPackageIndexesIndexes, dict):
for key, value in self.items():
result[key] = value
return result
[docs] def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, PythonPackageIndexesIndexes):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other