Module presalytics.client.presalytics_ooxml_automation.models.shared_text

OOXML Automation

This API helps users convert Excel and Powerpoint documents into rich, live dashboards and stories. # noqa: E501

The version of the OpenAPI document: 0.1.0-no-tags Generated by: https://openapi-generator.tech

Expand source code Browse git
# coding: utf-8

"""
    OOXML Automation

    This API helps users convert Excel and Powerpoint documents into rich, live dashboards and stories.  # noqa: E501

    The version of the OpenAPI document: 0.1.0-no-tags
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class SharedText(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 = {
        'paragraph_id': 'str',
        'sequence': 'int',
        'raw_text': 'str',
        'color_solid_fills_id': 'str',
        'is_bold': 'bool',
        'is_italic': 'bool',
        'is_underline': 'bool',
        'font_size': 'int',
        'font': 'str',
        'is_theme_font': 'bool',
        'id': 'str'
    }

    attribute_map = {
        'paragraph_id': 'paragraphId',
        'sequence': 'sequence',
        'raw_text': 'rawText',
        'color_solid_fills_id': 'colorSolidFillsId',
        'is_bold': 'isBold',
        'is_italic': 'isItalic',
        'is_underline': 'isUnderline',
        'font_size': 'fontSize',
        'font': 'font',
        'is_theme_font': 'isThemeFont',
        'id': 'id'
    }

    def __init__(self, paragraph_id=None, sequence=None, raw_text=None, color_solid_fills_id=None, is_bold=None, is_italic=None, is_underline=None, font_size=None, font=None, is_theme_font=None, id=None):  # noqa: E501
        """SharedText - a model defined in OpenAPI"""  # noqa: E501

        self._paragraph_id = None
        self._sequence = None
        self._raw_text = None
        self._color_solid_fills_id = None
        self._is_bold = None
        self._is_italic = None
        self._is_underline = None
        self._font_size = None
        self._font = None
        self._is_theme_font = None
        self._id = None
        self.discriminator = None

        self.paragraph_id = paragraph_id
        if sequence is not None:
            self.sequence = sequence
        self.raw_text = raw_text
        self.color_solid_fills_id = color_solid_fills_id
        if is_bold is not None:
            self.is_bold = is_bold
        if is_italic is not None:
            self.is_italic = is_italic
        if is_underline is not None:
            self.is_underline = is_underline
        self.font_size = font_size
        self.font = font
        if is_theme_font is not None:
            self.is_theme_font = is_theme_font
        if id is not None:
            self.id = id

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


        :return: The paragraph_id of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._paragraph_id

    @paragraph_id.setter
    def paragraph_id(self, paragraph_id):
        """Sets the paragraph_id of this SharedText.


        :param paragraph_id: The paragraph_id of this SharedText.  # noqa: E501
        :type: str
        """

        self._paragraph_id = paragraph_id

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


        :return: The sequence of this SharedText.  # noqa: E501
        :rtype: int
        """
        return self._sequence

    @sequence.setter
    def sequence(self, sequence):
        """Sets the sequence of this SharedText.


        :param sequence: The sequence of this SharedText.  # noqa: E501
        :type: int
        """

        self._sequence = sequence

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


        :return: The raw_text of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._raw_text

    @raw_text.setter
    def raw_text(self, raw_text):
        """Sets the raw_text of this SharedText.


        :param raw_text: The raw_text of this SharedText.  # noqa: E501
        :type: str
        """

        self._raw_text = raw_text

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


        :return: The color_solid_fills_id of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._color_solid_fills_id

    @color_solid_fills_id.setter
    def color_solid_fills_id(self, color_solid_fills_id):
        """Sets the color_solid_fills_id of this SharedText.


        :param color_solid_fills_id: The color_solid_fills_id of this SharedText.  # noqa: E501
        :type: str
        """

        self._color_solid_fills_id = color_solid_fills_id

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


        :return: The is_bold of this SharedText.  # noqa: E501
        :rtype: bool
        """
        return self._is_bold

    @is_bold.setter
    def is_bold(self, is_bold):
        """Sets the is_bold of this SharedText.


        :param is_bold: The is_bold of this SharedText.  # noqa: E501
        :type: bool
        """

        self._is_bold = is_bold

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


        :return: The is_italic of this SharedText.  # noqa: E501
        :rtype: bool
        """
        return self._is_italic

    @is_italic.setter
    def is_italic(self, is_italic):
        """Sets the is_italic of this SharedText.


        :param is_italic: The is_italic of this SharedText.  # noqa: E501
        :type: bool
        """

        self._is_italic = is_italic

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


        :return: The is_underline of this SharedText.  # noqa: E501
        :rtype: bool
        """
        return self._is_underline

    @is_underline.setter
    def is_underline(self, is_underline):
        """Sets the is_underline of this SharedText.


        :param is_underline: The is_underline of this SharedText.  # noqa: E501
        :type: bool
        """

        self._is_underline = is_underline

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


        :return: The font_size of this SharedText.  # noqa: E501
        :rtype: int
        """
        return self._font_size

    @font_size.setter
    def font_size(self, font_size):
        """Sets the font_size of this SharedText.


        :param font_size: The font_size of this SharedText.  # noqa: E501
        :type: int
        """

        self._font_size = font_size

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


        :return: The font of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._font

    @font.setter
    def font(self, font):
        """Sets the font of this SharedText.


        :param font: The font of this SharedText.  # noqa: E501
        :type: str
        """

        self._font = font

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


        :return: The is_theme_font of this SharedText.  # noqa: E501
        :rtype: bool
        """
        return self._is_theme_font

    @is_theme_font.setter
    def is_theme_font(self, is_theme_font):
        """Sets the is_theme_font of this SharedText.


        :param is_theme_font: The is_theme_font of this SharedText.  # noqa: E501
        :type: bool
        """

        self._is_theme_font = is_theme_font

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


        :return: The id of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this SharedText.


        :param id: The id of this SharedText.  # noqa: E501
        :type: str
        """

        self._id = id

    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, SharedText):
            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 SharedText (paragraph_id=None, sequence=None, raw_text=None, color_solid_fills_id=None, is_bold=None, is_italic=None, is_underline=None, font_size=None, font=None, is_theme_font=None, id=None)

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

Do not edit the class manually.

SharedText - a model defined in OpenAPI

Expand source code Browse git
class SharedText(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 = {
        'paragraph_id': 'str',
        'sequence': 'int',
        'raw_text': 'str',
        'color_solid_fills_id': 'str',
        'is_bold': 'bool',
        'is_italic': 'bool',
        'is_underline': 'bool',
        'font_size': 'int',
        'font': 'str',
        'is_theme_font': 'bool',
        'id': 'str'
    }

    attribute_map = {
        'paragraph_id': 'paragraphId',
        'sequence': 'sequence',
        'raw_text': 'rawText',
        'color_solid_fills_id': 'colorSolidFillsId',
        'is_bold': 'isBold',
        'is_italic': 'isItalic',
        'is_underline': 'isUnderline',
        'font_size': 'fontSize',
        'font': 'font',
        'is_theme_font': 'isThemeFont',
        'id': 'id'
    }

    def __init__(self, paragraph_id=None, sequence=None, raw_text=None, color_solid_fills_id=None, is_bold=None, is_italic=None, is_underline=None, font_size=None, font=None, is_theme_font=None, id=None):  # noqa: E501
        """SharedText - a model defined in OpenAPI"""  # noqa: E501

        self._paragraph_id = None
        self._sequence = None
        self._raw_text = None
        self._color_solid_fills_id = None
        self._is_bold = None
        self._is_italic = None
        self._is_underline = None
        self._font_size = None
        self._font = None
        self._is_theme_font = None
        self._id = None
        self.discriminator = None

        self.paragraph_id = paragraph_id
        if sequence is not None:
            self.sequence = sequence
        self.raw_text = raw_text
        self.color_solid_fills_id = color_solid_fills_id
        if is_bold is not None:
            self.is_bold = is_bold
        if is_italic is not None:
            self.is_italic = is_italic
        if is_underline is not None:
            self.is_underline = is_underline
        self.font_size = font_size
        self.font = font
        if is_theme_font is not None:
            self.is_theme_font = is_theme_font
        if id is not None:
            self.id = id

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


        :return: The paragraph_id of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._paragraph_id

    @paragraph_id.setter
    def paragraph_id(self, paragraph_id):
        """Sets the paragraph_id of this SharedText.


        :param paragraph_id: The paragraph_id of this SharedText.  # noqa: E501
        :type: str
        """

        self._paragraph_id = paragraph_id

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


        :return: The sequence of this SharedText.  # noqa: E501
        :rtype: int
        """
        return self._sequence

    @sequence.setter
    def sequence(self, sequence):
        """Sets the sequence of this SharedText.


        :param sequence: The sequence of this SharedText.  # noqa: E501
        :type: int
        """

        self._sequence = sequence

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


        :return: The raw_text of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._raw_text

    @raw_text.setter
    def raw_text(self, raw_text):
        """Sets the raw_text of this SharedText.


        :param raw_text: The raw_text of this SharedText.  # noqa: E501
        :type: str
        """

        self._raw_text = raw_text

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


        :return: The color_solid_fills_id of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._color_solid_fills_id

    @color_solid_fills_id.setter
    def color_solid_fills_id(self, color_solid_fills_id):
        """Sets the color_solid_fills_id of this SharedText.


        :param color_solid_fills_id: The color_solid_fills_id of this SharedText.  # noqa: E501
        :type: str
        """

        self._color_solid_fills_id = color_solid_fills_id

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


        :return: The is_bold of this SharedText.  # noqa: E501
        :rtype: bool
        """
        return self._is_bold

    @is_bold.setter
    def is_bold(self, is_bold):
        """Sets the is_bold of this SharedText.


        :param is_bold: The is_bold of this SharedText.  # noqa: E501
        :type: bool
        """

        self._is_bold = is_bold

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


        :return: The is_italic of this SharedText.  # noqa: E501
        :rtype: bool
        """
        return self._is_italic

    @is_italic.setter
    def is_italic(self, is_italic):
        """Sets the is_italic of this SharedText.


        :param is_italic: The is_italic of this SharedText.  # noqa: E501
        :type: bool
        """

        self._is_italic = is_italic

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


        :return: The is_underline of this SharedText.  # noqa: E501
        :rtype: bool
        """
        return self._is_underline

    @is_underline.setter
    def is_underline(self, is_underline):
        """Sets the is_underline of this SharedText.


        :param is_underline: The is_underline of this SharedText.  # noqa: E501
        :type: bool
        """

        self._is_underline = is_underline

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


        :return: The font_size of this SharedText.  # noqa: E501
        :rtype: int
        """
        return self._font_size

    @font_size.setter
    def font_size(self, font_size):
        """Sets the font_size of this SharedText.


        :param font_size: The font_size of this SharedText.  # noqa: E501
        :type: int
        """

        self._font_size = font_size

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


        :return: The font of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._font

    @font.setter
    def font(self, font):
        """Sets the font of this SharedText.


        :param font: The font of this SharedText.  # noqa: E501
        :type: str
        """

        self._font = font

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


        :return: The is_theme_font of this SharedText.  # noqa: E501
        :rtype: bool
        """
        return self._is_theme_font

    @is_theme_font.setter
    def is_theme_font(self, is_theme_font):
        """Sets the is_theme_font of this SharedText.


        :param is_theme_font: The is_theme_font of this SharedText.  # noqa: E501
        :type: bool
        """

        self._is_theme_font = is_theme_font

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


        :return: The id of this SharedText.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this SharedText.


        :param id: The id of this SharedText.  # noqa: E501
        :type: str
        """

        self._id = id

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

        return self.__dict__ == other.__dict__

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

Class variables

var openapi_types

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

var attribute_map

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

Instance variables

var paragraph_id

Gets the paragraph_id of this SharedText. # noqa: E501

:return: The paragraph_id of this SharedText. # noqa: E501 :rtype: str

Expand source code Browse git
@property
def paragraph_id(self):
    """Gets the paragraph_id of this SharedText.  # noqa: E501


    :return: The paragraph_id of this SharedText.  # noqa: E501
    :rtype: str
    """
    return self._paragraph_id
var sequence

Gets the sequence of this SharedText. # noqa: E501

:return: The sequence of this SharedText. # noqa: E501 :rtype: int

Expand source code Browse git
@property
def sequence(self):
    """Gets the sequence of this SharedText.  # noqa: E501


    :return: The sequence of this SharedText.  # noqa: E501
    :rtype: int
    """
    return self._sequence
var raw_text

Gets the raw_text of this SharedText. # noqa: E501

:return: The raw_text of this SharedText. # noqa: E501 :rtype: str

Expand source code Browse git
@property
def raw_text(self):
    """Gets the raw_text of this SharedText.  # noqa: E501


    :return: The raw_text of this SharedText.  # noqa: E501
    :rtype: str
    """
    return self._raw_text
var color_solid_fills_id

Gets the color_solid_fills_id of this SharedText. # noqa: E501

:return: The color_solid_fills_id of this SharedText. # noqa: E501 :rtype: str

Expand source code Browse git
@property
def color_solid_fills_id(self):
    """Gets the color_solid_fills_id of this SharedText.  # noqa: E501


    :return: The color_solid_fills_id of this SharedText.  # noqa: E501
    :rtype: str
    """
    return self._color_solid_fills_id
var is_bold

Gets the is_bold of this SharedText. # noqa: E501

:return: The is_bold of this SharedText. # noqa: E501 :rtype: bool

Expand source code Browse git
@property
def is_bold(self):
    """Gets the is_bold of this SharedText.  # noqa: E501


    :return: The is_bold of this SharedText.  # noqa: E501
    :rtype: bool
    """
    return self._is_bold
var is_italic

Gets the is_italic of this SharedText. # noqa: E501

:return: The is_italic of this SharedText. # noqa: E501 :rtype: bool

Expand source code Browse git
@property
def is_italic(self):
    """Gets the is_italic of this SharedText.  # noqa: E501


    :return: The is_italic of this SharedText.  # noqa: E501
    :rtype: bool
    """
    return self._is_italic
var is_underline

Gets the is_underline of this SharedText. # noqa: E501

:return: The is_underline of this SharedText. # noqa: E501 :rtype: bool

Expand source code Browse git
@property
def is_underline(self):
    """Gets the is_underline of this SharedText.  # noqa: E501


    :return: The is_underline of this SharedText.  # noqa: E501
    :rtype: bool
    """
    return self._is_underline
var font_size

Gets the font_size of this SharedText. # noqa: E501

:return: The font_size of this SharedText. # noqa: E501 :rtype: int

Expand source code Browse git
@property
def font_size(self):
    """Gets the font_size of this SharedText.  # noqa: E501


    :return: The font_size of this SharedText.  # noqa: E501
    :rtype: int
    """
    return self._font_size
var font

Gets the font of this SharedText. # noqa: E501

:return: The font of this SharedText. # noqa: E501 :rtype: str

Expand source code Browse git
@property
def font(self):
    """Gets the font of this SharedText.  # noqa: E501


    :return: The font of this SharedText.  # noqa: E501
    :rtype: str
    """
    return self._font
var is_theme_font

Gets the is_theme_font of this SharedText. # noqa: E501

:return: The is_theme_font of this SharedText. # noqa: E501 :rtype: bool

Expand source code Browse git
@property
def is_theme_font(self):
    """Gets the is_theme_font of this SharedText.  # noqa: E501


    :return: The is_theme_font of this SharedText.  # noqa: E501
    :rtype: bool
    """
    return self._is_theme_font
var id

Gets the id of this SharedText. # noqa: E501

:return: The id of this SharedText. # noqa: E501 :rtype: str

Expand source code Browse git
@property
def id(self):
    """Gets the id of this SharedText.  # noqa: E501


    :return: The id of this SharedText.  # noqa: E501
    :rtype: str
    """
    return self._id

Methods

def to_dict(self)

Returns the model properties as a dict

Expand source code Browse git
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

Expand source code Browse git
def to_str(self):
    """Returns the string representation of the model"""
    return pprint.pformat(self.to_dict())