How to use over method in refurb

Best Python code snippet using refurb_python

raw_data_setting_v1.py

Source:raw_data_setting_v1.py Github

copy

Full Screen

1# coding: utf-82"""3 SevOne API Documentation4 Supported endpoints by the new RESTful API # noqa: E5015 OpenAPI spec version: 2.1.18, Hash: db562e66 7 Generated by: https://github.com/swagger-api/swagger-codegen.git8"""9import pprint10import re # noqa: F40111import six12class RawDataSettingV1(object):13 """NOTE: This class is auto generated by the swagger code generator program.14 Do not edit the class manually.15 """16 """17 Attributes:18 swagger_types (dict): The key is attribute name19 and the value is attribute type.20 attribute_map (dict): The key is attribute name21 and the value is json key in definition.22 """23 swagger_types = {24 'fit_time_span_to': 'str',25 'percentiles': 'int',26 'projection_time': 'int',27 'reduce_data': 'bool',28 'standard_deviation': 'int',29 'time_over_time_only': 'bool',30 'time_over_time_type': 'str',31 'time_over_time_units': 'str',32 'time_over_time_value': 'int',33 'trend': 'str',34 'trend_type': 'str',35 'use_baseline': 'bool',36 'use_percentiles': 'str',37 'use_time_over_time': 'bool'38 }39 attribute_map = {40 'fit_time_span_to': 'fitTimeSpanTo',41 'percentiles': 'percentiles',42 'projection_time': 'projectionTime',43 'reduce_data': 'reduceData',44 'standard_deviation': 'standardDeviation',45 'time_over_time_only': 'timeOverTimeOnly',46 'time_over_time_type': 'timeOverTimeType',47 'time_over_time_units': 'timeOverTimeUnits',48 'time_over_time_value': 'timeOverTimeValue',49 'trend': 'trend',50 'trend_type': 'trendType',51 'use_baseline': 'useBaseline',52 'use_percentiles': 'usePercentiles',53 'use_time_over_time': 'useTimeOverTime'54 }55 def __init__(self, fit_time_span_to=None, percentiles=None, projection_time=None, reduce_data=None, standard_deviation=None, time_over_time_only=None, time_over_time_type=None, time_over_time_units=None, time_over_time_value=None, trend=None, trend_type=None, use_baseline=None, use_percentiles=None, use_time_over_time=None): # noqa: E50156 """RawDataSettingV1 - a model defined in Swagger""" # noqa: E50157 self._fit_time_span_to = None58 self._percentiles = None59 self._projection_time = None60 self._reduce_data = None61 self._standard_deviation = None62 self._time_over_time_only = None63 self._time_over_time_type = None64 self._time_over_time_units = None65 self._time_over_time_value = None66 self._trend = None67 self._trend_type = None68 self._use_baseline = None69 self._use_percentiles = None70 self._use_time_over_time = None71 self.discriminator = None72 if fit_time_span_to is not None:73 self.fit_time_span_to = fit_time_span_to74 if percentiles is not None:75 self.percentiles = percentiles76 if projection_time is not None:77 self.projection_time = projection_time78 if reduce_data is not None:79 self.reduce_data = reduce_data80 if standard_deviation is not None:81 self.standard_deviation = standard_deviation82 if time_over_time_only is not None:83 self.time_over_time_only = time_over_time_only84 if time_over_time_type is not None:85 self.time_over_time_type = time_over_time_type86 if time_over_time_units is not None:87 self.time_over_time_units = time_over_time_units88 if time_over_time_value is not None:89 self.time_over_time_value = time_over_time_value90 if trend is not None:91 self.trend = trend92 if trend_type is not None:93 self.trend_type = trend_type94 if use_baseline is not None:95 self.use_baseline = use_baseline96 if use_percentiles is not None:97 self.use_percentiles = use_percentiles98 if use_time_over_time is not None:99 self.use_time_over_time = use_time_over_time100 @property101 def fit_time_span_to(self):102 """Gets the fit_time_span_to of this RawDataSettingV1. # noqa: E501103 :return: The fit_time_span_to of this RawDataSettingV1. # noqa: E501104 :rtype: str105 """106 return self._fit_time_span_to107 @fit_time_span_to.setter108 def fit_time_span_to(self, fit_time_span_to):109 """Sets the fit_time_span_to of this RawDataSettingV1.110 :param fit_time_span_to: The fit_time_span_to of this RawDataSettingV1. # noqa: E501111 :type: str112 """113 allowed_values = ["second", "seconds", "minute", "minutes", "hour", "hours", "sixhour", "sixhours", "day", "days", "week", "weeks", "month", "months", "quarter", "quarters", "year", "years"] # noqa: E501114 if fit_time_span_to not in allowed_values:115 raise ValueError(116 "Invalid value for `fit_time_span_to` ({0}), must be one of {1}" # noqa: E501117 .format(fit_time_span_to, allowed_values)118 )119 self._fit_time_span_to = fit_time_span_to120 @property121 def percentiles(self):122 """Gets the percentiles of this RawDataSettingV1. # noqa: E501123 :return: The percentiles of this RawDataSettingV1. # noqa: E501124 :rtype: int125 """126 return self._percentiles127 @percentiles.setter128 def percentiles(self, percentiles):129 """Sets the percentiles of this RawDataSettingV1.130 :param percentiles: The percentiles of this RawDataSettingV1. # noqa: E501131 :type: int132 """133 self._percentiles = percentiles134 @property135 def projection_time(self):136 """Gets the projection_time of this RawDataSettingV1. # noqa: E501137 :return: The projection_time of this RawDataSettingV1. # noqa: E501138 :rtype: int139 """140 return self._projection_time141 @projection_time.setter142 def projection_time(self, projection_time):143 """Sets the projection_time of this RawDataSettingV1.144 :param projection_time: The projection_time of this RawDataSettingV1. # noqa: E501145 :type: int146 """147 self._projection_time = projection_time148 @property149 def reduce_data(self):150 """Gets the reduce_data of this RawDataSettingV1. # noqa: E501151 :return: The reduce_data of this RawDataSettingV1. # noqa: E501152 :rtype: bool153 """154 return self._reduce_data155 @reduce_data.setter156 def reduce_data(self, reduce_data):157 """Sets the reduce_data of this RawDataSettingV1.158 :param reduce_data: The reduce_data of this RawDataSettingV1. # noqa: E501159 :type: bool160 """161 self._reduce_data = reduce_data162 @property163 def standard_deviation(self):164 """Gets the standard_deviation of this RawDataSettingV1. # noqa: E501165 :return: The standard_deviation of this RawDataSettingV1. # noqa: E501166 :rtype: int167 """168 return self._standard_deviation169 @standard_deviation.setter170 def standard_deviation(self, standard_deviation):171 """Sets the standard_deviation of this RawDataSettingV1.172 :param standard_deviation: The standard_deviation of this RawDataSettingV1. # noqa: E501173 :type: int174 """175 self._standard_deviation = standard_deviation176 @property177 def time_over_time_only(self):178 """Gets the time_over_time_only of this RawDataSettingV1. # noqa: E501179 :return: The time_over_time_only of this RawDataSettingV1. # noqa: E501180 :rtype: bool181 """182 return self._time_over_time_only183 @time_over_time_only.setter184 def time_over_time_only(self, time_over_time_only):185 """Sets the time_over_time_only of this RawDataSettingV1.186 :param time_over_time_only: The time_over_time_only of this RawDataSettingV1. # noqa: E501187 :type: bool188 """189 self._time_over_time_only = time_over_time_only190 @property191 def time_over_time_type(self):192 """Gets the time_over_time_type of this RawDataSettingV1. # noqa: E501193 :return: The time_over_time_type of this RawDataSettingV1. # noqa: E501194 :rtype: str195 """196 return self._time_over_time_type197 @time_over_time_type.setter198 def time_over_time_type(self, time_over_time_type):199 """Sets the time_over_time_type of this RawDataSettingV1.200 :param time_over_time_type: The time_over_time_type of this RawDataSettingV1. # noqa: E501201 :type: str202 """203 allowed_values = ["none", "average", "minimum", "maximum", "total"] # noqa: E501204 if time_over_time_type not in allowed_values:205 raise ValueError(206 "Invalid value for `time_over_time_type` ({0}), must be one of {1}" # noqa: E501207 .format(time_over_time_type, allowed_values)208 )209 self._time_over_time_type = time_over_time_type210 @property211 def time_over_time_units(self):212 """Gets the time_over_time_units of this RawDataSettingV1. # noqa: E501213 :return: The time_over_time_units of this RawDataSettingV1. # noqa: E501214 :rtype: str215 """216 return self._time_over_time_units217 @time_over_time_units.setter218 def time_over_time_units(self, time_over_time_units):219 """Sets the time_over_time_units of this RawDataSettingV1.220 :param time_over_time_units: The time_over_time_units of this RawDataSettingV1. # noqa: E501221 :type: str222 """223 allowed_values = ["second", "seconds", "minute", "minutes", "hour", "hours", "sixhour", "sixhours", "day", "days", "week", "weeks", "month", "months", "quarter", "quarters", "year", "years"] # noqa: E501224 if time_over_time_units not in allowed_values:225 raise ValueError(226 "Invalid value for `time_over_time_units` ({0}), must be one of {1}" # noqa: E501227 .format(time_over_time_units, allowed_values)228 )229 self._time_over_time_units = time_over_time_units230 @property231 def time_over_time_value(self):232 """Gets the time_over_time_value of this RawDataSettingV1. # noqa: E501233 :return: The time_over_time_value of this RawDataSettingV1. # noqa: E501234 :rtype: int235 """236 return self._time_over_time_value237 @time_over_time_value.setter238 def time_over_time_value(self, time_over_time_value):239 """Sets the time_over_time_value of this RawDataSettingV1.240 :param time_over_time_value: The time_over_time_value of this RawDataSettingV1. # noqa: E501241 :type: int242 """243 self._time_over_time_value = time_over_time_value244 @property245 def trend(self):246 """Gets the trend of this RawDataSettingV1. # noqa: E501247 :return: The trend of this RawDataSettingV1. # noqa: E501248 :rtype: str249 """250 return self._trend251 @trend.setter252 def trend(self, trend):253 """Sets the trend of this RawDataSettingV1.254 :param trend: The trend of this RawDataSettingV1. # noqa: E501255 :type: str256 """257 allowed_values = ["none", "standard", "historical", "projected"] # noqa: E501258 if trend not in allowed_values:259 raise ValueError(260 "Invalid value for `trend` ({0}), must be one of {1}" # noqa: E501261 .format(trend, allowed_values)262 )263 self._trend = trend264 @property265 def trend_type(self):266 """Gets the trend_type of this RawDataSettingV1. # noqa: E501267 :return: The trend_type of this RawDataSettingV1. # noqa: E501268 :rtype: str269 """270 return self._trend_type271 @trend_type.setter272 def trend_type(self, trend_type):273 """Sets the trend_type of this RawDataSettingV1.274 :param trend_type: The trend_type of this RawDataSettingV1. # noqa: E501275 :type: str276 """277 allowed_values = ["linear", "exponential", "logarithmic", "power", "none"] # noqa: E501278 if trend_type not in allowed_values:279 raise ValueError(280 "Invalid value for `trend_type` ({0}), must be one of {1}" # noqa: E501281 .format(trend_type, allowed_values)282 )283 self._trend_type = trend_type284 @property285 def use_baseline(self):286 """Gets the use_baseline of this RawDataSettingV1. # noqa: E501287 :return: The use_baseline of this RawDataSettingV1. # noqa: E501288 :rtype: bool289 """290 return self._use_baseline291 @use_baseline.setter292 def use_baseline(self, use_baseline):293 """Sets the use_baseline of this RawDataSettingV1.294 :param use_baseline: The use_baseline of this RawDataSettingV1. # noqa: E501295 :type: bool296 """297 self._use_baseline = use_baseline298 @property299 def use_percentiles(self):300 """Gets the use_percentiles of this RawDataSettingV1. # noqa: E501301 :return: The use_percentiles of this RawDataSettingV1. # noqa: E501302 :rtype: str303 """304 return self._use_percentiles305 @use_percentiles.setter306 def use_percentiles(self, use_percentiles):307 """Sets the use_percentiles of this RawDataSettingV1.308 :param use_percentiles: The use_percentiles of this RawDataSettingV1. # noqa: E501309 :type: str310 """311 self._use_percentiles = use_percentiles312 @property313 def use_time_over_time(self):314 """Gets the use_time_over_time of this RawDataSettingV1. # noqa: E501315 :return: The use_time_over_time of this RawDataSettingV1. # noqa: E501316 :rtype: bool317 """318 return self._use_time_over_time319 @use_time_over_time.setter320 def use_time_over_time(self, use_time_over_time):321 """Sets the use_time_over_time of this RawDataSettingV1.322 :param use_time_over_time: The use_time_over_time of this RawDataSettingV1. # noqa: E501323 :type: bool324 """325 self._use_time_over_time = use_time_over_time326 def to_dict(self):327 """Returns the model properties as a dict"""328 result = {}329 for attr, _ in six.iteritems(self.swagger_types):330 value = getattr(self, attr)331 if isinstance(value, list):332 result[attr] = list(map(333 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,334 value335 ))336 elif hasattr(value, "to_dict"):337 result[attr] = value.to_dict()338 elif isinstance(value, dict):339 result[attr] = dict(map(340 lambda item: (item[0], item[1].to_dict())341 if hasattr(item[1], "to_dict") else item,342 value.items()343 ))344 else:345 result[attr] = value346 if issubclass(RawDataSettingV1, dict):347 for key, value in self.items():348 result[key] = value349 return result350 def to_str(self):351 """Returns the string representation of the model"""352 return pprint.pformat(self.to_dict())353 def __repr__(self):354 """For `print` and `pprint`"""355 return self.to_str()356 def __eq__(self, other):357 """Returns true if both objects are equal"""358 if not isinstance(other, RawDataSettingV1):359 return False360 return self.__dict__ == other.__dict__361 def __ne__(self, other):362 """Returns true if both objects are not equal"""...

Full Screen

Full Screen

raw_data_setting.py

Source:raw_data_setting.py Github

copy

Full Screen

1# coding: utf-82"""3 SevOne API Documentation4 Supported endpoints by the new RESTful API # noqa: E5015 OpenAPI spec version: 2.1.18, Hash: db562e66 7 Generated by: https://github.com/swagger-api/swagger-codegen.git8"""9import pprint10import re # noqa: F40111import six12class RawDataSetting(object):13 """NOTE: This class is auto generated by the swagger code generator program.14 Do not edit the class manually.15 """16 """17 Attributes:18 swagger_types (dict): The key is attribute name19 and the value is attribute type.20 attribute_map (dict): The key is attribute name21 and the value is json key in definition.22 """23 swagger_types = {24 'fit_time_span_to': 'str',25 'percentiles': 'float',26 'projection_time': 'int',27 'reduce_data': 'bool',28 'standard_deviation': 'int',29 'time_over_time_only': 'bool',30 'time_over_time_type': 'str',31 'time_over_time_units': 'str',32 'time_over_time_value': 'int',33 'trend': 'str',34 'trend_type': 'str',35 'use_baseline': 'bool',36 'use_percentiles': 'bool',37 'use_time_over_time': 'bool'38 }39 attribute_map = {40 'fit_time_span_to': 'fitTimeSpanTo',41 'percentiles': 'percentiles',42 'projection_time': 'projectionTime',43 'reduce_data': 'reduceData',44 'standard_deviation': 'standardDeviation',45 'time_over_time_only': 'timeOverTimeOnly',46 'time_over_time_type': 'timeOverTimeType',47 'time_over_time_units': 'timeOverTimeUnits',48 'time_over_time_value': 'timeOverTimeValue',49 'trend': 'trend',50 'trend_type': 'trendType',51 'use_baseline': 'useBaseline',52 'use_percentiles': 'usePercentiles',53 'use_time_over_time': 'useTimeOverTime'54 }55 def __init__(self, fit_time_span_to=None, percentiles=None, projection_time=None, reduce_data=None, standard_deviation=None, time_over_time_only=None, time_over_time_type=None, time_over_time_units=None, time_over_time_value=None, trend=None, trend_type=None, use_baseline=None, use_percentiles=None, use_time_over_time=None): # noqa: E50156 """RawDataSetting - a model defined in Swagger""" # noqa: E50157 self._fit_time_span_to = None58 self._percentiles = None59 self._projection_time = None60 self._reduce_data = None61 self._standard_deviation = None62 self._time_over_time_only = None63 self._time_over_time_type = None64 self._time_over_time_units = None65 self._time_over_time_value = None66 self._trend = None67 self._trend_type = None68 self._use_baseline = None69 self._use_percentiles = None70 self._use_time_over_time = None71 self.discriminator = None72 if fit_time_span_to is not None:73 self.fit_time_span_to = fit_time_span_to74 if percentiles is not None:75 self.percentiles = percentiles76 if projection_time is not None:77 self.projection_time = projection_time78 if reduce_data is not None:79 self.reduce_data = reduce_data80 if standard_deviation is not None:81 self.standard_deviation = standard_deviation82 if time_over_time_only is not None:83 self.time_over_time_only = time_over_time_only84 if time_over_time_type is not None:85 self.time_over_time_type = time_over_time_type86 if time_over_time_units is not None:87 self.time_over_time_units = time_over_time_units88 if time_over_time_value is not None:89 self.time_over_time_value = time_over_time_value90 if trend is not None:91 self.trend = trend92 if trend_type is not None:93 self.trend_type = trend_type94 if use_baseline is not None:95 self.use_baseline = use_baseline96 if use_percentiles is not None:97 self.use_percentiles = use_percentiles98 if use_time_over_time is not None:99 self.use_time_over_time = use_time_over_time100 @property101 def fit_time_span_to(self):102 """Gets the fit_time_span_to of this RawDataSetting. # noqa: E501103 :return: The fit_time_span_to of this RawDataSetting. # noqa: E501104 :rtype: str105 """106 return self._fit_time_span_to107 @fit_time_span_to.setter108 def fit_time_span_to(self, fit_time_span_to):109 """Sets the fit_time_span_to of this RawDataSetting.110 :param fit_time_span_to: The fit_time_span_to of this RawDataSetting. # noqa: E501111 :type: str112 """113 allowed_values = ["second", "seconds", "minute", "minutes", "hour", "hours", "sixhour", "sixhours", "day", "days", "week", "weeks", "month", "months", "quarter", "quarters", "year", "years"] # noqa: E501114 if fit_time_span_to not in allowed_values:115 raise ValueError(116 "Invalid value for `fit_time_span_to` ({0}), must be one of {1}" # noqa: E501117 .format(fit_time_span_to, allowed_values)118 )119 self._fit_time_span_to = fit_time_span_to120 @property121 def percentiles(self):122 """Gets the percentiles of this RawDataSetting. # noqa: E501123 :return: The percentiles of this RawDataSetting. # noqa: E501124 :rtype: float125 """126 return self._percentiles127 @percentiles.setter128 def percentiles(self, percentiles):129 """Sets the percentiles of this RawDataSetting.130 :param percentiles: The percentiles of this RawDataSetting. # noqa: E501131 :type: float132 """133 self._percentiles = percentiles134 @property135 def projection_time(self):136 """Gets the projection_time of this RawDataSetting. # noqa: E501137 :return: The projection_time of this RawDataSetting. # noqa: E501138 :rtype: int139 """140 return self._projection_time141 @projection_time.setter142 def projection_time(self, projection_time):143 """Sets the projection_time of this RawDataSetting.144 :param projection_time: The projection_time of this RawDataSetting. # noqa: E501145 :type: int146 """147 self._projection_time = projection_time148 @property149 def reduce_data(self):150 """Gets the reduce_data of this RawDataSetting. # noqa: E501151 :return: The reduce_data of this RawDataSetting. # noqa: E501152 :rtype: bool153 """154 return self._reduce_data155 @reduce_data.setter156 def reduce_data(self, reduce_data):157 """Sets the reduce_data of this RawDataSetting.158 :param reduce_data: The reduce_data of this RawDataSetting. # noqa: E501159 :type: bool160 """161 self._reduce_data = reduce_data162 @property163 def standard_deviation(self):164 """Gets the standard_deviation of this RawDataSetting. # noqa: E501165 :return: The standard_deviation of this RawDataSetting. # noqa: E501166 :rtype: int167 """168 return self._standard_deviation169 @standard_deviation.setter170 def standard_deviation(self, standard_deviation):171 """Sets the standard_deviation of this RawDataSetting.172 :param standard_deviation: The standard_deviation of this RawDataSetting. # noqa: E501173 :type: int174 """175 self._standard_deviation = standard_deviation176 @property177 def time_over_time_only(self):178 """Gets the time_over_time_only of this RawDataSetting. # noqa: E501179 :return: The time_over_time_only of this RawDataSetting. # noqa: E501180 :rtype: bool181 """182 return self._time_over_time_only183 @time_over_time_only.setter184 def time_over_time_only(self, time_over_time_only):185 """Sets the time_over_time_only of this RawDataSetting.186 :param time_over_time_only: The time_over_time_only of this RawDataSetting. # noqa: E501187 :type: bool188 """189 self._time_over_time_only = time_over_time_only190 @property191 def time_over_time_type(self):192 """Gets the time_over_time_type of this RawDataSetting. # noqa: E501193 :return: The time_over_time_type of this RawDataSetting. # noqa: E501194 :rtype: str195 """196 return self._time_over_time_type197 @time_over_time_type.setter198 def time_over_time_type(self, time_over_time_type):199 """Sets the time_over_time_type of this RawDataSetting.200 :param time_over_time_type: The time_over_time_type of this RawDataSetting. # noqa: E501201 :type: str202 """203 allowed_values = ["none", "average", "minimum", "maximum", "total"] # noqa: E501204 if time_over_time_type not in allowed_values:205 raise ValueError(206 "Invalid value for `time_over_time_type` ({0}), must be one of {1}" # noqa: E501207 .format(time_over_time_type, allowed_values)208 )209 self._time_over_time_type = time_over_time_type210 @property211 def time_over_time_units(self):212 """Gets the time_over_time_units of this RawDataSetting. # noqa: E501213 :return: The time_over_time_units of this RawDataSetting. # noqa: E501214 :rtype: str215 """216 return self._time_over_time_units217 @time_over_time_units.setter218 def time_over_time_units(self, time_over_time_units):219 """Sets the time_over_time_units of this RawDataSetting.220 :param time_over_time_units: The time_over_time_units of this RawDataSetting. # noqa: E501221 :type: str222 """223 allowed_values = ["second", "seconds", "minute", "minutes", "hour", "hours", "sixhour", "sixhours", "day", "days", "week", "weeks", "month", "months", "quarter", "quarters", "year", "years"] # noqa: E501224 if time_over_time_units not in allowed_values:225 raise ValueError(226 "Invalid value for `time_over_time_units` ({0}), must be one of {1}" # noqa: E501227 .format(time_over_time_units, allowed_values)228 )229 self._time_over_time_units = time_over_time_units230 @property231 def time_over_time_value(self):232 """Gets the time_over_time_value of this RawDataSetting. # noqa: E501233 :return: The time_over_time_value of this RawDataSetting. # noqa: E501234 :rtype: int235 """236 return self._time_over_time_value237 @time_over_time_value.setter238 def time_over_time_value(self, time_over_time_value):239 """Sets the time_over_time_value of this RawDataSetting.240 :param time_over_time_value: The time_over_time_value of this RawDataSetting. # noqa: E501241 :type: int242 """243 self._time_over_time_value = time_over_time_value244 @property245 def trend(self):246 """Gets the trend of this RawDataSetting. # noqa: E501247 :return: The trend of this RawDataSetting. # noqa: E501248 :rtype: str249 """250 return self._trend251 @trend.setter252 def trend(self, trend):253 """Sets the trend of this RawDataSetting.254 :param trend: The trend of this RawDataSetting. # noqa: E501255 :type: str256 """257 allowed_values = ["none", "standard", "historical", "projected"] # noqa: E501258 if trend not in allowed_values:259 raise ValueError(260 "Invalid value for `trend` ({0}), must be one of {1}" # noqa: E501261 .format(trend, allowed_values)262 )263 self._trend = trend264 @property265 def trend_type(self):266 """Gets the trend_type of this RawDataSetting. # noqa: E501267 :return: The trend_type of this RawDataSetting. # noqa: E501268 :rtype: str269 """270 return self._trend_type271 @trend_type.setter272 def trend_type(self, trend_type):273 """Sets the trend_type of this RawDataSetting.274 :param trend_type: The trend_type of this RawDataSetting. # noqa: E501275 :type: str276 """277 allowed_values = ["linear", "exponential", "logarithmic", "power", "none"] # noqa: E501278 if trend_type not in allowed_values:279 raise ValueError(280 "Invalid value for `trend_type` ({0}), must be one of {1}" # noqa: E501281 .format(trend_type, allowed_values)282 )283 self._trend_type = trend_type284 @property285 def use_baseline(self):286 """Gets the use_baseline of this RawDataSetting. # noqa: E501287 :return: The use_baseline of this RawDataSetting. # noqa: E501288 :rtype: bool289 """290 return self._use_baseline291 @use_baseline.setter292 def use_baseline(self, use_baseline):293 """Sets the use_baseline of this RawDataSetting.294 :param use_baseline: The use_baseline of this RawDataSetting. # noqa: E501295 :type: bool296 """297 self._use_baseline = use_baseline298 @property299 def use_percentiles(self):300 """Gets the use_percentiles of this RawDataSetting. # noqa: E501301 :return: The use_percentiles of this RawDataSetting. # noqa: E501302 :rtype: bool303 """304 return self._use_percentiles305 @use_percentiles.setter306 def use_percentiles(self, use_percentiles):307 """Sets the use_percentiles of this RawDataSetting.308 :param use_percentiles: The use_percentiles of this RawDataSetting. # noqa: E501309 :type: bool310 """311 self._use_percentiles = use_percentiles312 @property313 def use_time_over_time(self):314 """Gets the use_time_over_time of this RawDataSetting. # noqa: E501315 :return: The use_time_over_time of this RawDataSetting. # noqa: E501316 :rtype: bool317 """318 return self._use_time_over_time319 @use_time_over_time.setter320 def use_time_over_time(self, use_time_over_time):321 """Sets the use_time_over_time of this RawDataSetting.322 :param use_time_over_time: The use_time_over_time of this RawDataSetting. # noqa: E501323 :type: bool324 """325 self._use_time_over_time = use_time_over_time326 def to_dict(self):327 """Returns the model properties as a dict"""328 result = {}329 for attr, _ in six.iteritems(self.swagger_types):330 value = getattr(self, attr)331 if isinstance(value, list):332 result[attr] = list(map(333 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,334 value335 ))336 elif hasattr(value, "to_dict"):337 result[attr] = value.to_dict()338 elif isinstance(value, dict):339 result[attr] = dict(map(340 lambda item: (item[0], item[1].to_dict())341 if hasattr(item[1], "to_dict") else item,342 value.items()343 ))344 else:345 result[attr] = value346 if issubclass(RawDataSetting, dict):347 for key, value in self.items():348 result[key] = value349 return result350 def to_str(self):351 """Returns the string representation of the model"""352 return pprint.pformat(self.to_dict())353 def __repr__(self):354 """For `print` and `pprint`"""355 return self.to_str()356 def __eq__(self, other):357 """Returns true if both objects are equal"""358 if not isinstance(other, RawDataSetting):359 return False360 return self.__dict__ == other.__dict__361 def __ne__(self, other):362 """Returns true if both objects are not equal"""...

Full Screen

Full Screen

overload_numeric_runme.py

Source:overload_numeric_runme.py Github

copy

Full Screen

...4limits = Limits()5def check(got, expected):6 if got != expected:7 raise RuntimeError("got: " + got + " expected: " + expected)8check(nums.over(0), "signed char")9check(nums.over(0.0), "float")10check(nums.over(limits.schar_min()), "signed char")11check(nums.over(limits.schar_max()), "signed char")12check(nums.over(limits.schar_min()-1), "short")13check(nums.over(limits.schar_max()+1), "short")14check(nums.over(limits.shrt_min()), "short")15check(nums.over(limits.shrt_max()), "short")16check(nums.over(limits.shrt_min()-1), "int")17check(nums.over(limits.shrt_max()+1), "int")18check(nums.over(limits.int_min()), "int")19check(nums.over(limits.int_max()), "int")20check(nums.over(limits.flt_min()), "float")21check(nums.over(limits.flt_max()), "float")22check(nums.over(limits.flt_max()*10), "double")23check(nums.over(-limits.flt_max()*10), "double")24check(nums.over(limits.dbl_max()), "double")25check(nums.over(-limits.dbl_max()), "double")26check(nums.over(float("inf")), "float")27check(nums.over(float("-inf")), "float")28check(nums.over(float("nan")), "float")29# Just check if the following are accepted without exceptions being thrown30nums.doublebounce(float("inf"))31nums.doublebounce(float("-inf"))...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run refurb automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful