|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | +Copyright 2016 SmartBear Software |
| 5 | +
|
| 6 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + you may not use this file except in compliance with the License. |
| 8 | + You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, software |
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + See the License for the specific language governing permissions and |
| 16 | + limitations under the License. |
| 17 | +
|
| 18 | + Ref: https://github.com/swagger-api/swagger-codegen |
| 19 | +""" |
| 20 | + |
| 21 | +from pprint import pformat |
| 22 | +from six import iteritems |
| 23 | +import re |
| 24 | + |
| 25 | + |
| 26 | +class WfmAbandonRate(object): |
| 27 | + """ |
| 28 | + NOTE: This class is auto generated by the swagger code generator program. |
| 29 | + Do not edit the class manually. |
| 30 | + """ |
| 31 | + def __init__(self): |
| 32 | + """ |
| 33 | + WfmAbandonRate - a model defined in Swagger |
| 34 | +
|
| 35 | + :param dict swaggerTypes: The key is attribute name |
| 36 | + and the value is attribute type. |
| 37 | + :param dict attributeMap: The key is attribute name |
| 38 | + and the value is json key in definition. |
| 39 | + """ |
| 40 | + self.swagger_types = { |
| 41 | + 'include': 'bool', |
| 42 | + 'percent': 'int' |
| 43 | + } |
| 44 | + |
| 45 | + self.attribute_map = { |
| 46 | + 'include': 'include', |
| 47 | + 'percent': 'percent' |
| 48 | + } |
| 49 | + |
| 50 | + self._include = None |
| 51 | + self._percent = None |
| 52 | + |
| 53 | + @property |
| 54 | + def include(self): |
| 55 | + """ |
| 56 | + Gets the include of this WfmAbandonRate. |
| 57 | + Whether to include abandon rate in the associated service goal group's configuration |
| 58 | +
|
| 59 | + :return: The include of this WfmAbandonRate. |
| 60 | + :rtype: bool |
| 61 | + """ |
| 62 | + return self._include |
| 63 | + |
| 64 | + @include.setter |
| 65 | + def include(self, include): |
| 66 | + """ |
| 67 | + Sets the include of this WfmAbandonRate. |
| 68 | + Whether to include abandon rate in the associated service goal group's configuration |
| 69 | +
|
| 70 | + :param include: The include of this WfmAbandonRate. |
| 71 | + :type: bool |
| 72 | + """ |
| 73 | + |
| 74 | + self._include = include |
| 75 | + |
| 76 | + @property |
| 77 | + def percent(self): |
| 78 | + """ |
| 79 | + Gets the percent of this WfmAbandonRate. |
| 80 | + Abandon rate percent goal for the associated service goal group. Required if include == true |
| 81 | +
|
| 82 | + :return: The percent of this WfmAbandonRate. |
| 83 | + :rtype: int |
| 84 | + """ |
| 85 | + return self._percent |
| 86 | + |
| 87 | + @percent.setter |
| 88 | + def percent(self, percent): |
| 89 | + """ |
| 90 | + Sets the percent of this WfmAbandonRate. |
| 91 | + Abandon rate percent goal for the associated service goal group. Required if include == true |
| 92 | +
|
| 93 | + :param percent: The percent of this WfmAbandonRate. |
| 94 | + :type: int |
| 95 | + """ |
| 96 | + |
| 97 | + self._percent = percent |
| 98 | + |
| 99 | + def to_dict(self): |
| 100 | + """ |
| 101 | + Returns the model properties as a dict |
| 102 | + """ |
| 103 | + result = {} |
| 104 | + |
| 105 | + for attr, _ in iteritems(self.swagger_types): |
| 106 | + value = getattr(self, attr) |
| 107 | + if isinstance(value, list): |
| 108 | + result[attr] = list(map( |
| 109 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 110 | + value |
| 111 | + )) |
| 112 | + elif hasattr(value, "to_dict"): |
| 113 | + result[attr] = value.to_dict() |
| 114 | + elif isinstance(value, dict): |
| 115 | + result[attr] = dict(map( |
| 116 | + lambda item: (item[0], item[1].to_dict()) |
| 117 | + if hasattr(item[1], "to_dict") else item, |
| 118 | + value.items() |
| 119 | + )) |
| 120 | + else: |
| 121 | + result[attr] = value |
| 122 | + |
| 123 | + return result |
| 124 | + |
| 125 | + def to_str(self): |
| 126 | + """ |
| 127 | + Returns the string representation of the model |
| 128 | + """ |
| 129 | + return pformat(self.to_dict()) |
| 130 | + |
| 131 | + def __repr__(self): |
| 132 | + """ |
| 133 | + For `print` and `pprint` |
| 134 | + """ |
| 135 | + return self.to_str() |
| 136 | + |
| 137 | + def __eq__(self, other): |
| 138 | + """ |
| 139 | + Returns true if both objects are equal |
| 140 | + """ |
| 141 | + return self.__dict__ == other.__dict__ |
| 142 | + |
| 143 | + def __ne__(self, other): |
| 144 | + """ |
| 145 | + Returns true if both objects are not equal |
| 146 | + """ |
| 147 | + return not self == other |
| 148 | + |
0 commit comments