|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + Aspose.PDF for Cloud API Reference |
| 5 | +
|
| 6 | +
|
| 7 | + Copyright (c) 2018 Aspose.Pdf for Cloud |
| 8 | + Permission is hereby granted, free of charge, to any person obtaining a copy |
| 9 | + of this software and associated documentation files (the "Software"), to deal |
| 10 | + in the Software without restriction, including without limitation the rights |
| 11 | + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 12 | + copies of the Software, and to permit persons to whom the Software is |
| 13 | + furnished to do so, subject to the following conditions: |
| 14 | + The above copyright notice and this permission notice shall be included in all |
| 15 | + copies or substantial portions of the Software. |
| 16 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | + SOFTWARE. |
| 23 | +
|
| 24 | +
|
| 25 | +
|
| 26 | + OpenAPI spec version: 1.1 |
| 27 | + |
| 28 | + Generated by: https://github.com/swagger-api/swagger-codegen.git |
| 29 | +""" |
| 30 | + |
| 31 | + |
| 32 | +from pprint import pformat |
| 33 | +from six import iteritems |
| 34 | +import re |
| 35 | + |
| 36 | + |
| 37 | +class ImageSrcType(object): |
| 38 | + """ |
| 39 | + NOTE: This class is auto generated by the swagger code generator program. |
| 40 | + Do not edit the class manually. |
| 41 | + """ |
| 42 | + |
| 43 | + """ |
| 44 | + allowed enum values |
| 45 | + """ |
| 46 | + COMMON = "Common" |
| 47 | + EMF = "Emf" |
| 48 | + |
| 49 | + """ |
| 50 | + Attributes: |
| 51 | + swagger_types (dict): The key is attribute name |
| 52 | + and the value is attribute type. |
| 53 | + attribute_map (dict): The key is attribute name |
| 54 | + and the value is json key in definition. |
| 55 | + """ |
| 56 | + swagger_types = { |
| 57 | + |
| 58 | + } |
| 59 | + |
| 60 | + attribute_map = { |
| 61 | + |
| 62 | + } |
| 63 | + |
| 64 | + def __init__(self): |
| 65 | + """ |
| 66 | + ImageSrcType - a model defined in Swagger |
| 67 | + """ |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + def to_dict(self): |
| 72 | + """ |
| 73 | + Returns the model properties as a dict |
| 74 | + """ |
| 75 | + result = {} |
| 76 | + |
| 77 | + for attr, _ in iteritems(self.swagger_types): |
| 78 | + value = getattr(self, attr) |
| 79 | + if isinstance(value, list): |
| 80 | + result[attr] = list(map( |
| 81 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 82 | + value |
| 83 | + )) |
| 84 | + elif hasattr(value, "to_dict"): |
| 85 | + result[attr] = value.to_dict() |
| 86 | + elif isinstance(value, dict): |
| 87 | + result[attr] = dict(map( |
| 88 | + lambda item: (item[0], item[1].to_dict()) |
| 89 | + if hasattr(item[1], "to_dict") else item, |
| 90 | + value.items() |
| 91 | + )) |
| 92 | + else: |
| 93 | + result[attr] = value |
| 94 | + |
| 95 | + return result |
| 96 | + |
| 97 | + def to_str(self): |
| 98 | + """ |
| 99 | + Returns the string representation of the model |
| 100 | + """ |
| 101 | + return pformat(self.to_dict()) |
| 102 | + |
| 103 | + def __repr__(self): |
| 104 | + """ |
| 105 | + For `print` and `pprint` |
| 106 | + """ |
| 107 | + return self.to_str() |
| 108 | + |
| 109 | + def __eq__(self, other): |
| 110 | + """ |
| 111 | + Returns true if both objects are equal |
| 112 | + """ |
| 113 | + if not isinstance(other, ImageSrcType): |
| 114 | + return False |
| 115 | + |
| 116 | + return self.__dict__ == other.__dict__ |
| 117 | + |
| 118 | + def __ne__(self, other): |
| 119 | + """ |
| 120 | + Returns true if both objects are not equal |
| 121 | + """ |
| 122 | + return not self == other |
0 commit comments