lentiq.models.datapool module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six from lentiq.models.datapool_current_operation_status import DatapoolCurrentOperationStatus # noqa: F401,E501 from lentiq.models.infrastructure_provider_configuration import InfrastructureProviderConfiguration # noqa: F401,E501 from lentiq.models.job_identifier import JobIdentifier # noqa: F401,E501 from lentiq.models.whitelisted_ip import WhitelistedIP # noqa: F401,E501 class Datapool(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', 'credentials_name': 'str', 'datalake_id': 'int', 'datalake_name': 'str', 'datapool_current_operation_status': 'DatapoolCurrentOperationStatus', 'generation': 'int', 'infrastructure_provider_configuration': 'InfrastructureProviderConfiguration', 'name': 'str', 'ongoing_job': 'JobIdentifier', 'starter': 'bool', 'status': 'str', 'total_gb_of_ram': 'float', 'total_number_of_cores': 'int', 'total_number_of_nodes': 'int', 'updated_timestamp_seconds': 'int', 'user_owner_id': 'int', 'whitelisted_i_ps': 'list[WhitelistedIP]' } attribute_map = { 'created_timestamp_seconds': 'createdTimestampSeconds', 'credentials_name': 'credentialsName', 'datalake_id': 'datalakeId', 'datalake_name': 'datalakeName', 'datapool_current_operation_status': 'datapoolCurrentOperationStatus', 'generation': 'generation', 'infrastructure_provider_configuration': 'infrastructureProviderConfiguration', 'name': 'name', 'ongoing_job': 'ongoingJob', 'starter': 'starter', 'status': 'status', 'total_gb_of_ram': 'totalGbOfRam', 'total_number_of_cores': 'totalNumberOfCores', 'total_number_of_nodes': 'totalNumberOfNodes', 'updated_timestamp_seconds': 'updatedTimestampSeconds', 'user_owner_id': 'userOwnerId', 'whitelisted_i_ps': 'whitelistedIPs' } discriminator = None def __init__(self, created_timestamp_seconds=None, credentials_name=None, datalake_id=None, datalake_name=None, datapool_current_operation_status=None, generation=None, infrastructure_provider_configuration=None, name=None, ongoing_job=None, starter=None, status=None, total_gb_of_ram=None, total_number_of_cores=None, total_number_of_nodes=None, updated_timestamp_seconds=None, user_owner_id=None, whitelisted_i_ps=None): # noqa: E501 """Datapool - a model defined in Swagger""" # noqa: E501 self._created_timestamp_seconds = None self._credentials_name = None self._datalake_id = None self._datalake_name = None self._datapool_current_operation_status = None self._generation = None self._infrastructure_provider_configuration = None self._name = None self._ongoing_job = None self._starter = None self._status = None self._total_gb_of_ram = None self._total_number_of_cores = None self._total_number_of_nodes = None self._updated_timestamp_seconds = None self._user_owner_id = None self._whitelisted_i_ps = None if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if credentials_name is not None: self.credentials_name = credentials_name if datalake_id is not None: self.datalake_id = datalake_id if datalake_name is not None: self.datalake_name = datalake_name if datapool_current_operation_status is not None: self.datapool_current_operation_status = datapool_current_operation_status if generation is not None: self.generation = generation if infrastructure_provider_configuration is not None: self.infrastructure_provider_configuration = infrastructure_provider_configuration if name is not None: self.name = name if ongoing_job is not None: self.ongoing_job = ongoing_job if starter is not None: self.starter = starter if status is not None: self.status = status if total_gb_of_ram is not None: self.total_gb_of_ram = total_gb_of_ram if total_number_of_cores is not None: self.total_number_of_cores = total_number_of_cores if total_number_of_nodes is not None: self.total_number_of_nodes = total_number_of_nodes if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds if user_owner_id is not None: self.user_owner_id = user_owner_id if whitelisted_i_ps is not None: self.whitelisted_i_ps = whitelisted_i_ps @property def created_timestamp_seconds(self): """Gets the created_timestamp_seconds of this Datapool. # noqa: E501 :return: The created_timestamp_seconds of this Datapool. # 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 Datapool. :param created_timestamp_seconds: The created_timestamp_seconds of this Datapool. # noqa: E501 :type: int """ self._created_timestamp_seconds = created_timestamp_seconds @property def credentials_name(self): """Gets the credentials_name of this Datapool. # noqa: E501 The name of the credential to be used when interacting with the environment where the Kubernetes cluster and data reside. A credential with this name needs to have been previously created by the user that also creates the datapool. # noqa: E501 :return: The credentials_name of this Datapool. # noqa: E501 :rtype: str """ return self._credentials_name @credentials_name.setter def credentials_name(self, credentials_name): """Sets the credentials_name of this Datapool. The name of the credential to be used when interacting with the environment where the Kubernetes cluster and data reside. A credential with this name needs to have been previously created by the user that also creates the datapool. # noqa: E501 :param credentials_name: The credentials_name of this Datapool. # noqa: E501 :type: str """ self._credentials_name = credentials_name @property def datalake_id(self): """Gets the datalake_id of this Datapool. # noqa: E501 The id of the datalake in which this datapool exists. Read-only value set on create, based on the datalake name specified. # noqa: E501 :return: The datalake_id of this Datapool. # noqa: E501 :rtype: int """ return self._datalake_id @datalake_id.setter def datalake_id(self, datalake_id): """Sets the datalake_id of this Datapool. The id of the datalake in which this datapool exists. Read-only value set on create, based on the datalake name specified. # noqa: E501 :param datalake_id: The datalake_id of this Datapool. # noqa: E501 :type: int """ self._datalake_id = datalake_id @property def datalake_name(self): """Gets the datalake_name of this Datapool. # noqa: E501 The name of the datalake in which this datapool exists. Based on this name, the datalake id is set on the datapool on create. If that datalake's name is edited, the change is propagated. # noqa: E501 :return: The datalake_name of this Datapool. # noqa: E501 :rtype: str """ return self._datalake_name @datalake_name.setter def datalake_name(self, datalake_name): """Sets the datalake_name of this Datapool. The name of the datalake in which this datapool exists. Based on this name, the datalake id is set on the datapool on create. If that datalake's name is edited, the change is propagated. # noqa: E501 :param datalake_name: The datalake_name of this Datapool. # noqa: E501 :type: str """ self._datalake_name = datalake_name @property def datapool_current_operation_status(self): """Gets the datapool_current_operation_status of this Datapool. # noqa: E501 :return: The datapool_current_operation_status of this Datapool. # noqa: E501 :rtype: DatapoolCurrentOperationStatus """ return self._datapool_current_operation_status @datapool_current_operation_status.setter def datapool_current_operation_status(self, datapool_current_operation_status): """Sets the datapool_current_operation_status of this Datapool. :param datapool_current_operation_status: The datapool_current_operation_status of this Datapool. # noqa: E501 :type: DatapoolCurrentOperationStatus """ self._datapool_current_operation_status = datapool_current_operation_status @property def generation(self): """Gets the generation of this Datapool. # noqa: E501 A sequence number representing a specific generation of the datapool state. Read-only value set by the system. # noqa: E501 :return: The generation of this Datapool. # noqa: E501 :rtype: int """ return self._generation @generation.setter def generation(self, generation): """Sets the generation of this Datapool. A sequence number representing a specific generation of the datapool state. Read-only value set by the system. # noqa: E501 :param generation: The generation of this Datapool. # noqa: E501 :type: int """ self._generation = generation @property def infrastructure_provider_configuration(self): """Gets the infrastructure_provider_configuration of this Datapool. # noqa: E501 :return: The infrastructure_provider_configuration of this Datapool. # noqa: E501 :rtype: InfrastructureProviderConfiguration """ return self._infrastructure_provider_configuration @infrastructure_provider_configuration.setter def infrastructure_provider_configuration(self, infrastructure_provider_configuration): """Sets the infrastructure_provider_configuration of this Datapool. :param infrastructure_provider_configuration: The infrastructure_provider_configuration of this Datapool. # noqa: E501 :type: InfrastructureProviderConfiguration """ self._infrastructure_provider_configuration = infrastructure_provider_configuration @property def name(self): """Gets the name of this Datapool. # noqa: E501 The name under which the datapool is identified in the application. It must be globally unique. # noqa: E501 :return: The name of this Datapool. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Datapool. The name under which the datapool is identified in the application. It must be globally unique. # noqa: E501 :param name: The name of this Datapool. # noqa: E501 :type: str """ self._name = name @property def ongoing_job(self): """Gets the ongoing_job of this Datapool. # noqa: E501 :return: The ongoing_job of this Datapool. # noqa: E501 :rtype: JobIdentifier """ return self._ongoing_job @ongoing_job.setter def ongoing_job(self, ongoing_job): """Sets the ongoing_job of this Datapool. :param ongoing_job: The ongoing_job of this Datapool. # noqa: E501 :type: JobIdentifier """ self._ongoing_job = ongoing_job @property def starter(self): """Gets the starter of this Datapool. # noqa: E501 :return: The starter of this Datapool. # noqa: E501 :rtype: bool """ return self._starter @starter.setter def starter(self, starter): """Sets the starter of this Datapool. :param starter: The starter of this Datapool. # noqa: E501 :type: bool """ self._starter = starter @property def status(self): """Gets the status of this Datapool. # noqa: E501 The current status of the datapool. # noqa: E501 :return: The status of this Datapool. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this Datapool. The current status of the datapool. # noqa: E501 :param status: The status of this Datapool. # noqa: E501 :type: str """ allowed_values = ["running", "creating", "deleting", "ongoing_change"] # noqa: E501 if status not in allowed_values: raise ValueError( "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 .format(status, allowed_values) ) self._status = status @property def total_gb_of_ram(self): """Gets the total_gb_of_ram of this Datapool. # noqa: E501 Current total number of gigabytes of RAM of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501 :return: The total_gb_of_ram of this Datapool. # noqa: E501 :rtype: float """ return self._total_gb_of_ram @total_gb_of_ram.setter def total_gb_of_ram(self, total_gb_of_ram): """Sets the total_gb_of_ram of this Datapool. Current total number of gigabytes of RAM of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501 :param total_gb_of_ram: The total_gb_of_ram of this Datapool. # noqa: E501 :type: float """ self._total_gb_of_ram = total_gb_of_ram @property def total_number_of_cores(self): """Gets the total_number_of_cores of this Datapool. # noqa: E501 Current total number of cores of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501 :return: The total_number_of_cores of this Datapool. # noqa: E501 :rtype: int """ return self._total_number_of_cores @total_number_of_cores.setter def total_number_of_cores(self, total_number_of_cores): """Sets the total_number_of_cores of this Datapool. Current total number of cores of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501 :param total_number_of_cores: The total_number_of_cores of this Datapool. # noqa: E501 :type: int """ self._total_number_of_cores = total_number_of_cores @property def total_number_of_nodes(self): """Gets the total_number_of_nodes of this Datapool. # noqa: E501 Currrent total number of managed nodes in the Kubernetes cluster. # noqa: E501 :return: The total_number_of_nodes of this Datapool. # noqa: E501 :rtype: int """ return self._total_number_of_nodes @total_number_of_nodes.setter def total_number_of_nodes(self, total_number_of_nodes): """Sets the total_number_of_nodes of this Datapool. Currrent total number of managed nodes in the Kubernetes cluster. # noqa: E501 :param total_number_of_nodes: The total_number_of_nodes of this Datapool. # noqa: E501 :type: int """ self._total_number_of_nodes = total_number_of_nodes @property def updated_timestamp_seconds(self): """Gets the updated_timestamp_seconds of this Datapool. # noqa: E501 :return: The updated_timestamp_seconds of this Datapool. # 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 Datapool. :param updated_timestamp_seconds: The updated_timestamp_seconds of this Datapool. # noqa: E501 :type: int """ self._updated_timestamp_seconds = updated_timestamp_seconds @property def user_owner_id(self): """Gets the user_owner_id of this Datapool. # noqa: E501 The owner of the datapool. It is populated with the user id of the user that creates it and cannot be changed. # noqa: E501 :return: The user_owner_id of this Datapool. # noqa: E501 :rtype: int """ return self._user_owner_id @user_owner_id.setter def user_owner_id(self, user_owner_id): """Sets the user_owner_id of this Datapool. The owner of the datapool. It is populated with the user id of the user that creates it and cannot be changed. # noqa: E501 :param user_owner_id: The user_owner_id of this Datapool. # noqa: E501 :type: int """ self._user_owner_id = user_owner_id @property def whitelisted_i_ps(self): """Gets the whitelisted_i_ps of this Datapool. # noqa: E501 :return: The whitelisted_i_ps of this Datapool. # noqa: E501 :rtype: list[WhitelistedIP] """ return self._whitelisted_i_ps @whitelisted_i_ps.setter def whitelisted_i_ps(self, whitelisted_i_ps): """Sets the whitelisted_i_ps of this Datapool. :param whitelisted_i_ps: The whitelisted_i_ps of this Datapool. # noqa: E501 :type: list[WhitelistedIP] """ self._whitelisted_i_ps = whitelisted_i_ps 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(Datapool, 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, Datapool): 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 Datapool
class Datapool(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', 'credentials_name': 'str', 'datalake_id': 'int', 'datalake_name': 'str', 'datapool_current_operation_status': 'DatapoolCurrentOperationStatus', 'generation': 'int', 'infrastructure_provider_configuration': 'InfrastructureProviderConfiguration', 'name': 'str', 'ongoing_job': 'JobIdentifier', 'starter': 'bool', 'status': 'str', 'total_gb_of_ram': 'float', 'total_number_of_cores': 'int', 'total_number_of_nodes': 'int', 'updated_timestamp_seconds': 'int', 'user_owner_id': 'int', 'whitelisted_i_ps': 'list[WhitelistedIP]' } attribute_map = { 'created_timestamp_seconds': 'createdTimestampSeconds', 'credentials_name': 'credentialsName', 'datalake_id': 'datalakeId', 'datalake_name': 'datalakeName', 'datapool_current_operation_status': 'datapoolCurrentOperationStatus', 'generation': 'generation', 'infrastructure_provider_configuration': 'infrastructureProviderConfiguration', 'name': 'name', 'ongoing_job': 'ongoingJob', 'starter': 'starter', 'status': 'status', 'total_gb_of_ram': 'totalGbOfRam', 'total_number_of_cores': 'totalNumberOfCores', 'total_number_of_nodes': 'totalNumberOfNodes', 'updated_timestamp_seconds': 'updatedTimestampSeconds', 'user_owner_id': 'userOwnerId', 'whitelisted_i_ps': 'whitelistedIPs' } discriminator = None def __init__(self, created_timestamp_seconds=None, credentials_name=None, datalake_id=None, datalake_name=None, datapool_current_operation_status=None, generation=None, infrastructure_provider_configuration=None, name=None, ongoing_job=None, starter=None, status=None, total_gb_of_ram=None, total_number_of_cores=None, total_number_of_nodes=None, updated_timestamp_seconds=None, user_owner_id=None, whitelisted_i_ps=None): # noqa: E501 """Datapool - a model defined in Swagger""" # noqa: E501 self._created_timestamp_seconds = None self._credentials_name = None self._datalake_id = None self._datalake_name = None self._datapool_current_operation_status = None self._generation = None self._infrastructure_provider_configuration = None self._name = None self._ongoing_job = None self._starter = None self._status = None self._total_gb_of_ram = None self._total_number_of_cores = None self._total_number_of_nodes = None self._updated_timestamp_seconds = None self._user_owner_id = None self._whitelisted_i_ps = None if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if credentials_name is not None: self.credentials_name = credentials_name if datalake_id is not None: self.datalake_id = datalake_id if datalake_name is not None: self.datalake_name = datalake_name if datapool_current_operation_status is not None: self.datapool_current_operation_status = datapool_current_operation_status if generation is not None: self.generation = generation if infrastructure_provider_configuration is not None: self.infrastructure_provider_configuration = infrastructure_provider_configuration if name is not None: self.name = name if ongoing_job is not None: self.ongoing_job = ongoing_job if starter is not None: self.starter = starter if status is not None: self.status = status if total_gb_of_ram is not None: self.total_gb_of_ram = total_gb_of_ram if total_number_of_cores is not None: self.total_number_of_cores = total_number_of_cores if total_number_of_nodes is not None: self.total_number_of_nodes = total_number_of_nodes if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds if user_owner_id is not None: self.user_owner_id = user_owner_id if whitelisted_i_ps is not None: self.whitelisted_i_ps = whitelisted_i_ps @property def created_timestamp_seconds(self): """Gets the created_timestamp_seconds of this Datapool. # noqa: E501 :return: The created_timestamp_seconds of this Datapool. # 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 Datapool. :param created_timestamp_seconds: The created_timestamp_seconds of this Datapool. # noqa: E501 :type: int """ self._created_timestamp_seconds = created_timestamp_seconds @property def credentials_name(self): """Gets the credentials_name of this Datapool. # noqa: E501 The name of the credential to be used when interacting with the environment where the Kubernetes cluster and data reside. A credential with this name needs to have been previously created by the user that also creates the datapool. # noqa: E501 :return: The credentials_name of this Datapool. # noqa: E501 :rtype: str """ return self._credentials_name @credentials_name.setter def credentials_name(self, credentials_name): """Sets the credentials_name of this Datapool. The name of the credential to be used when interacting with the environment where the Kubernetes cluster and data reside. A credential with this name needs to have been previously created by the user that also creates the datapool. # noqa: E501 :param credentials_name: The credentials_name of this Datapool. # noqa: E501 :type: str """ self._credentials_name = credentials_name @property def datalake_id(self): """Gets the datalake_id of this Datapool. # noqa: E501 The id of the datalake in which this datapool exists. Read-only value set on create, based on the datalake name specified. # noqa: E501 :return: The datalake_id of this Datapool. # noqa: E501 :rtype: int """ return self._datalake_id @datalake_id.setter def datalake_id(self, datalake_id): """Sets the datalake_id of this Datapool. The id of the datalake in which this datapool exists. Read-only value set on create, based on the datalake name specified. # noqa: E501 :param datalake_id: The datalake_id of this Datapool. # noqa: E501 :type: int """ self._datalake_id = datalake_id @property def datalake_name(self): """Gets the datalake_name of this Datapool. # noqa: E501 The name of the datalake in which this datapool exists. Based on this name, the datalake id is set on the datapool on create. If that datalake's name is edited, the change is propagated. # noqa: E501 :return: The datalake_name of this Datapool. # noqa: E501 :rtype: str """ return self._datalake_name @datalake_name.setter def datalake_name(self, datalake_name): """Sets the datalake_name of this Datapool. The name of the datalake in which this datapool exists. Based on this name, the datalake id is set on the datapool on create. If that datalake's name is edited, the change is propagated. # noqa: E501 :param datalake_name: The datalake_name of this Datapool. # noqa: E501 :type: str """ self._datalake_name = datalake_name @property def datapool_current_operation_status(self): """Gets the datapool_current_operation_status of this Datapool. # noqa: E501 :return: The datapool_current_operation_status of this Datapool. # noqa: E501 :rtype: DatapoolCurrentOperationStatus """ return self._datapool_current_operation_status @datapool_current_operation_status.setter def datapool_current_operation_status(self, datapool_current_operation_status): """Sets the datapool_current_operation_status of this Datapool. :param datapool_current_operation_status: The datapool_current_operation_status of this Datapool. # noqa: E501 :type: DatapoolCurrentOperationStatus """ self._datapool_current_operation_status = datapool_current_operation_status @property def generation(self): """Gets the generation of this Datapool. # noqa: E501 A sequence number representing a specific generation of the datapool state. Read-only value set by the system. # noqa: E501 :return: The generation of this Datapool. # noqa: E501 :rtype: int """ return self._generation @generation.setter def generation(self, generation): """Sets the generation of this Datapool. A sequence number representing a specific generation of the datapool state. Read-only value set by the system. # noqa: E501 :param generation: The generation of this Datapool. # noqa: E501 :type: int """ self._generation = generation @property def infrastructure_provider_configuration(self): """Gets the infrastructure_provider_configuration of this Datapool. # noqa: E501 :return: The infrastructure_provider_configuration of this Datapool. # noqa: E501 :rtype: InfrastructureProviderConfiguration """ return self._infrastructure_provider_configuration @infrastructure_provider_configuration.setter def infrastructure_provider_configuration(self, infrastructure_provider_configuration): """Sets the infrastructure_provider_configuration of this Datapool. :param infrastructure_provider_configuration: The infrastructure_provider_configuration of this Datapool. # noqa: E501 :type: InfrastructureProviderConfiguration """ self._infrastructure_provider_configuration = infrastructure_provider_configuration @property def name(self): """Gets the name of this Datapool. # noqa: E501 The name under which the datapool is identified in the application. It must be globally unique. # noqa: E501 :return: The name of this Datapool. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Datapool. The name under which the datapool is identified in the application. It must be globally unique. # noqa: E501 :param name: The name of this Datapool. # noqa: E501 :type: str """ self._name = name @property def ongoing_job(self): """Gets the ongoing_job of this Datapool. # noqa: E501 :return: The ongoing_job of this Datapool. # noqa: E501 :rtype: JobIdentifier """ return self._ongoing_job @ongoing_job.setter def ongoing_job(self, ongoing_job): """Sets the ongoing_job of this Datapool. :param ongoing_job: The ongoing_job of this Datapool. # noqa: E501 :type: JobIdentifier """ self._ongoing_job = ongoing_job @property def starter(self): """Gets the starter of this Datapool. # noqa: E501 :return: The starter of this Datapool. # noqa: E501 :rtype: bool """ return self._starter @starter.setter def starter(self, starter): """Sets the starter of this Datapool. :param starter: The starter of this Datapool. # noqa: E501 :type: bool """ self._starter = starter @property def status(self): """Gets the status of this Datapool. # noqa: E501 The current status of the datapool. # noqa: E501 :return: The status of this Datapool. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this Datapool. The current status of the datapool. # noqa: E501 :param status: The status of this Datapool. # noqa: E501 :type: str """ allowed_values = ["running", "creating", "deleting", "ongoing_change"] # noqa: E501 if status not in allowed_values: raise ValueError( "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 .format(status, allowed_values) ) self._status = status @property def total_gb_of_ram(self): """Gets the total_gb_of_ram of this Datapool. # noqa: E501 Current total number of gigabytes of RAM of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501 :return: The total_gb_of_ram of this Datapool. # noqa: E501 :rtype: float """ return self._total_gb_of_ram @total_gb_of_ram.setter def total_gb_of_ram(self, total_gb_of_ram): """Sets the total_gb_of_ram of this Datapool. Current total number of gigabytes of RAM of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501 :param total_gb_of_ram: The total_gb_of_ram of this Datapool. # noqa: E501 :type: float """ self._total_gb_of_ram = total_gb_of_ram @property def total_number_of_cores(self): """Gets the total_number_of_cores of this Datapool. # noqa: E501 Current total number of cores of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501 :return: The total_number_of_cores of this Datapool. # noqa: E501 :rtype: int """ return self._total_number_of_cores @total_number_of_cores.setter def total_number_of_cores(self, total_number_of_cores): """Sets the total_number_of_cores of this Datapool. Current total number of cores of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501 :param total_number_of_cores: The total_number_of_cores of this Datapool. # noqa: E501 :type: int """ self._total_number_of_cores = total_number_of_cores @property def total_number_of_nodes(self): """Gets the total_number_of_nodes of this Datapool. # noqa: E501 Currrent total number of managed nodes in the Kubernetes cluster. # noqa: E501 :return: The total_number_of_nodes of this Datapool. # noqa: E501 :rtype: int """ return self._total_number_of_nodes @total_number_of_nodes.setter def total_number_of_nodes(self, total_number_of_nodes): """Sets the total_number_of_nodes of this Datapool. Currrent total number of managed nodes in the Kubernetes cluster. # noqa: E501 :param total_number_of_nodes: The total_number_of_nodes of this Datapool. # noqa: E501 :type: int """ self._total_number_of_nodes = total_number_of_nodes @property def updated_timestamp_seconds(self): """Gets the updated_timestamp_seconds of this Datapool. # noqa: E501 :return: The updated_timestamp_seconds of this Datapool. # 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 Datapool. :param updated_timestamp_seconds: The updated_timestamp_seconds of this Datapool. # noqa: E501 :type: int """ self._updated_timestamp_seconds = updated_timestamp_seconds @property def user_owner_id(self): """Gets the user_owner_id of this Datapool. # noqa: E501 The owner of the datapool. It is populated with the user id of the user that creates it and cannot be changed. # noqa: E501 :return: The user_owner_id of this Datapool. # noqa: E501 :rtype: int """ return self._user_owner_id @user_owner_id.setter def user_owner_id(self, user_owner_id): """Sets the user_owner_id of this Datapool. The owner of the datapool. It is populated with the user id of the user that creates it and cannot be changed. # noqa: E501 :param user_owner_id: The user_owner_id of this Datapool. # noqa: E501 :type: int """ self._user_owner_id = user_owner_id @property def whitelisted_i_ps(self): """Gets the whitelisted_i_ps of this Datapool. # noqa: E501 :return: The whitelisted_i_ps of this Datapool. # noqa: E501 :rtype: list[WhitelistedIP] """ return self._whitelisted_i_ps @whitelisted_i_ps.setter def whitelisted_i_ps(self, whitelisted_i_ps): """Sets the whitelisted_i_ps of this Datapool. :param whitelisted_i_ps: The whitelisted_i_ps of this Datapool. # noqa: E501 :type: list[WhitelistedIP] """ self._whitelisted_i_ps = whitelisted_i_ps 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(Datapool, 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, Datapool): 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)
- Datapool
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, created_timestamp_seconds=None, credentials_name=None, datalake_id=None, datalake_name=None, datapool_current_operation_status=None, generation=None, infrastructure_provider_configuration=None, name=None, ongoing_job=None, starter=None, status=None, total_gb_of_ram=None, total_number_of_cores=None, total_number_of_nodes=None, updated_timestamp_seconds=None, user_owner_id=None, whitelisted_i_ps=None)
Datapool - a model defined in Swagger
def __init__(self, created_timestamp_seconds=None, credentials_name=None, datalake_id=None, datalake_name=None, datapool_current_operation_status=None, generation=None, infrastructure_provider_configuration=None, name=None, ongoing_job=None, starter=None, status=None, total_gb_of_ram=None, total_number_of_cores=None, total_number_of_nodes=None, updated_timestamp_seconds=None, user_owner_id=None, whitelisted_i_ps=None): # noqa: E501 """Datapool - a model defined in Swagger""" # noqa: E501 self._created_timestamp_seconds = None self._credentials_name = None self._datalake_id = None self._datalake_name = None self._datapool_current_operation_status = None self._generation = None self._infrastructure_provider_configuration = None self._name = None self._ongoing_job = None self._starter = None self._status = None self._total_gb_of_ram = None self._total_number_of_cores = None self._total_number_of_nodes = None self._updated_timestamp_seconds = None self._user_owner_id = None self._whitelisted_i_ps = None if created_timestamp_seconds is not None: self.created_timestamp_seconds = created_timestamp_seconds if credentials_name is not None: self.credentials_name = credentials_name if datalake_id is not None: self.datalake_id = datalake_id if datalake_name is not None: self.datalake_name = datalake_name if datapool_current_operation_status is not None: self.datapool_current_operation_status = datapool_current_operation_status if generation is not None: self.generation = generation if infrastructure_provider_configuration is not None: self.infrastructure_provider_configuration = infrastructure_provider_configuration if name is not None: self.name = name if ongoing_job is not None: self.ongoing_job = ongoing_job if starter is not None: self.starter = starter if status is not None: self.status = status if total_gb_of_ram is not None: self.total_gb_of_ram = total_gb_of_ram if total_number_of_cores is not None: self.total_number_of_cores = total_number_of_cores if total_number_of_nodes is not None: self.total_number_of_nodes = total_number_of_nodes if updated_timestamp_seconds is not None: self.updated_timestamp_seconds = updated_timestamp_seconds if user_owner_id is not None: self.user_owner_id = user_owner_id if whitelisted_i_ps is not None: self.whitelisted_i_ps = whitelisted_i_ps
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(Datapool, 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 Datapool. # noqa: E501
:return: The created_timestamp_seconds of this Datapool. # noqa: E501 :rtype: int
var credentials_name
Gets the credentials_name of this Datapool. # noqa: E501
The name of the credential to be used when interacting with the environment where the Kubernetes cluster and data reside. A credential with this name needs to have been previously created by the user that also creates the datapool. # noqa: E501
:return: The credentials_name of this Datapool. # noqa: E501 :rtype: str
var datalake_id
Gets the datalake_id of this Datapool. # noqa: E501
The id of the datalake in which this datapool exists. Read-only value set on create, based on the datalake name specified. # noqa: E501
:return: The datalake_id of this Datapool. # noqa: E501 :rtype: int
var datalake_name
Gets the datalake_name of this Datapool. # noqa: E501
The name of the datalake in which this datapool exists. Based on this name, the datalake id is set on the datapool on create. If that datalake's name is edited, the change is propagated. # noqa: E501
:return: The datalake_name of this Datapool. # noqa: E501 :rtype: str
var datapool_current_operation_status
Gets the datapool_current_operation_status of this Datapool. # noqa: E501
:return: The datapool_current_operation_status of this Datapool. # noqa: E501 :rtype: DatapoolCurrentOperationStatus
var generation
Gets the generation of this Datapool. # noqa: E501
A sequence number representing a specific generation of the datapool state. Read-only value set by the system. # noqa: E501
:return: The generation of this Datapool. # noqa: E501 :rtype: int
var infrastructure_provider_configuration
Gets the infrastructure_provider_configuration of this Datapool. # noqa: E501
:return: The infrastructure_provider_configuration of this Datapool. # noqa: E501 :rtype: InfrastructureProviderConfiguration
var name
Gets the name of this Datapool. # noqa: E501
The name under which the datapool is identified in the application. It must be globally unique. # noqa: E501
:return: The name of this Datapool. # noqa: E501 :rtype: str
var ongoing_job
Gets the ongoing_job of this Datapool. # noqa: E501
:return: The ongoing_job of this Datapool. # noqa: E501 :rtype: JobIdentifier
var starter
Gets the starter of this Datapool. # noqa: E501
:return: The starter of this Datapool. # noqa: E501 :rtype: bool
var status
Gets the status of this Datapool. # noqa: E501
The current status of the datapool. # noqa: E501
:return: The status of this Datapool. # noqa: E501 :rtype: str
var total_gb_of_ram
Gets the total_gb_of_ram of this Datapool. # noqa: E501
Current total number of gigabytes of RAM of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501
:return: The total_gb_of_ram of this Datapool. # noqa: E501 :rtype: float
var total_number_of_cores
Gets the total_number_of_cores of this Datapool. # noqa: E501
Current total number of cores of the Kubernetes cluster, that can be used by applications. It is automatically kept up-to-date following operations on the datapool. # noqa: E501
:return: The total_number_of_cores of this Datapool. # noqa: E501 :rtype: int
var total_number_of_nodes
Gets the total_number_of_nodes of this Datapool. # noqa: E501
Currrent total number of managed nodes in the Kubernetes cluster. # noqa: E501
:return: The total_number_of_nodes of this Datapool. # noqa: E501 :rtype: int
var updated_timestamp_seconds
Gets the updated_timestamp_seconds of this Datapool. # noqa: E501
:return: The updated_timestamp_seconds of this Datapool. # noqa: E501 :rtype: int
var user_owner_id
Gets the user_owner_id of this Datapool. # noqa: E501
The owner of the datapool. It is populated with the user id of the user that creates it and cannot be changed. # noqa: E501
:return: The user_owner_id of this Datapool. # noqa: E501 :rtype: int
var whitelisted_i_ps
Gets the whitelisted_i_ps of this Datapool. # noqa: E501
:return: The whitelisted_i_ps of this Datapool. # noqa: E501 :rtype: list[WhitelistedIP]