lentiq.models.datapool_onboarding_job module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six from lentiq.models.datapool import Datapool # noqa: F401,E501 from lentiq.models.job_status import JobStatus # noqa: F401,E501 from lentiq.models.project_onboarding_job import ProjectOnboardingJob # noqa: F401,E501 class DatapoolOnboardingJob(object): """ """ """ 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 = { 'created_timestamp_seconds': 'int', 'datapool': 'Datapool', 'datapool_name': 'str', 'job_status': 'JobStatus', 'manager_user_emails': 'list[str]', 'project_onboarding_jobs': 'list[ProjectOnboardingJob]', 'updated_timestamp_seconds': 'int' } attribute_map = { 'created_timestamp_seconds': 'createdTimestampSeconds', 'datapool': 'datapool', 'datapool_name': 'datapoolName', 'job_status': 'jobStatus', 'manager_user_emails': 'managerUserEmails', 'project_onboarding_jobs': 'projectOnboardingJobs', 'updated_timestamp_seconds': 'updatedTimestampSeconds' } discriminator = None def __init__(self, created_timestamp_seconds=None, datapool=None, datapool_name=None, job_status=None, manager_user_emails=None, project_onboarding_jobs=None, updated_timestamp_seconds=None): # noqa: E501 """DatapoolOnboardingJob - a model defined in Swagger""" # noqa: E501 self._created_timestamp_seconds = None self._datapool = None self._datapool_name = None self._job_status = None self._manager_user_emails = None self._project_onboarding_jobs = None self._updated_timestamp_seconds = None if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if datapool is not None: self.datapool = datapool if datapool_name is not None: self.datapool_name = datapool_name if job_status is not None: self.job_status = job_status if manager_user_emails is not None: self.manager_user_emails = manager_user_emails if project_onboarding_jobs is not None: self.project_onboarding_jobs = project_onboarding_jobs if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds @property def created_timestamp_seconds(self): """Gets the created_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :return: The created_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :rtype: int """ return self._created_timestamp_seconds @created_timestamp_seconds.setter def created_timestamp_seconds(self, created_timestamp_seconds): """Sets the created_timestamp_seconds of this DatapoolOnboardingJob. :param created_timestamp_seconds: The created_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :type: int """ self._created_timestamp_seconds = created_timestamp_seconds @property def datapool(self): """Gets the datapool of this DatapoolOnboardingJob. # noqa: E501 :return: The datapool of this DatapoolOnboardingJob. # noqa: E501 :rtype: Datapool """ return self._datapool @datapool.setter def datapool(self, datapool): """Sets the datapool of this DatapoolOnboardingJob. :param datapool: The datapool of this DatapoolOnboardingJob. # noqa: E501 :type: Datapool """ self._datapool = datapool @property def datapool_name(self): """Gets the datapool_name of this DatapoolOnboardingJob. # noqa: E501 :return: The datapool_name of this DatapoolOnboardingJob. # noqa: E501 :rtype: str """ return self._datapool_name @datapool_name.setter def datapool_name(self, datapool_name): """Sets the datapool_name of this DatapoolOnboardingJob. :param datapool_name: The datapool_name of this DatapoolOnboardingJob. # noqa: E501 :type: str """ self._datapool_name = datapool_name @property def job_status(self): """Gets the job_status of this DatapoolOnboardingJob. # noqa: E501 :return: The job_status of this DatapoolOnboardingJob. # noqa: E501 :rtype: JobStatus """ return self._job_status @job_status.setter def job_status(self, job_status): """Sets the job_status of this DatapoolOnboardingJob. :param job_status: The job_status of this DatapoolOnboardingJob. # noqa: E501 :type: JobStatus """ self._job_status = job_status @property def manager_user_emails(self): """Gets the manager_user_emails of this DatapoolOnboardingJob. # noqa: E501 :return: The manager_user_emails of this DatapoolOnboardingJob. # noqa: E501 :rtype: list[str] """ return self._manager_user_emails @manager_user_emails.setter def manager_user_emails(self, manager_user_emails): """Sets the manager_user_emails of this DatapoolOnboardingJob. :param manager_user_emails: The manager_user_emails of this DatapoolOnboardingJob. # noqa: E501 :type: list[str] """ self._manager_user_emails = manager_user_emails @property def project_onboarding_jobs(self): """Gets the project_onboarding_jobs of this DatapoolOnboardingJob. # noqa: E501 A list of project onboarding jobs, presenting the projects and applications that need to be created alongside the datapool, after it has finished. # noqa: E501 :return: The project_onboarding_jobs of this DatapoolOnboardingJob. # noqa: E501 :rtype: list[ProjectOnboardingJob] """ return self._project_onboarding_jobs @project_onboarding_jobs.setter def project_onboarding_jobs(self, project_onboarding_jobs): """Sets the project_onboarding_jobs of this DatapoolOnboardingJob. A list of project onboarding jobs, presenting the projects and applications that need to be created alongside the datapool, after it has finished. # noqa: E501 :param project_onboarding_jobs: The project_onboarding_jobs of this DatapoolOnboardingJob. # noqa: E501 :type: list[ProjectOnboardingJob] """ self._project_onboarding_jobs = project_onboarding_jobs @property def updated_timestamp_seconds(self): """Gets the updated_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :return: The updated_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :rtype: int """ return self._updated_timestamp_seconds @updated_timestamp_seconds.setter def updated_timestamp_seconds(self, updated_timestamp_seconds): """Sets the updated_timestamp_seconds of this DatapoolOnboardingJob. :param updated_timestamp_seconds: The updated_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :type: int """ self._updated_timestamp_seconds = updated_timestamp_seconds 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(DatapoolOnboardingJob, dict): for key, value in self.items(): result[key] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, DatapoolOnboardingJob): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
Classes
class DatapoolOnboardingJob
class DatapoolOnboardingJob(object): """ """ """ 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 = { 'created_timestamp_seconds': 'int', 'datapool': 'Datapool', 'datapool_name': 'str', 'job_status': 'JobStatus', 'manager_user_emails': 'list[str]', 'project_onboarding_jobs': 'list[ProjectOnboardingJob]', 'updated_timestamp_seconds': 'int' } attribute_map = { 'created_timestamp_seconds': 'createdTimestampSeconds', 'datapool': 'datapool', 'datapool_name': 'datapoolName', 'job_status': 'jobStatus', 'manager_user_emails': 'managerUserEmails', 'project_onboarding_jobs': 'projectOnboardingJobs', 'updated_timestamp_seconds': 'updatedTimestampSeconds' } discriminator = None def __init__(self, created_timestamp_seconds=None, datapool=None, datapool_name=None, job_status=None, manager_user_emails=None, project_onboarding_jobs=None, updated_timestamp_seconds=None): # noqa: E501 """DatapoolOnboardingJob - a model defined in Swagger""" # noqa: E501 self._created_timestamp_seconds = None self._datapool = None self._datapool_name = None self._job_status = None self._manager_user_emails = None self._project_onboarding_jobs = None self._updated_timestamp_seconds = None if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if datapool is not None: self.datapool = datapool if datapool_name is not None: self.datapool_name = datapool_name if job_status is not None: self.job_status = job_status if manager_user_emails is not None: self.manager_user_emails = manager_user_emails if project_onboarding_jobs is not None: self.project_onboarding_jobs = project_onboarding_jobs if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds @property def created_timestamp_seconds(self): """Gets the created_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :return: The created_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :rtype: int """ return self._created_timestamp_seconds @created_timestamp_seconds.setter def created_timestamp_seconds(self, created_timestamp_seconds): """Sets the created_timestamp_seconds of this DatapoolOnboardingJob. :param created_timestamp_seconds: The created_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :type: int """ self._created_timestamp_seconds = created_timestamp_seconds @property def datapool(self): """Gets the datapool of this DatapoolOnboardingJob. # noqa: E501 :return: The datapool of this DatapoolOnboardingJob. # noqa: E501 :rtype: Datapool """ return self._datapool @datapool.setter def datapool(self, datapool): """Sets the datapool of this DatapoolOnboardingJob. :param datapool: The datapool of this DatapoolOnboardingJob. # noqa: E501 :type: Datapool """ self._datapool = datapool @property def datapool_name(self): """Gets the datapool_name of this DatapoolOnboardingJob. # noqa: E501 :return: The datapool_name of this DatapoolOnboardingJob. # noqa: E501 :rtype: str """ return self._datapool_name @datapool_name.setter def datapool_name(self, datapool_name): """Sets the datapool_name of this DatapoolOnboardingJob. :param datapool_name: The datapool_name of this DatapoolOnboardingJob. # noqa: E501 :type: str """ self._datapool_name = datapool_name @property def job_status(self): """Gets the job_status of this DatapoolOnboardingJob. # noqa: E501 :return: The job_status of this DatapoolOnboardingJob. # noqa: E501 :rtype: JobStatus """ return self._job_status @job_status.setter def job_status(self, job_status): """Sets the job_status of this DatapoolOnboardingJob. :param job_status: The job_status of this DatapoolOnboardingJob. # noqa: E501 :type: JobStatus """ self._job_status = job_status @property def manager_user_emails(self): """Gets the manager_user_emails of this DatapoolOnboardingJob. # noqa: E501 :return: The manager_user_emails of this DatapoolOnboardingJob. # noqa: E501 :rtype: list[str] """ return self._manager_user_emails @manager_user_emails.setter def manager_user_emails(self, manager_user_emails): """Sets the manager_user_emails of this DatapoolOnboardingJob. :param manager_user_emails: The manager_user_emails of this DatapoolOnboardingJob. # noqa: E501 :type: list[str] """ self._manager_user_emails = manager_user_emails @property def project_onboarding_jobs(self): """Gets the project_onboarding_jobs of this DatapoolOnboardingJob. # noqa: E501 A list of project onboarding jobs, presenting the projects and applications that need to be created alongside the datapool, after it has finished. # noqa: E501 :return: The project_onboarding_jobs of this DatapoolOnboardingJob. # noqa: E501 :rtype: list[ProjectOnboardingJob] """ return self._project_onboarding_jobs @project_onboarding_jobs.setter def project_onboarding_jobs(self, project_onboarding_jobs): """Sets the project_onboarding_jobs of this DatapoolOnboardingJob. A list of project onboarding jobs, presenting the projects and applications that need to be created alongside the datapool, after it has finished. # noqa: E501 :param project_onboarding_jobs: The project_onboarding_jobs of this DatapoolOnboardingJob. # noqa: E501 :type: list[ProjectOnboardingJob] """ self._project_onboarding_jobs = project_onboarding_jobs @property def updated_timestamp_seconds(self): """Gets the updated_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :return: The updated_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :rtype: int """ return self._updated_timestamp_seconds @updated_timestamp_seconds.setter def updated_timestamp_seconds(self, updated_timestamp_seconds): """Sets the updated_timestamp_seconds of this DatapoolOnboardingJob. :param updated_timestamp_seconds: The updated_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :type: int """ self._updated_timestamp_seconds = updated_timestamp_seconds 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(DatapoolOnboardingJob, dict): for key, value in self.items(): result[key] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, DatapoolOnboardingJob): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
Ancestors (in MRO)
- DatapoolOnboardingJob
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, created_timestamp_seconds=None, datapool=None, datapool_name=None, job_status=None, manager_user_emails=None, project_onboarding_jobs=None, updated_timestamp_seconds=None)
DatapoolOnboardingJob - a model defined in Swagger
def __init__(self, created_timestamp_seconds=None, datapool=None, datapool_name=None, job_status=None, manager_user_emails=None, project_onboarding_jobs=None, updated_timestamp_seconds=None): # noqa: E501 """DatapoolOnboardingJob - a model defined in Swagger""" # noqa: E501 self._created_timestamp_seconds = None self._datapool = None self._datapool_name = None self._job_status = None self._manager_user_emails = None self._project_onboarding_jobs = None self._updated_timestamp_seconds = None if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if datapool is not None: self.datapool = datapool if datapool_name is not None: self.datapool_name = datapool_name if job_status is not None: self.job_status = job_status if manager_user_emails is not None: self.manager_user_emails = manager_user_emails if project_onboarding_jobs is not None: self.project_onboarding_jobs = project_onboarding_jobs if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds
def to_dict(
self)
Returns the model properties as a dict
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(DatapoolOnboardingJob, dict): for key, value in self.items(): result[key] = value return result
def to_str(
self)
Returns the string representation of the model
def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict())
Instance variables
var created_timestamp_seconds
Gets the created_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501
:return: The created_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :rtype: int
var datapool
Gets the datapool of this DatapoolOnboardingJob. # noqa: E501
:return: The datapool of this DatapoolOnboardingJob. # noqa: E501 :rtype: Datapool
var datapool_name
Gets the datapool_name of this DatapoolOnboardingJob. # noqa: E501
:return: The datapool_name of this DatapoolOnboardingJob. # noqa: E501 :rtype: str
var job_status
Gets the job_status of this DatapoolOnboardingJob. # noqa: E501
:return: The job_status of this DatapoolOnboardingJob. # noqa: E501 :rtype: JobStatus
var manager_user_emails
Gets the manager_user_emails of this DatapoolOnboardingJob. # noqa: E501
:return: The manager_user_emails of this DatapoolOnboardingJob. # noqa: E501 :rtype: list[str]
var project_onboarding_jobs
Gets the project_onboarding_jobs of this DatapoolOnboardingJob. # noqa: E501
A list of project onboarding jobs, presenting the projects and applications that need to be created alongside the datapool, after it has finished. # noqa: E501
:return: The project_onboarding_jobs of this DatapoolOnboardingJob. # noqa: E501 :rtype: list[ProjectOnboardingJob]
var updated_timestamp_seconds
Gets the updated_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501
:return: The updated_timestamp_seconds of this DatapoolOnboardingJob. # noqa: E501 :rtype: int