Module mailslurp_client.models.device_preview_native_target_dto

MailSlurp API

MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - Homepage - Get an API KEY - Generated SDK Clients - Examples repository # noqa: E501

The version of the OpenAPI document: 6.5.2 Contact: contact@mailslurp.dev Generated by: https://openapi-generator.tech

Classes

class DevicePreviewNativeTargetDto (target=None, base_target=None, provider=None, client=None, surface=None, platform=None, form_factor=None, engine=None, appearance=None, credit_cost=None, tier=None, timeout_seconds=None, local_vars_configuration=None)

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

DevicePreviewNativeTargetDto - a model defined in OpenAPI

Expand source code
class DevicePreviewNativeTargetDto(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      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.
    """
    openapi_types = {
        'target': 'str',
        'base_target': 'str',
        'provider': 'str',
        'client': 'str',
        'surface': 'str',
        'platform': 'str',
        'form_factor': 'str',
        'engine': 'str',
        'appearance': 'str',
        'credit_cost': 'int',
        'tier': 'str',
        'timeout_seconds': 'int'
    }

    attribute_map = {
        'target': 'target',
        'base_target': 'baseTarget',
        'provider': 'provider',
        'client': 'client',
        'surface': 'surface',
        'platform': 'platform',
        'form_factor': 'formFactor',
        'engine': 'engine',
        'appearance': 'appearance',
        'credit_cost': 'creditCost',
        'tier': 'tier',
        'timeout_seconds': 'timeoutSeconds'
    }

    def __init__(self, target=None, base_target=None, provider=None, client=None, surface=None, platform=None, form_factor=None, engine=None, appearance=None, credit_cost=None, tier=None, timeout_seconds=None, local_vars_configuration=None):  # noqa: E501
        """DevicePreviewNativeTargetDto - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._target = None
        self._base_target = None
        self._provider = None
        self._client = None
        self._surface = None
        self._platform = None
        self._form_factor = None
        self._engine = None
        self._appearance = None
        self._credit_cost = None
        self._tier = None
        self._timeout_seconds = None
        self.discriminator = None

        self.target = target
        self.base_target = base_target
        self.provider = provider
        self.client = client
        self.surface = surface
        self.platform = platform
        self.form_factor = form_factor
        self.engine = engine
        self.appearance = appearance
        self.credit_cost = credit_cost
        self.tier = tier
        self.timeout_seconds = timeout_seconds

    @property
    def target(self):
        """Gets the target of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The target of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._target

    @target.setter
    def target(self, target):
        """Sets the target of this DevicePreviewNativeTargetDto.


        :param target: The target of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and target is None:  # noqa: E501
            raise ValueError("Invalid value for `target`, must not be `None`")  # noqa: E501

        self._target = target

    @property
    def base_target(self):
        """Gets the base_target of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The base_target of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._base_target

    @base_target.setter
    def base_target(self, base_target):
        """Sets the base_target of this DevicePreviewNativeTargetDto.


        :param base_target: The base_target of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and base_target is None:  # noqa: E501
            raise ValueError("Invalid value for `base_target`, must not be `None`")  # noqa: E501

        self._base_target = base_target

    @property
    def provider(self):
        """Gets the provider of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The provider of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._provider

    @provider.setter
    def provider(self, provider):
        """Sets the provider of this DevicePreviewNativeTargetDto.


        :param provider: The provider of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """

        self._provider = provider

    @property
    def client(self):
        """Gets the client of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The client of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._client

    @client.setter
    def client(self, client):
        """Sets the client of this DevicePreviewNativeTargetDto.


        :param client: The client of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and client is None:  # noqa: E501
            raise ValueError("Invalid value for `client`, must not be `None`")  # noqa: E501

        self._client = client

    @property
    def surface(self):
        """Gets the surface of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The surface of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._surface

    @surface.setter
    def surface(self, surface):
        """Sets the surface of this DevicePreviewNativeTargetDto.


        :param surface: The surface of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and surface is None:  # noqa: E501
            raise ValueError("Invalid value for `surface`, must not be `None`")  # noqa: E501

        self._surface = surface

    @property
    def platform(self):
        """Gets the platform of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The platform of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._platform

    @platform.setter
    def platform(self, platform):
        """Sets the platform of this DevicePreviewNativeTargetDto.


        :param platform: The platform of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and platform is None:  # noqa: E501
            raise ValueError("Invalid value for `platform`, must not be `None`")  # noqa: E501

        self._platform = platform

    @property
    def form_factor(self):
        """Gets the form_factor of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The form_factor of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._form_factor

    @form_factor.setter
    def form_factor(self, form_factor):
        """Sets the form_factor of this DevicePreviewNativeTargetDto.


        :param form_factor: The form_factor of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and form_factor is None:  # noqa: E501
            raise ValueError("Invalid value for `form_factor`, must not be `None`")  # noqa: E501

        self._form_factor = form_factor

    @property
    def engine(self):
        """Gets the engine of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The engine of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._engine

    @engine.setter
    def engine(self, engine):
        """Sets the engine of this DevicePreviewNativeTargetDto.


        :param engine: The engine of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and engine is None:  # noqa: E501
            raise ValueError("Invalid value for `engine`, must not be `None`")  # noqa: E501

        self._engine = engine

    @property
    def appearance(self):
        """Gets the appearance of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The appearance of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._appearance

    @appearance.setter
    def appearance(self, appearance):
        """Sets the appearance of this DevicePreviewNativeTargetDto.


        :param appearance: The appearance of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and appearance is None:  # noqa: E501
            raise ValueError("Invalid value for `appearance`, must not be `None`")  # noqa: E501

        self._appearance = appearance

    @property
    def credit_cost(self):
        """Gets the credit_cost of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The credit_cost of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: int
        """
        return self._credit_cost

    @credit_cost.setter
    def credit_cost(self, credit_cost):
        """Sets the credit_cost of this DevicePreviewNativeTargetDto.


        :param credit_cost: The credit_cost of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and credit_cost is None:  # noqa: E501
            raise ValueError("Invalid value for `credit_cost`, must not be `None`")  # noqa: E501

        self._credit_cost = credit_cost

    @property
    def tier(self):
        """Gets the tier of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The tier of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: str
        """
        return self._tier

    @tier.setter
    def tier(self, tier):
        """Sets the tier of this DevicePreviewNativeTargetDto.


        :param tier: The tier of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and tier is None:  # noqa: E501
            raise ValueError("Invalid value for `tier`, must not be `None`")  # noqa: E501
        allowed_values = ["STANDARD", "PREMIUM"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and tier not in allowed_values:  # noqa: E501
            raise ValueError(
                "Invalid value for `tier` ({0}), must be one of {1}"  # noqa: E501
                .format(tier, allowed_values)
            )

        self._tier = tier

    @property
    def timeout_seconds(self):
        """Gets the timeout_seconds of this DevicePreviewNativeTargetDto.  # noqa: E501


        :return: The timeout_seconds of this DevicePreviewNativeTargetDto.  # noqa: E501
        :rtype: int
        """
        return self._timeout_seconds

    @timeout_seconds.setter
    def timeout_seconds(self, timeout_seconds):
        """Sets the timeout_seconds of this DevicePreviewNativeTargetDto.


        :param timeout_seconds: The timeout_seconds of this DevicePreviewNativeTargetDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and timeout_seconds is None:  # noqa: E501
            raise ValueError("Invalid value for `timeout_seconds`, must not be `None`")  # noqa: E501

        self._timeout_seconds = timeout_seconds

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_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

        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, DevicePreviewNativeTargetDto):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, DevicePreviewNativeTargetDto):
            return True

        return self.to_dict() != other.to_dict()

Class variables

var attribute_map
var openapi_types

Instance variables

prop appearance

Gets the appearance of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The appearance of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def appearance(self):
    """Gets the appearance of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The appearance of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._appearance
prop base_target

Gets the base_target of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The base_target of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def base_target(self):
    """Gets the base_target of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The base_target of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._base_target
prop client

Gets the client of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The client of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def client(self):
    """Gets the client of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The client of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._client
prop credit_cost

Gets the credit_cost of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The credit_cost of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: int

Expand source code
@property
def credit_cost(self):
    """Gets the credit_cost of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The credit_cost of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: int
    """
    return self._credit_cost
prop engine

Gets the engine of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The engine of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def engine(self):
    """Gets the engine of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The engine of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._engine
prop form_factor

Gets the form_factor of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The form_factor of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def form_factor(self):
    """Gets the form_factor of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The form_factor of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._form_factor
prop platform

Gets the platform of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The platform of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def platform(self):
    """Gets the platform of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The platform of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._platform
prop provider

Gets the provider of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The provider of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def provider(self):
    """Gets the provider of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The provider of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._provider
prop surface

Gets the surface of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The surface of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def surface(self):
    """Gets the surface of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The surface of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._surface
prop target

Gets the target of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The target of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def target(self):
    """Gets the target of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The target of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._target
prop tier

Gets the tier of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The tier of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: str

Expand source code
@property
def tier(self):
    """Gets the tier of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The tier of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: str
    """
    return self._tier
prop timeout_seconds

Gets the timeout_seconds of this DevicePreviewNativeTargetDto. # noqa: E501

:return: The timeout_seconds of this DevicePreviewNativeTargetDto. # noqa: E501 :rtype: int

Expand source code
@property
def timeout_seconds(self):
    """Gets the timeout_seconds of this DevicePreviewNativeTargetDto.  # noqa: E501


    :return: The timeout_seconds of this DevicePreviewNativeTargetDto.  # noqa: E501
    :rtype: int
    """
    return self._timeout_seconds

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model