Module presalytics.client.presalytics_ooxml_automation.models.shared_gradient_stops_details
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 SharedGradientStopsDetails(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 = {
'gradient_fills_id': 'str',
'gradient_fill': 'SharedGradientFillsDetails',
'position': 'int',
'solid_fill': 'SharedSolidFillsDetails',
'id': 'str',
'date_created': 'datetime',
'user_created': 'str',
'date_modified': 'datetime',
'user_modified': 'str'
}
attribute_map = {
'gradient_fills_id': 'gradientFillsId',
'gradient_fill': 'gradientFill',
'position': 'position',
'solid_fill': 'solidFill',
'id': 'id',
'date_created': 'dateCreated',
'user_created': 'userCreated',
'date_modified': 'dateModified',
'user_modified': 'userModified'
}
def __init__(self, gradient_fills_id=None, gradient_fill=None, position=None, solid_fill=None, id=None, date_created=None, user_created=None, date_modified=None, user_modified=None): # noqa: E501
"""SharedGradientStopsDetails - a model defined in OpenAPI""" # noqa: E501
self._gradient_fills_id = None
self._gradient_fill = None
self._position = None
self._solid_fill = None
self._id = None
self._date_created = None
self._user_created = None
self._date_modified = None
self._user_modified = None
self.discriminator = None
self.gradient_fills_id = gradient_fills_id
if gradient_fill is not None:
self.gradient_fill = gradient_fill
if position is not None:
self.position = position
if solid_fill is not None:
self.solid_fill = solid_fill
if id is not None:
self.id = id
if date_created is not None:
self.date_created = date_created
if user_created is not None:
self.user_created = user_created
if date_modified is not None:
self.date_modified = date_modified
if user_modified is not None:
self.user_modified = user_modified
@property
def gradient_fills_id(self):
"""Gets the gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501
:return: The gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501
:rtype: str
"""
return self._gradient_fills_id
@gradient_fills_id.setter
def gradient_fills_id(self, gradient_fills_id):
"""Sets the gradient_fills_id of this SharedGradientStopsDetails.
:param gradient_fills_id: The gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501
:type: str
"""
self._gradient_fills_id = gradient_fills_id
@property
def gradient_fill(self):
"""Gets the gradient_fill of this SharedGradientStopsDetails. # noqa: E501
:return: The gradient_fill of this SharedGradientStopsDetails. # noqa: E501
:rtype: SharedGradientFillsDetails
"""
return self._gradient_fill
@gradient_fill.setter
def gradient_fill(self, gradient_fill):
"""Sets the gradient_fill of this SharedGradientStopsDetails.
:param gradient_fill: The gradient_fill of this SharedGradientStopsDetails. # noqa: E501
:type: SharedGradientFillsDetails
"""
self._gradient_fill = gradient_fill
@property
def position(self):
"""Gets the position of this SharedGradientStopsDetails. # noqa: E501
:return: The position of this SharedGradientStopsDetails. # noqa: E501
:rtype: int
"""
return self._position
@position.setter
def position(self, position):
"""Sets the position of this SharedGradientStopsDetails.
:param position: The position of this SharedGradientStopsDetails. # noqa: E501
:type: int
"""
self._position = position
@property
def solid_fill(self):
"""Gets the solid_fill of this SharedGradientStopsDetails. # noqa: E501
:return: The solid_fill of this SharedGradientStopsDetails. # noqa: E501
:rtype: SharedSolidFillsDetails
"""
return self._solid_fill
@solid_fill.setter
def solid_fill(self, solid_fill):
"""Sets the solid_fill of this SharedGradientStopsDetails.
:param solid_fill: The solid_fill of this SharedGradientStopsDetails. # noqa: E501
:type: SharedSolidFillsDetails
"""
self._solid_fill = solid_fill
@property
def id(self):
"""Gets the id of this SharedGradientStopsDetails. # noqa: E501
:return: The id of this SharedGradientStopsDetails. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this SharedGradientStopsDetails.
:param id: The id of this SharedGradientStopsDetails. # noqa: E501
:type: str
"""
self._id = id
@property
def date_created(self):
"""Gets the date_created of this SharedGradientStopsDetails. # noqa: E501
:return: The date_created of this SharedGradientStopsDetails. # noqa: E501
:rtype: datetime
"""
return self._date_created
@date_created.setter
def date_created(self, date_created):
"""Sets the date_created of this SharedGradientStopsDetails.
:param date_created: The date_created of this SharedGradientStopsDetails. # noqa: E501
:type: datetime
"""
self._date_created = date_created
@property
def user_created(self):
"""Gets the user_created of this SharedGradientStopsDetails. # noqa: E501
:return: The user_created of this SharedGradientStopsDetails. # noqa: E501
:rtype: str
"""
return self._user_created
@user_created.setter
def user_created(self, user_created):
"""Sets the user_created of this SharedGradientStopsDetails.
:param user_created: The user_created of this SharedGradientStopsDetails. # noqa: E501
:type: str
"""
self._user_created = user_created
@property
def date_modified(self):
"""Gets the date_modified of this SharedGradientStopsDetails. # noqa: E501
:return: The date_modified of this SharedGradientStopsDetails. # noqa: E501
:rtype: datetime
"""
return self._date_modified
@date_modified.setter
def date_modified(self, date_modified):
"""Sets the date_modified of this SharedGradientStopsDetails.
:param date_modified: The date_modified of this SharedGradientStopsDetails. # noqa: E501
:type: datetime
"""
self._date_modified = date_modified
@property
def user_modified(self):
"""Gets the user_modified of this SharedGradientStopsDetails. # noqa: E501
:return: The user_modified of this SharedGradientStopsDetails. # noqa: E501
:rtype: str
"""
return self._user_modified
@user_modified.setter
def user_modified(self, user_modified):
"""Sets the user_modified of this SharedGradientStopsDetails.
:param user_modified: The user_modified of this SharedGradientStopsDetails. # noqa: E501
:type: str
"""
self._user_modified = user_modified
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, SharedGradientStopsDetails):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
Classes
-
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
SharedGradientStopsDetails - a model defined in OpenAPI
Expand source code Browse git
class SharedGradientStopsDetails(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 = { 'gradient_fills_id': 'str', 'gradient_fill': 'SharedGradientFillsDetails', 'position': 'int', 'solid_fill': 'SharedSolidFillsDetails', 'id': 'str', 'date_created': 'datetime', 'user_created': 'str', 'date_modified': 'datetime', 'user_modified': 'str' } attribute_map = { 'gradient_fills_id': 'gradientFillsId', 'gradient_fill': 'gradientFill', 'position': 'position', 'solid_fill': 'solidFill', 'id': 'id', 'date_created': 'dateCreated', 'user_created': 'userCreated', 'date_modified': 'dateModified', 'user_modified': 'userModified' } def __init__(self, gradient_fills_id=None, gradient_fill=None, position=None, solid_fill=None, id=None, date_created=None, user_created=None, date_modified=None, user_modified=None): # noqa: E501 """SharedGradientStopsDetails - a model defined in OpenAPI""" # noqa: E501 self._gradient_fills_id = None self._gradient_fill = None self._position = None self._solid_fill = None self._id = None self._date_created = None self._user_created = None self._date_modified = None self._user_modified = None self.discriminator = None self.gradient_fills_id = gradient_fills_id if gradient_fill is not None: self.gradient_fill = gradient_fill if position is not None: self.position = position if solid_fill is not None: self.solid_fill = solid_fill if id is not None: self.id = id if date_created is not None: self.date_created = date_created if user_created is not None: self.user_created = user_created if date_modified is not None: self.date_modified = date_modified if user_modified is not None: self.user_modified = user_modified @property def gradient_fills_id(self): """Gets the gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501 :return: The gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501 :rtype: str """ return self._gradient_fills_id @gradient_fills_id.setter def gradient_fills_id(self, gradient_fills_id): """Sets the gradient_fills_id of this SharedGradientStopsDetails. :param gradient_fills_id: The gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501 :type: str """ self._gradient_fills_id = gradient_fills_id @property def gradient_fill(self): """Gets the gradient_fill of this SharedGradientStopsDetails. # noqa: E501 :return: The gradient_fill of this SharedGradientStopsDetails. # noqa: E501 :rtype: SharedGradientFillsDetails """ return self._gradient_fill @gradient_fill.setter def gradient_fill(self, gradient_fill): """Sets the gradient_fill of this SharedGradientStopsDetails. :param gradient_fill: The gradient_fill of this SharedGradientStopsDetails. # noqa: E501 :type: SharedGradientFillsDetails """ self._gradient_fill = gradient_fill @property def position(self): """Gets the position of this SharedGradientStopsDetails. # noqa: E501 :return: The position of this SharedGradientStopsDetails. # noqa: E501 :rtype: int """ return self._position @position.setter def position(self, position): """Sets the position of this SharedGradientStopsDetails. :param position: The position of this SharedGradientStopsDetails. # noqa: E501 :type: int """ self._position = position @property def solid_fill(self): """Gets the solid_fill of this SharedGradientStopsDetails. # noqa: E501 :return: The solid_fill of this SharedGradientStopsDetails. # noqa: E501 :rtype: SharedSolidFillsDetails """ return self._solid_fill @solid_fill.setter def solid_fill(self, solid_fill): """Sets the solid_fill of this SharedGradientStopsDetails. :param solid_fill: The solid_fill of this SharedGradientStopsDetails. # noqa: E501 :type: SharedSolidFillsDetails """ self._solid_fill = solid_fill @property def id(self): """Gets the id of this SharedGradientStopsDetails. # noqa: E501 :return: The id of this SharedGradientStopsDetails. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this SharedGradientStopsDetails. :param id: The id of this SharedGradientStopsDetails. # noqa: E501 :type: str """ self._id = id @property def date_created(self): """Gets the date_created of this SharedGradientStopsDetails. # noqa: E501 :return: The date_created of this SharedGradientStopsDetails. # noqa: E501 :rtype: datetime """ return self._date_created @date_created.setter def date_created(self, date_created): """Sets the date_created of this SharedGradientStopsDetails. :param date_created: The date_created of this SharedGradientStopsDetails. # noqa: E501 :type: datetime """ self._date_created = date_created @property def user_created(self): """Gets the user_created of this SharedGradientStopsDetails. # noqa: E501 :return: The user_created of this SharedGradientStopsDetails. # noqa: E501 :rtype: str """ return self._user_created @user_created.setter def user_created(self, user_created): """Sets the user_created of this SharedGradientStopsDetails. :param user_created: The user_created of this SharedGradientStopsDetails. # noqa: E501 :type: str """ self._user_created = user_created @property def date_modified(self): """Gets the date_modified of this SharedGradientStopsDetails. # noqa: E501 :return: The date_modified of this SharedGradientStopsDetails. # noqa: E501 :rtype: datetime """ return self._date_modified @date_modified.setter def date_modified(self, date_modified): """Sets the date_modified of this SharedGradientStopsDetails. :param date_modified: The date_modified of this SharedGradientStopsDetails. # noqa: E501 :type: datetime """ self._date_modified = date_modified @property def user_modified(self): """Gets the user_modified of this SharedGradientStopsDetails. # noqa: E501 :return: The user_modified of this SharedGradientStopsDetails. # noqa: E501 :rtype: str """ return self._user_modified @user_modified.setter def user_modified(self, user_modified): """Sets the user_modified of this SharedGradientStopsDetails. :param user_modified: The user_modified of this SharedGradientStopsDetails. # noqa: E501 :type: str """ self._user_modified = user_modified 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, SharedGradientStopsDetails): 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
-
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)
-
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
-
Gets the gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501
:return: The gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501 :rtype: str
Expand source code Browse git
@property def gradient_fills_id(self): """Gets the gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501 :return: The gradient_fills_id of this SharedGradientStopsDetails. # noqa: E501 :rtype: str """ return self._gradient_fills_id
-
Gets the gradient_fill of this SharedGradientStopsDetails. # noqa: E501
:return: The gradient_fill of this SharedGradientStopsDetails. # noqa: E501 :rtype: SharedGradientFillsDetails
Expand source code Browse git
@property def gradient_fill(self): """Gets the gradient_fill of this SharedGradientStopsDetails. # noqa: E501 :return: The gradient_fill of this SharedGradientStopsDetails. # noqa: E501 :rtype: SharedGradientFillsDetails """ return self._gradient_fill
-
Gets the position of this SharedGradientStopsDetails. # noqa: E501
:return: The position of this SharedGradientStopsDetails. # noqa: E501 :rtype: int
Expand source code Browse git
@property def position(self): """Gets the position of this SharedGradientStopsDetails. # noqa: E501 :return: The position of this SharedGradientStopsDetails. # noqa: E501 :rtype: int """ return self._position
-
Gets the solid_fill of this SharedGradientStopsDetails. # noqa: E501
:return: The solid_fill of this SharedGradientStopsDetails. # noqa: E501 :rtype: SharedSolidFillsDetails
Expand source code Browse git
@property def solid_fill(self): """Gets the solid_fill of this SharedGradientStopsDetails. # noqa: E501 :return: The solid_fill of this SharedGradientStopsDetails. # noqa: E501 :rtype: SharedSolidFillsDetails """ return self._solid_fill
-
Gets the id of this SharedGradientStopsDetails. # noqa: E501
:return: The id of this SharedGradientStopsDetails. # noqa: E501 :rtype: str
Expand source code Browse git
@property def id(self): """Gets the id of this SharedGradientStopsDetails. # noqa: E501 :return: The id of this SharedGradientStopsDetails. # noqa: E501 :rtype: str """ return self._id
-
Gets the date_created of this SharedGradientStopsDetails. # noqa: E501
:return: The date_created of this SharedGradientStopsDetails. # noqa: E501 :rtype: datetime
Expand source code Browse git
@property def date_created(self): """Gets the date_created of this SharedGradientStopsDetails. # noqa: E501 :return: The date_created of this SharedGradientStopsDetails. # noqa: E501 :rtype: datetime """ return self._date_created
-
Gets the user_created of this SharedGradientStopsDetails. # noqa: E501
:return: The user_created of this SharedGradientStopsDetails. # noqa: E501 :rtype: str
Expand source code Browse git
@property def user_created(self): """Gets the user_created of this SharedGradientStopsDetails. # noqa: E501 :return: The user_created of this SharedGradientStopsDetails. # noqa: E501 :rtype: str """ return self._user_created
-
Gets the date_modified of this SharedGradientStopsDetails. # noqa: E501
:return: The date_modified of this SharedGradientStopsDetails. # noqa: E501 :rtype: datetime
Expand source code Browse git
@property def date_modified(self): """Gets the date_modified of this SharedGradientStopsDetails. # noqa: E501 :return: The date_modified of this SharedGradientStopsDetails. # noqa: E501 :rtype: datetime """ return self._date_modified
-
Gets the user_modified of this SharedGradientStopsDetails. # noqa: E501
:return: The user_modified of this SharedGradientStopsDetails. # noqa: E501 :rtype: str
Expand source code Browse git
@property def user_modified(self): """Gets the user_modified of this SharedGradientStopsDetails. # noqa: E501 :return: The user_modified of this SharedGradientStopsDetails. # noqa: E501 :rtype: str """ return self._user_modified
Methods
-
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
-
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())
-