docusign_esign.models.page_size

DocuSign REST API

The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.

OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    DocuSign REST API
  5
  6    The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
  7
  8    OpenAPI spec version: v2.1
  9    Contact: devcenter@docusign.com
 10    Generated by: https://github.com/swagger-api/swagger-codegen.git
 11"""
 12
 13
 14from pprint import pformat
 15from six import iteritems
 16import re
 17
 18
 19class PageSize(object):
 20    """
 21    NOTE: This class is auto generated by the swagger code generator program.
 22    Do not edit the class manually.
 23    """
 24    def __init__(self, page_height=None, page_width=None):
 25        """
 26        PageSize - a model defined in Swagger
 27
 28        :param dict swaggerTypes: The key is attribute name
 29                                  and the value is attribute type.
 30        :param dict attributeMap: The key is attribute name
 31                                  and the value is json key in definition.
 32        """
 33        self.swagger_types = {
 34            'page_height': 'str',
 35            'page_width': 'str'
 36        }
 37
 38        self.attribute_map = {
 39            'page_height': 'pageHeight',
 40            'page_width': 'pageWidth'
 41        }
 42
 43        self._page_height = page_height
 44        self._page_width = page_width
 45
 46    @property
 47    def page_height(self):
 48        """
 49        Gets the page_height of this PageSize.
 50        
 51
 52        :return: The page_height of this PageSize.
 53        :rtype: str
 54        """
 55        return self._page_height
 56
 57    @page_height.setter
 58    def page_height(self, page_height):
 59        """
 60        Sets the page_height of this PageSize.
 61        
 62
 63        :param page_height: The page_height of this PageSize.
 64        :type: str
 65        """
 66
 67        self._page_height = page_height
 68
 69    @property
 70    def page_width(self):
 71        """
 72        Gets the page_width of this PageSize.
 73        
 74
 75        :return: The page_width of this PageSize.
 76        :rtype: str
 77        """
 78        return self._page_width
 79
 80    @page_width.setter
 81    def page_width(self, page_width):
 82        """
 83        Sets the page_width of this PageSize.
 84        
 85
 86        :param page_width: The page_width of this PageSize.
 87        :type: str
 88        """
 89
 90        self._page_width = page_width
 91
 92    def to_dict(self):
 93        """
 94        Returns the model properties as a dict
 95        """
 96        result = {}
 97
 98        for attr, _ in iteritems(self.swagger_types):
 99            value = getattr(self, attr)
100            if isinstance(value, list):
101                result[attr] = list(map(
102                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103                    value
104                ))
105            elif hasattr(value, "to_dict"):
106                result[attr] = value.to_dict()
107            elif isinstance(value, dict):
108                result[attr] = dict(map(
109                    lambda item: (item[0], item[1].to_dict())
110                    if hasattr(item[1], "to_dict") else item,
111                    value.items()
112                ))
113            else:
114                result[attr] = value
115
116        return result
117
118    def to_str(self):
119        """
120        Returns the string representation of the model
121        """
122        return pformat(self.to_dict())
123
124    def __repr__(self):
125        """
126        For `print` and `pprint`
127        """
128        return self.to_str()
129
130    def __eq__(self, other):
131        """
132        Returns true if both objects are equal
133        """
134        return self.__dict__ == other.__dict__
135
136    def __ne__(self, other):
137        """
138        Returns true if both objects are not equal
139        """
140        return not self == other
class PageSize:
 20class PageSize(object):
 21    """
 22    NOTE: This class is auto generated by the swagger code generator program.
 23    Do not edit the class manually.
 24    """
 25    def __init__(self, page_height=None, page_width=None):
 26        """
 27        PageSize - a model defined in Swagger
 28
 29        :param dict swaggerTypes: The key is attribute name
 30                                  and the value is attribute type.
 31        :param dict attributeMap: The key is attribute name
 32                                  and the value is json key in definition.
 33        """
 34        self.swagger_types = {
 35            'page_height': 'str',
 36            'page_width': 'str'
 37        }
 38
 39        self.attribute_map = {
 40            'page_height': 'pageHeight',
 41            'page_width': 'pageWidth'
 42        }
 43
 44        self._page_height = page_height
 45        self._page_width = page_width
 46
 47    @property
 48    def page_height(self):
 49        """
 50        Gets the page_height of this PageSize.
 51        
 52
 53        :return: The page_height of this PageSize.
 54        :rtype: str
 55        """
 56        return self._page_height
 57
 58    @page_height.setter
 59    def page_height(self, page_height):
 60        """
 61        Sets the page_height of this PageSize.
 62        
 63
 64        :param page_height: The page_height of this PageSize.
 65        :type: str
 66        """
 67
 68        self._page_height = page_height
 69
 70    @property
 71    def page_width(self):
 72        """
 73        Gets the page_width of this PageSize.
 74        
 75
 76        :return: The page_width of this PageSize.
 77        :rtype: str
 78        """
 79        return self._page_width
 80
 81    @page_width.setter
 82    def page_width(self, page_width):
 83        """
 84        Sets the page_width of this PageSize.
 85        
 86
 87        :param page_width: The page_width of this PageSize.
 88        :type: str
 89        """
 90
 91        self._page_width = page_width
 92
 93    def to_dict(self):
 94        """
 95        Returns the model properties as a dict
 96        """
 97        result = {}
 98
 99        for attr, _ in iteritems(self.swagger_types):
100            value = getattr(self, attr)
101            if isinstance(value, list):
102                result[attr] = list(map(
103                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104                    value
105                ))
106            elif hasattr(value, "to_dict"):
107                result[attr] = value.to_dict()
108            elif isinstance(value, dict):
109                result[attr] = dict(map(
110                    lambda item: (item[0], item[1].to_dict())
111                    if hasattr(item[1], "to_dict") else item,
112                    value.items()
113                ))
114            else:
115                result[attr] = value
116
117        return result
118
119    def to_str(self):
120        """
121        Returns the string representation of the model
122        """
123        return pformat(self.to_dict())
124
125    def __repr__(self):
126        """
127        For `print` and `pprint`
128        """
129        return self.to_str()
130
131    def __eq__(self, other):
132        """
133        Returns true if both objects are equal
134        """
135        return self.__dict__ == other.__dict__
136
137    def __ne__(self, other):
138        """
139        Returns true if both objects are not equal
140        """
141        return not self == other

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

PageSize(page_height=None, page_width=None)
25    def __init__(self, page_height=None, page_width=None):
26        """
27        PageSize - a model defined in Swagger
28
29        :param dict swaggerTypes: The key is attribute name
30                                  and the value is attribute type.
31        :param dict attributeMap: The key is attribute name
32                                  and the value is json key in definition.
33        """
34        self.swagger_types = {
35            'page_height': 'str',
36            'page_width': 'str'
37        }
38
39        self.attribute_map = {
40            'page_height': 'pageHeight',
41            'page_width': 'pageWidth'
42        }
43
44        self._page_height = page_height
45        self._page_width = page_width

PageSize - a model defined in Swagger

Parameters
  • dict swaggerTypes: The key is attribute name and the value is attribute type.
  • dict attributeMap: The key is attribute name and the value is json key in definition.
page_height

Gets the page_height of this PageSize.

Returns

The page_height of this PageSize.

page_width

Gets the page_width of this PageSize.

Returns

The page_width of this PageSize.

def to_dict(self)
 93    def to_dict(self):
 94        """
 95        Returns the model properties as a dict
 96        """
 97        result = {}
 98
 99        for attr, _ in iteritems(self.swagger_types):
100            value = getattr(self, attr)
101            if isinstance(value, list):
102                result[attr] = list(map(
103                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104                    value
105                ))
106            elif hasattr(value, "to_dict"):
107                result[attr] = value.to_dict()
108            elif isinstance(value, dict):
109                result[attr] = dict(map(
110                    lambda item: (item[0], item[1].to_dict())
111                    if hasattr(item[1], "to_dict") else item,
112                    value.items()
113                ))
114            else:
115                result[attr] = value
116
117        return result

Returns the model properties as a dict

def to_str(self)
119    def to_str(self):
120        """
121        Returns the string representation of the model
122        """
123        return pformat(self.to_dict())

Returns the string representation of the model