docusign_esign.models.locale_policy_tab
Docusign eSignature REST API
The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501
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 eSignature REST API 5 6 The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501 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 14import pprint 15import re # noqa: F401 16 17import six 18 19from docusign_esign.client.configuration import Configuration 20 21 22class LocalePolicyTab(object): 23 """NOTE: This class is auto generated by the swagger code generator program. 24 25 Do not edit the class manually. 26 """ 27 28 """ 29 Attributes: 30 swagger_types (dict): The key is attribute name 31 and the value is attribute type. 32 attribute_map (dict): The key is attribute name 33 and the value is json key in definition. 34 """ 35 swagger_types = { 36 'address_format': 'str', 37 'calendar_type': 'str', 38 'culture_name': 'str', 39 'currency_code': 'str', 40 'currency_negative_format': 'str', 41 'currency_positive_format': 'str', 42 'custom_date_format': 'str', 43 'custom_time_format': 'str', 44 'date_format': 'str', 45 'initial_format': 'str', 46 'name_format': 'str', 47 'time_format': 'str', 48 'time_zone': 'str', 49 'use_long_currency_format': 'str' 50 } 51 52 attribute_map = { 53 'address_format': 'addressFormat', 54 'calendar_type': 'calendarType', 55 'culture_name': 'cultureName', 56 'currency_code': 'currencyCode', 57 'currency_negative_format': 'currencyNegativeFormat', 58 'currency_positive_format': 'currencyPositiveFormat', 59 'custom_date_format': 'customDateFormat', 60 'custom_time_format': 'customTimeFormat', 61 'date_format': 'dateFormat', 62 'initial_format': 'initialFormat', 63 'name_format': 'nameFormat', 64 'time_format': 'timeFormat', 65 'time_zone': 'timeZone', 66 'use_long_currency_format': 'useLongCurrencyFormat' 67 } 68 69 def __init__(self, _configuration=None, **kwargs): # noqa: E501 70 """LocalePolicyTab - a model defined in Swagger""" # noqa: E501 71 if _configuration is None: 72 _configuration = Configuration() 73 self._configuration = _configuration 74 75 self._address_format = None 76 self._calendar_type = None 77 self._culture_name = None 78 self._currency_code = None 79 self._currency_negative_format = None 80 self._currency_positive_format = None 81 self._custom_date_format = None 82 self._custom_time_format = None 83 self._date_format = None 84 self._initial_format = None 85 self._name_format = None 86 self._time_format = None 87 self._time_zone = None 88 self._use_long_currency_format = None 89 self.discriminator = None 90 91 setattr(self, "_{}".format('address_format'), kwargs.get('address_format', None)) 92 setattr(self, "_{}".format('calendar_type'), kwargs.get('calendar_type', None)) 93 setattr(self, "_{}".format('culture_name'), kwargs.get('culture_name', None)) 94 setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) 95 setattr(self, "_{}".format('currency_negative_format'), kwargs.get('currency_negative_format', None)) 96 setattr(self, "_{}".format('currency_positive_format'), kwargs.get('currency_positive_format', None)) 97 setattr(self, "_{}".format('custom_date_format'), kwargs.get('custom_date_format', None)) 98 setattr(self, "_{}".format('custom_time_format'), kwargs.get('custom_time_format', None)) 99 setattr(self, "_{}".format('date_format'), kwargs.get('date_format', None)) 100 setattr(self, "_{}".format('initial_format'), kwargs.get('initial_format', None)) 101 setattr(self, "_{}".format('name_format'), kwargs.get('name_format', None)) 102 setattr(self, "_{}".format('time_format'), kwargs.get('time_format', None)) 103 setattr(self, "_{}".format('time_zone'), kwargs.get('time_zone', None)) 104 setattr(self, "_{}".format('use_long_currency_format'), kwargs.get('use_long_currency_format', None)) 105 106 @property 107 def address_format(self): 108 """Gets the address_format of this LocalePolicyTab. # noqa: E501 109 110 # noqa: E501 111 112 :return: The address_format of this LocalePolicyTab. # noqa: E501 113 :rtype: str 114 """ 115 return self._address_format 116 117 @address_format.setter 118 def address_format(self, address_format): 119 """Sets the address_format of this LocalePolicyTab. 120 121 # noqa: E501 122 123 :param address_format: The address_format of this LocalePolicyTab. # noqa: E501 124 :type: str 125 """ 126 127 self._address_format = address_format 128 129 @property 130 def calendar_type(self): 131 """Gets the calendar_type of this LocalePolicyTab. # noqa: E501 132 133 # noqa: E501 134 135 :return: The calendar_type of this LocalePolicyTab. # noqa: E501 136 :rtype: str 137 """ 138 return self._calendar_type 139 140 @calendar_type.setter 141 def calendar_type(self, calendar_type): 142 """Sets the calendar_type of this LocalePolicyTab. 143 144 # noqa: E501 145 146 :param calendar_type: The calendar_type of this LocalePolicyTab. # noqa: E501 147 :type: str 148 """ 149 150 self._calendar_type = calendar_type 151 152 @property 153 def culture_name(self): 154 """Gets the culture_name of this LocalePolicyTab. # noqa: E501 155 156 # noqa: E501 157 158 :return: The culture_name of this LocalePolicyTab. # noqa: E501 159 :rtype: str 160 """ 161 return self._culture_name 162 163 @culture_name.setter 164 def culture_name(self, culture_name): 165 """Sets the culture_name of this LocalePolicyTab. 166 167 # noqa: E501 168 169 :param culture_name: The culture_name of this LocalePolicyTab. # noqa: E501 170 :type: str 171 """ 172 173 self._culture_name = culture_name 174 175 @property 176 def currency_code(self): 177 """Gets the currency_code of this LocalePolicyTab. # noqa: E501 178 179 # noqa: E501 180 181 :return: The currency_code of this LocalePolicyTab. # noqa: E501 182 :rtype: str 183 """ 184 return self._currency_code 185 186 @currency_code.setter 187 def currency_code(self, currency_code): 188 """Sets the currency_code of this LocalePolicyTab. 189 190 # noqa: E501 191 192 :param currency_code: The currency_code of this LocalePolicyTab. # noqa: E501 193 :type: str 194 """ 195 196 self._currency_code = currency_code 197 198 @property 199 def currency_negative_format(self): 200 """Gets the currency_negative_format of this LocalePolicyTab. # noqa: E501 201 202 # noqa: E501 203 204 :return: The currency_negative_format of this LocalePolicyTab. # noqa: E501 205 :rtype: str 206 """ 207 return self._currency_negative_format 208 209 @currency_negative_format.setter 210 def currency_negative_format(self, currency_negative_format): 211 """Sets the currency_negative_format of this LocalePolicyTab. 212 213 # noqa: E501 214 215 :param currency_negative_format: The currency_negative_format of this LocalePolicyTab. # noqa: E501 216 :type: str 217 """ 218 219 self._currency_negative_format = currency_negative_format 220 221 @property 222 def currency_positive_format(self): 223 """Gets the currency_positive_format of this LocalePolicyTab. # noqa: E501 224 225 # noqa: E501 226 227 :return: The currency_positive_format of this LocalePolicyTab. # noqa: E501 228 :rtype: str 229 """ 230 return self._currency_positive_format 231 232 @currency_positive_format.setter 233 def currency_positive_format(self, currency_positive_format): 234 """Sets the currency_positive_format of this LocalePolicyTab. 235 236 # noqa: E501 237 238 :param currency_positive_format: The currency_positive_format of this LocalePolicyTab. # noqa: E501 239 :type: str 240 """ 241 242 self._currency_positive_format = currency_positive_format 243 244 @property 245 def custom_date_format(self): 246 """Gets the custom_date_format of this LocalePolicyTab. # noqa: E501 247 248 # noqa: E501 249 250 :return: The custom_date_format of this LocalePolicyTab. # noqa: E501 251 :rtype: str 252 """ 253 return self._custom_date_format 254 255 @custom_date_format.setter 256 def custom_date_format(self, custom_date_format): 257 """Sets the custom_date_format of this LocalePolicyTab. 258 259 # noqa: E501 260 261 :param custom_date_format: The custom_date_format of this LocalePolicyTab. # noqa: E501 262 :type: str 263 """ 264 265 self._custom_date_format = custom_date_format 266 267 @property 268 def custom_time_format(self): 269 """Gets the custom_time_format of this LocalePolicyTab. # noqa: E501 270 271 # noqa: E501 272 273 :return: The custom_time_format of this LocalePolicyTab. # noqa: E501 274 :rtype: str 275 """ 276 return self._custom_time_format 277 278 @custom_time_format.setter 279 def custom_time_format(self, custom_time_format): 280 """Sets the custom_time_format of this LocalePolicyTab. 281 282 # noqa: E501 283 284 :param custom_time_format: The custom_time_format of this LocalePolicyTab. # noqa: E501 285 :type: str 286 """ 287 288 self._custom_time_format = custom_time_format 289 290 @property 291 def date_format(self): 292 """Gets the date_format of this LocalePolicyTab. # noqa: E501 293 294 # noqa: E501 295 296 :return: The date_format of this LocalePolicyTab. # noqa: E501 297 :rtype: str 298 """ 299 return self._date_format 300 301 @date_format.setter 302 def date_format(self, date_format): 303 """Sets the date_format of this LocalePolicyTab. 304 305 # noqa: E501 306 307 :param date_format: The date_format of this LocalePolicyTab. # noqa: E501 308 :type: str 309 """ 310 311 self._date_format = date_format 312 313 @property 314 def initial_format(self): 315 """Gets the initial_format of this LocalePolicyTab. # noqa: E501 316 317 # noqa: E501 318 319 :return: The initial_format of this LocalePolicyTab. # noqa: E501 320 :rtype: str 321 """ 322 return self._initial_format 323 324 @initial_format.setter 325 def initial_format(self, initial_format): 326 """Sets the initial_format of this LocalePolicyTab. 327 328 # noqa: E501 329 330 :param initial_format: The initial_format of this LocalePolicyTab. # noqa: E501 331 :type: str 332 """ 333 334 self._initial_format = initial_format 335 336 @property 337 def name_format(self): 338 """Gets the name_format of this LocalePolicyTab. # noqa: E501 339 340 # noqa: E501 341 342 :return: The name_format of this LocalePolicyTab. # noqa: E501 343 :rtype: str 344 """ 345 return self._name_format 346 347 @name_format.setter 348 def name_format(self, name_format): 349 """Sets the name_format of this LocalePolicyTab. 350 351 # noqa: E501 352 353 :param name_format: The name_format of this LocalePolicyTab. # noqa: E501 354 :type: str 355 """ 356 357 self._name_format = name_format 358 359 @property 360 def time_format(self): 361 """Gets the time_format of this LocalePolicyTab. # noqa: E501 362 363 # noqa: E501 364 365 :return: The time_format of this LocalePolicyTab. # noqa: E501 366 :rtype: str 367 """ 368 return self._time_format 369 370 @time_format.setter 371 def time_format(self, time_format): 372 """Sets the time_format of this LocalePolicyTab. 373 374 # noqa: E501 375 376 :param time_format: The time_format of this LocalePolicyTab. # noqa: E501 377 :type: str 378 """ 379 380 self._time_format = time_format 381 382 @property 383 def time_zone(self): 384 """Gets the time_zone of this LocalePolicyTab. # noqa: E501 385 386 # noqa: E501 387 388 :return: The time_zone of this LocalePolicyTab. # noqa: E501 389 :rtype: str 390 """ 391 return self._time_zone 392 393 @time_zone.setter 394 def time_zone(self, time_zone): 395 """Sets the time_zone of this LocalePolicyTab. 396 397 # noqa: E501 398 399 :param time_zone: The time_zone of this LocalePolicyTab. # noqa: E501 400 :type: str 401 """ 402 403 self._time_zone = time_zone 404 405 @property 406 def use_long_currency_format(self): 407 """Gets the use_long_currency_format of this LocalePolicyTab. # noqa: E501 408 409 # noqa: E501 410 411 :return: The use_long_currency_format of this LocalePolicyTab. # noqa: E501 412 :rtype: str 413 """ 414 return self._use_long_currency_format 415 416 @use_long_currency_format.setter 417 def use_long_currency_format(self, use_long_currency_format): 418 """Sets the use_long_currency_format of this LocalePolicyTab. 419 420 # noqa: E501 421 422 :param use_long_currency_format: The use_long_currency_format of this LocalePolicyTab. # noqa: E501 423 :type: str 424 """ 425 426 self._use_long_currency_format = use_long_currency_format 427 428 def to_dict(self): 429 """Returns the model properties as a dict""" 430 result = {} 431 432 for attr, _ in six.iteritems(self.swagger_types): 433 value = getattr(self, attr) 434 if isinstance(value, list): 435 result[attr] = list(map( 436 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 437 value 438 )) 439 elif hasattr(value, "to_dict"): 440 result[attr] = value.to_dict() 441 elif isinstance(value, dict): 442 result[attr] = dict(map( 443 lambda item: (item[0], item[1].to_dict()) 444 if hasattr(item[1], "to_dict") else item, 445 value.items() 446 )) 447 else: 448 result[attr] = value 449 if issubclass(LocalePolicyTab, dict): 450 for key, value in self.items(): 451 result[key] = value 452 453 return result 454 455 def to_str(self): 456 """Returns the string representation of the model""" 457 return pprint.pformat(self.to_dict()) 458 459 def __repr__(self): 460 """For `print` and `pprint`""" 461 return self.to_str() 462 463 def __eq__(self, other): 464 """Returns true if both objects are equal""" 465 if not isinstance(other, LocalePolicyTab): 466 return False 467 468 return self.to_dict() == other.to_dict() 469 470 def __ne__(self, other): 471 """Returns true if both objects are not equal""" 472 if not isinstance(other, LocalePolicyTab): 473 return True 474 475 return self.to_dict() != other.to_dict()
23class LocalePolicyTab(object): 24 """NOTE: This class is auto generated by the swagger code generator program. 25 26 Do not edit the class manually. 27 """ 28 29 """ 30 Attributes: 31 swagger_types (dict): The key is attribute name 32 and the value is attribute type. 33 attribute_map (dict): The key is attribute name 34 and the value is json key in definition. 35 """ 36 swagger_types = { 37 'address_format': 'str', 38 'calendar_type': 'str', 39 'culture_name': 'str', 40 'currency_code': 'str', 41 'currency_negative_format': 'str', 42 'currency_positive_format': 'str', 43 'custom_date_format': 'str', 44 'custom_time_format': 'str', 45 'date_format': 'str', 46 'initial_format': 'str', 47 'name_format': 'str', 48 'time_format': 'str', 49 'time_zone': 'str', 50 'use_long_currency_format': 'str' 51 } 52 53 attribute_map = { 54 'address_format': 'addressFormat', 55 'calendar_type': 'calendarType', 56 'culture_name': 'cultureName', 57 'currency_code': 'currencyCode', 58 'currency_negative_format': 'currencyNegativeFormat', 59 'currency_positive_format': 'currencyPositiveFormat', 60 'custom_date_format': 'customDateFormat', 61 'custom_time_format': 'customTimeFormat', 62 'date_format': 'dateFormat', 63 'initial_format': 'initialFormat', 64 'name_format': 'nameFormat', 65 'time_format': 'timeFormat', 66 'time_zone': 'timeZone', 67 'use_long_currency_format': 'useLongCurrencyFormat' 68 } 69 70 def __init__(self, _configuration=None, **kwargs): # noqa: E501 71 """LocalePolicyTab - a model defined in Swagger""" # noqa: E501 72 if _configuration is None: 73 _configuration = Configuration() 74 self._configuration = _configuration 75 76 self._address_format = None 77 self._calendar_type = None 78 self._culture_name = None 79 self._currency_code = None 80 self._currency_negative_format = None 81 self._currency_positive_format = None 82 self._custom_date_format = None 83 self._custom_time_format = None 84 self._date_format = None 85 self._initial_format = None 86 self._name_format = None 87 self._time_format = None 88 self._time_zone = None 89 self._use_long_currency_format = None 90 self.discriminator = None 91 92 setattr(self, "_{}".format('address_format'), kwargs.get('address_format', None)) 93 setattr(self, "_{}".format('calendar_type'), kwargs.get('calendar_type', None)) 94 setattr(self, "_{}".format('culture_name'), kwargs.get('culture_name', None)) 95 setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) 96 setattr(self, "_{}".format('currency_negative_format'), kwargs.get('currency_negative_format', None)) 97 setattr(self, "_{}".format('currency_positive_format'), kwargs.get('currency_positive_format', None)) 98 setattr(self, "_{}".format('custom_date_format'), kwargs.get('custom_date_format', None)) 99 setattr(self, "_{}".format('custom_time_format'), kwargs.get('custom_time_format', None)) 100 setattr(self, "_{}".format('date_format'), kwargs.get('date_format', None)) 101 setattr(self, "_{}".format('initial_format'), kwargs.get('initial_format', None)) 102 setattr(self, "_{}".format('name_format'), kwargs.get('name_format', None)) 103 setattr(self, "_{}".format('time_format'), kwargs.get('time_format', None)) 104 setattr(self, "_{}".format('time_zone'), kwargs.get('time_zone', None)) 105 setattr(self, "_{}".format('use_long_currency_format'), kwargs.get('use_long_currency_format', None)) 106 107 @property 108 def address_format(self): 109 """Gets the address_format of this LocalePolicyTab. # noqa: E501 110 111 # noqa: E501 112 113 :return: The address_format of this LocalePolicyTab. # noqa: E501 114 :rtype: str 115 """ 116 return self._address_format 117 118 @address_format.setter 119 def address_format(self, address_format): 120 """Sets the address_format of this LocalePolicyTab. 121 122 # noqa: E501 123 124 :param address_format: The address_format of this LocalePolicyTab. # noqa: E501 125 :type: str 126 """ 127 128 self._address_format = address_format 129 130 @property 131 def calendar_type(self): 132 """Gets the calendar_type of this LocalePolicyTab. # noqa: E501 133 134 # noqa: E501 135 136 :return: The calendar_type of this LocalePolicyTab. # noqa: E501 137 :rtype: str 138 """ 139 return self._calendar_type 140 141 @calendar_type.setter 142 def calendar_type(self, calendar_type): 143 """Sets the calendar_type of this LocalePolicyTab. 144 145 # noqa: E501 146 147 :param calendar_type: The calendar_type of this LocalePolicyTab. # noqa: E501 148 :type: str 149 """ 150 151 self._calendar_type = calendar_type 152 153 @property 154 def culture_name(self): 155 """Gets the culture_name of this LocalePolicyTab. # noqa: E501 156 157 # noqa: E501 158 159 :return: The culture_name of this LocalePolicyTab. # noqa: E501 160 :rtype: str 161 """ 162 return self._culture_name 163 164 @culture_name.setter 165 def culture_name(self, culture_name): 166 """Sets the culture_name of this LocalePolicyTab. 167 168 # noqa: E501 169 170 :param culture_name: The culture_name of this LocalePolicyTab. # noqa: E501 171 :type: str 172 """ 173 174 self._culture_name = culture_name 175 176 @property 177 def currency_code(self): 178 """Gets the currency_code of this LocalePolicyTab. # noqa: E501 179 180 # noqa: E501 181 182 :return: The currency_code of this LocalePolicyTab. # noqa: E501 183 :rtype: str 184 """ 185 return self._currency_code 186 187 @currency_code.setter 188 def currency_code(self, currency_code): 189 """Sets the currency_code of this LocalePolicyTab. 190 191 # noqa: E501 192 193 :param currency_code: The currency_code of this LocalePolicyTab. # noqa: E501 194 :type: str 195 """ 196 197 self._currency_code = currency_code 198 199 @property 200 def currency_negative_format(self): 201 """Gets the currency_negative_format of this LocalePolicyTab. # noqa: E501 202 203 # noqa: E501 204 205 :return: The currency_negative_format of this LocalePolicyTab. # noqa: E501 206 :rtype: str 207 """ 208 return self._currency_negative_format 209 210 @currency_negative_format.setter 211 def currency_negative_format(self, currency_negative_format): 212 """Sets the currency_negative_format of this LocalePolicyTab. 213 214 # noqa: E501 215 216 :param currency_negative_format: The currency_negative_format of this LocalePolicyTab. # noqa: E501 217 :type: str 218 """ 219 220 self._currency_negative_format = currency_negative_format 221 222 @property 223 def currency_positive_format(self): 224 """Gets the currency_positive_format of this LocalePolicyTab. # noqa: E501 225 226 # noqa: E501 227 228 :return: The currency_positive_format of this LocalePolicyTab. # noqa: E501 229 :rtype: str 230 """ 231 return self._currency_positive_format 232 233 @currency_positive_format.setter 234 def currency_positive_format(self, currency_positive_format): 235 """Sets the currency_positive_format of this LocalePolicyTab. 236 237 # noqa: E501 238 239 :param currency_positive_format: The currency_positive_format of this LocalePolicyTab. # noqa: E501 240 :type: str 241 """ 242 243 self._currency_positive_format = currency_positive_format 244 245 @property 246 def custom_date_format(self): 247 """Gets the custom_date_format of this LocalePolicyTab. # noqa: E501 248 249 # noqa: E501 250 251 :return: The custom_date_format of this LocalePolicyTab. # noqa: E501 252 :rtype: str 253 """ 254 return self._custom_date_format 255 256 @custom_date_format.setter 257 def custom_date_format(self, custom_date_format): 258 """Sets the custom_date_format of this LocalePolicyTab. 259 260 # noqa: E501 261 262 :param custom_date_format: The custom_date_format of this LocalePolicyTab. # noqa: E501 263 :type: str 264 """ 265 266 self._custom_date_format = custom_date_format 267 268 @property 269 def custom_time_format(self): 270 """Gets the custom_time_format of this LocalePolicyTab. # noqa: E501 271 272 # noqa: E501 273 274 :return: The custom_time_format of this LocalePolicyTab. # noqa: E501 275 :rtype: str 276 """ 277 return self._custom_time_format 278 279 @custom_time_format.setter 280 def custom_time_format(self, custom_time_format): 281 """Sets the custom_time_format of this LocalePolicyTab. 282 283 # noqa: E501 284 285 :param custom_time_format: The custom_time_format of this LocalePolicyTab. # noqa: E501 286 :type: str 287 """ 288 289 self._custom_time_format = custom_time_format 290 291 @property 292 def date_format(self): 293 """Gets the date_format of this LocalePolicyTab. # noqa: E501 294 295 # noqa: E501 296 297 :return: The date_format of this LocalePolicyTab. # noqa: E501 298 :rtype: str 299 """ 300 return self._date_format 301 302 @date_format.setter 303 def date_format(self, date_format): 304 """Sets the date_format of this LocalePolicyTab. 305 306 # noqa: E501 307 308 :param date_format: The date_format of this LocalePolicyTab. # noqa: E501 309 :type: str 310 """ 311 312 self._date_format = date_format 313 314 @property 315 def initial_format(self): 316 """Gets the initial_format of this LocalePolicyTab. # noqa: E501 317 318 # noqa: E501 319 320 :return: The initial_format of this LocalePolicyTab. # noqa: E501 321 :rtype: str 322 """ 323 return self._initial_format 324 325 @initial_format.setter 326 def initial_format(self, initial_format): 327 """Sets the initial_format of this LocalePolicyTab. 328 329 # noqa: E501 330 331 :param initial_format: The initial_format of this LocalePolicyTab. # noqa: E501 332 :type: str 333 """ 334 335 self._initial_format = initial_format 336 337 @property 338 def name_format(self): 339 """Gets the name_format of this LocalePolicyTab. # noqa: E501 340 341 # noqa: E501 342 343 :return: The name_format of this LocalePolicyTab. # noqa: E501 344 :rtype: str 345 """ 346 return self._name_format 347 348 @name_format.setter 349 def name_format(self, name_format): 350 """Sets the name_format of this LocalePolicyTab. 351 352 # noqa: E501 353 354 :param name_format: The name_format of this LocalePolicyTab. # noqa: E501 355 :type: str 356 """ 357 358 self._name_format = name_format 359 360 @property 361 def time_format(self): 362 """Gets the time_format of this LocalePolicyTab. # noqa: E501 363 364 # noqa: E501 365 366 :return: The time_format of this LocalePolicyTab. # noqa: E501 367 :rtype: str 368 """ 369 return self._time_format 370 371 @time_format.setter 372 def time_format(self, time_format): 373 """Sets the time_format of this LocalePolicyTab. 374 375 # noqa: E501 376 377 :param time_format: The time_format of this LocalePolicyTab. # noqa: E501 378 :type: str 379 """ 380 381 self._time_format = time_format 382 383 @property 384 def time_zone(self): 385 """Gets the time_zone of this LocalePolicyTab. # noqa: E501 386 387 # noqa: E501 388 389 :return: The time_zone of this LocalePolicyTab. # noqa: E501 390 :rtype: str 391 """ 392 return self._time_zone 393 394 @time_zone.setter 395 def time_zone(self, time_zone): 396 """Sets the time_zone of this LocalePolicyTab. 397 398 # noqa: E501 399 400 :param time_zone: The time_zone of this LocalePolicyTab. # noqa: E501 401 :type: str 402 """ 403 404 self._time_zone = time_zone 405 406 @property 407 def use_long_currency_format(self): 408 """Gets the use_long_currency_format of this LocalePolicyTab. # noqa: E501 409 410 # noqa: E501 411 412 :return: The use_long_currency_format of this LocalePolicyTab. # noqa: E501 413 :rtype: str 414 """ 415 return self._use_long_currency_format 416 417 @use_long_currency_format.setter 418 def use_long_currency_format(self, use_long_currency_format): 419 """Sets the use_long_currency_format of this LocalePolicyTab. 420 421 # noqa: E501 422 423 :param use_long_currency_format: The use_long_currency_format of this LocalePolicyTab. # noqa: E501 424 :type: str 425 """ 426 427 self._use_long_currency_format = use_long_currency_format 428 429 def to_dict(self): 430 """Returns the model properties as a dict""" 431 result = {} 432 433 for attr, _ in six.iteritems(self.swagger_types): 434 value = getattr(self, attr) 435 if isinstance(value, list): 436 result[attr] = list(map( 437 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 438 value 439 )) 440 elif hasattr(value, "to_dict"): 441 result[attr] = value.to_dict() 442 elif isinstance(value, dict): 443 result[attr] = dict(map( 444 lambda item: (item[0], item[1].to_dict()) 445 if hasattr(item[1], "to_dict") else item, 446 value.items() 447 )) 448 else: 449 result[attr] = value 450 if issubclass(LocalePolicyTab, dict): 451 for key, value in self.items(): 452 result[key] = value 453 454 return result 455 456 def to_str(self): 457 """Returns the string representation of the model""" 458 return pprint.pformat(self.to_dict()) 459 460 def __repr__(self): 461 """For `print` and `pprint`""" 462 return self.to_str() 463 464 def __eq__(self, other): 465 """Returns true if both objects are equal""" 466 if not isinstance(other, LocalePolicyTab): 467 return False 468 469 return self.to_dict() == other.to_dict() 470 471 def __ne__(self, other): 472 """Returns true if both objects are not equal""" 473 if not isinstance(other, LocalePolicyTab): 474 return True 475 476 return self.to_dict() != other.to_dict()
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
70 def __init__(self, _configuration=None, **kwargs): # noqa: E501 71 """LocalePolicyTab - a model defined in Swagger""" # noqa: E501 72 if _configuration is None: 73 _configuration = Configuration() 74 self._configuration = _configuration 75 76 self._address_format = None 77 self._calendar_type = None 78 self._culture_name = None 79 self._currency_code = None 80 self._currency_negative_format = None 81 self._currency_positive_format = None 82 self._custom_date_format = None 83 self._custom_time_format = None 84 self._date_format = None 85 self._initial_format = None 86 self._name_format = None 87 self._time_format = None 88 self._time_zone = None 89 self._use_long_currency_format = None 90 self.discriminator = None 91 92 setattr(self, "_{}".format('address_format'), kwargs.get('address_format', None)) 93 setattr(self, "_{}".format('calendar_type'), kwargs.get('calendar_type', None)) 94 setattr(self, "_{}".format('culture_name'), kwargs.get('culture_name', None)) 95 setattr(self, "_{}".format('currency_code'), kwargs.get('currency_code', None)) 96 setattr(self, "_{}".format('currency_negative_format'), kwargs.get('currency_negative_format', None)) 97 setattr(self, "_{}".format('currency_positive_format'), kwargs.get('currency_positive_format', None)) 98 setattr(self, "_{}".format('custom_date_format'), kwargs.get('custom_date_format', None)) 99 setattr(self, "_{}".format('custom_time_format'), kwargs.get('custom_time_format', None)) 100 setattr(self, "_{}".format('date_format'), kwargs.get('date_format', None)) 101 setattr(self, "_{}".format('initial_format'), kwargs.get('initial_format', None)) 102 setattr(self, "_{}".format('name_format'), kwargs.get('name_format', None)) 103 setattr(self, "_{}".format('time_format'), kwargs.get('time_format', None)) 104 setattr(self, "_{}".format('time_zone'), kwargs.get('time_zone', None)) 105 setattr(self, "_{}".format('use_long_currency_format'), kwargs.get('use_long_currency_format', None))
LocalePolicyTab - a model defined in Swagger
Gets the address_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The address_format of this LocalePolicyTab. # noqa: E501
Gets the calendar_type of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The calendar_type of this LocalePolicyTab. # noqa: E501
Gets the culture_name of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The culture_name of this LocalePolicyTab. # noqa: E501
Gets the currency_code of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The currency_code of this LocalePolicyTab. # noqa: E501
Gets the currency_negative_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The currency_negative_format of this LocalePolicyTab. # noqa: E501
Gets the currency_positive_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The currency_positive_format of this LocalePolicyTab. # noqa: E501
Gets the custom_date_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The custom_date_format of this LocalePolicyTab. # noqa: E501
Gets the custom_time_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The custom_time_format of this LocalePolicyTab. # noqa: E501
Gets the date_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The date_format of this LocalePolicyTab. # noqa: E501
Gets the initial_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The initial_format of this LocalePolicyTab. # noqa: E501
Gets the name_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The name_format of this LocalePolicyTab. # noqa: E501
Gets the time_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The time_format of this LocalePolicyTab. # noqa: E501
Gets the time_zone of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The time_zone of this LocalePolicyTab. # noqa: E501
Gets the use_long_currency_format of this LocalePolicyTab. # noqa: E501
# noqa: E501
Returns
The use_long_currency_format of this LocalePolicyTab. # noqa: E501
429 def to_dict(self): 430 """Returns the model properties as a dict""" 431 result = {} 432 433 for attr, _ in six.iteritems(self.swagger_types): 434 value = getattr(self, attr) 435 if isinstance(value, list): 436 result[attr] = list(map( 437 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 438 value 439 )) 440 elif hasattr(value, "to_dict"): 441 result[attr] = value.to_dict() 442 elif isinstance(value, dict): 443 result[attr] = dict(map( 444 lambda item: (item[0], item[1].to_dict()) 445 if hasattr(item[1], "to_dict") else item, 446 value.items() 447 )) 448 else: 449 result[attr] = value 450 if issubclass(LocalePolicyTab, dict): 451 for key, value in self.items(): 452 result[key] = value 453 454 return result
Returns the model properties as a dict