Module mailslurp_client.models.device_preview_shared_screenshot_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
-
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
DevicePreviewSharedScreenshotDto - a model defined in OpenAPI
Expand source code
class DevicePreviewSharedScreenshotDto(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 = { 'screenshot_id': 'str', 'run_id': 'str', 'target_id': 'str', 'variant': 'str', 'title': 'str', 'description': 'str', 'is_primary': 'bool', 'display_order': 'int', 'image_url': 'str', 'width': 'int', 'height': 'int', 'created_at': 'datetime', 'updated_at': 'datetime' } attribute_map = { 'screenshot_id': 'screenshotId', 'run_id': 'runId', 'target_id': 'targetId', 'variant': 'variant', 'title': 'title', 'description': 'description', 'is_primary': 'isPrimary', 'display_order': 'displayOrder', 'image_url': 'imageUrl', 'width': 'width', 'height': 'height', 'created_at': 'createdAt', 'updated_at': 'updatedAt' } def __init__(self, screenshot_id=None, run_id=None, target_id=None, variant=None, title=None, description=None, is_primary=None, display_order=None, image_url=None, width=None, height=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501 """DevicePreviewSharedScreenshotDto - 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._screenshot_id = None self._run_id = None self._target_id = None self._variant = None self._title = None self._description = None self._is_primary = None self._display_order = None self._image_url = None self._width = None self._height = None self._created_at = None self._updated_at = None self.discriminator = None self.screenshot_id = screenshot_id self.run_id = run_id self.target_id = target_id self.variant = variant self.title = title self.description = description self.is_primary = is_primary self.display_order = display_order self.image_url = image_url self.width = width self.height = height self.created_at = created_at self.updated_at = updated_at @property def screenshot_id(self): """Gets the screenshot_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The screenshot_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._screenshot_id @screenshot_id.setter def screenshot_id(self, screenshot_id): """Sets the screenshot_id of this DevicePreviewSharedScreenshotDto. :param screenshot_id: The screenshot_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and screenshot_id is None: # noqa: E501 raise ValueError("Invalid value for `screenshot_id`, must not be `None`") # noqa: E501 self._screenshot_id = screenshot_id @property def run_id(self): """Gets the run_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The run_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._run_id @run_id.setter def run_id(self, run_id): """Sets the run_id of this DevicePreviewSharedScreenshotDto. :param run_id: The run_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and run_id is None: # noqa: E501 raise ValueError("Invalid value for `run_id`, must not be `None`") # noqa: E501 self._run_id = run_id @property def target_id(self): """Gets the target_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The target_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._target_id @target_id.setter def target_id(self, target_id): """Sets the target_id of this DevicePreviewSharedScreenshotDto. :param target_id: The target_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: str """ self._target_id = target_id @property def variant(self): """Gets the variant of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The variant of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._variant @variant.setter def variant(self, variant): """Sets the variant of this DevicePreviewSharedScreenshotDto. :param variant: The variant of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: str """ self._variant = variant @property def title(self): """Gets the title of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The title of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._title @title.setter def title(self, title): """Sets the title of this DevicePreviewSharedScreenshotDto. :param title: The title of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: str """ self._title = title @property def description(self): """Gets the description of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The description of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): """Sets the description of this DevicePreviewSharedScreenshotDto. :param description: The description of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: str """ self._description = description @property def is_primary(self): """Gets the is_primary of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The is_primary of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: bool """ return self._is_primary @is_primary.setter def is_primary(self, is_primary): """Sets the is_primary of this DevicePreviewSharedScreenshotDto. :param is_primary: The is_primary of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: bool """ if self.local_vars_configuration.client_side_validation and is_primary is None: # noqa: E501 raise ValueError("Invalid value for `is_primary`, must not be `None`") # noqa: E501 self._is_primary = is_primary @property def display_order(self): """Gets the display_order of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The display_order of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int """ return self._display_order @display_order.setter def display_order(self, display_order): """Sets the display_order of this DevicePreviewSharedScreenshotDto. :param display_order: The display_order of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and display_order is None: # noqa: E501 raise ValueError("Invalid value for `display_order`, must not be `None`") # noqa: E501 self._display_order = display_order @property def image_url(self): """Gets the image_url of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The image_url of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._image_url @image_url.setter def image_url(self, image_url): """Sets the image_url of this DevicePreviewSharedScreenshotDto. :param image_url: The image_url of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: str """ self._image_url = image_url @property def width(self): """Gets the width of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The width of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int """ return self._width @width.setter def width(self, width): """Sets the width of this DevicePreviewSharedScreenshotDto. :param width: The width of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: int """ self._width = width @property def height(self): """Gets the height of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The height of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int """ return self._height @height.setter def height(self, height): """Sets the height of this DevicePreviewSharedScreenshotDto. :param height: The height of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: int """ self._height = height @property def created_at(self): """Gets the created_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The created_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: datetime """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this DevicePreviewSharedScreenshotDto. :param created_at: The created_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: datetime """ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 self._created_at = created_at @property def updated_at(self): """Gets the updated_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The updated_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: datetime """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): """Sets the updated_at of this DevicePreviewSharedScreenshotDto. :param updated_at: The updated_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :type: datetime """ if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 self._updated_at = updated_at 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, DevicePreviewSharedScreenshotDto): 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, DevicePreviewSharedScreenshotDto): return True return self.to_dict() != other.to_dict()Class variables
Instance variables
-
Gets the created_at of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The created_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: datetime
Expand source code
@property def created_at(self): """Gets the created_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The created_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: datetime """ return self._created_at -
Gets the description of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The description of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str
Expand source code
@property def description(self): """Gets the description of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The description of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._description -
Gets the display_order of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The display_order of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int
Expand source code
@property def display_order(self): """Gets the display_order of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The display_order of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int """ return self._display_order -
Gets the height of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The height of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int
Expand source code
@property def height(self): """Gets the height of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The height of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int """ return self._height -
Gets the image_url of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The image_url of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str
Expand source code
@property def image_url(self): """Gets the image_url of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The image_url of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._image_url -
Gets the is_primary of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The is_primary of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: bool
Expand source code
@property def is_primary(self): """Gets the is_primary of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The is_primary of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: bool """ return self._is_primary -
Gets the run_id of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The run_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str
Expand source code
@property def run_id(self): """Gets the run_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The run_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._run_id -
Gets the screenshot_id of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The screenshot_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str
Expand source code
@property def screenshot_id(self): """Gets the screenshot_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The screenshot_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._screenshot_id -
Gets the target_id of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The target_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str
Expand source code
@property def target_id(self): """Gets the target_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The target_id of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._target_id -
Gets the title of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The title of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str
Expand source code
@property def title(self): """Gets the title of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The title of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._title -
Gets the updated_at of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The updated_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: datetime
Expand source code
@property def updated_at(self): """Gets the updated_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The updated_at of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: datetime """ return self._updated_at -
Gets the variant of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The variant of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str
Expand source code
@property def variant(self): """Gets the variant of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The variant of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: str """ return self._variant -
Gets the width of this DevicePreviewSharedScreenshotDto. # noqa: E501
:return: The width of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int
Expand source code
@property def width(self): """Gets the width of this DevicePreviewSharedScreenshotDto. # noqa: E501 :return: The width of this DevicePreviewSharedScreenshotDto. # noqa: E501 :rtype: int """ return self._width
Methods
-
Returns the model properties as a dict
-
Returns the string representation of the model