Module mailslurp_client.models.public_device_render_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 PublicDeviceRenderTargetDto (target=None, base_target=None, provider=None, client=None, surface=None, platform=None, form_factor=None, engine=None, appearance=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.

PublicDeviceRenderTargetDto - a model defined in OpenAPI

Expand source code
class PublicDeviceRenderTargetDto(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'
    }

    attribute_map = {
        'target': 'target',
        'base_target': 'baseTarget',
        'provider': 'provider',
        'client': 'client',
        'surface': 'surface',
        'platform': 'platform',
        'form_factor': 'formFactor',
        'engine': 'engine',
        'appearance': 'appearance'
    }

    def __init__(self, target=None, base_target=None, provider=None, client=None, surface=None, platform=None, form_factor=None, engine=None, appearance=None, local_vars_configuration=None):  # noqa: E501
        """PublicDeviceRenderTargetDto - 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.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

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


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

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


        :param target: The target of this PublicDeviceRenderTargetDto.  # 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 PublicDeviceRenderTargetDto.  # noqa: E501


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

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


        :param base_target: The base_target of this PublicDeviceRenderTargetDto.  # 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 PublicDeviceRenderTargetDto.  # noqa: E501


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

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


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

        self._provider = provider

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


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

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


        :param client: The client of this PublicDeviceRenderTargetDto.  # 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 PublicDeviceRenderTargetDto.  # noqa: E501


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

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


        :param surface: The surface of this PublicDeviceRenderTargetDto.  # 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 PublicDeviceRenderTargetDto.  # noqa: E501


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

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


        :param platform: The platform of this PublicDeviceRenderTargetDto.  # 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 PublicDeviceRenderTargetDto.  # noqa: E501


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

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


        :param form_factor: The form_factor of this PublicDeviceRenderTargetDto.  # 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 PublicDeviceRenderTargetDto.  # noqa: E501


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

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


        :param engine: The engine of this PublicDeviceRenderTargetDto.  # 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 PublicDeviceRenderTargetDto.  # noqa: E501


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

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


        :param appearance: The appearance of this PublicDeviceRenderTargetDto.  # 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

    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, PublicDeviceRenderTargetDto):
            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, PublicDeviceRenderTargetDto):
            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 PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Gets the base_target of this PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Gets the client of this PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Gets the engine of this PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Gets the form_factor of this PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Gets the platform of this PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Gets the provider of this PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Gets the surface of this PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Gets the target of this PublicDeviceRenderTargetDto. # noqa: E501

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

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


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

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model